Skip to content
Projects
Open Digital Infrastructure active

Bounded Terminal

Bounded terminal primitives for AI coding agents. A small toolkit reducing accidental context expansion in shell-driven coding workflows by wrapping risky terminal operations with clear bounds and receipts.

Role

Design and implementation of bounded command output, code context extraction, file-effect observation, and pipe data-flow inspection primitives.

Stack

Rust Shell AST Tooling CLI

Links

Tools

ToolPrimitivePurpose
capBounded command outputWraps commands that may produce large or noisy output
spanBounded code contextExtracts containing blocks from a known line, pattern, or symbol
fxFile-effect observationObserves file mutations (create, modify, delete)
tapPipe data-flow observationProvides stream stats and samples without changing stdout

Planned: tx — a rollbackable mutation boundary backed by Git.

Thesis

AI coding agents waste context because terminal work is often unbounded, over-broad, and hard to observe. Bounded Terminal reduces accidental verbosity, accidental scope expansion, and accidental state ambiguity.

Agent Integration

Agents using these tools follow a simple rule set: use cap for uncertain commands, span instead of reading whole files, fx around file-mutating operations, and tap for pipeline inspection. JSON/receipt modes enable structured downstream consumption by other tools or agents.