# The Next Evolution of AI Coding Is Harnesses - Here's How to Build Them
<!--
ref: @content/youtube/cole-medin/2026-04-08-ai-coding-harnesses-archon-workflow-builder
version: 3
updated_at: 2026-10-31T19:11:58.332Z
-->

Cole Medin (2026-04-08): Cole Medin traces a three-stage progression: prompt engineering (roughly 2022-2024, optimizing a single output), context engineering (curating exactly the right context for one agent), and now harness engineering — chaining many coding-agent sessions together with…

*Synthesized from Cole Medin on Cole Medin, 2026-04-08.*

Cole Medin unveils a full rewrite of Archon, his open-source project, repositioned from an AI command center into a harness builder that sits above coding agents and orchestrates them.

## Core Thesis

Cole Medin traces a three-stage progression: prompt engineering (roughly 2022-2024, optimizing a single output), context engineering (curating exactly the right context for one agent), and now harness engineering — chaining many coding-agent sessions together with deterministic steps between them. His argument is that a harness is where reliability comes from: validation you enforce rather than hope for, context curation at chosen points, and human approval gates. The generic harnesses that exist are fine as proofs of concept but aren't yours, so the leverage is in encoding your own development lifecycle as a reusable workflow.

## Key Insights

- **The economic case for harnesses is model-independent leverage.** Medin cites a study where a bare LLM writing code produced a **6.7% PR acceptance rate**, while a harness — Ralph-loop style but more customized — pushed acceptance toward roughly **70%**. His framing: rather than pay for a frontier tier (he names Anthropic's forthcoming Mythos as enterprise-priced and out of reach for consumers), wrap a harness around Opus and beat it.
- **Stripe Minion is the existence proof.** Medin says Stripe ships **1,300 AI-only-generated pull requests every week** by enforcing their own context curation and validation at fixed steps of an internal workflow — the same shape as Archon, but closed.
- He also points to a reported Claude Code source leak indicating roughly **40% of that codebase is harness code** (agent teams, sub-agent features) as a signal of where the vendors themselves are investing.
- **The old Archon became irrelevant on purpose.** It lived *inside* coding agents doing RAG and task management, and the agents absorbed those functions. The new one sits *above* Claude Code and Codex and orchestrates sessions instead.
- The problem being solved is what Medin calls **AI shepherding**: you have skills and commands, but you remember what comes next, you kick off the code review after implementation. A workflow removes the human scheduler — define once, run forever, across projects.
- **A workflow is a YAML file of nodes**, and every node is either a prompt sent into a coding-agent session or a deterministic command. Determinism is where the reliability lives: context creation, test runs, and validation are things you do not leave to an agent that might forget.
- **Per-node control is the hybrid secret.** You choose the model per node (Haiku for cheap classification steps, the Sonnet default elsewhere), whether the node continues the previous session or opens a fresh context window, and which skills or MCP servers are injected — an MCP server only during planning, a skill only during validation.
- **Plan and implement in separate sessions.** Medin treats a fresh context window between planning and coding as a bias-removal step, not just token hygiene.
- **The workflow description works exactly like a skill description.** Only the short description is surfaced to the coding agent up front; loading the full workflow into context would be far too much. The agent reads the description to decide whether to run the workflow.
- **A CLI needs a paired skill.** Medin installs the Archon skill into each target repo so the agent knows how to invoke the CLI from a plain-English request.
- Bundled default workflows include: fix GitHub issue (classify → web research → investigate-or-plan → implement → validate → PR → review), comprehensive PR review, issue creation from a problem, idea-to-PR, an interactive PRD with human-in-the-loop, the adversarial dev harness, the Ralph loop, and a workflow-builder workflow that writes new workflows.
- **Human-in-the-loop is a node type** — the workflow can pause at any node for your feedback, including a planning loop that iterates on the plan before coding starts.
- **Parallelism is a first-class use.** Medin fires one instruction covering six GitHub issues and gets six workflows running as background processes at once, monitored from the CLI, from Claude Code, or in the web UI; he suggests Claude Code's `/loop` command to check every 10 minutes and restart failures.
- The setup path is deliberately agent-driven: clone the repo, open Claude, say "set up Archon," and a bundled skill runs the onboarding. Credentials are entered in a *separate* terminal via `archon setup` so API keys never pass through the coding agent.
- Authentication uses your existing Anthropic subscription via global auth, which Medin notes is permitted for a locally running application built on the Claude Agent SDK.
- Roadmap and status as stated: Claude supported now, Codex nearly done, Pydantic AI's agent SDK and Open Code planned; a visual workflow builder in progress that Medin describes as n8n for AI coding. Archon is in beta.

## Actionable Takeaways

1. Install: clone the repo, `cd` in, open Claude Code, and say "set up Archon." Register a *target* project (your own repo, not the Archon repo) — later repos auto-register the first time you run the CLI there, or via "add project" in the web UI.
2. Complete credentials in the separate terminal wizard (`archon setup`), never by pasting keys into the coding agent. Pick SQLite unless you specifically want Postgres; select the interfaces you want — CLI, GitHub, Telegram, Slack.
3. Copy the Archon skill into each repo you want to drive, then invoke in plain language: "Use Archon to fix issue number one in GitHub." The agent loads the skill, selects the workflow, and runs it as a background process.
4. Web UI runs on port 5178; ask the coding agent to spin up the Archon front end and back end. Use it to watch node-by-node execution, read the underlying Claude Code tool calls, and launch workflows without naming the repo explicitly.
5. Cut token cost by assigning models per node — Haiku for classification and other low-reasoning steps, the default model for research and implementation.
6. Design workflows so planning and implementation run in *different* sessions, and put test execution in a deterministic node with a retry-and-fix branch rather than trusting the agent to remember.
7. Author custom workflows by opening Claude Code in the Archon repo and asking to use the workflow-builder workflow; it interviews you and emits the YAML, immediately runnable on any codebase.
8. Port methodologies you already use — Medin demonstrates pointing it at the beads repo (persistent structured memory for coding agents) and getting a workflow with exploration, task decomposition, an implementation loop with progress tracking, and final validation. He names GSD and BMAD as equally portable.
9. Default workflows live in the `.archon` folder and are bundled into the CLI, so they're available from any repo; longer node prompts are factored out into command files rather than inlined in the YAML.

## Notable Quotes

> "Harnesses are the future. It's the layer on top of your coding agents that orchestrates the different sessions." — Cole Medin

> "Define once, run forever, reusable across projects." — Cole Medin

> "You always want to do your planning and implementation in different coding sessions to remove bias." — Cole Medin

> "We don't want to rely on the coding agent to remember to do the tests all the time." — Cole Medin

> "It's like N8N but for AI coding." — Cole Medin

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*