agentleFS
juliusz-cwiakalskijuliusz-cwiakalski/agentic-delivery-os/AGENTS.md

agentic-delivery-os

AGENTS.md38 starsChanged 59 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 checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 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, 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
  1. Very specific:

    Every change flows through 11 phases.

    line 20
  2. Distinctive:

    When adding or modifying agents, commands, or skills:

    line 127
  3. Distinctive:

    Update [.opencode/README.md](.opencode/README.md): when adding, removing, or renaming tools.

    line 132
  4. Very specific:

    Before creating new documentation areas, agents should inspect doc/documentation-profile.md when present.

    line 154
  5. Very specific:

    If missing, assume engineering-repo behavior.

    line 156
  6. Very specific:

    If present but malformed, unparseable, missing required fields, or contains conflicting write roots, treat the repository as …

    line 157
  7. Very specific:

    Do not create doc/business/ content unless profile enables it or the user explicitly requests a profile change.

    line 158
  8. Distinctive:

    Prefer linking to a canonical strategy repository instead of writing business docs into implementation repositories.

    line 159
  9. Very specific:

    Every distributable document declares its distribution class via an ados_distribution frontmatter marker, so the local install set …

    line 165
  10. Very specific:

    Test files follow the pattern test-*.sh inside .tests/ subdirectories.

    line 215
  11. Distinctive:

    If you need to change an agent, command, model assignment, tool access, or Claude Code plugin behavior:

    line 248
  12. Very specific:

    Update scripts/build-claude-plugin.sh only if the transformation itself must change

    line 251
  13. Very specific:

    Commit the .opencode/ source change and regenerated .ados-claude/ output together

    line 253
  14. Very specific:

    Run scripts/build-claude-plugin.sh to regenerate the Claude Code plugin

    line 260
  15. Distinctive:

    Commit both source and generated files together

    line 261
  16. Distinctive:

    Run the script on configured paths:

    line 285

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

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 /bootstrap to get started.

Delivery process

Every change flows through 11 phases. @pm orchestrates; phases are gated but can be reopened when gaps are discovered.

