pdd: Instructions file for Codex

AGENTS.md

pdd AGENTS.md is an instructions file for Codex, OpenCode from promptdriven/pdd. It costs 1,571 tokens per session, scanned A, original, MIT.

Repository instructions for PDD, a Python command-line project that generates code and examples from prompt templates.

In plain words
What is it for?
Use them when adding or editing prompt-linked Python modules, running tests and regression checks, checking code quality, or building the local command-line package.
Why use it?
They explain the project layout, required Python environment, build and test commands, and coding rules so changes fit the existing workflow.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

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

Reuse

Borrowing it

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

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 pdd AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/promptdriven/pdd/agents-md"><img src="https://agentmods.dev/badge/instructions/promptdriven/pdd/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,571 This file is loaded in full into every session.
When invoked 1,571 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.01571 $0.01571
Opus 5.5 $0.00628 $0.00628
Sonnet 5.5 $0.00314 $0.00314
Haiku 4.5 $0.00157 $0.00157

Measured today against content hash 5e4108d48458, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pdd 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 today.

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 · 42 lines

How it starts

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

Working on PDD

Before you write or change a Story or a prompt, read the full Prompting guide in this conversation. Follow its method for module ownership, public behavior, what must not change, required dependencies and the edge cases that matter. A link or a Story template is not enough. If you lose the context, read the guide again before you write.

Read skills/pdd-prompting/SKILL.md for the core rules. Prompts are the source: change the prompt that owns the behavior before you change the code. Keep expected cases apart from what the code returns. Review changes to the contract with the person. Never invent their decision. skills/pdd-prompting/guide.md must stay the same as docs/prompting-guide.md, byte for byte. A test checks this, so change both together.

What this package contains:

  • Nine skills in skills/: pdd-prompting, pdd-setup, pdd-small-change, pdd-bug, pdd-feature, pdd-product, and the Autopilot skills pdd-autopilot, pdd-check and pdd-merge. People install them with npx skills add promptdriven/pdd (-g for all projects). The order is: install the skills, then the pdd-setup skill once for each repo, then the pdd command only for runs with PRs and for pdd test, pdd lint, pdd simulate and pdd approve. The pdd command does not copy skills on each command: pdd setup copies them to the user skills folders (~/.agents/skills; ~/.claude/skills, or $CLAUDE_CONFIG_DIR/skills when it is set) only when they are missing, and replaces an older copy that has the .pdd-skill.json marker. It never touches a copy without the marker, or a symlink. pdd never copies them into the person's repo. Each SKILL.md has pdd-skills: VERSION under metadata: in its frontmatter: change it with the package version. Keep each workflow skill small and its step files short. Do not repeat a rule that SKILL.md already states. Write each description so that an agent picks the skill by itself.
  • People open Codex or Claude Code as usual and call pdd-feature, pdd-bug, pdd-small-change or pdd-prompting. Call a skill with $pdd-feature in Codex or /pdd-feature in Claude Code (or ask for it by name). pdd setup and the pdd-setup skill add one short block (at most 10 lines, between <!-- pdd:start --> and <!-- pdd:end -->) to CLAUDE.md, else AGENTS.md. They never paste the guide.
  • pdd workflow run makes a worktree and a branch for an issue, opens the area chats in Herdr (session pdd) and returns at once. pdd has four jobs: start, gates, PRs and status. There is no controller process, no polling loop and no time limit.
  • feature and bug run the check and the simulation, and the person approves, before pdd opens PR 1 (prompt, Story and tests). Then the chat asks before the code area. PR 2 (code) is stacked on PR 1 while PR 1 is open. small-change makes one PR.
  • A big feature request gets a plan first: user_stories/PLAN.md, many Stories, one test file for each Story, and one Prompt tests line for each Story. status shows Stories: N of M pass.
  • Agents run the tests. A fresh subagent that did not write the code verifies it. pdd does not run tests or merge. Show the gate, then judge the person's later reply in any chat. Never approve a question, change request or earlier message. No exact phrase is needed. Record actual approval with the safe commands below. pdd records nonblank words without grading them; blank input is refused. Only explicit approve calls advance gates. Chat, steps and done never do. If a selected prompt changes, show the gate again. Terminal y/N covers the gate and its drafts once. Workflow strict mode comes from the main checkout (sourceRoot), outside the run worktree; standalone approval uses the current checkout's Git root. "strict_approvals": true in that root's pdd.json requires a person terminal. Never edit approval fields or decide expected values. See approval commands. Agents use pdd workflow done and pdd workflow ask.
  • Main agents merge only on an explicit person request. Follow RUNBOOK §2.

Read the full file on GitHub · 42 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. today Changed · +24 tokens per session 5e4108d48458
  2. 3d ago Changed · +18 lines · +233 tokens per session 6259e3815396
  3. 6d ago Changed · +35 tokens per session 2b9aeaf07e37
  4. 7d ago Changed · +24 tokens per session 4bc622fc0bf8
  5. 8d ago Changed · +31 tokens per session 3e78c54d4f58
  6. 9d ago Changed · +12 lines · +775 tokens per session de587fa53d65
  7. 10d ago Changed · -13 lines · -155 tokens per session 270314dd344e
  8. 2mo ago First seen · 25 lines · 604 tokens per session scan A 01a432340a83

Subscribe to this mod's changes

pdd AGENTS.md is an instructions file published in the GitHub repository promptdriven/pdd (931 stars, last pushed yesterday), licensed MIT. It adds 1,571 tokens to every session, about $0.0063 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

pdd AGENTS.md compared with instructions from other repositories

pdd AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pdd AGENTS.mdpromptdriven/pddInstructions file931yesterdayMITA1,571Codex, 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