agentic-delivery-os
AGENTS.md43 starsChanged 36 days agoMITView on GitHub
Quick-reference for AI coding agents and human contributors working in this repo. Agentic Delivery OS is a spec-driven software delivery system: a team of AI agents and commands that turn a ticket into a reviewed, tested PR through a deterministic 11-phase workflow. The agents and their prompt definitions (.opencode/agent/*.md, .opencode/command/*.md) are the product. A degraded prompt degrades everything downstream — treat them with the same rigor as production code. The delivery process is used to deliver improvements to itself. New…
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 35,337 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.
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, 6 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 20
Every change flows through 11 phases.
- Distinctive: line 127
When adding or modifying agents, commands, or skills:
- Distinctive: line 132
Update [.opencode/README.md](.opencode/README.md): when adding, removing, or renaming tools.
- Very specific: line 154
Before creating new documentation areas, agents should inspect doc/documentation-profile.md when present.
- Very specific: line 156
If missing, assume engineering-repo behavior.
- Very specific: line 157
If present but malformed, unparseable, missing required fields, or contains conflicting write roots, treat the repository as …
- Very specific: line 158
Do not create doc/business/ content unless profile enables it or the user explicitly requests a profile change.
- Distinctive: line 159
Prefer linking to a canonical strategy repository instead of writing business docs into implementation repositories.
- Very specific: line 165
Every distributable document declares its distribution class via an ados_distribution frontmatter marker, so the local install set …
- Very specific: line 215
Test files follow the pattern test-*.sh inside .tests/ subdirectories.
- Distinctive: line 248
If you need to change an agent, command, model assignment, tool access, or Claude Code plugin behavior:
- Very specific: line 251
Update scripts/build-claude-plugin.sh only if the transformation itself must change
- Very specific: line 253
Commit the .opencode/ source change and regenerated .ados-claude/ output together
- Very specific: line 260
Run scripts/build-claude-plugin.sh to regenerate the Claude Code plugin
- Distinctive: line 261
Commit both source and generated files together
- Distinctive: line 285
Run the script on configured paths:
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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
Quick-reference for AI coding agents and human contributors working in this repo.
What this repo is
Agentic Delivery OS is a spec-driven software delivery system: a team of AI agents and commands that turn a ticket into a reviewed, tested PR through a deterministic 11-phase workflow.
The agents and their prompt definitions (.opencode/agent/*.md, .opencode/command/*.md) are the product. A degraded prompt degrades everything downstream — treat them with the same rigor as production code. The delivery process is used to deliver improvements to itself.
New to ADOS? See doc/guides/onboarding-existing-project.md or run
/bootstrapto get started.
Delivery process
Every change flows through 11 phases. @pm orchestrates; phases are gated but can be reopened when gaps are discovered.
| Phase | Agent | What happens |
| 1. clarify_scope | @pm | Read ticket via MCP, cross-check against system spec (doc/spec/**), STOP if questions |
| 2. specification | @spec-writer | Create chg-<ref>-spec.md (problem, goals, AC) |
| 3. test_planning | @test-plan-writer | Create chg-<ref>-test-plan.md (traceable to AC) |
| 4. delivery_planning | @plan-writer | Create chg-<ref>-plan.md (phased tasks) |
| 5. dor_check | @readiness-reviewer | Adversarially critique spec+test-plan+plan vs ticket before delivery (DoR gate) |
| 6. delivery | @coder | Execute plan phases, commit per phase |
| 7. system_spec_update | @doc-syncer | Reconcile doc/spec/** with implementation |
| 8. review_fix | @reviewer | Audit vs spec/plan; if FAIL → @coder remediates → re-review |
| 9. quality_gates | @runner | Build/test/lint; if failures → @fixer → re-run |
| 10. dod_check | @pm | Verify all AC met, all plan tasks done |
| 11. pr_creation | @pr-manager | Create PR, assign to human, STOP |
Detail: doc/guides/change-lifecycle.md
Agent team
Orchestration
pm— orchestrate changes; manage tickets via MCP; never implements codedecision-advisor— decisions of all types (architecture, product, business, technical, operating); decision record authoring (ADR/PDR/TDR/BDR/ODR)
Decision review
decision-critic— independent, read-only decision challenger; tri-state verdict (PASS / PASS_WITH_RISKS / REWORK)
Onboarding
bootstrapper— run ADOS project inception for new or legacy projects
Artifact creation
spec-writer— author change specificationsplan-writer— author implementation planstest-plan-writer— author test plans with traceable coverage
Implementation
coder— execute plan phases; delegates to@designer,@decision-advisor,@committer,@runnerdesigner— visual design and UI implementationeditor— content rewrites and translations
Verification
readiness-reviewer— adversarial Definition of Ready gate; critiques change artifacts before deliveryreview-feedback-applier— classify and apply accepted review feedback from PR/MRreviewer— review changes against spec, plan, code quality heuristics, and repo rules (local + remote modes)fixer— reproduce failures and apply targeted fixesrunner— execute commands, capture logs (subagent)
Documentation & release
doc-syncer— reconcile system docs with completed changesmeeting-organizer— prepare agendas and summarize meeting docscommitter— create one Conventional Commitpr-manager— create/update PR/MR; enrich with ticket context via MCP
Specialized
external-researcher— research external sources via MCPimage-generator— generate AI images via text-to-image CLIimage-reviewer— analyze images, screenshots, and visual artifactstoolsmith— create and tune agents, commands, and skills
Full definitions: .opencode/agent/*.md | Inventory: .opencode/README.md
Commands
| Command | Purpose |
/apply-review-feedback | Classify and apply accepted PR/MR review feedback locally |
/bootstrap | Scaffold ADOS artifacts for an existing project |
/plan-change | Interactive planning session (prep context for /write-spec) |
/write-spec <ref> | Generate change specification |
/write-test-plan <ref> | Generate test plan |
/write-plan <ref> | Generate implementation plan |
/check-readiness | Run the Definition of Ready gate for a change |
/run-plan <ref> | Execute plan phases |
/review <ref> | Review change vs spec/plan |
/review-deep <ref> | Deep review with stronger reasoning model |
/review-remote | Review open PR/MR diff and optionally publish findings |
/sync-docs <ref> | Reconcile system docs from a change |
/check | Run quality gates (no fixes) |
/check-fix | Run quality gates and fix failures |
/commit | Create one Conventional Commit |
/pr | Create/update PR/MR |
/plan-decision | Interactive decision session (any type: architecture, product, business, technical, operating) |
/write-decision | Generate Decision Record (ADR/PDR/TDR/BDR/ODR) |
/review-decision | Independent decision challenge (delegates to @decision-critic) |
/design | Generate/update visual design assets |
Full definitions: .opencode/command/*.md
Using the system
Autopilot (recommended) — @pm orchestrates all 11 phases:
@pm deliver change GH-456Manual — you trigger each step:
/plan-change → /write-spec <ref> → /write-test-plan <ref> → /write-plan <ref>
→ /check-readiness <ref> → /run-plan <ref> → /sync-docs <ref> → /review <ref> → /check → /prGuide: doc/guides/opencode-agents-and-commands-guide.md
Extending the system
When adding or modifying agents, commands, or skills:
- Delegate to
@toolsmith— it specializes in prompt engineering, model-format-aware design, and quality gates for OpenCode tooling. Do not hand-edit agent/command files directly. - Tune related tools together — agents hand off to each other; changing one agent's output format can break another's input. Check upstream inputs and downstream consumers.
- Test through the delivery process — run modified agents on a real change to validate.
- Update .opencode/README.md when adding, removing, or renaming tools.
- Keep prompts tight — verbose prompts waste tokens and reduce quality; prefer XML structure for Claude models.
- Write current-state prompts — Agent, command, and skill prompts describe only current required behavior, inputs, outputs, and constraints. Do not include prompt/tool evolution history, old filenames, change-specific ticket/PR references used to narrate prompt/tool evolution or rationale, migration rationale, or wording such as "formerly", "now", "previously", "no longer", "preserve the existing exception", or "was replaced". Runtime tracker/PR contracts and generic examples are allowed. Put rationale and history in tickets, comments, change artifacts, commit/PR descriptions, or decision records. A tool whose runtime responsibility includes migration, compatibility input, historical record maintenance, or prior/current comparison may state only the source and target states needed to execute that responsibility; phrase accepted aliases and inputs as current contracts where possible.
- Model configuration is separate — models are assigned in
opencode*.jsoncconfig files, not in agent definitions. Agent files describe behavior; config files define which model runs them. - Register delivery infrastructure — when adding scripts to
scripts/or tools totools/that are part of the delivery infrastructure, add them to theADOS_DELIVERY_SCRIPTSorADOS_DELIVERY_TOOLSarrays in scripts/install.sh so they install into user projects.
Change artifacts
Changes are identified by workItemRef (GH-456 for GitHub, PDEV-123 for Jira).
doc/changes/YYYY-MM/YYYY-MM-DD--<workItemRef>--<slug>/
├── chg-<workItemRef>-spec.md
├── chg-<workItemRef>-plan.md
├── chg-<workItemRef>-test-plan.md
└── chg-<workItemRef>-pm-notes.yamlBranches: <type>/<workItemRef>/<slug> (e.g., feat/GH-456/some-feature)
Profile-aware documentation safety
Before creating new documentation areas, agents should inspect doc/documentation-profile.md when present.
- If missing, assume
engineering-repobehavior. - If present but malformed, unparseable, missing required fields, or contains conflicting write roots, treat the repository as
engineering-repo(business docs disabled) and ask the user to fix the profile before proceeding; do not guess which root wins. - Do not create
doc/business/**content unless profile enables it or the user explicitly requests a profile change. - Prefer linking to a canonical strategy repository instead of writing business docs into implementation repositories.
Detail: doc/guides/unified-change-convention-tracker-agnostic-specification.md
Doc distribution marker (ados_distribution)
Every distributable document declares its distribution class via an ados_distribution frontmatter marker, so the local install set (scripts/install.sh) and the CI drift guard (scripts/.tests/test-doc-distribution.sh) derive it automatically — instead of a hand-maintained allowlist.
- Any new or changed doc under
doc/guides/,doc/templates/(incl.blueprints/and*.yaml), or the standalone docs (doc/documentation-handbook.md,doc/00-index.md,doc/decisions/README.md,doc/decisions/00-index.md,.ai/rules/README.md) MUST declareados_distributionwith one of:redistributable|internal|project-generated..mdfiles: the key goes inside the existing frontmatter block (never add a new---block or a license header for it)..yamlregister templates: the key is a top-level line 1 (no---block — it would create multi-doc YAML and breakyaml.safe_load()consumers).
- A change that ships a
redistributabledoc MUST passbash scripts/.tests/test-doc-distribution.sh(wired into CI; blocks merge on drift).
Canonical values: see doc/decisions/ODR-0001-classify-yaml-register-templates-redistributable.md.
Repo structure
.
├── AGENTS.md # this file — delivery system bootstrap
├── .opencode/ # agent and command definitions (THE product)
│ ├── agent/ # agents (one .md each)
│ └── command/ # commands (one .md each)
├── .ai/
│ ├── agent/ # PM tracker config (pm-instructions.md), PR/MR platform config (pr-instructions.md), code-review instructions (incl. checklist)
│ ├── local/ # git-ignored ephemeral state
│ └── rules/ # language/tool rules (bash.md)
├── scripts/ # repo-internal automation (.sh extension)
│ ├── hooks/ # inactive, user-selectable pre-iteration hook examples
│ └── .tests/ # test files for scripts (test-*.sh)
├── tools/ # PATH-able CLI utilities (no .sh extension)
│ └── .tests/ # test files for tools (test-*.sh)
└── doc/
├── 00-index.md # documentation landing page
├── changes/ # change artifacts (spec, plan, test-plan per workItemRef)
├── decisions/ # decision records (ADR/PDR/TDR/BDR/ODR)
├── guides/ # how-to guides
├── inception/ # project inception workspace (see guides/project-inception.md)
├── overview/ # north star, architecture, glossary
├── planning/ # internal planning notes
├── spec/ # current system spec (reconciled after each change)
├── templates/ # core + optional profile-aware templates/registers
├── tools/ # CLI tool user guides
└── documentation-handbook.mdtools/ and scripts/ conventions
| Aspect | tools/ | scripts/ |
| Purpose | PATH-able CLI utilities for use beyond this repo | Repo-internal automation |
| Extension | No .sh — invoked by name (e.g., tools/my-tool) | .sh required |
| Tests | tools/.tests/test-<tool-name>.sh | scripts/.tests/test-<script-name>.sh |
Running tests
Test files follow the pattern test-*.sh inside .tests/ subdirectories. Run with bash <dir>/.tests/test-*.sh.
License headers
AI agents must never add license headers. Headers are managed exclusively by scripts/add-header-location.sh for specific paths.
Where headers are required
The script adds headers only to files that are installed when users onboard ADOS:
.opencode/agent/— agent definitions.opencode/command/— command definitionsdoc/guides/— reusable guidesdoc/documentation-handbook.md— documentation handbooktools/— CLI utilities
Where headers are NOT required
doc/changes/— change artifacts (spec, plan, test-plan, pm-notes) are temporary working filesdoc/decisions/— decision records are project-specificdoc/planning/— internal planning notes.ai/— configuration and ephemeral state
Multi-tool support
ADOS maintains a single source of truth for all agent/command definitions:
.opencode/— Canonical source (OpenCode format).ados-claude/— Generated Claude Code plugin (committed, kept in sync by CI)
Generated plugin rule (important)
Never hand-edit .ados-claude/ files. They are generated artifacts.
If you need to change an agent, command, model assignment, tool access, or Claude Code plugin behavior:
- Edit the source in
.opencode/agent/*.mdor.opencode/command/*.md - Update
scripts/build-claude-plugin.shonly if the transformation itself must change - Run
scripts/build-claude-plugin.sh - Commit the
.opencode/source change and regenerated.ados-claude/output together
Generated .ados-claude/**/*.md files include comments naming their source file and regeneration command. Treat those comments as authoritative.
When modifying agents or commands
- Edit only
.opencode/agent/*.mdand.opencode/command/*.md - Run
scripts/build-claude-plugin.shto regenerate the Claude Code plugin - Commit both source and generated files together
- CI verifies the generated plugin is current (fails if stale)
Tool-specific frontmatter
Agent and command files support optional frontmatter keys for different tools:
---
description: <agent description>
mode: all # OpenCode-specific
claude: # Claude Code-specific
model: opus # opus | sonnet | haiku
---OpenCode ignores the claude: key. Claude Code uses claude.model for model assignment.
Adding new tools
See doc/guides/adding-tool-support.md for the extensibility pattern.
How to add headers
Run the script on configured paths:
scripts/add-header-location.sh .opencode/agent
scripts/add-header-location.sh doc/guidesKey references
| Document | Description |
| .opencode/README.md | Agent and command inventory, naming conventions |
| doc/guides/change-lifecycle.md | Change delivery lifecycle (11-phase workflow, detailed) |
| doc/guides/definition-of-ready.md | Definition of Ready gate (dor_check) — human-readable mirror |
| doc/guides/opencode-agents-and-commands-guide.md | How to use agents and commands (manual + autopilot) |
| doc/guides/unified-change-convention-tracker-agnostic-specification.md | Change naming convention (workItemRef, folders, branches) |
| .ai/agent/pm-instructions.md | PM tracker configuration (GitHub/Jira setup) |
| .ai/agent/decision-instructions.md | Project-local decision configuration (tracking conventions + strategic context) |
| .ai/agent/pr-instructions.md | PR/MR platform configuration (GitHub/GitLab setup) |
| doc/guides/pr-platform-integration.md | PR/MR platform integration guide |
| .ai/rules/bash.md | Bash coding rules - always read before creating or editing bash scripts |
| doc/documentation-handbook.md | Documentation layout standard |
| doc/tools/text-to-image.md | text-to-image CLI tool user guide and provider setup |
| doc/guides/tools-convention.md | Standard for building CLI tools in tools/ |
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
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.

