Introduction
Building OpenAgents' coding agent in Coax, and learning from every coding agent we can read.
Coder takes one repository task from start to finish: it reads the code, runs commands, edits, tests and opens the pull request. It is one kind of Worker inside OpenAgents, the general agent that people reach from the web, the terminal, the desktop and mobile apps (Episode 289). OpenAgents speaks as "we", owns identity, the wallet, the knowledge base, plugins and routing, and writes every reply in shared channels. Coder speaks as "I" and is opinionated about code. The plan sets out the split.
The book builds the harness one measured piece at a time: a simple loop, a log that rebuilds every request, typed tools, a sandbox, condensing, programs as tool calls (Part I). It then adds engines: Coder's own Microcoder loop, models that Psionic serves, and the Claude Code or Codex a person already uses (Part II). Parts III and IV turn one session into one agent across many tasks and channels that stays online, following the DeepSeek Harness team's Super-agent design. Part V measures each addition against the simplest loop, and Part VI collects everything into the openagents coder command line. Part VII reads other coding agents' source, one agent per chapter, and records what Coder takes from each.
Every chapter ends at an openagents coder verb that does what the chapter built. The plan lists them.
Status
Written 2026-11-01; counts as of 2026-11-02. Of the 37 chapters, 4 are implemented, 21 are partly implemented and 12 are written surveys. Chapters 1–8 and 14–22 moved here from Part XXI of the Psionic book on 2026-11-01. Their code is still under psionic/lib/harness/, and the registry names it.
implemented
The chapter's examples run and its done criteria pass on a named host.
partly implemented
Some examples run; the chapter says what remains.
written
A survey chapter: its claims cite files in another project at a pinned revision.
design draft
The chapter says what will be built and how it will be checked. Code it names may already exist.
planned
A title and a scope only.
Chapters
Partly implemented: cpu-harness-loop-v1, bounded CPU
Partly implemented: sha256-harness-log-v1, bounded CPU
Partly implemented: px-prefix-v1, bounded CPU
Partly implemented: cpu-harness-tools-v1, bounded CPU
Partly implemented: cpu-harness-sandbox-v1, bounded CPU
Partly implemented: ij-inject-v1, bounded CPU, deterministic stand-in agent
Partly implemented: cd-condense-v1, bounded CPU
Partly implemented: cpu-harness-program-v1, bounded CPU
Implemented: coder run --engine micro, Vertex, Gemini API and OpenRouter; recorded streams replay
Implemented: Claude Code 2.1.316 on the person's login; approvals by policy; Coder's tools in-process
Partly implemented: codex-cli 0.163.0 app-server
Partly implemented: --engine psionic on a local Chat Completions server
Partly implemented: mammoth-1 routes 22/22 held out; effort reaches the engine; Decisions API blocked
Partly implemented: forks (Claude Code ones resumed on the server), jobs with deadlines and reports, subagents held to the parent's policy, goals
Implemented: profiles, capabilities, draining, signed installs, Wasm plugins with admitted imports
Partly implemented: MCP over stdio both ways and HTTP, coder mcp with resources, ACP, System One as a tool
Partly implemented: a Router with local, GitHub issue and CI sources, Workers, replies, issue context inline and recall through named sessions
Partly implemented: cs-consent-v1 hash-chained ledger; coder consent gates remembered facts to every engine, and Worker logs, routing and Router decisions to System One
Partly implemented: mm-memory-v1 hash-chained memory events; coder remember/revise/forget/recall on disk, ranked by Vertex embeddings, checked against the session line they came from
Partly implemented: a resumable loop, a watchdog with provider rechecks, machine daemons, credential handles, a read ceiling for unnamed authors (checked live against chapter 6's attacks), channel rules and mail replies as Gmail drafts
Partly implemented: cpu-harness-bench-v1, bounded CPU
Partly implemented: cpu-int-candidates-v1, bounded CPU
Partly implemented: every verb, --on ssh:DEST, coder daemon; --on cloud not live
Written: deepseek-ai/deepseek-harness@ce7073d
Written: AtlantisPleb/cc@abcc009
Written: openai/codex@a098129
Written: anomalyco/opencode@ff90ed9
Written: block/goose@0909288
Written: Aider-AI/aider@5dc9490
Written: SWE-agent/mini-swe-agent@04d809c
Written: OpenHands/software-agent-sdk@9884945
Written: NousResearch/hermes-agent@4d26e0c
Written: batrachianai/toad@dd4f90e
Written: ColeMurray/background-agents@80426f4
Written: withastro/flue@deee93b, rivet-dev/agent-os@c746292
Implemented: three agents inline, themes, job status, macOS terminal
Partly implemented: vt-text-v1, bounded CPU
Contents
See SUMMARY.md for the chapter list and PLAN.md for what each chapter builds and checks.