agentleFS
MicrosoftKnown publishermicrosoft/Dev-Trio/AGENTS.md

Dev-Trio

AGENTS.md2 starsChanged 6 months agoMITView on GitHub

This repo uses a dev-trio loop with subagent delegation: * Planner orchestrates everything. Delegates implementation and audit to subagents. Owns ALL logging, notifications, and user questions. The planner is the only agent that talks to the developer directly. * Implementer receives prompts from planner, audits constraints, implements code, runs builds and tests. Returns results to planner. Does NOT log, notify, or ask questions. * Critic receives implementer output from planner, audits against all binding constraints. Returns verdict to planner. Does…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,736 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 repositoryOne other file it gives its agents.

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

16 rules. About 0 are common, 12 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Never run git operations (commit/push/branch) unless the developer explicitly directs.

    line 19
  2. Distinctive:

    If any binding constraint is at risk, STOP and surface to the developer — do not fix-forward silently.

    line 21
  3. Distinctive:

    No silent fix-forward during validation phases — stop and ask.

    line 23
  4. Very specific:

    Update memory/MEMORY.md after each completed slice with what changed.

    line 24
  5. Very specific:

    When the developer says "Dev-trio:" followed by a task description, or uses /dev-trio, execute the full plan/implement/audit cycle.

    line 28
  6. Distinctive:

    Always verify a file exists before editing.

    line 42
  7. Distinctive:

    Test pass/fail counts and output

    line 58
  8. Distinctive:

    Before delegating to the critic, the planner MUST independently re-derive every critical-evidence value listed above using its own shell.

    line 70
  9. Distinctive:

    If ANY mismatch exists between these three sources, the critic MUST report it as a hard stop, even if the final values happen to be correct.

    line 81
  10. Very specific:

    After every dev-trio cycle, the planner must append to the backup log file at: _backup/Dev_Trio_Chat_Backup.md

    line 91
  11. Distinctive:

    Use a shell command to append.

    line 96
  12. Distinctive:

    NEVER notify during internal agent-to-agent handoffs.

    line 130
  13. Distinctive:

    NEVER notify on intermediate progress.

    line 131
  14. Distinctive:

    NEVER notify more than once per pause point.

    line 132
  15. Distinctive:

    Only surface things the agents genuinely cannot resolve on their own.

    line 135
  16. Distinctive:

    After notifying, STOP and wait for the developer to respond before continuing.

    line 136

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

[Project Name] — Agent Guardrails

Workflow

This repo uses a dev-trio loop with subagent delegation:

  • Planner orchestrates everything. Delegates implementation and audit to subagents. Owns ALL logging, notifications, and user questions. The planner is the only agent that talks to the developer directly.
  • Implementer receives prompts from planner, audits constraints, implements code, runs builds and tests. Returns results to planner. Does NOT log, notify, or ask questions.
  • Critic receives implementer output from planner, audits against all binding constraints. Returns verdict to planner. Does NOT log, notify, or ask questions.

Hard rules (never violate)

  • Never run git operations (commit/push/branch) unless the developer explicitly directs.
  • If any binding constraint is at risk, STOP and surface to the developer — do not fix-forward silently.
  • No silent fix-forward during validation phases — stop and ask.
  • Update memory/MEMORY.md after each completed slice with what changed.

Dev-trio trigger

When the developer says "Dev-trio:" followed by a task description, or uses /dev-trio, execute the full plan/implement/audit cycle. Any task using these triggers MUST go through all three agents — never skip the plan or the audit.

Project state

Full project context, binding constraints, slice history, current build state, and the active blocker live in memory/MEMORY.md. Read it at the start of every working session.

Solution layout

[TO BE FILLED DURING INITIALIZATION — replace with real project structure]

Always verify a file exists before editing. Always use full paths.

Terminology (binding)

