Archon V3: YAML Harnesses for AI Coding Agents
Archon V3 replaces 8 manual AI coding steps (classify, investigate, plan, implement, review, test, commit, PR) with one YAML command, using Git worktrees for 4+ parallel isolated runs, DAGs for parallelism, and hooks for self-correction—enabling Stripe-scale output (1,300 PRs/week) without babysitting.
Harness Engineering Unlocks Reliable AI Coding at Scale
Manual AI coding fails due to five issues: inconsistent outputs from same prompts, context bloat in long sessions causing hallucinations, no parallelism (one agent/repo/task), fear of delegation without oversight, and non-composable skills/commands rebuilt per task. Archon V3 introduces "harness engineering"—the layer beyond prompt and context engineering—turning these into deterministic YAML workflows that mix precise steps, creative AI nodes, and loops until tests pass.
Stripe ships 1,300 PRs/week with zero human code; OpenAI hit 3.5 PRs/engineer/day on a million-line project using the same models via harnesses. Encode workflows as YAML committed to repos for team sharing/forking. Information flows via artifact files (not chat history), keeping sessions sharp under 200k tokens. Run from CLI/Web/Slack/GitHub/Discord/Telegram with Claude Code or Codex SDKs, mixing providers per-node to avoid lock-in.
Three Primitives: Commands, DAG Workflows, Git Worktree Isolation
Commands are single-task Markdown files (e.g., classify issue) with frontmatter for variables like {args}, {artifacts_dir}, {workflow_id}. Keep to one job for reusability across workflows.
Workflows define directed acyclic graphs (DAGs) in YAML: nodes declare dependencies/conditions (e.g., code review + security review run parallel post-classify; branch bug-fix vs. feature on classified.output.type == "bug"). Arkon schedules parallelism automatically.
Isolation via Git worktrees: each run gets a fresh ~/.arkon/workspaces/<id> directory/branch/sandbox. Run 4+ workflows parallel (bugfix, feature, review, refactor) without conflicts; main repo untouched. List with arkon isolation list; auto-cleanup >7 days old or arkon isolation cleanup.
User-level ~/.arkon holds DB/worktrees/config; repo-level .arkon (git-committed) has custom commands/workflows. Install in 60s: curl script (Mac/Linux), PowerShell (Windows), brew install, or Docker. First run: arkon workflow run archon-assist "your question".
Hooks and Built-in Workflows for Self-Correction and Production Speed
PreToolUse hooks (before tool call): inject context, deny writes (e.g., review nodes can't edit files), rewrite inputs—all in YAML, not prompts.
PostToolUse hooks (after): enable loops like "reread your write, verify type-checks, rewrite if needed" for self-correcting quality without prompt tweaks. Reliability from feedback wiring, not better prompts.
Built-ins (forkable YAML):
archon assist: Q&A/exploration.archon fix-github-issue: classify/investigate/implement/review/PR.archon idea-to-pr: paragraph → reviewed PR.archon smart-pr-review: scales to complexity.archon comprehensive-pr-review: parallel multi-reviewer.archon architect: simplify hotspots.archon conflict-resolution: full-repo merge fixes.
Future: visual builder, more workflows/SDKs/hooks. 91% solo AI builders quit in 3 months without community; join for daily hangs/workshops.