Purpose: agent-doctrine is a shared operating standard for AI coding agents, composed of instructions, role prompts, and skills. It is installed via a single sync into hosts such as Claude Code, Codex, Cursor, OpenCode, Grok, Muse, and Amp, so that all agents on the same machine follow the same work loop from spec to tested PR: scout → gate → plan → implement → review → consolidate → verify → ship. The project's positioning is to solve the problem that "delivering code with AI is easy, but delivering fully reviewed and tested code is hard," packaging a foundational workflow, prompts, and skills refined through more than a year of continuous iteration.
Main capabilities:
- Role division: the agent conversing with the user is the lead, responsible for planning, delegation, review, and delivery, and by default does not write code by hand. Team roles include scout (reads the codebase), implementer (implements per plan breakdown), simplifier (streamlines the plan), and adv_review (tries to break the diff). delegation.toml binds a model to each role per host.
- Pre-coding gate: before editing, the lead must answer the fifteen questions in skills/doctrine-plan/references/tenets-gate.md in the conversation record, with evidence, including the smallest correct change, impact scope, how to prove it on real data, and how to verify it.
- Written handoffs: specs, reviews, and stories are saved as fixed-format files (skills/agent-handoffs/references/handoff-formats.md), making it easy for any agent on any host to take over.
- Two speeds: fast mode retains the gate and diff review for each breakdown; rigorous mode adds plan streamlining, adversarial plan review, and human approval before coding.
- Unified style: a shared answer style and per-prompt style reminders apply to every reply, spec, review, PR body, commit message, and code comment. Style requirements include Simplified Technical English (ASD-STE100), conclusion before facts, every claim containing a number/file/name/decision, and avoiding metaphors and stock phrases such as "robust," "seamless," "leverage," and "delve."
- Multi-host adaptation: adapted for Claude, Codex, Cursor, OpenCode, Grok, Muse, Amp; Devin provides a manual host guide. Model bindings are editable examples and depend on provider access.
Usage: The recommended approach is to let the agent install itself: paste the installation prompt into Claude Code, Codex, Cursor, OpenCode, or another coding agent, and the agent will back up the configuration, install the specification, and report the result. Manual installation requires Git and Bun. Installation rewrites global agent instructions (such as ~/.claude/CLAUDE.md, ~/.codex/AGENTS.md, ~/.cursor/rules/doctrine.mdc, etc.), so back them up first. The steps include: back up the current configuration; run apply-snapshot to install the checkout into every discovered agent home directory (without pulling or pushing Git); write LOCAL.md to record machine facts and opt out of services you do not use; submit the specification to the agent in a project and start the first task; edit TASTE.md and delegation.toml, then regenerate and apply. For ongoing personal modifications, you can fork the repository and set CLAUDE_MD_REPO.
Optional services and the full workstation: Honcho and Porch are two optional hosted services for extending the specification across machines; neither is required, and the repository ships with no accounts or credentials. You can declare in ~/.claude/LOCAL.md that you do not use them: does not require porch makes handoff a local file; does not use honcho prevents the agent from calling memory tools. The full workstation has two paths: on bare metal, run scripts/machine-setup.sh (installs Bun, uv, semble, and the various CLIs, runs sync, connects MCP services, starts the OpenCode service, etc.); for containers, use the Docker image in workstation/, accessed via Tailscale SSH as the coder user; the image pins Claude Code, Codex, OpenCode, T3 Code, Bun, uv, semble, Docker-in-Docker, and Tailscale, and builds tokensieve from source. Both paths require your own accounts, and keys are read from the environment or mounted files.
Applicablescenarios: developers or teams who want multiple AI coding agents on the same machine to follow a unified, reviewable, and testable delivery process; workflows that need to start from a specification, go through delegation and review, and obtain a human-approvable PR.
Limitations: the repository is highly opinionated, and the work preferences in TASTE.md will very likely need to be rewritten. Installation rewrites global agent instructions, so back them up first. sync-*, reflection apply, and several generator commands can commit and push local changes; when importing private preferences or cloud rules, do not point them at a public upstream. projects/, the reflection ledger, local context, and credentials are ignored in the public version. The container image requires privileged: true to support Docker-in-Docker; whoever controls the container controls its nested Docker daemon. Full image builds and live service authentication are part of a separate integration check. The license is MIT, and the built-in humanizer skill text retains its own MIT license and attribution.