poo is a modular agent harness written in Go. One codebase produces a headless CLI and interactive REPL for OpenAI-compatible and Anthropic endpoints. It also ships as an embeddable Go library for custom binaries with only the tools, providers, and policies you link.
Many JS-written harnesses promote a self-improving agent.
poopromotes an engineered agent.
Status: experimental. Go APIs, settings, and wire protocol can change without a deprecation period until the TUI launches.
Docs: poo.douggo.com · Agent index: llms.txt · llms-full.txt
- Compile-time composition. Core
package poodepends only on the Go standard library (enforced byinternal/depcheck). Link only what you want viaserver.New—unlinked tools and executors cannot be reached at runtime. - No-rebuild extensibility when you want it. Drop a JSON manifest into
~/.config/poo/cli-registry/to expose a CLI or script as a tool. Attachmcp.jsonservers per profile, or addSKILL.mddirectories. - Feeds & resident daemon (
poo daemon). Long-lived commands and MCP resource subscriptions push async inputs into a durable, lease-backed session. Each feed supports decision-model or script filtering and idle-wake controls. - Transparent compaction. Choose
mine(default),pointer,summary,handoff,native(Codex), ornone, optionally with a dedicatedroles.compactionmodel. Nothing rewrites stored history silently. - Decision model (
roles.decider). Wire a fast classifier model (such as TypeSafe Jev) into permission askers, feed record filters, and large tool-catalog search (find_tool). - Defense-in-depth safety. Permission rules and asker chains, doom-loop detection, protected paths, per-tool working-directory controls, child env scrubbing, and a Bubblewrap (
bwrap) sandbox executor. - Explicit FSM & wire conformance. Closed settle-reason enum mapped 1:1 to exit codes, JSON-RPC 2.0 over stdio (
poo serve), and an exported black-box conformance suite (wire/conformance) withFakeEndpoint.
Install a release binary into ~/.local/bin (set BINDIR to override):
curl -fsSL https://raw.githubusercontent.com/sdougbrown/poo/main/install.sh | shOr install from source (Go 1.26+):
go install github.com/sdougbrown/poo/cmd/poo@latestRun a one-shot session against any OpenAI-compatible endpoint:
poo run --endpoint http://localhost:4000/v1 --model-id gemma4 \
--context-limit 262144 --max-turns 8 \
"List the Go packages in this repository."Or sign in to a built-in provider (opencode, codex, ollama-cloud, typesafe). Copy a starter file from examples/ to .poo/settings.yaml, verify your roles, and open the REPL:
poo login opencode
cp examples/opencode.settings.yaml .poo/settings.yaml
poo roles
pooAll documentation lives in docs/ and publishes to poo.douggo.com.
| If you want to… | Read |
|---|---|
| Understand the design philosophy & extensibility ladder | Why poo? · Prior Art |
| Install, configure starter settings, or learn the REPL | Install · Quickstart · Interactive REPL |
Configure models, endpoints, or models.yaml |
Models & Catalog · Models File Reference |
| Set reasoning effort, budgets, sampling, or transport quirks | Reasoning & Sampling |
| Sign in to Codex, OpenCode, Ollama Cloud, or TypeSafe | Providers & Auth |
Customize profiles, system prompts, AGENTS.md, or skills |
Profiles & Prompts · Skills |
Run async feeds or a durable poo daemon |
Feeds & Daemon · Manifests Reference |
Tune context compaction (mine, pointer, native, and more) |
Context Compaction |
| Add custom tools without rebuilding Go (CLI registry / MCP) | CLI Registry & Script Tools · MCP Servers |
| Use Codemode (QuickJS WASM / Starlark) or a decision model | Codemode · Decision Model |
Lock down permissions, bwrap sandboxing, or durable sessions |
Permissions & Safety · Sandboxing · Sessions & Durability |
Embed poo as a Go library or speak the JSON-RPC wire protocol |
Architecture · Build Your Own Binary · Wire Protocol |
| Look up every CLI flag, settings key, or exit code | CLI Reference · Settings Reference · Limits & Exit Codes |
| Inspect the session log format or wire API mapping | Session Log v0 · Wire API Mapping |
poo ships two evaluation tracks documented in Evals & Benchmarks:
poo-eval(evals/): 20 tasks (coding fixes, find-and-explain, long-context) run insidebwrapisolation with fixture integrity hashing.- Harbor adapter (
evals/harbor/): runs a static Linuxpoobinary on Terminal-Bench and SWE-bench for paired harness comparisons. In head-to-head Terminal-Bench runs on locally hostedglm-5.3-flash,poobeatpiand tiedmini-swe-agent(single-model scope, not an exhaustive benchmark).
The root directory holds package poo (the stdlib-only core agent loop, FSM, hooks, and message model). Everything else lives in opt-in subpackages:
| Area | Packages |
|---|---|
| Core & contracts | poo (root), prompt/, decide/, wire/protocol/ (stdlib-only) |
| CLI, REPL & server | cmd/poo/, repl/, server/, wire/, config/, profile/ |
| Tools & scripting | tool/* (bash, read, edit, write, grep, outline, fetch, codemode, cliregistry, callmcp, history, finish), codemode/*, cli/ |
| Feeds, MCP & skills | feed/, mcp/, mcp/manifest/, skill/ |
| Providers & compaction | provider/* (openai, anthropic, codex, auth, catalog), compact/* (mine, pointer, summary, handoff, native) |
| Safety & sessions | perm/, perm/decide/, protect/, exec/, exec/bwrap/, session/, session/sqlite/ |
| Testing & evals | pootest/, wire/conformance/, eval/, evals/, cmd/poo-eval/ |
Requires mise and Go 1.26 (see mise.toml):
mise exec -- go vet ./...
mise exec -- go test -race ./...Preview the docs site locally:
npm --prefix docs install
npm --prefix docs run docs:devApache-2.0. See LICENSE.