agentleFS
ArcanEdge-AIArcanEdge-AI/coding-agent-playbook-codex/AGENTS.md

coding-agent-playbook-codex

AGENTS.md3 starsChanged 3 months agoMITView on GitHub

This repository is a public playbook for Codex custom instructions, reference documents, skills, and custom subagent definitions. Follow the host's instruction hierarchy first. Within the same authority level, apply repository-specific guidance where it is more specific than global guidance. This repo is mostly Markdown and TOML. Before finalizing meaningful changes:

The file

Show its rules and text

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

20 rules. About 0 are common, 19 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈19

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow the host's instruction hierarchy first.

    line 5
  2. Distinctive:

    Keep the playbook useful for many teams and codebases.

    line 9
  3. Distinctive:

    Keep global guidance tool-agnostic and durable.

    line 10
  4. Distinctive:

    Keep repository-specific, machine-specific, and workflow-specific details out of global instructions.

    line 11
  5. Distinctive:

    Prefer concise, practical guidance over long theory.

    line 12
  6. Very specific:

    Keep the Codex subagent model aligned around planner, engineer, reviewer, tester, and docs.

    line 14
  7. Distinctive:

    Use subagents sparingly, only when their concrete benefit justifies context, coordination, and review costs or an independent-assistance …

    line 15
  8. Distinctive:

    Keep the default delegation structure flat: root assigns bounded work directly, and bundled helpers do not spawn descendants.

    line 17
  9. Distinctive:

    Keep one profile per bundled role under its standard name.

    line 19
  10. Distinctive:

    Do not include sensitive access material, private local paths, internal-only URLs, full thread transcripts, or long incident logs.

    line 24
  11. Distinctive:

    Do not hardcode project names, organization-specific workflows, or local machine quirks in global guidance.

    line 25
  12. Distinctive:

    Do not add instructions tied to a specific issue tracker, review tool, package manager, shell, or hosting provider unless the file is …

    line 26
  13. Distinctive:

    Use Codex terminology, paths, TOML agent schemas, model identifiers, reasoning-effort fields, and thread concepts in Codex-specific files.

    line 27
  14. Distinctive:

    Do not copy configuration paths, file names, agent formats, model identifiers, or command vocabulary from another coding-agent environment …

    line 28
  15. Distinctive:

    Prefer terms like "safety", "access control", and "sensitive access material" when public documentation does not need product-specific …

    line 29
  16. Distinctive:

    Keep templates reusable and clearly marked as templates.

    line 30
  17. Distinctive:

    Use STE-inspired clarity for instructions: direct actions, explicit actors and conditions, and consistent terms.

    line 31
  18. Distinctive:

    Treat the companion Claude Code playbook as independently maintained.

    line 32
  19. Distinctive:

    Keep Codex policy internally consistent and document Codex-specific capability assumptions where they affect behavior.

    line 55
  20. Distinctive:

    Search the final diff for paths, schemas, model names, and commands that belong to another coding-agent environment.

    line 56

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 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

Repository Coding Agent Instructions

This repository is a public playbook for Codex custom instructions, reference documents, skills, and custom subagent definitions.

Follow the host's instruction hierarchy first. Within the same authority level, apply repository-specific guidance where it is more specific than global guidance.

Repository Goals

  • Keep the playbook useful for many teams and codebases.
  • Keep global guidance tool-agnostic and durable.
  • Keep repository-specific, machine-specific, and workflow-specific details out of global instructions.
  • Prefer concise, practical guidance over long theory.
  • Make the main agent accountable for planning, any delegation it chooses, validation, and final reporting.
  • Keep the Codex subagent model aligned around planner, engineer, reviewer, tester, and docs.
  • Use subagents sparingly, only when their concrete benefit justifies context, coordination, and review costs or an independent-assistance requirement applies.
  • Give every bundled profile an explicit approved model and reasoning default. Select actual delegated routes by task: GPT-6.1 Sol at Light, Medium, or High, or GPT-6 Astra at Extra High. Light uses low in configuration. Preserve the main agent's user-selected configuration.
  • Keep the default delegation structure flat: root assigns bounded work directly, and bundled helpers do not spawn descendants.
  • Subagent progress and result messages must preserve parent and peer settings; never attach worker model or reasoning overrides to reports.
  • Keep one profile per bundled role under its standard name. Defaults do not replace task-based selection, and profile precedence must not silently override the chosen route.
  • Separate reusable role perspectives from delegated-execution rules. Direct main-agent use preserves its configuration, authority, and ownership and does not count as independent verification.

Content Rules

  • Do not include sensitive access material, private local paths, internal-only URLs, full thread transcripts, or long incident logs.
  • Do not hardcode project names, organization-specific workflows, or local machine quirks in global guidance.
  • Do not add instructions tied to a specific issue tracker, review tool, package manager, shell, or hosting provider unless the file is explicitly an example or template.
  • Use Codex terminology, paths, TOML agent schemas, model identifiers, reasoning-effort fields, and thread concepts in Codex-specific files.
  • Do not copy configuration paths, file names, agent formats, model identifiers, or command vocabulary from another coding-agent environment into this repository.
  • Prefer terms like "safety", "access control", and "sensitive access material" when public documentation does not need product-specific terminology.
  • Keep templates reusable and clearly marked as templates.
  • Use STE-inspired clarity for instructions: direct actions, explicit actors and conditions, and consistent terms. Preserve technical identifiers, approval gates, exceptions, and required evidence. This is an authoring approach, not a claim of ASD-STE100 compliance.
  • Treat the companion Claude Code playbook as independently maintained. Do not edit it from this repository or claim current parity without separately verified evidence.

Validation

This repo is mostly Markdown and TOML. Before finalizing meaningful changes:

  • Review Markdown headings and fenced code blocks for correctness.
  • Confirm TOML files are syntactically valid when a TOML parser is available.
  • Confirm every agents/*.toml file explicitly defines model and model_reasoning_effort.
  • Confirm each of the five bundled roles has one profile under its standard name, with an explicit model/effort pair from the approved task-routing table.
  • Confirm profiles retain clear scope and stop conditions; helpers report route issues, and only the main agent may reassign within approved routes and execution authority.
  • Confirm helper-specific scope, escalation, reporting, and launch settings apply only to delegated execution; direct role use adds no mandatory sequence or separate reports.
  • Confirm reporting guidance uses team messages or normal returns and omits destination-setting overrides from any separately authorized task report.
  • Confirm each SKILL.md has YAML frontmatter with name and description.
  • Confirm local-ci-preflight retains its self-contained templates and default global route, preserves project and remote acceptance boundaries, and treats unconfigured or skipped required checks as gaps rather than passes. Retire an exact superseded standalone route only after canonical installation and source parity are verified; preserve customized or ambiguous blocks.
  • Confirm links and paths in README.md match the repository tree.
  • Confirm install docs and scripts reference the current Codex agent files; installed-profile validation checks the current managed profiles without imposing playbook routing on unrelated user agents.
  • Confirm the Python installer and thin PowerShell/Bash launchers default normal installs and updates to full mode, create a marked global section on first install, maintain the managed-file manifest, retire only unchanged formerly managed files, and preserve customized or unrelated files.
  • Confirm installer validation covers skills/worktree-lifecycle/references/worktrees.md, skills/worktree-lifecycle/references/templates/worktree-manifest.md, and every skill-local resource path.
  • Confirm the feature-branch lifecycle remains a self-contained skill, detects repository-specific branch names, preserves approval gates for remote deletion and production promotion, and is not conflated with worktree lifecycle.
  • Confirm legacy-path retirement requires dependency evidence or explicit retention requirements, separates code retirement from data disposal, preserves correctness safeguards, and does not treat uncertain dependency coverage as permission to remove behavior.
  • Confirm design guidance reviews the whole affected flow, improves existing implementations by default, and requires evidence of significant benefit before a substantial replacement.
  • Confirm retained behavioral tests are E2E only and every created unit test is temporary, regardless of purpose. No created unit test remains in a completed change; remove them and exclusively used support code once corresponding E2E coverage passes, with required assertions, failure cases, and repository gates preserved. Existing non-E2E migration stays within authorized scope; build, lint, type checking, and static validation remain valid checks.
  • Keep Codex policy internally consistent and document Codex-specific capability assumptions where they affect behavior.
  • Search the final diff for paths, schemas, model names, and commands that belong to another coding-agent environment; remove any accidental contamination before merging.

License

This repository is MIT licensed. See LICENSE. Do not change the license without an explicit maintainer decision.

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.

Reviews can't be read right now.

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.