PhaseAgentWhat happens
1. clarify_scope@pmRead ticket via MCP, cross-check against system spec (doc/spec/**), STOP if questions
2. specification@spec-writerCreate chg-<ref>-spec.md (problem, goals, AC)
3. test_planning@test-plan-writerCreate chg-<ref>-test-plan.md (traceable to AC)
4. delivery_planning@plan-writerCreate chg-<ref>-plan.md (phased tasks)
5. dor_check@readiness-reviewerAdversarially critique spec+test-plan+plan vs ticket before delivery (DoR gate)
6. delivery@coderExecute plan phases, commit per phase
7. system_spec_update@doc-syncerReconcile doc/spec/** with implementation
8. review_fix@reviewerAudit vs spec/plan; if FAIL → @coder remediates → re-review
9. quality_gates@runnerBuild/test/lint; if failures → @fixer → re-run
10. dod_check@pmVerify all AC met, all plan tasks done
11. pr_creation@pr-managerCreate PR, assign to human, STOP

Detail: doc/guides/change-lifecycle.md

Agent team

Orchestration

  • pm — orchestrate changes; manage tickets via MCP; never implements code
  • decision-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 specifications
  • plan-writer — author implementation plans
  • test-plan-writer — author test plans with traceable coverage

Implementation

  • coder — execute plan phases; delegates to @designer, @decision-advisor, @committer, @runner
  • designer — visual design and UI implementation
  • editor — content rewrites and translations

Verification

  • readiness-reviewer — adversarial Definition of Ready gate; critiques change artifacts before delivery
  • review-feedback-applier — classify and apply accepted review feedback from PR/MR
  • reviewer — review changes against spec, plan, code quality heuristics, and repo rules (local + remote modes)
  • fixer — reproduce failures and apply targeted fixes
  • runner — execute commands, capture logs (subagent)

Documentation & release

  • doc-syncer — reconcile system docs with completed changes
  • meeting-organizer — prepare agendas and summarize meeting docs
  • committer — create one Conventional Commit
  • pr-manager — create/update PR/MR; enrich with ticket context via MCP

Specialized

  • external-researcher — research external sources via MCP
  • image-generator — generate AI images via text-to-image CLI
  • image-reviewer — analyze images, screenshots, and visual artifacts
  • toolsmith — create and tune agents, commands, and skills

Full definitions: .opencode/agent/*.md | Inventory: .opencode/README.md

Commands

CommandPurpose
/apply-review-feedbackClassify and apply accepted PR/MR review feedback locally
/bootstrapScaffold ADOS artifacts for an existing project
/plan-changeInteractive 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-readinessRun 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-remoteReview open PR/MR diff and optionally publish findings
/sync-docs <ref>Reconcile system docs from a change
/checkRun quality gates (no fixes)
/check-fixRun quality gates and fix failures
/commitCreate one Conventional Commit
/prCreate/update PR/MR
/plan-decisionInteractive decision session (any type: architecture, product, business, technical, operating)
/write-decisionGenerate Decision Record (ADR/PDR/TDR/BDR/ODR)
/review-decisionIndependent decision challenge (delegates to @decision-critic)
/designGenerate/update visual design assets

Full definitions: .opencode/command/*.md

Using the system

Autopilot (recommended) — @pm orchestrates all 11 phases:

@pm deliver change GH-456

Manual — 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 → /pr

Guide: 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*.jsonc config 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 to tools/ that are part of the delivery infrastructure, add them to the ADOS_DELIVERY_SCRIPTS or ADOS_DELIVERY_TOOLS arrays 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.yaml

Branches: <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-repo behavior.
  • 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 declare ados_distribution with one of: redistributable | internal | project-generated.
    • .md files: the key goes inside the existing frontmatter block (never add a new --- block or a license header for it).
    • .yaml register templates: the key is a top-level line 1 (no --- block — it would create multi-doc YAML and break yaml.safe_load() consumers).
  • A change that ships a redistributable doc MUST pass bash 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.md

tools/ and scripts/ conventions

Aspecttools/scripts/
PurposePATH-able CLI utilities for use beyond this repoRepo-internal automation
ExtensionNo .sh — invoked by name (e.g., tools/my-tool).sh required
Teststools/.tests/test-<tool-name>.shscripts/.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 definitions
  • doc/guides/ — reusable guides
  • doc/documentation-handbook.md — documentation handbook
  • tools/ — CLI utilities

Where headers are NOT required

  • doc/changes/ — change artifacts (spec, plan, test-plan, pm-notes) are temporary working files
  • doc/decisions/ — decision records are project-specific
  • doc/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:

  1. Edit the source in .opencode/agent/*.md or .opencode/command/*.md
  2. Update scripts/build-claude-plugin.sh only if the transformation itself must change
  3. Run scripts/build-claude-plugin.sh
  4. 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

  1. Edit only .opencode/agent/*.md and .opencode/command/*.md
  2. Run scripts/build-claude-plugin.sh to regenerate the Claude Code plugin
  3. Commit both source and generated files together
  4. 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/guides

Key references

DocumentDescription
.opencode/README.mdAgent and command inventory, naming conventions
doc/guides/change-lifecycle.mdChange delivery lifecycle (11-phase workflow, detailed)
doc/guides/definition-of-ready.mdDefinition of Ready gate (dor_check) — human-readable mirror
doc/guides/opencode-agents-and-commands-guide.mdHow to use agents and commands (manual + autopilot)
doc/guides/unified-change-convention-tracker-agnostic-specification.mdChange naming convention (workItemRef, folders, branches)
.ai/agent/pm-instructions.mdPM tracker configuration (GitHub/Jira setup)
.ai/agent/decision-instructions.mdProject-local decision configuration (tracking conventions + strategic context)
.ai/agent/pr-instructions.mdPR/MR platform configuration (GitHub/GitLab setup)
doc/guides/pr-platform-integration.mdPR/MR platform integration guide
.ai/rules/bash.mdBash coding rules - always read before creating or editing bash scripts
doc/documentation-handbook.mdDocumentation layout standard
doc/tools/text-to-image.mdtext-to-image CLI tool user guide and provider setup
doc/guides/tools-convention.mdStandard for building CLI tools in tools/

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.