dev-lead / templates
AGENTS.md3 starsChanged 6 days agoMITView on GitHub
What this file is. A drop-in entry point that lets any file-reading coding agent (codex and opencode read AGENTS.md natively; agy and others can be pointed at it) participate in the dev-lead cross-model workflow without Claude Code installed. Copy it into your project root — or merge the sections below into your existing AGENTS.md — and fix the one path in the next section. The dev-lead skill suite is checked out at: All references below are relative to that root.…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,843 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository15 other files it gives its agents.
- agy-adversarial-reviewSkill
- agy-implementSkill
- claude-adversarial-reviewSkill
- claude-implementSkill
- codex-adversarial-reviewSkill
- codex-implementSkill
- configSkill
- cursor-adversarial-reviewSkill
- cursor-implementSkill
- dev-leadSkill
- grok-adversarial-reviewSkill
- grok-implementSkill
- opencode-adversarial-reviewSkill
- opencode-implementSkill
- quota-setupSkill
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
All references below are relative to that root.
- Very specific: line 40
You are the LEAD: if a human asked you to orchestrate a whole feature/fix.
- Distinctive: line 50
You are a DELEGATE: if another agent dispatched you with a task file.
- Distinctive: line 51
Follow the task prompt. The standing rules apply even if the prompt forgot to state them: work only inside the worktree you were given, …
- Very specific: line 57
You are a REVIEWER: if you were handed a diff/commit range and a claims list.
- Distinctive: line 72
Cross-family review is mandatory: before anything merges. Two families for HIGH-risk changes.
- Distinctive: line 76
Keep a run log as events happen.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md — dev-lead workflow adapter
What this file is. A drop-in entry point that lets any file-reading coding agent (codex and opencode read
AGENTS.mdnatively; agy and others can be pointed at it) participate in the dev-lead cross-model workflow without Claude Code installed. Copy it into your project root — or merge the sections below into your existingAGENTS.md— and fix the one path in the next section.
Where the skills live
The dev-lead skill suite is checked out at:
DEV_LEAD_ROOT=~/path/to/dev-lead # ← EDIT THISAll references below are relative to that root. If your CLI supports adding
external directories (agy --add-dir, opencode external-directory
allow-list), grant it read access to $DEV_LEAD_ROOT.
Reading order
docs/methodology.md— the rules that govern every role. Read it once per session before doing anything else (if you have never seen a run's shape,docs/workflow.mdfirst, as methodology itself says: it maps the phases the rules refer to). Non-negotiables: the cross-family review rule, frozen review targets, merge-base spans, evidence gates, mutation-proofing, the merge gate (the person's approval by default; see §9 for themerge_gate.mode = leadsetting and what it does NOT change).- The skill for your role in this run (see below).
- That family's runtime reference
(
skills/<family>-adversarial-review/references/<family>-runtime.md) — operational traps, all incident-tested. Do not re-learn them the hard way.
Which role are you?
You are the LEAD if a human asked you to orchestrate a whole
feature/fix. Read skills/dev-lead/SKILL.md and follow its phases. Before
accepting the role, pass its host capability gate: you must be able to run
the repo's test suite and mutation checks yourself, natively. Delegate
implementation via the skills/<family>-implement/ skills (for a Claude
delegate, skills/claude-implement/SKILL.md — claude -p headless); take
reviews via the skills/<family>-adversarial-review/ skills. The reviewer
must never share the implementer's model family — including yours, when you
implemented.
You are a DELEGATE if another agent dispatched you with a task file. Follow the task prompt. The standing rules apply even if the prompt forgot to state them: work only inside the worktree you were given, commit locally at most, never push, no AI-authorship trailers, no recursive delegation (do not invoke other CLIs or review scripts), and report honestly — what you ran, what passed, what you could not do.
You are a REVIEWER if you were handed a diff/commit range and a claims
list. Falsify, don't confirm. Every verdict needs quoted evidence
(file:line + the code that decides it); NOT REACHED is acceptable,
HOLDS-without-a-quote is not. Read-only: no edits, no fixes, no test runs
unless your harness machine-permits them — name the command you would run
and the result that would confirm the finding, and let the lead run it.
Standing rules (apply to every role, every run)
- Delegates never push. Report the commit hash; the lead pushes.
- A person approves the result; the lead lands it. Present the verdict
and the diff; on approval the lead merges, pushes to the ref this
project's contract names, and reports it — no second ask. With the roster's
merge_gate.mode = lead, a fully green verdict is that approval; anything not green, and any stricter project contract, still goes to the person. - Cross-family review is mandatory before anything merges. Two families for HIGH-risk changes.
- Nothing is trusted on self-report — the lead re-runs tests and verifies every finding. Expect it; report accordingly.
- Keep a run log as events happen. If your run fails or returns nothing, leave the worktree intact — partial state is diagnosis evidence.
Substituting your own process management
The skills describe launches in terms of "the host's background mechanism"
(Claude Code's task tracking, in the original environment). If your harness
has no equivalent, use plain shell job control with output redirected to
files, and poll process liveness — the skills' patience calibrations (5–40
minutes of silence being normal, per family) apply unchanged. Codex
review runs codex exec everywhere; codex implement additionally has a
raw-CLI fallback documented in its runtime file for machines without the
Claude Code companion plugin.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

