Prior Art
poo builds on concrete ideas from earlier agent harnesses and deliberately rejects others. This page records what was studied, what poo adopted, and where it diverges.
mini-swe-agent
- Source: SWE-agent/mini-swe-agent
- Version studied:
v2.4.6(04d809ceab9df28f9adaed044884180159172930) - Areas studied: default and interactive agent loops, local shell execution, exception control flow, YAML config templates, and tool-call parsing.
Adopted
- Bash as the primary verb.
mini-swe-agenttreats shell execution as the main way to act on a repo.pookeepsbashcentral in thecodeprofile and addsread,grep,edit, andwriteso read-only binaries can omitbashentirely. - Stateless shell per call. Every command runs in a fresh subshell;
cdand exported variables do not persist across calls.poo's system prompt states this contract explicitly. - Linear, append-only history. Nothing rewrites the model's view of history silently. Compaction always writes a visible replacement and leaves the session store intact.
- Observation envelope with head/tail elision. Above a context-relative cap,
poorenders the head and tail of command output with an elision count. The envelope hints atgrep,sed,head, ortailto inspect smaller slices. - Section-based prompt structure.
poosplits the operating contract, tool rules, and environment context into named prompt sections. It keepsmini-swe-agent's shell guidance while using native tool calls where supported. - Process-group kill on timeout. Timed-out commands kill their entire process group (with a grace period before
SIGKILL) so no orphaned child processes survive.
Rejected
- Bash as the only tool. Read-only builds cannot link
bashat all, so file inspection needs dedicated read-only tools. - Magic-string completion. Instead of ending a run when stdout prints a sentinel string,
pooprovides the typed, schema-validatedfinishtool. - Exception-driven control flow.
poouses an explicit session FSM with a closed settle-reason enum. The wire protocol,run/inspect, and session replay all depend on a known state set. - Format-error retry counters.
pooreturns malformed tool calls to the model as recoverable validation errors and bounds retries withmax_continuations. - Control messages inside the transcript.
pookeeps the message list to model and tool turns and records control outcomes as typed session log records. - Heavy core dependencies.
poo's core packages (poo,poo/prompt,poo/decide,poo/wire/protocol) depend only on the Go standard library, enforced byinternal/depcheck. Opt-in packages (such as the REPL, SQLite store, and QuickJS engine) carry their own dependencies only when linked.
pi-durable
- Source: "Pi Durable" (Earendil Engineering, October 2026)
- Areas studied: storage backends, single-owner locking, durable tasks, prompt sections, extensions, forks, and compaction.
Adopted
- Single-owner storage authority.
poosupports JSONL and SQLite session stores and enforces single-process ownership via file locks and lease TTLs. - Session-to-run lifecycle. A session holds a sequence of runs (one active run at a time) behind a clean store, projection, and authority seam.
- Write-ahead durability.
poowrites every record as it happens. Loading aloggedsession marks any interrupted run; loading adurablesession plans and resumes the run from the interrupted phase. - Section-based prompts. Like
pi-durable,pooassembles prompts from named sections. Unlikepi-durable,poofreezes the rendered prompt for the length of a run so provider prompt caches stay valid. - Structured tool-call records. Every tool call is recorded with its intent and outcome as it runs.
- Transport-level prefix forks. Compaction strategies (
mine,pointer,handoff) fork the last main request byte-for-byte to reuse the provider's prompt cache without creating a separate conversation branch. - Handoff notes.
poo'shandoffcompaction strategy mirrorspi-durable'sreset(note)pattern as an opt-in strategy alongside the defaultminestrategy.
Rejected
- Task graphs and subagent trees.
pooruns one agent loop per session with no built-in subagent tree. Multi-agent orchestration belongs to an external supervisor (such as Avenor via feeds or MCP). - First-class forked conversations. Sessions remain linear; forks exist only at the transport layer for compaction passes.
- Runtime-mutable extension registries.
poocomposes Go extensions at compile time viaserver.New. For no-rebuild extensibility, operators drop in declarative CLI registry or MCP manifests instead of mutating a running registry. - Automatic tool replay policies.
poodoes not tag toolsreplay: "safe"to re-run them automatically after a crash. Recovery records an interrupted outcome so the caller or durable planner can continue safely. - Typed application-state documents.
poohas no built-in document store for plans or todos. - Silent background compaction. Compaction never rewrites history behind the model's back. Every strategy writes a visible replacement and leaves stored history intact.
Related Pages
- Why
poo? — core philosophy and extensibility ladder - Architecture — package boundaries, FSM states, and hooks
- Context Compaction — compaction strategies and transparent history
- Sessions & Durability — JSONL/SQLite stores, leases, and crash recovery