[TO BE FILLED DURING INITIALIZATION — list the project's binding terminology here. These terms must never be renamed or reframed by any agent.]

Critical Evidence Verification

Certain claims are security-critical and must not be trusted from a single agent's prose summary alone. The following values require raw evidence files from the implementer AND independent re-derivation by the planner before the critic audits.

Critical evidence list (fill in during initialization):

  • Build exit codes for all build targets
  • Test pass/fail counts and output
  • Any hash or integrity verification required by this project's constraints
  • Any process or state checks required by this project's constraints

Implementer responsibility: For any step involving the items above, the implementer MUST write raw command output to a machine-readable evidence file under _temp/ for the current phase directory. The evidence file must contain actual tool/command output, not prose summaries or paraphrased results. Reference the evidence file path in the implementation report.

Planner responsibility: Before delegating to the critic, the planner MUST independently re-derive every critical-evidence value listed above using its own shell. The planner passes BOTH the implementer's report/evidence files AND its own independently verified values to the critic.

Critic responsibility: The critic MUST cross-check three sources for critical-evidence claims:

  1. The implementer's prose report
  2. The implementer's raw evidence file(s) — read them directly
  3. The planner's independently verified values

If ANY mismatch exists between these three sources, the critic MUST report it as a hard stop, even if the final values happen to be correct. A mismatch means the verification chain is broken.

For non-critical claims (UI behavior, file paths, code changes), the implementer's report alone is sufficient. The critic audits those against the binding constraints as usual.

Session Logging (planner only)

After every dev-trio cycle, the planner must append to the backup log file at: _backup/Dev_Trio_Chat_Backup.md

Only append if backup logging has been configured — i.e. the path above is a resolved absolute path. If it still shows a relative placeholder path (not a resolved absolute path), backup logging is NOT configured: skip the backup log step entirely (do not create any file or default path) and note "backup log not configured" instead.

Use a shell command to append. Format each entry as:

[YYYY-MM-DD HH:MM:SS] DEV-TRIO | [Project Name] (planner-logged, all phases) PROMPT: (the prompt or task received) PLANNER: (planning decisions and delegation summary) IMPLEMENTER: (implementation summary and evidence file paths) CRITIC: (audit verdict and any flags) PLANNER (close): (independent verification results and final evaluation) RESULT: (outcome — TASK COMPLETE / ERROR / DECISION NEEDED) CREDITS: unknown (Write 'unknown' for CREDITS. The extension reads GitHub Copilot's local transcript files and populates credit data automatically when the Session Log viewer is opened. Do not attempt to calculate or estimate credits yourself.)

Log EVERY cycle. Never skip. Never overwrite — always append.

Human Notification (planner only)

The planner sends a notification ONLY in these three situations:

  1. TASK COMPLETE — the full cycle finished cleanly.
  2. ERROR — an error that cannot be self-resolved.
  3. DECISION NEEDED — a constraint violation or ambiguous requirement.

Command: pwsh -NoProfile -File "%LOCALAPPDATA%\Dev-Trio\notify.ps1" -Message "your message"

Note: notify.ps1 is written to your user profile at %LOCALAPPDATA%\Dev-Trio\notify.ps1 during notification setup. It is shared across all your Dev-Trio projects and is never stored in your workspace.

Rules:

  • NEVER notify during internal agent-to-agent handoffs.
  • NEVER notify on intermediate progress.
  • NEVER notify more than once per pause point.
  • The loop should iterate through normal problems (build errors, missing imports, test failures) autonomously without notifying.
  • Only surface things the agents genuinely cannot resolve on their own.
  • After notifying, STOP and wait for the developer to respond before continuing.

Dev-Trio Multi-Agent Configuration

This workspace uses the Dev-Trio three-agent methodology. Subagent definitions are in .codex/agents/. The Planner subagent (dt-planner) orchestrates all development work, delegating to dt-implementer and dt-critic. Project memory is in memory/MEMORY.md; full history is in _backup/Dev_Trio_Chat_Backup.md.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.