project-agents
A Claude Code skill that gives a repository a small, tiered team of subagents: each one
pins its model and effort, each one is fitted to the project's real commands and paths,
and a guard script keeps them that way.
What it does, and why
Claude Code subagents are cheap to create and easy to get wrong. Two mistakes are common
and expensive:
- An agent file without
model: inherits the caller's model. A main session on the
top model hands mechanical work (lint runs, CI watching, docs edits) to subagents, and
every one of them runs on the top model too.
- Reviews that can edit, or that redo CI. A reviewer with Edit/Write is no longer a
review. A reviewer that re-runs the linters CI already ran pays for the same verdict
twice.
Run the skill in a repository and it:
- reads the project (CI, test commands, deploy path, architecture docs);
- drafts a risk list (paths only the careful tier may change) and a simple list
(paths the cheap tier may change), and asks you once to correct them and to choose the
agents' names;
- writes the agents to
.claude/agents/, filled with the project's real facts, plus
.claude/agents/roles.json (role -> agent name);
- appends a "Working with Claude Code" section to
CLAUDE.md, so the main session knows
which agent to call for what;
- installs a guard (
tools/claude/check_agents.py, and a pytest test if the project uses
pytest) and runs it.
The roles
| role (default name) | model / effort | tools | job |
|---|
implementer | opus / high | read + write | implements a decided change on a risk path, opens a PR; never merges or deploys |
implementer-simple | sonnet / medium | read + write | implements a simple change from an explicit path list; hands back anything on the risk list |
reviewer-security | opus / high | read-only | pre-merge review of risk-path PRs; confirms every finding by probing a production entry point |
reviewer-mechanical | sonnet / low | read-only | takes CI's verdict, runs only what CI lacks, audits skips, docs and counters |
reviewer-deploy | opus / high | read-only | before a deploy: the deploy path and the interactions between PRs, not the code again |
architect | the strongest reasoning model your plan offers / high | read-only | design options and trade-offs; recommends, never implements |
architect-deep | same as architect / xhigh | read-only | optional: GO/NO-GO reviews around irreversible steps |
ci-watcher | haiku / low | Bash only | waits for one CI run and reports the failed steps |
explore (always Explore) | haiku / low | Read, Glob, Grep | code search: returns path:line-range locations with one-line notes, not files; replaces the built-in Explore |
operator | haiku / low | Bash, Read | ops: follows or dispatches the deploy workflow (production only with the owner's go quoted in the brief), watches it, health-checks, reads server logs; at most 15 lines back with the key error lines verbatim; never changes a server, never prints secrets |
Agents the project cannot use are dropped, not filled with fiction (no deploy path -> no
reviewer-deploy; no deploy path and no servers -> no operator).
Ops run on Haiku, never in the main session
Deploy and CI steps done inside long main sessions - gh run watch/view/list, ssh
log reads, deploy steps - were about 23 % of one owner's whole subscription usage over
June-November 2026, and up to 65 % of a single repository's: each step re-reads a main
session's context of 100k+ tokens to learn a few lines. "gh run watch costs no Actions
minutes" was read as "costs nothing"; it still costs the caller's tokens. The operator
does that work on Haiku with a fresh context: it follows or dispatches the project's
deploy workflow (production only when the brief quotes the owner's go on an
Owner go: "..." line), watches the run with a 60 s refresh, health-checks the site,
reads journalctl / docker logs / hosting logs cut at the source, and returns at most
15 lines with the key error lines verbatim and secrets masked. It never fixes, restarts
or retries anything. The CLAUDE.md section routes deploys, CI watching and server log
reads to it and to ci-watcher; the main session diagnoses on the summary and reads a
server itself only when the summary is not enough.
Explore replaces the built-in