Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/jayminwest/canopy/agents-mdgit clone --depth 1 https://github.com/jayminwest/canopyWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.04243 | $0.04243 |
| Opus 5 | $0.02122 | $0.02122 |
| Sonnet 5 | $0.00849 | $0.00849 |
| Haiku 4.5 | $0.00424 | $0.00424 |
Grade A, and why
canopy AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 392 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
This file is the canonical entry point for AI coding agents working in
the canopy repo, following the agents.md
convention. It mirrors the essentials from CLAUDE.md; when the two
disagree, CLAUDE.md is authoritative and this file should be updated
to match.
What this project is
Canopy is git-native prompt management for AI agent workflows.
Prompts are structured records with composable sections, inheritance,
versioning, and schema validation. The JSONL file IS the database;
cn emit renders prompts to plain .md (or .ts) files for any
downstream tool to consume. Minimal runtime dependencies, advisory
file locks for concurrent agents, Bun runtime.
Canopy is part of the os-eco ecosystem alongside warren (control
plane), burrow (sandbox), plot (coordination), mulch (expertise), and
seeds (issue tracking). See SPEC.md for the full design record.
Tech stack at a glance
- Runtime: Bun (runs TypeScript directly; no build step on the CLI).
- Language: TypeScript with strict mode (
noUncheckedIndexedAccess, noany). - Lint / format: Biome (
biome.json). Errors fail CI; theuseFilenamingConventionrule enforces kebab-case filenames. - Tests:
bun testdiscovers*.test.tsnext to the file under test; configuration lives inbunfig.toml. - Storage: JSONL files under
.canopy/(one per record type, diffable / mergeable,merge=uniongitattribute). - CLI:
cn(defined insrc/index.ts, dispatched via commander).
Project layout
canopy/
├── src/
│ ├── index.ts # cn CLI entry point + Commander wiring
│ ├── commands/ # one file per subcommand
│ ├── render.ts # inheritance resolution
│ ├── validate.ts # schema validation
│ ├── store.ts # JSONL read/write with advisory locks
│ ├── output.ts # human + JSON output helpers
│ ├── frontmatter.ts # YAML frontmatter renderer
│ ├── yaml.ts # minimal built-in YAML parser
│ └── ...
├── scripts/ # quality-gate scripts (size, debt, coverage, …)
│ ├── check-all.ts # canonical quiet runner (byte-identical fleet-wide)
│ ├── check-ci-parity.ts # CI ⇄ check:all parity gate (byte-identical fleet-wide)
│ ├── ci-parity-config.json # per-repo parity escape hatches (aliases / ciOnly)
│ ├── validate-agents-md.ts # validates this file's references
│ ├── generate-cli-docs.ts # emits docs/cli-reference.md
│ ├── check-file-sizes.ts
│ ├── check-debt-markers.ts
│ ├── check-coverage.ts
│ ├── report-test-timing.ts
│ └── report-quality-metrics.ts
├── budgets/ # ratchet budgets (coverage, file-size, debt)
├── docs/
│ ├── cli-reference.md # auto-generated; do not edit
│ └── architecture.mmd # mermaid service diagram
├── .canopy/ # canopy's own prompts (dogfood)
├── .factory/skills/ # repo-local agent skills
├── .github/workflows/ # ci.yml + publish.yml + auto-merge.yml
├── SPEC.md # V1 design record
├── README.md # user-facing pitch
├── CHANGELOG.md # release history
├── RUNBOOK.md # release / triage / rollback procedures
├── biome.json
├── bunfig.toml
├── tsconfig.json
└── package.json
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 392 lines · 4,243 tokens per session scan A bcc3bf56cf3b
canopy AGENTS.md is an instructions file published in the GitHub repository jayminwest/canopy (39 stars, last pushed 29d ago), licensed MIT. It adds 4,243 tokens to every session, about $0.0212 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
spellbook AGENTS.md
Instructions for majiayu000/spellbook, covering spellbook agent contract, routing, scope rules, threads long-run guardrails and validation.
open-supermarkets AGENTS.md
Instructions for abracadabra50/open-supermarkets, covering agent integration guide, supported frameworks, quick integration, 1. add as skill and 2. agent calls commands.
helm copilot-instructions.md
Instructions for PetePeter/helm, covering gamepad-cli-hub — copilot instructions, project purpose, system overview, data flow pipeline and key controls.
flyto-core CLAUDE.md
Instructions for flytohub/flyto-core, covering claude notes, cross-agent handoff and shared code intelligence.
fusion-skills AGENTS.md
AGENTS.md instructions for CrowdStrike/fusion-skills, covering agents.md, what this is, prerequisites, repository structure and skills ecosystem.
aeon CLAUDE.md
Instructions for aeonfun/aeon, covering aeon, how aeon works, strategy, voice and soul file hierarchy (read in this order).