specweave: Instructions file for Claude Code

AGENTS.md

specweave AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from anton-abyzov/specweave. It costs 410 tokens per session, scanned A, original, MIT.

Instructions for SpecWeave, a project-planning workflow that stores each feature in a numbered increment folder with specifications, plans, tasks, and reports. They define the required files, naming rules, and order of work.

In plain words
What is it for?
Use them before implementing a substantial feature, when creating or updating an increment, when requesting approval for a plan, and when verifying completed work.
Why use it?
They keep planning documents organized and make the specification and task list the shared record of what should be built and what has been completed.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: SessionStart hook event, but also the file is AGENTS.md. Also seen: mentions Claude Code; mentions AGENTS.md.

This is anton-abyzov/specweave's own configuration. It tells Claude Code, Codex and OpenCode how to work on specweave itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything specweave configures →

Reuse

Borrowing it

Nothing to install: this file belongs to anton-abyzov/specweave. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/anton-abyzov/specweave/develop/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/anton-abyzov/specweave

Made for: Claude Code, Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for specweave AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/anton-abyzov/specweave/agents-md/github.svg)](https://agentmods.dev/instructions/anton-abyzov/specweave/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/anton-abyzov/specweave/agents-md"><img src="https://agentmods.dev/badge/instructions/anton-abyzov/specweave/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for specweave AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/anton-abyzov/specweave/agents-md"><img src="https://agentmods.dev/badge/instructions/anton-abyzov/specweave/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 410 This file is loaded in full into every session.
When invoked 410 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00410 $0.00410
Opus 5.5 $0.00164 $0.00164
Sonnet 5.5 $0.00082 $0.00082
Haiku 4.5 $0.00041 $0.00041

Measured 17d ago against content hash 7b60aa85c084, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

specweave 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 17d 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.

AGENTS.md · 18 lines

What it actually says

SpecWeave (this repository)

Source of the specweave npm package: a CLI plus a Claude Code plugin. The file SpecWeave writes into user projects is src/templates/AGENTS.md.template.

  • Node 22. npm ci, then npm run build. The CLI runs from dist/, so rebuild before trying node bin/specweave.js <cmd>.
  • CI runs npm run test:unit (tests/unit/**). Co-located src/**/*.test.ts files are not in CI; put new tests under tests/unit/.
  • skills/sw-* is the one skill source; npm run generate:skills writes plugins/specweave/skills/. Never edit the copies.
  • After adding or renaming a command or option: node scripts/completions/generate.mjs.
  • init asks nothing and never runs Git; it refuses the home folder and the system temp folder itself (a mktemp -d folder works).
  • Default branch is develop; PRs target it. Feature PRs merge with gh pr merge --squash --admin. Push over HTTPS.
  • Release: bash scripts/release/release.sh patch|minor|major|X.Y.Z (6 to 8 minutes; run it in the background).
  • Increment state lives only in ledger.jsonl; never write derived state back into markdown.
  • Hooks stay fast and offline: no network, no Git in SessionStart, and a hook error never blocks the user's tool.
  • Changing an increment's status never calls a tracker; only specweave sync push does.
  • src/core/workspace/ owns planning context and checkout adoption: reuse it, never scan parent directories, never merge checkouts because their remotes match.
  • Files stay under 1,500 lines.
  • Release internals, what CI proves and the workspace-adoption checks: scripts/release/README.md.
Changes

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.

  1. 17d ago Changed · +12 tokens per session 7b60aa85c084
  2. 20d ago Changed · -38 lines · -1,113 tokens per session 278bb8c9d20e
  3. 1mo ago Changed · +2 lines · +249 tokens per session 8054e9aae5b4
  4. 1mo ago Changed · +10 lines · +168 tokens per session f0e72812297c
  5. 1mo ago Changed · +1 lines · +86 tokens per session 471430c637b1
  6. 1mo ago Changed · +2 lines · +89 tokens per session 4d1908ed44bc
  7. 2mo ago Changed · +1 lines · +118 tokens per session cf573627e0cf
  8. 2mo ago Changed · -385 lines · -3,149 tokens per session 5b894fd24e43
  9. 2mo ago Changed · -22 lines · -100 tokens per session 7ce1a77077c1
  10. 3mo ago First seen · 447 lines · 4,050 tokens per session scan A c6301f38334e

Subscribe to this mod's changes

specweave AGENTS.md is an instructions file published in the GitHub repository anton-abyzov/specweave (180 stars, last pushed today), licensed MIT. It adds 410 tokens to every session, about $0.0016 per session on Opus 5.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.

Related

specweave AGENTS.md compared with instructions from other repositories

specweave AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
specweave AGENTS.mdanton-abyzov/specweaveInstructions file180todayMITA410Claude Code, Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,951Codex, OpenCode
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file291ktodayMITA4,396Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,303GitHub Copilot