spec-driven-tdd AGENTS.md

spec-driven-tdd AGENTS.md is an instructions file for Codex, OpenCode from strelov1/spec-driven-tdd. It costs 121 tokens per session, scanned A, original, MIT.

A set of repository instructions for changing software from a written specification, using TDD, which means writing a failing test before the code that makes it pass.

In plain words
What is it for?
It is for OpenSpec changes: plan them, work in a separate worktree, implement each task with TDD, simplify and review the result, then finish and archive it.
Why use it?
It gives developers and agents a fixed process for planning, isolating, testing, reviewing, and archiving changes.

Instructions file for CodexOpenCode

Install

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.

agentmods
npx agentmods add instructions/strelov1/spec-driven-tdd/agents-md
Clone the repo
git clone --depth 1 https://github.com/strelov1/spec-driven-tdd

Made for: 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 spec-driven-tdd AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/strelov1/spec-driven-tdd/agents-md.svg)](https://agentmods.dev/instructions/strelov1/spec-driven-tdd/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/strelov1/spec-driven-tdd/agents-md"><img src="https://agentmods.dev/badge/instructions/strelov1/spec-driven-tdd/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 121 This file is loaded in full into every session.
When invoked 121 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00121 $0.00121
Opus 5 $0.00060 $0.00060
Sonnet 5 $0.00024 $0.00024
Haiku 4.5 $0.00012 $0.00012

Measured 4d ago against content hash 7e6bccad6e40, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

spec-driven-tdd 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 4d 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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

AGENTS.md · 12 lines

What it actually says

spec-driven-tdd

This repo is a skill-pack. When implementing an OpenSpec change, invoke the spec-driven-tdd skill and follow its lifecycle: plan in OpenSpec, isolate in a worktree, implement each task via TDD → simplify → review, then finish + archive.

See skills/spec-driven-tdd/SKILL.md for the full workflow and docs/dependencies.md for what must be installed.

Keep responses focused, brief, and concise. Spend most of the response on the outcome, not on narrating steps already taken.

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. 4d ago First seen · 12 lines · 121 tokens per session scan A 7e6bccad6e40

Subscribe to this mod's changes

spec-driven-tdd AGENTS.md is an instructions file published in the GitHub repository strelov1/spec-driven-tdd (10 stars, last pushed 27d ago), licensed MIT. It adds 121 tokens to every session, about $0.0006 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-31.

Related

Other instructions, from other repositories

wallfacer CLAUDE.md

Instructions for changkun/wallfacer: If you didn't add a test, you didn't fix a bug. Every bug fix must include a reproducible test that fails without the fix and passes with it. You commit frequently, one small scope diff at a time. Push to main once a full batch of work is complete and verified. Leftover must be…

changkun/wallfacer · 133 tokens

arc AGENTS.md

AGENTS.md instructions for howells/arc, covering arc, shape, gotchas, editing constraints and search order.

howells/arc · 1,113 tokens

mcp-repo-onboarding AGENTS.md

Instructions for rogermt/mcp-repo-onboarding, covering agents.md — agent & copilot instructions, current status, output verification, project identity and ⚠️ critical: tdd required.

rogermt/mcp-repo-onboarding · 2,056 tokens

arxiv-agent-mcp AGENTS.md

AGENTS.md instructions for tbaraniuk/arxiv-agent-mcp, covering agents.md, roles, test-writer, implementer and per-task loop.

tbaraniuk/arxiv-agent-mcp · 451 tokens

think CLAUDE.md

Instructions for matiasvillaverde/think, covering claude.md, quick reference, hierarchical documentation, development philosophy and test-driven development (tdd).

matiasvillaverde/think · 1,689 tokens

opencode-copilot-instructions AGENTS.md

AGENTS.md instructions for ekroon/opencode-copilot-instructions, covering agent instructions, orchestration pattern, 1. always orchestrate (unless being orchestrated), 2. test-driven development (tdd) and tdd workflow for each module.

ekroon/opencode-copilot-instructions · 1,175 tokens