ai-development-patterns: Instructions file for Codex

AGENTS.md

ai-development-patterns AGENTS.md is an instructions file for Codex, OpenCode from PaulDuvall/ai-development-patterns. It costs 751 tokens per session, scanned A, original, MIT.

A set of coding-agent instructions for a repository of software development patterns, including rules for tracking work in an append-only JSON Lines task file. JSON Lines stores one JSON record per line.

In plain words
What is it for?
Use it when evaluating patterns, tracking implementation work, adding discovered tasks, or completing a development session.
Why use it?
It explains how to find current tasks and close them without misreading older task records or editing project history.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions subagents; names the TodoWrite tool; mentions Codex.

This is PaulDuvall/ai-development-patterns's own configuration. It tells Codex and OpenCode how to work on ai-development-patterns 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 ai-development-patterns configures →

Reuse

Borrowing it

Nothing to install: this file belongs to PaulDuvall/ai-development-patterns. 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/PaulDuvall/ai-development-patterns/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/PaulDuvall/ai-development-patterns

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 ai-development-patterns AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/paulduvall/ai-development-patterns/agents-md/github.svg)](https://agentmods.dev/instructions/paulduvall/ai-development-patterns/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/paulduvall/ai-development-patterns/agents-md"><img src="https://agentmods.dev/badge/instructions/paulduvall/ai-development-patterns/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 ai-development-patterns AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/paulduvall/ai-development-patterns/agents-md"><img src="https://agentmods.dev/badge/instructions/paulduvall/ai-development-patterns/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 751 This file is loaded in full into every session.
When invoked 751 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.00751 $0.00751
Opus 5.5 $0.00300 $0.00300
Sonnet 5.5 $0.00150 $0.00150
Haiku 4.5 $0.00075 $0.00075

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

Security

Grade A, and why

ai-development-patterns 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 14d 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 · 56 lines

How it starts

The opening of the file, as written. The whole thing — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent Instructions

Task Tracking

Tasks live in .tasks/backlog.jsonl — an append-only JSONL file, one task per line, git-tracked. There is no daemon and no database: the file is the record and git is the history.

Do NOT use TodoWrite, TaskCreate, markdown TODO lists, or bd/beads — this repo migrated off beads on 2026-08-17.

A task's state is its LAST line. The file is append-only, so grep '"status": *"open"' also matches tasks that were later closed, over-reporting the open set. Always fold last-line-wins:

python3 -c "import json;last={};[last.__setitem__(t['id'],t) for t in map(json.loads,filter(str.strip,open('.tasks/backlog.jsonl')))];print('\n'.join(f\"{i}  {t['title'][:68]}\" for i,t in last.items() if t['status']=='open'))"

Close a task by APPENDING a new line with status set to closed; never edit or delete an existing line. Work discovered while doing another task gets its own line with discovered_from set to the parent id.

Schema: {id, title, status, blocks[], depends_on[], spec_ref, created, priority, description, discovered_from?} — status is open or closed; priority is 1 (most urgent) to 4; a task is ready when every id in depends_on is closed. Issue ids keep their original beads form so existing commit messages still resolve.

The full beads history is archived verbatim at .tasks/beads-archive.jsonl.

Pattern Adoption Evaluation

Run model-backed pattern-adoption research only through the repository-local $evaluate-pattern-adoption skill in an interactive, signed-in local evaluator client (Codex today). Never run it in GitHub Actions, expose evaluator API keys to the repository, or bypass either the exact plan approval or the separate draft-PR publication approval. Use no more than three read-only research subagents at once, keep the root task as the sole writer, and use a fresh read-only verifier for every batch. GitHub Actions is limited to deterministic validation and read-only link/content checks for this capability.

Read the full file on GitHub · 56 lines

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. 14d ago Changed · +1 lines · +4 tokens per session f51d9266cbc4
  2. 2mo ago First seen · 55 lines · 747 tokens per session scan A e6b418a447b9

Subscribe to this mod's changes

ai-development-patterns AGENTS.md is an instructions file published in the GitHub repository PaulDuvall/ai-development-patterns (673 stars, last pushed 4d ago), licensed MIT. It adds 751 tokens to every session, about $0.0030 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

ai-development-patterns AGENTS.md compared with instructions from other repositories

ai-development-patterns AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ai-development-patterns AGENTS.mdPaulDuvall/ai-development-patternsInstructions file6734d agoMITA751Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode