agentleFS
DongDuong2001DongDuong2001/pudo-code-system/codex/AGENTS.md

pudo-code-system / codex

AGENTS.md5 starsChanged 6 months agoMITView on GitHub

Template: copy this file to your project repository root as AGENTS.md. Default workflow: Plan -> Understand -> Develop -> Optimize (PUDO). Use the smallest workflow that safely solves the task. Default limit before first patch: - Inspect up to 5 relevant files. - Expand only when blocked by missing context. Use the cheapest sufficient verification. If checks are skipped, state the reason briefly. Use this format by default: Changed: - ... Verified: - ... Notes: - Only assumptions, risks, skipped…

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

25 rules. About 0 are common, 23 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈23

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Default workflow: Plan -> Understand -> Develop -> Optimize (PUDO).

    line 5
  2. Distinctive:

    Keep responses concise by default.

    line 9
  3. Distinctive:

    Avoid dumping large file contents.

    line 10
  4. Very specific:

    Prefer targeted search (rg) and small file slices over broad scans.

    line 11
  5. Distinctive:

    Use the smallest workflow that safely solves the task.

    line 15
  6. Distinctive:

    Search first, read second.

    line 25
  7. Very specific:

    Prefer rg, file tree, and targeted snippets over opening whole files.

    line 26
  8. Distinctive:

    Read only files needed for the current task.

    line 27
  9. Distinctive:

    Stop expanding context once the implementation path is clear.

    line 28
  10. Distinctive:

    Avoid dumping full file contents unless replacing the whole file.

    line 29
  11. Distinctive:

    Default limit before first patch:

    line 31
  12. Distinctive:

    Do not rewrite unrelated files.

    line 38
  13. Distinctive:

    Do not reformat files unless formatting is the task.

    line 39
  14. Distinctive:

    Do not add dependencies without explicit justification.

    line 40
  15. Distinctive:

    Do not change public contracts unless required.

    line 41
  16. Distinctive:

    If the plan becomes wrong, stop and re-plan briefly.

    line 42
  17. Distinctive:

    Use the cheapest sufficient verification.

    line 46
  18. Distinctive:

    If checks are skipped, state the reason briefly.

    line 52
  19. Distinctive:

    Use this format by default:

    line 56
  20. Distinctive:

    Only assumptions, risks, skipped checks, or follow-ups.

    line 65
  21. Distinctive:

    Ask before destructive, high-risk, or ambiguous changes.

    line 70
  22. Distinctive:

    Read the relevant files before editing.

    line 74
  23. Distinctive:

    Add or update tests when the change is risky or user-facing.

    line 80
  24. Distinctive:

    If the plan fails, stop and re-plan instead of forcing it.

    line 81
  25. Distinctive:

    Run the most relevant available checks, or explain why they were skipped.

    line 86

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Codex AGENTS.md (PUDO, Lean)

Template: copy this file to your project repository root as AGENTS.md.

Default workflow: Plan -> Understand -> Develop -> Optimize (PUDO).

Token-Efficient Defaults

  • Keep responses concise by default.
  • Avoid dumping large file contents; summarize and reference paths.
  • Prefer targeted search (rg) and small file slices over broad scans.

Token and Time Budget

Use the smallest workflow that safely solves the task.

Task Modes

  • Micro: typos, one-line fixes, small docs/config edits. Skip full PUDO. Inspect only directly relevant files. Run the cheapest relevant check.
  • Standard: normal features, bugs, and refactors. Use compact PUDO: brief plan, targeted understanding, small patch, relevant verification.
  • Critical: auth, payments, database, migrations, security, public APIs, data loss risk. Use full PUDO with assumptions, edge cases, tests, rollback notes, and quality gate status.

Context Budget

  • Search first, read second.
  • Prefer rg, file tree, and targeted snippets over opening whole files.
  • Read only files needed for the current task.
  • Stop expanding context once the implementation path is clear.
  • Avoid dumping full file contents unless replacing the whole file.

Default limit before first patch:

  • Inspect up to 5 relevant files.
  • Expand only when blocked by missing context.

Patch Discipline

  • Make the smallest patch that satisfies the task.
  • Do not rewrite unrelated files.
  • Do not reformat files unless formatting is the task.
  • Do not add dependencies without explicit justification.
  • Do not change public contracts unless required.
  • If the plan becomes wrong, stop and re-plan briefly.

Verification Tiers

Use the cheapest sufficient verification.

  • Tier 1: format, lint, typecheck, or targeted syntax check.
  • Tier 2: targeted tests for changed modules.
  • Tier 3: full test/build only for critical, cross-cutting, release, or risky changes.

If checks are skipped, state the reason briefly.

Final Response Budget

Use this format by default:

Changed:

  • ...

Verified:

  • ...

Notes:

  • Only assumptions, risks, skipped checks, or follow-ups.

Plan

  • For non-trivial tasks, propose a short plan with scope, constraints, and success criteria.
  • Ask before destructive, high-risk, or ambiguous changes.

Understand

  • Read the relevant files before editing.
  • Match existing patterns, conventions, and architecture.

Develop

  • Make small, reviewable patches.
  • Add or update tests when the change is risky or user-facing.
  • If the plan fails, stop and re-plan instead of forcing it.

Optimize

  • Self-review for correctness, readability, and maintainability.
  • Run the most relevant available checks, or explain why they were skipped.
  • Summarize what changed and how it was verified.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.