pdd AGENTS.md

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

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/promptdriven/pdd/agents-md
Clone the repo
git clone --depth 1 https://github.com/promptdriven/pdd

Made for: Codex, OpenCode.

Per session 604 This file is loaded in full into every session.
When invoked 604 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.00604 $0.00604
Opus 5 $0.00302 $0.00302
Sonnet 5 $0.00121 $0.00121
Haiku 4.5 $0.00060 $0.00060

Measured 2d ago against content hash 01a432340a83, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

AGENTS.md · 25 lines

How it starts

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

Repository Guidelines

Project Structure & Module Organization

Core CLI logic lives in pdd/, where each module aligns with a prompt template in prompts/ (for example, pdd/code_generator.py pairs with prompts/code_generator_python.prompt). Generated examples drop into context/, CSV data into data/, and packaged artifacts into dist/. Public examples live under examples/, and central documentation, diagrams, and onboarding notes reside in docs/.

Build, Test, and Development Commands

Activate the Conda environment once per session with conda activate pdd; all Makefile targets assume interpreter and deps from that env.

  • make test runs the staging pytest suite defined in tests/.
  • make coverage executes pytest with coverage; review the report before large merges.
  • make regression or make sync-regression triggers the longer regression harnesses (optionally pass TEST_NUM=42).
  • make lint wraps pylint checks; fix diagnostics instead of suppressing them.
  • make build and make install create and install the CLI wheel locally for smoke checks.

Coding Style & Naming Conventions

Use Python 3.12+, four-space indentation, and type annotations for public functions. Match module and file names to their prompt identifiers (snake_case), keep classes in PascalCase, and reserve UPPER_SNAKE_CASE for constants. Favor small, composable functions with docstrings summarizing side effects. Run make lint or pylint pdd/<module>.py before submitting to catch style regressions.

Testing Guidelines

All automated tests live in tests/test_*.py and follow the pytest discovery rules pinned in pytest.ini. Name new tests test_<module>_<behavior> and colocate fixtures in the same file unless shared broadly. Use pytest -k sync_main for targeted runs while iterating, then make coverage to confirm branch coverage holds. Regression shells (tests/regression.sh, tests/sync_regression.sh) expect API access—flag them as real with the provided marker when applicable.

Read the full file on GitHub · 25 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. 2d 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 (861 stars, last pushed 8d ago), licensed MIT. It adds 604 tokens to every session, about $0.0030 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.