# One Project, Many Agents: Running an AI Agent Fleet with Hermes, OpenCode and Strix

A coding agent can write a feature. What it can't do on its own is tell you whether that feature is safe, whether checkout still works in a real browser, or why p99 latency doubled at 2am right after the deploy. On a human team those are different people with different instincts, and the instinct part matters. A pentester looks at a login form and sees a door. The engineer who built it sees a form.

So I stopped asking one agent to be the whole team.

This post is about running a fleet: a handful of specialised agents, each good at one job, coordinated by a manager agent, all contributing to the same repository. [Hermes Agent](https://hermes-agent.nousresearch.com/) runs the board and hands out work. [OpenCode](https://opencode.ai/) writes the code. [Strix](https://github.com/usestrix/strix) attacks it. Playwright's test agents try to break the UI, [HolmesGPT](https://github.com/HolmesGPT/holmesgpt) watches production, and a couple of smaller agents handle review and docs.

I'll go wide first: what kinds of agents exist, how they talk to each other, and what the standards look like at the end of 2026. Then I'll narrow down to one concrete fleet working on one project, card by card, from a one-line idea to a fix for a production alert. There are a lot of diagrams. Make chai.

## Why a fleet at all

Three reasons, and one large caveat.

**Context stays clean.** Each specialist gets its own context window holding only what its job needs. A pentester's context full of payloads and HTTP traces is noise to the builder. The builder's forty open files are noise to the pentester. Splitting the work splits the noise.

**A second opinion is a different opinion.** The agent that wrote the code is the worst one to judge it. A different prompt, different tools and ideally a different model family catch a surprising number of things the author was blind to.

**Independent work runs in parallel.** The API endpoint, the UI page and the docs for a feature don't need to wait for each other. Three workers in three git worktrees finish sooner than one worker doing them in sequence.

Now the caveat. Multi-agent systems are expensive and fragile. Anthropic's write-up on their research system found that agents use about 4× the tokens of a chat, and multi-agent systems about 15×. UC Berkeley's MAST study went through hundreds of traces from seven popular multi-agent frameworks, found 14 distinct ways they fail, and noted that the gains over a single agent are often small. More agents means more handoffs, and every handoff is a place for meaning to leak out.

The rule I ended up with: **add an agent when a job needs a different toolbox or a different judge.** Never add one to make the architecture diagram look busier.

![Three stages: a single agent doing everything in one context, one agent spawning short-lived subagents that report back into its own context, and a fleet where named specialist agents with their own memory pull cards from a shared board and hand off through git](https://cdn.hashnode.com/uploads/covers/63cc2392587fc59d3cd765f9/d5d2dcd7-8b01-4bc5-a631-2d5a239927b5.png align="center")

Those three stages aren't a ladder you must climb. Plenty of work belongs in the first box forever. The fleet is for projects that run for weeks, touch several disciplines, and need to survive restarts, laptop sleep and you going offline for a day.

## The landscape: what kinds of agents exist

"AI agent" covers everything from a chatbot with one tool to a system running its own red team. For building software, I find it useful to sort agents by the job they'd have on a human team.

| Role | What it's good at | Open-source examples | What it hands back |
| --- | --- | --- | --- |
| **Manager** | Breaking work down, routing it, chasing it to done | Hermes Agent (Kanban, profiles, cron, gateway) | Cards, dependencies, decisions |
| **Builder** | Editing code, running tests, opening PRs | OpenCode, Claude Code, Codex CLI, OpenHands, goose | Branches and pull requests |
| **Reviewer** | Reading diffs against a spec and project rules | Any coding agent in a read-only role, on a different model | Review comments, approve or request changes |
| **QA** | Driving a real browser, writing and repairing E2E tests | Playwright Test Agents (planner, generator, healer), Playwright MCP | Test plans, test files, failure reports |
| **Security** | Attacking a running app and proving the exploit | Strix | Validated findings with PoCs, patches, reports |
| **SRE** | Investigating alerts across logs, metrics and cluster state | HolmesGPT (a CNCF sandbox project), k8sgpt | Root-cause analysis, remediation suggestions, PRs |
| **Researcher / scribe** | Reading the web and the codebase, writing things down | A Hermes profile with web, memory and file tools | Notes, docs, changelogs |

There's a second axis: **where the orchestration lives**.

- **Inside one agent.** Claude Code's subagents, OpenCode 2's background subagents and Hermes's `delegate_task` all let one agent spin up helpers that report back into its own context. Zero setup, low ceiling.
- **A local orchestrator.** Tools like Conductor, Vibe Kanban and Steve Yegge's Gas Town run several coding agents in parallel git worktrees with a dashboard for reviewing diffs. Great for coding sprints with three to ten agents.
- **A general-purpose manager.** Hermes Kanban is a board shared across named agent profiles, where a worker can be a coding agent, a pentester, an SRE or a writer. That last part is why I use it here. My fleet isn't only coders.

![The software lifecycle as a loop around Hermes, the manager in the middle: plan with the lead profile, build with OpenCode, review with a reviewer profile, test with Playwright agents, secure with Strix, document with a scribe profile, ship through CI/CD and GitOps, and operate with HolmesGPT, whose incidents and findings become new cards back at the plan stage](https://cdn.hashnode.com/uploads/covers/63cc2392587fc59d3cd765f9/6b92ec98-b9f4-45a2-bb7b-66637c8cb99d.png align="center")

The loop is the point. A fleet that only builds is a fast way to produce code nobody has tested or secured. A fleet that covers the whole loop produces software, and the operate stage feeds new work straight back into planning.

## The stack: six layers of an agent fleet

Before any tools, here's the shape of the thing. Every fleet I've seen working, mine included, ends up with these layers whether the builder planned them or not.

![Six stacked layers: humans and the control plane at the top, then orchestration with the board and dispatcher, then the specialist agents, then interop and context standards (MCP, A2A, ACP, AGENTS.md, Agent Skills), then shared state in git, PRs, CI and the board database, then runtime and isolation with worktrees, Docker sandboxes and a model gateway. Guardrails, observability and cost run down the side across all layers](https://cdn.hashnode.com/uploads/covers/63cc2392587fc59d3cd765f9/c9f88d92-f9e6-4874-adb8-aa76b498e108.png align="center")

1. **Humans and the control plane.** You, a phone, a dashboard. Intent goes in, approvals and status come out.
2. **Orchestration.** A durable board, a dispatcher that turns ready cards into running workers, and a lead agent that decomposes and judges.
3. **Agents.** The specialists. Each one is a process with its own identity, memory, skills and model.
4. **Interop and context.** The standards that let agents reach tools and each other, and the files that tell them how your project works.
5. **Shared state.** Git, pull requests, CI checks and the board's database. This is the only place agents are allowed to agree on anything.
6. **Runtime and isolation.** Worktrees so agents don't trample each other's files, sandboxes for anything that runs untrusted code, and a model gateway so you get one bill and one set of rate limits.

Guardrails, observability and cost don't live in one layer. They cut across all of them, which is why they get their own sections later.

## How agents talk: the protocol map at the end of 2026

A year ago this section would have been a mess of competing acronyms. It got much simpler. The **Agentic AI Foundation** (AAIF) formed under the Linux Foundation in December 2025 with three founding projects: Anthropic's Model Context Protocol, OpenAI's [AGENTS.md](http://AGENTS.md) and Block's goose. Google's Agent2Agent protocol joined in August 2026, and Agent Skills was added in October. Most of what an agent fleet needs now has one neutral home.

![Protocol map: AGENTS.md and Agent Skills feed project rules and reusable know-how into every agent; MCP connects each agent down to its tools such as GitHub, browsers and databases; A2A connects agents sideways to other agents across process or organisation boundaries; ACP, the Agent Client Protocol, connects editors and clients to a coding agent](https://cdn.hashnode.com/uploads/covers/63cc2392587fc59d3cd765f9/dcb00f07-4cf3-48ef-a900-bc4dc9a5822b.png align="center")

**MCP: agent to tools.** The Model Context Protocol is how an agent reaches a database, a browser, a ticket tracker or a GitHub account. Every specialist in this post speaks it. Strix lets you list your own MCP servers in `~/.strix/mcp-servers.json` and exposes their tools to its agents during a run. HolmesGPT uses MCP for several of its toolsets, including Kubernetes remediation. Playwright ships an MCP server for structured browser access.

**A2A: agent to agent.** Agent2Agent is for agents that are opaque to each other: different frameworks, different companies, different servers. An agent publishes an Agent Card describing its skills and auth requirements, and a client agent sends it tasks that move through states until they produce artifacts. A2A reached v1.0 in March 2026, with signed agent cards, version negotiation and multi-tenancy.

**ACP, two different things.** Watch out for this one. IBM's *Agent Communication Protocol* merged into A2A in 2025 and is effectively gone. The *Agent Client Protocol* is a different standard that connects an editor or client to a coding agent, and it's what `opencode acp` speaks. Same three letters, different layer.

[**AGENTS.md**](http://AGENTS.md)**: project rules.** One file at the root of the repo that tells any coding agent your test command, style rules, branch naming and the things it must never touch. In a fleet, every agent reads the same [AGENTS.md](http://AGENTS.md), which is the cheapest way I know to keep five agents consistent. Strix's own repo has one.

**Agent Skills: portable know-how.** A `SKILL.md` folder that teaches an agent how to do one thing well. Hermes builds its whole learning loop around skills. Strix publishes its pentest, fix and CI-scanning workflows as skills that you can install into Claude Code, Cursor, Codex or any SKILL.md-compatible agent with `npx skills add usestrix/strix`.

Here's my honest take on A2A for a setup like this one. **For one project on one machine, you don't need it between your own agents.** The board and git are the bus. A2A starts paying for itself when an agent you *don't* run needs to take work from yours: a vendor's security agent, another team's deployment agent, a customer's procurement bot. Build against it when you cross an organisational boundary, not before.

## Hermes as the fleet manager

Hermes has two ways to get more than one agent working, and they solve different problems.

![Side-by-side comparison. Left, delegate_task: a parent agent spawns anonymous child agents inside its own conversation, they return summaries into the parent's context and end with the session. Right, Kanban: named profiles with their own memory pull cards from a durable SQLite board, hand off through comments and survive restarts, with humans able to comment or unblock at any point](https://cdn.hashnode.com/uploads/covers/63cc2392587fc59d3cd765f9/4713b303-524a-4c90-95b9-917d50da461a.png align="center")

`delegate_task` runs child agents inside one conversation and returns their summaries to it. The children are anonymous, they can't ask you questions, and they end with the session. It's the right tool for "go check three approaches and tell me which works" when the answer belongs in the parent's head.

**Kanban** is a durable task board in SQLite, shared across every Hermes profile on the host. Each card has one assignee (a profile name), a status, a comment thread and optional parent cards. A dispatcher, which runs inside the Hermes gateway by default, wakes up every 60 seconds, promotes cards whose parents are done, claims them atomically and spawns the assigned profile as a full OS process to work on them. Every handoff is a row that any agent or human can read later.

The Hermes docs put the distinction in one sentence that I've stolen for my own notes: use Kanban when work crosses agent boundaries, needs to survive restarts, might need human input, or needs to be discoverable afterwards. A fleet is all four.

Here's the life of a card:

![Kanban state machine: a rough idea lands in triage, gets specified or decomposed into todo, moves to ready when all parent cards are done, then running when the dispatcher spawns a worker. From running it can go to review, blocked or done. Review either completes or sends changes back to ready. Blocked cards return to their earlier phase when unblocked, and repeated blocks for the same reason escalate back to triage. Done cards are eventually archived](https://cdn.hashnode.com/uploads/covers/63cc2392587fc59d3cd765f9/264c5eb8-9758-4eb8-b0af-75cef77e6b34.png align="center")

A few details that matter more than they look:

- **Triage is where one-liners go.** With `kanban.auto_decompose` on (the default), the dispatcher runs a decomposer model over triage cards, reads your profile roster and their descriptions, and fans the idea out into a graph of child cards routed to the best-fit specialists. The original card stays as the parent so its owner wakes up to judge whether the whole thing is done.
- **Review is its own lane.** A worker can hand a card to review with `kanban_request_review`, and a reviewer either completes it or sends it back with `kanban_request_changes`. That's not counted as a failure.
- **Blocked has reasons.** `kind=dependency` waits quietly for a parent. `needs_input`, `capability` and `transient` surface to a human. If a card keeps getting blocked for the same reason, Hermes stops bouncing it and routes it to triage for someone to rethink.

And here's what the dispatcher does on every tick:

![Dispatcher loop, every 60 seconds: reclaim stale or crashed claims, promote todo cards whose parents are all done, respect the max_in_progress caps, atomically claim a ready card, spawn the assigned profile as a worker process with the task, board and workspace pinned in its environment, then the worker reads the card, works, heartbeats and ends with complete, request review or block](https://cdn.hashnode.com/uploads/covers/63cc2392587fc59d3cd765f9/172f0dad-d397-4e36-8b8e-edb1ad96b605.png align="center")

Workers don't shell out to a CLI to update the board. The dispatcher sets `HERMES_KANBAN_TASK` in the worker's environment, which switches on a dedicated `kanban_*` toolset. A worker's whole job, from the board's point of view, is a few tool calls:

```plaintext
kanban_show()                                   # read the card, parent handoffs, comment thread
# ... do the work with terminal and file tools ...
kanban_heartbeat(note="migration written, running tests")
kanban_complete(
    summary="added payment_links table and POST /invoices/{id}/payment-link; 18 tests pass",
    metadata={"changed_files": ["api/payments.py", "migrations/0042_payment_links.py"],
              "verification": ["pytest -q tests/payments"]},
)
```

The manager side has one rule I'd underline twice: **the orchestrator never does the work.** It decomposes, routes and judges. The Hermes docs suggest giving the orchestrator profile only the `kanban`, `gateway` and `memory` toolsets, so it physically can't start editing files when it gets impatient. Mine got impatient. Now it can't.

## Getting non-Hermes agents onto the board: the wrapper worker

OpenCode, Strix and HolmesGPT have no idea Hermes's board exists. They're CLIs. So every external tool in my fleet gets a thin Hermes profile that wraps it.

![Wrapper worker pattern: the dispatcher spawns a Hermes profile for a card. The profile reads the card with kanban_show, drives an external tool inside the card's workspace (opencode run for building, strix for pentesting, holmes for investigations), reads the tool's exit code and output files, and reports back with kanban_complete or kanban_block plus structured metadata. The external tool never touches the board](https://cdn.hashnode.com/uploads/covers/63cc2392587fc59d3cd765f9/e7bcd0da-32f1-4c84-96ac-5f0c6c5f14da.png align="center")

The wrapper does three things the external tool can't: it reads the card, it decides what the tool's output *means* for the card, and it reports back in a structured way. The external tool does the actual specialist work.

| Specialist | How the wrapper drives it | What "done" looks like |
| --- | --- | --- |
| OpenCode | `opencode run` with the card as the prompt, or the OpenCode 2 client against its shared local service. Hermes ships an `opencode` skill for exactly this | A PR URL, passing tests |
| Strix | `strix -n --target ...` (headless; exits non-zero when it finds vulnerabilities). Results land in `strix_runs/<run-name>` | Exit code 0, or a list of validated findings |
| HolmesGPT | `holmes ask` or `holmes investigate <source>` with the alert context | A root-cause summary and a suggested fix |
| Playwright agents | Driven through OpenCode, which runs the planner, generator and healer definitions | New spec files and a green run |
| Codex | Hermes's Codex app-server runtime, which keeps Codex sandboxed while letting it update the board | A PR URL |

Why not something fancier, like A2A between Hermes and each tool? Because shells, exit codes and files are the most reliable interface ever invented. Every one of these tools already has a headless mode built for CI. I'd rather lean on that than invent a protocol bridge I'll have to debug at midnight.

## Meet the fleet

Let's make it concrete. The project is **Ledgerly**, a small invoicing SaaS: a FastAPI backend, a Next.js dashboard, Postgres, and a staging plus production environment on Kubernetes, deployed with GitOps. One repo, one board.

![The Ledgerly fleet roster as cards: lead the orchestrator on a frontier model with only board tools; builder driving OpenCode in worktrees; reviewer on a different model family reading PRs; qa running Playwright planner, generator and healer; redteam running Strix in Docker against the PR and staging; sre running HolmesGPT against staging and production; scribe writing docs and changelogs. GitHub with CI and branch protection sits underneath as the referee](https://cdn.hashnode.com/uploads/covers/63cc2392587fc59d3cd765f9/1f415646-311e-4950-b911-cf61f6842f13.png align="center")

| Profile | Job | Drives | Model tier | Can it merge? |
| --- | --- | --- | --- | --- |
| `lead` | Specs, decomposes, routes, judges "done" | Board tools only | Frontier | No |
| `builder` | Implements one card in a worktree, opens a PR | OpenCode | Mid-range | No |
| `reviewer` | Reviews PRs against the card and [AGENTS.md](http://AGENTS.md) | `gh`, review skill | Different family from `builder` | Approves only |
| `qa` | Writes and repairs E2E tests | Playwright test agents via OpenCode | Inexpensive | No |
| `redteam` | Attacks the PR diff and staging | Strix | A model cleared for security work | No |
| `sre` | Investigates alerts, files cards | HolmesGPT | Mid-range | No |
| `scribe` | Docs, changelog, release notes | Hermes itself | Inexpensive | No |

Notice the last column. Nobody merges on their own say-so. Merging is gated by GitHub, which brings me to the most important design choice in the whole setup: **every specialist's verdict becomes a required status check.** Tests, the Strix scan and the review are all checks on the PR. Branch protection enforces them no matter what any agent believes. Agents argue. CI doesn't.

Setting up the board and the profiles looks roughly like this:

```bash
# one board per project
hermes kanban boards create ledgerly --name "Ledgerly" --switch

# profiles are employees; descriptions are how the decomposer routes work
hermes profile create lead     --description "Orchestrator. Writes specs, decomposes into cards, routes, judges completion. Never edits code."
hermes profile create builder  --description "Implements exactly one card in a git worktree by driving OpenCode. Opens a PR. Never merges."
hermes profile create reviewer --description "Reviews PRs against the card's acceptance criteria and AGENTS.md. Requests changes or approves."
hermes profile create qa       --description "Plans, generates and heals Playwright end-to-end tests for a feature."
hermes profile create redteam  --description "Runs authorised Strix pentests against a PR checkout or staging. Files validated findings."
hermes profile create sre      --description "Investigates staging and production alerts with HolmesGPT. Files cards with root cause."
hermes profile create scribe   --description "Updates docs, changelog and release notes from completed cards."

# the orchestrator gets board tools...
hermes -p lead tools enable kanban
```

...and nothing that can touch code, in its own config:

```yaml
# ~/.hermes/profiles/lead/config.yaml
agent:
  disabled_toolsets: [terminal, files, code_execution, delegation]
```

Then the part that saves real money. Each profile has its own `config.yaml`, so the planner and the workers run on different models:

```yaml
# ~/.hermes/profiles/lead/config.yaml
model:
  default: "your-frontier-model"

# ~/.hermes/profiles/builder/config.yaml
model:
  default: "your-mid-range-coding-model"

# ~/.hermes/profiles/reviewer/config.yaml
model:
  default: "a-model-from-a-different-family-than-builder"
```

One more thing per profile: **its own GitHub identity.** Hermes reads `gh` credentials from each profile's own `.env` (`GH_TOKEN` or `GH_CONFIG_DIR`), never from your shell. Give the builder and reviewer separate machine accounts or GitHub App identities and two good things happen at once. The reviewer can leave a real "Approve" on the builder's PR, because GitHub doesn't let you approve your own work, and your audit log shows which agent did what.

## One feature, end to end

The feature: *"Customers can pay an invoice through a payment link."* Here's the whole journey in one picture, then each stage up close.

![End-to-end sequence for one feature: I drop a one-liner on my phone; lead writes a spec and creates cards; builder implements the API and UI in parallel worktrees and opens PRs; CI runs tests and a quick Strix scan; reviewer requests changes once, then approves; qa adds Playwright tests; the PR merges; GitOps deploys to staging; redteam runs a deep nightly Strix scan and files a finding; builder fixes it; sre watches staging with HolmesGPT; scribe updates the docs; lead marks the feature done and my phone buzzes](https://cdn.hashnode.com/uploads/covers/63cc2392587fc59d3cd765f9/7cd45977-df97-40c1-a102-e98fe5f8d469.png align="center")

### 1\. Spec and decompose

I send one line to the `lead` bot from my phone: *"Payment links for invoices. Stripe-hosted page, link expires in 7 days, no partial payments."* It lands in triage. The `lead` profile writes a proper spec into the card body and fans it out. The decomposer can do this automatically, but for anything that touches money I keep orchestration in manual mode and let `lead` do it explicitly, so I can read the graph before anything runs.

![Task graph for the payment links feature: a spec card at the root; a database migration card, an API endpoint card and a webhook handler card for builder; a dashboard page card for builder that depends on the API; an E2E test card for qa that depends on the page; a security check card for redteam that depends on the API and webhook; and a docs card for scribe that depends on everything else. Arrows show which cards gate which](https://cdn.hashnode.com/uploads/covers/63cc2392587fc59d3cd765f9/2537fe3e-cc19-48e5-bb31-2eaf54691f7f.png align="center")

The `lead` turn looks like this in tool calls:

```plaintext
kanban_create(title="DB: payment_links table + migration", assignee="builder",
              body="<schema decided below, copy exactly>")                               # → t_db
kanban_create(title="API: POST /invoices/{id}/payment-link", assignee="builder",
              parents=["t_db"], body="<contract, error codes, expiry=7d>")                 # → t_api
kanban_create(title="Webhook: payment succeeded → mark invoice paid", assignee="builder",
              parents=["t_db"], body="<idempotency key rule, signature check>")            # → t_hook
kanban_create(title="UI: Pay button + link modal", assignee="builder",
              parents=["t_api"], body="<copy, states, empty/error cases>")                 # → t_ui
kanban_create(title="E2E: pay-by-link happy path + expiry", assignee="qa",
              parents=["t_ui"], body="<flows, test tenant, seed file>")                    # → t_e2e
kanban_create(title="Security: payment link + webhook attack surface", assignee="redteam",
              parents=["t_api", "t_hook"])                                                 # → t_sec
kanban_create(title="Docs: payment links", assignee="scribe",
              parents=["t_e2e", "t_sec"])                                                  # → t_docs
kanban_complete(summary="7 cards; db first, api+webhook in parallel, then ui, e2e, security, docs")
```

The bodies matter more than the graph. Workers can't see sibling cards, so **every decision a card depends on has to be written into that card.** If the API card and the webhook card both need the `payment_links` schema, `lead` decides the schema once and pastes it into both bodies. Leave it to the workers and you get two schemas and a very confusing afternoon.

### 2\. Build in parallel worktrees

The Ledgerly board's project directory points at the repo, so every new card inherits a **worktree** workspace: its own git worktree under `.worktrees/<task-id>/`, kept after the card finishes. The `builder` profile reads the card and hands it to OpenCode:

```bash
opencode run --dir "$HERMES_KANBAN_WORKSPACE" \
  "Implement the card below. Follow AGENTS.md. Work on branch feat/payment-link-api.
   Commit in small steps, run 'make test' before pushing, then open a PR with gh.
   Put the card id and its acceptance criteria in the PR body.
   ---
   $(cat card.md)"
```

(OpenCode 2 also ships a client package that talks to its shared local service, which is nicer for long-running drivers. The CLI keeps the example readable. Check `opencode run --help` on your version, since flags moved between majors.)

![Two builder workers in separate git worktrees on separate branches. Files are isolated, but the dev server port, the local Postgres and the Docker daemon are shared, so each worktree gets its own port range and database name from environment variables. A max_in_progress cap limits how many workers run at once](https://cdn.hashnode.com/uploads/covers/63cc2392587fc59d3cd765f9/e9cc4e5b-5034-4915-92b5-174bb6c09fa6.png align="center")

Worktrees isolate files. They don't isolate everything else. Two agents starting a dev server on port 3000 or migrating the same local database will collide. I give each worktree its own port range and database name through environment variables in the card's setup step, and I cap concurrency in the board config:

```yaml
kanban:
  max_in_progress: 3
  max_in_progress_per_profile: 2
```

### 3\. Review

When `builder` finishes, it doesn't complete the card. It calls `kanban_request_review`, and the card moves to the review lane, where `reviewer` picks it up.

![Review lane: builder requests review, the card moves to review, reviewer reads the PR diff against the card and AGENTS.md. If changes are needed, it requests changes and the card goes back to builder in the same worktree. If it approves, the completion contract checks GitHub: every required check on the PR head must be green, including tests, the Strix quick scan and the Playwright suite. Only then can the card complete](https://cdn.hashnode.com/uploads/covers/63cc2392587fc59d3cd765f9/72997872-2f3e-4634-b8e5-acd1fbd87e31.png align="center")

The piece that turns this from "two agents agreeing politely" into something I trust is the **PR completion contract**. When you create a card with `--completion-contract OWNER/REPO`, Hermes won't let it complete until it has bound to a specific PR and read that PR's required checks from branch protection. Missing, pending, failed or skipped required checks all block completion, and a retry can't swap in a different green PR. The board and GitHub agree on what "done" means, and GitHub is the one keeping score.

```bash
hermes kanban create "API: POST /invoices/{id}/payment-link" \
  --assignee builder \
  --workspace worktree --branch feat/payment-link-api \
  --completion-contract shubham/ledgerly
```

Two reviewer habits I've added after watching it work:

- **Use a different model family from the builder.** Same-model review tends to agree with itself. A different family has different blind spots, which is the whole point.
- **Flag tests that got weaker.** If a diff loosens an assertion, deletes a test or adds a skip, the reviewer has to call it out explicitly. You'll see why in the next section.

### 4\. Test

The `qa` profile uses Playwright's built-in test agents. There are three of them, and they map neatly onto a loop:

![Playwright test agent loop: the planner opens the running app from a seed test and explores it, writing a Markdown test plan to specs/; the generator turns the plan into Playwright test files, checking selectors live as it writes; the suite runs; failures go to the healer, which replays them and repairs the tests; the reviewer checks that healed tests weren't weakened; green tests become a required CI check](https://cdn.hashnode.com/uploads/covers/63cc2392587fc59d3cd765f9/acc5a1ff-bb0d-45f6-a4e4-76cf7a9e68a9.png align="center")

- The **planner** explores the running app and writes a Markdown test plan.
- The **generator** turns that plan into Playwright test files, checking selectors against the live page as it goes.
- The **healer** runs the suite and repairs failing tests.

You generate the agent definitions into the repo with `npx playwright init-agents --loop=<your agent>`. At the time of writing OpenCode is among the supported loops (check `--help` on your version), so `qa` drives them through the same OpenCode setup as `builder`. Regenerate the definitions when you upgrade Playwright, because they pick up new tools.

The healer deserves a warning label. Its job is to make failing tests pass, and the cheapest way to make a test pass is to make it check less. Most of the time it's fixing a stale selector, which is exactly what you want. Sometimes the test was failing because the feature is broken, and "healing" it hides a real bug. That's why `reviewer` treats a weakened assertion as a blocking comment, and why the E2E suite is a required check: a healed test still has to pass against the real app.

### 5\. Attack

This is where the fleet earns its keep. Strix is an open-source AI pentesting tool built as a graph of agents: specialised agents for reconnaissance, exploitation and validation that share discoveries and chain vulnerabilities together. It runs your app dynamically inside a Docker sandbox, uses a real toolkit (an HTTP interception proxy, a browser, a shell, a Python runtime for writing exploits), and reports only what it can back with a working proof of concept. That last bit is why I trust its findings enough to gate merges on them.

I run Strix in two places, because they catch different things:

![Two Strix loops. Left, on every pull request: a GitHub Actions job runs Strix headless in quick mode, scoped to the files the PR changed; a non-zero exit fails the required check and blocks the merge. Right, nightly: the redteam profile runs a deep grey-box scan against staging with test credentials; each validated finding becomes a card for builder with the proof of concept in its body; after the fix merges, redteam re-runs the exploit to confirm it is closed](https://cdn.hashnode.com/uploads/covers/63cc2392587fc59d3cd765f9/12877bd1-f836-4f88-8bdd-347c4b417d5e.png align="center")

**On every PR**, a CI job runs a quick scan. In pull request runs Strix automatically scopes quick reviews to the changed files, which is why the checkout fetches full history:

```yaml
name: strix
on:
  pull_request:

jobs:
  security-scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
        with:
          fetch-depth: 0
      - name: Install Strix
        run: curl -sSL https://strix.ai/install | bash
      - name: Run Strix
        env:
          STRIX_LLM: ${{ secrets.STRIX_LLM }}
          LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
        run: strix -n -t ./ --scan-mode quick
```

Headless Strix exits non-zero when it finds vulnerabilities, so this job fails, the required check fails, and the completion contract from the review section refuses to close the card. Three layers, one exit code.

**Every night**, the `redteam` profile runs a deeper grey-box test against staging on a Hermes cron routine. It points Strix at the source and the deployed app together, so the agents can read the code and attack the running service at the same time:

```bash
strix -n \
  -t https://github.com/shubham/ledgerly \
  -t https://staging.ledgerly.internal \
  --instruction "Authenticated testing with the staging test tenant. Focus on payment links: IDOR on invoice ids, link expiry bypass, webhook signature forgery, replay of payment events."
```

When it finds something, `redteam` doesn't fix it. It creates a card for `builder` with the finding, the reproduction steps and the PoC in the body, and a follow-up card for itself, gated on the fix, to re-run the exploit against staging once the fix is deployed. The pentester confirms the door is shut. The builder doesn't get to mark its own homework.

> Strix actively attacks whatever you point it at. Only run it against systems you own or have written permission to test, and keep it inside that scope. In this fleet that means the PR checkout and my own staging environment. Never production, never anything that belongs to someone else.

### 6\. Ship and watch

Merges to `main` go out through the normal GitOps path to staging. No agent has deploy credentials. Production promotion stays a human click for now.

![Closed operations loop: GitOps deploys to staging and production; Prometheus alerts and errors reach HolmesGPT running in operator mode; the sre profile picks up the investigation, reads HolmesGPT's root cause, and files a card with evidence; lead routes it to builder; builder's PR goes through review, tests and Strix; the fix deploys and sre confirms the alert has cleared](https://cdn.hashnode.com/uploads/covers/63cc2392587fc59d3cd765f9/ed20efc1-c386-475c-a5fd-b9aea5c9d5b3.png align="center")

HolmesGPT is an open-source SRE agent, now a CNCF sandbox project, that runs an agentic loop over live observability data: pod logs, Kubernetes events, Prometheus, Loki, Grafana, databases and dozens of other sources. Its operator mode runs in the background around the clock and spots problems before a human notices. It can also pull alerts from AlertManager, PagerDuty, OpsGenie or Jira and write its analysis back to the source.

In the fleet, the `sre` profile is the bridge between HolmesGPT and the board. A Hermes cron routine has it check for new investigations, and anything real becomes a card:

```bash
holmes investigate pagerduty --pagerduty-api-key "$PAGERDUTY_API_KEY"
```

The `sre` card body carries HolmesGPT's root cause, the evidence it looked at and the suggested fix, so `builder` starts from a diagnosis instead of a vague alert name. HolmesGPT has a Kubernetes remediation toolset and a GitHub integration that can open PRs directly. I keep remediation off in production and route every fix through the board, so it gets the same review, tests and Strix scan as any other change. An SRE agent that can patch production directly is an incident waiting for a trigger.

### 7\. Document

The last card in the graph belongs to `scribe`. It reads the completed cards' summaries and metadata, the merged PRs and the existing docs, then updates `docs/payments.md` and the changelog in its own PR. It's the least glamorous agent in the fleet and the one my future self thanks most often.

When `scribe` finishes, every child of the root card is done, the root wakes `lead` back up to judge completion, and my phone buzzes. Somewhere in there I had two chais.

## The contract: who owns which artifact

The single rule that prevents most fleet chaos: **every artifact has exactly one writer.** Anyone can read anything. Only one agent writes each thing.

![Artifact ownership map: I write the plan and AGENTS.md; lead writes cards and specs; builder writes source code and PRs; qa writes the e2e test folder; reviewer writes review comments; redteam writes security findings and Strix reports; sre writes incident cards; scribe writes docs and the changelog; GitHub CI writes check results. Everyone reads AGENTS.md and the board](https://cdn.hashnode.com/uploads/covers/63cc2392587fc59d3cd765f9/624c9024-e8a2-4aab-8839-02775ab3738f.png align="center")

Handoffs between agents go through `kanban_complete` metadata, not prose. Prose is for humans. The next agent needs fields it can rely on. Hermes suggests a shape for engineering cards that I've adopted as-is:

```json
{
  "changed_files": ["api/payments.py", "migrations/0042_payment_links.py"],
  "verification": ["pytest -q tests/payments", "strix -n -t ./ --scan-mode quick"],
  "dependencies": ["t_db"],
  "blocked_reason": null,
  "retry_notes": "first attempt used float for amounts; switched to integer cents",
  "residual_risk": ["webhook replay window not load-tested"]
}
```

`residual_risk` is my favourite field. It forces the worker to say out loud what it *didn't* check, and those lines are usually where `lead` creates the next card.

## Picking a topology

"Multi-agent" isn't one architecture. Here are the five shapes I actually use, and they mix happily on one board.

![Five fleet topologies. Hierarchical: one orchestrator fans out to several workers. Pipeline: plan, build, review, test in a fixed sequence. Swarm with verifier: several workers in parallel feed one verifier, then one synthesizer. Blackboard: agents read and write shared context on a root card. Event-driven: cron jobs, CI failures and production alerts create cards that the dispatcher picks up](https://cdn.hashnode.com/uploads/covers/63cc2392587fc59d3cd765f9/33dffec2-e223-4f5d-90fc-3cc0bfb1402a.png align="center")

| Topology | Use it for | Hermes primitive |
| --- | --- | --- |
| **Hierarchical** | Features with clear sub-parts | `lead` + `kanban_create` with parents |
| **Pipeline** | Every PR: build → review → test → scan | Review lane + required checks |
| **Swarm with verifier** | Open questions: "design a multi-region failover plan" | `hermes kanban swarm "..." --workers researcher,architect,sre --verifier reviewer --synthesizer scribe` |
| **Blackboard** | Shared context many workers need | Structured comments on a root card |
| **Event-driven** | Nightly scans, alerts, flaky tests | Cron routines and hooks creating cards |

The swarm helper is neat: it creates a root card, N parallel workers, a verifier gated on all of them and a synthesizer gated on the verifier, committed atomically so the dispatcher never sees half a graph.

## Cost: frontier lead, inexpensive hands

Remember the 15× number. A fleet that runs every card on your best model is a fleet you'll turn off after the first invoice.

![Cost routing: the lead profile uses a frontier model for decomposition and judging, which is few tokens but high stakes; builder, qa and scribe use mid-range or inexpensive models, which is where most tokens are spent; individual hard cards get a per-task model override back to a stronger model; all calls go through one model gateway for a single bill, rate limits and usage tracking](https://cdn.hashnode.com/uploads/covers/63cc2392587fc59d3cd765f9/0199e205-3f93-4e6d-a844-7ad84e358bd5.png align="center")

The Hermes docs make the point well. Decomposing a project into well-scoped cards takes frontier-level judgement. Executing a card that already carries a clear goal, context and acceptance criteria usually doesn't, and workers are where the vast majority of tokens go. So:

- **Frontier model for** `lead`**, cheaper models for workers.** Each profile's `config.yaml` picks its own.
- **Override per card when it's genuinely hard.** `hermes kanban set-model t_abcd <stronger-model> --provider <provider>` pins just that card's worker to a better model, with no profile edits.
- **Cap concurrency.** `max_in_progress` keeps a burst of ready cards from becoming a burst of spend, and it also stops slow local models from timing out under load.
- **Budget the loops.** Goal-mode cards (`--goal`) keep a worker going until a judge agrees the acceptance criteria are met, with a turn budget (20 by default) after which the card blocks for a human instead of running forever.
- **One gateway in front of every model.** Route all of it through a single OpenAI-compatible gateway so you get one bill, one rate-limit policy and per-agent usage numbers.

The hidden saving is the spec. Better card bodies mean fewer retries, and retries are the most expensive tokens you'll ever buy.

## Security: a fleet is an attack surface

Seven agents with shell access, GitHub tokens and model API keys is a lot of authority sitting on one machine. OWASP published its first Top 10 for Agentic Applications for 2026, and it reads like a checklist for exactly this setup. Here's how each risk maps to something concrete in the fleet:

| OWASP risk | What it looks like here | Control |
| --- | --- | --- |
| ASI01 Agent goal hijack | A GitHub issue or web page tells `lead` to "also disable the tests" | Untrusted text goes in card bodies as quoted data, never as instructions to the orchestrator |
| ASI02 Tool misuse | `builder` runs `git push --force` on main | OpenCode permission rules plus branch protection |
| ASI03 Identity and privilege abuse | Every agent shares your personal GitHub token | One GitHub identity per profile, least privilege each |
| ASI04 Agentic supply chain | A community skill or plugin with a nasty surprise | Pin and read skills before installing, especially ones that touch the board or credentials |
| ASI05 Unexpected code execution | A PoC exploit runs on your laptop | Strix runs inside its Docker sandbox; nothing runs exploits outside it |
| ASI06 Memory and context poisoning | A bad "lesson" saved into a profile's memory | Review memory and skill changes like code; reset profiles that drift |
| ASI07 Insecure inter-agent communication | Anything on the host can write to the board | Keep the dashboard on loopback or a tailnet; never bind it to 0.0.0.0 |
| ASI08 Cascading failures | One wrong schema decision flows into five cards | Decide-before-fan-out, plus required checks at every merge |
| ASI09 Human-agent trust exploitation | You approve whatever the bot says from your phone | Destructive actions need an approval that shows the actual command |
| ASI10 Rogue agents | A worker that keeps "succeeding" while doing nothing | Completion contracts, verifier cards and heartbeat timeouts |

![Trust boundaries: untrusted inputs such as issues, web pages, Strix target responses and alert text enter only as data on cards; the orchestrator has no code tools; workers run in worktrees and the Strix sandbox with their own credentials; the board and dashboard listen only on loopback or a private tailnet; GitHub branch protection and required checks are the final gate before main; production has no agent write access](https://cdn.hashnode.com/uploads/covers/63cc2392587fc59d3cd765f9/5a9c8b46-3fe4-48c7-aef2-508d475f43b6.png align="center")

That ASI07 row has a specific Hermes detail behind it. The Kanban dashboard plugin's REST routes are unauthenticated by design, because the dashboard binds to localhost by default. The docs say plainly that if you run the dashboard with `--host 0.0.0.0`, anyone who can reach that port can read every card and create, reassign or archive tasks. Keep it on loopback, or on a private network like a tailnet behind a password. A fleet's board is its brain. Don't put the brain on the public internet.

## How fleets fail, and the fix for each

The MAST study grouped its 14 failure modes into three categories: specification problems, misalignment between agents, and weak task verification. Every incident I've had with this fleet fits one of them.

![Failure modes mapped to fixes. Specification problems, such as vague cards, missing constraints and role confusion, are fixed by acceptance criteria in card bodies, decide-before-fan-out and profile descriptions. Inter-agent misalignment, such as lost context, ignored input and two agents writing one file, is fixed by structured handoff metadata, one writer per artifact and comment threads. Verification failures, such as premature done, no real check and agents agreeing with each other, are fixed by completion contracts, required CI checks, a verifier on a different model and Strix PoCs](https://cdn.hashnode.com/uploads/covers/63cc2392587fc59d3cd765f9/bd1e8a02-7624-4ab6-af57-0da1670a1af4.png align="center")

Hermes also has some loop protection built in that I've been grateful for:

- After two consecutive spawn failures on a card (`kanban.failure_limit`), the dispatcher blocks it with the last error instead of thrashing.
- A provider error a retry can't fix, like a revoked key or a missing model, blocks the card on the first attempt.
- A worker that exits without calling `kanban_complete`, `kanban_request_review` or `kanban_block` gets nudged, then a bounded number of retries, then blocked.
- A card that gets blocked for the same reason over and over goes to triage instead of bouncing forever.

None of that replaces good specs. It just means a bad spec costs you a blocked card instead of a weekend of tokens.

## Watching the fleet

You can't manage what you can't see, and seven agents produce a lot to see.

- **The board is the log.** Every transition is a row in an append-only `task_events` table. `hermes kanban watch` streams everything live, `hermes kanban runs <id>` shows every attempt at a card, and `hermes kanban log <id>` shows a worker's output.
- **The dashboard** shows the board with one column per status, lanes per profile in Running, and live updates over a WebSocket.
- **Hooks for the things you care about.** Board transitions fire plugin hooks (`kanban_task_claimed`, `kanban_task_completed`, `kanban_task_blocked`), so a blocked card can ping your phone.
- `/kanban` **from chat.** Every board command works as a slash command from any gateway platform, and it skips the queue even while an agent is mid-turn. `/kanban unblock t_abcd` from a train platform is a very satisfying thing to type.

## Rollout: don't start with seven agents

If you take one thing from this post, take this: **grow the fleet one agent at a time, and only add the next one when the current setup is boring.**

![Rollout ladder in six steps: one builder with CI and branch protection; add a reviewer on a different model; add qa with Playwright agents and make E2E a required check; add redteam with Strix in CI, then nightly against staging; add sre with HolmesGPT feeding cards back to the board; add scribe and parallel worktrees. Each step only after the previous one is boringly reliable](https://cdn.hashnode.com/uploads/covers/63cc2392587fc59d3cd765f9/56cbe0f9-8306-42b6-aa00-97e78b2c3968.png align="center")

1. **One builder, real CI, branch protection.** If the tests are weak, every later agent is building on sand.
2. **Add a reviewer** on a different model family. Watch how often it catches something real.
3. **Add** `qa` and make the E2E suite a required check.
4. **Add** `redteam`**.** Strix quick scans in CI first, nightly staging scans once you trust the signal.
5. **Add** `sre`**.** HolmesGPT read-only, filing cards, no remediation rights.
6. **Add** `scribe` **and raise concurrency.** Only now does parallelism pay off, because only now is every card checked by something other than its author.

## Things I'd tell myself before building this

- **The card body is the product.** A vague card produces vague code, and with seven agents it produces seven kinds of vague code. I spend more time on specs than on anything else in this setup.
- **Required checks beat clever prompts.** Every time I was tempted to write "please make sure the tests pass" into a prompt, the better fix was a check on the PR.
- **Different jobs, different models.** Same model reviewing its own family's work is the most expensive way to get a rubber stamp.
- **Give every agent its own identity.** Shared tokens make the audit log useless and make approvals impossible.
- **Keep humans on the scary merges.** Database migrations on real data, auth changes and anything touching money get a human merge, however good the agents get.
- **Don't fleet a task one agent can finish.** The 15× cost is real. Most small changes still go through one builder and one reviewer, and that's fine.

A single coding agent is a fast pair of hands. A fleet is closer to a small team: someone who plans, someone who builds, someone who doubts, someone who attacks and someone who's on call. The agents are getting better every month. The parts that make a team work haven't changed at all: clear specs, one owner per thing, and a referee nobody gets to argue with.

## References

- Hermes Agent: [hermes-agent.nousresearch.com](https://hermes-agent.nousresearch.com/), [Kanban docs](https://hermes-agent.nousresearch.com/docs/user-guide/features/kanban), [Subagent delegation](https://hermes-agent.nousresearch.com/docs/user-guide/features/delegation)
- OpenCode: [opencode.ai](https://opencode.ai/)
- Strix: [github.com/usestrix/strix](https://github.com/usestrix/strix) and [docs.strix.ai](https://docs.strix.ai)
- Playwright Test Agents: [playwright.dev/docs/test-agents](https://playwright.dev/docs/test-agents)
- HolmesGPT: [github.com/HolmesGPT/holmesgpt](https://github.com/HolmesGPT/holmesgpt)
- Agent2Agent protocol: [github.com/a2aproject/A2A](https://github.com/a2aproject/A2A)
- Model Context Protocol: [modelcontextprotocol.io](https://modelcontextprotocol.io)
- Anthropic, "How we built our multi-agent research system": [anthropic.com/engineering/multi-agent-research-system](https://www.anthropic.com/engineering/multi-agent-research-system)
- Cemri et al., "Why Do Multi-Agent LLM Systems Fail?" (MAST): [arxiv.org/abs/2503.13657](https://arxiv.org/abs/2503.13657)
- OWASP Top 10 for Agentic Applications: [genai.owasp.org](https://genai.owasp.org)
