agentleFS
gclmgclm/super-stack/codex/AGENTS.md

super-stack / codex

AGENTS.md0 starsChanged 7 months agoMITView on GitHub

This file supplements the root AGENTS.md for Codex-specific behavior. Shared workflow truth lives in: Use this file only for Codex-specific execution details. Do not duplicate shared routing, stage definitions, language defaults, or quality boundaries here unless Codex needs an explicit host-side override. For Codex, do not assume that a visible project-local SKILL.md will automatically inject its full instructions. Default behavior: In practice, this means Codex should behave as if AGENTS.md is the router and skills/ is the manual. When shared…

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

33 rules. About 0 are common, 19 are distinctive, and 14 are 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.

  • 14

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this file only for Codex-specific execution details.

    line 14
  2. Distinctive:

    Do not duplicate shared routing, stage definitions, language defaults, or quality boundaries here unless Codex needs an explicit host-side …

    line 15
  3. Distinctive:

    Follow the workflow and routing rules from root AGENTS.md.

    line 23
  4. Very specific:

    Treat skills/*/SKILL.md as detailed manuals for a stage, not as the only source of behavior.

    line 24
  5. Distinctive:

    When a task clearly maps to a workflow stage, you may read the corresponding skill file for more detail.

    line 25
  6. Very specific:

    Use codex/config.toml and codex/agents/*.toml for stable Codex-specific behavior.

    line 27
  7. Distinctive:

    When shared workflow rules change, update root AGENTS.md first.

    line 31
  8. Distinctive:

    Only update this adapter when the change is truly Codex-specific.

    line 32
  9. Very specific:

    Check whether the required docs/ and harness/ prerequisites exist for that stage.

    line 39
  10. Distinctive:

    If prerequisites are missing, explicitly route backward to the stage that should happen first.

    line 40
  11. Very specific:

    Use skills/ for details only after the stage has been chosen.

    line 41
  12. Very specific:

    Prefer updating harness/state.md over keeping transient plan state only in conversation.

    line 42
  13. Distinctive:

    Treat this as a fixed procedure, not a suggestion.

    line 44
  14. Distinctive:

    Use the backtracking rules from root AGENTS.md.

    line 48
  15. Very specific:

    if the user links a webpage, article, post, document, or authenticated product page and asks to analyze, summarize, inspect, or verify what …

    line 57
  16. Very specific:

    if configured browser MCP/tooling is available, do not stop at curl, requests, raw HTML, search snippets, or mirror pages before attempting …

    line 58
  17. Distinctive:

    if browser evidence still cannot be obtained, say that explicitly before continuing with fallback sources

    line 60
  18. Distinctive:

    Treat this as a browse-first heuristic for URL-content analysis, not a suggestion to browse every casual link mention.

    line 62
  19. Very specific:

    Use role files in codex/agents/ to support a stage, not replace the stage router from root AGENTS.md:

    line 66
  20. Distinctive:

    if a conversation never explicitly authorizes delegation in a host that requires that signal, multi-agent may remain unused even when …

    line 84
  21. Distinctive:

    prefer staying local when the next critical-path step is blocked on the exact result you would delegate.

    line 85
  22. Distinctive:

    when the host/session allows it, Codex may auto-escalate to multi-agent based on task shape, but only after checking the conditions below …

    line 86
  23. Distinctive:

    Use sub-agents only when:

    line 88
  24. Very specific:

    use a dedicated worktree only for super_stack_builder tasks with disjoint write scope and an explicit cleanup plan

    line 99
  25. Distinctive:

    if the host/session allows delegation and the task naturally splits into independent sidecar work, Codex should prefer using the matching …

    line 103
  26. Distinctive:

    if the very next critical-path action depends on the delegated result, stay local unless a helper can finish in parallel without blocking …

    line 104
  27. Distinctive:

    if write ownership is unclear or likely to overlap, stay local or delegate read-only exploration only

    line 105
  28. Very specific:

    Read codex/references/multi-agent-escalation-examples.md when a concrete example will help decide whether to delegate.

    line 107
  29. Very specific:

    use docs/overview/project-overview.md, docs/reference/requirements.md, docs/overview/roadmap.md, and harness/state.md for stage memory

    line 113
  30. Very specific:

    use docs/reference/codebase/* when map-codebase is active

    line 114
  31. Very specific:

    use root AGENTS.md and codex/AGENTS.md as the workflow contract

    line 115
  32. Very specific:

    use skills/*/SKILL.md as optional stage manuals

    line 116
  33. Distinctive:

    Do not let important stage state live only in transient conversation if a file is available for it.

    line 118

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

This file supplements the root AGENTS.md for Codex-specific behavior.

Source of Truth

Shared workflow truth lives in:

  • root AGENTS.md
  • target-project docs/ + harness/
  • protocols/
  • skills/

Use this file only for Codex-specific execution details. Do not duplicate shared routing, stage definitions, language defaults, or quality boundaries here unless Codex needs an explicit host-side override.

Codex Operating Model

For Codex, do not assume that a visible project-local SKILL.md will automatically inject its full instructions.

Default behavior:

  1. Follow the workflow and routing rules from root AGENTS.md.
  2. Treat skills/*/SKILL.md as detailed manuals for a stage, not as the only source of behavior.
  3. When a task clearly maps to a workflow stage, you may read the corresponding skill file for more detail.
  4. Preserve project state in docs/ + harness/ just like Claude Code.
  5. Use codex/config.toml and codex/agents/*.toml for stable Codex-specific behavior.

In practice, this means Codex should behave as if AGENTS.md is the router and skills/ is the manual.

When shared workflow rules change, update root AGENTS.md first. Only update this adapter when the change is truly Codex-specific.

Codex Stage Procedure

For every non-trivial request:

  1. Name the current stage internally before acting.
  2. Check whether the required docs/ and harness/ prerequisites exist for that stage.
  3. If prerequisites are missing, explicitly route backward to the stage that should happen first.
  4. Use skills/ for details only after the stage has been chosen.
  5. Prefer updating harness/state.md over keeping transient plan state only in conversation.

Treat this as a fixed procedure, not a suggestion.

Codex Backtracking Rules

Use the backtracking rules from root AGENTS.md. State the backtrack in plain language so the user can follow the workflow change.

Codex Browser Escalation

For Codex, prefer browse early when a request includes a concrete URL and the answer depends on the page's real content.

Use this heuristic:

  • if the user links a webpage, article, post, document, or authenticated product page and asks to analyze, summarize, inspect, or verify what is on that page, prefer browse
  • if configured browser MCP/tooling is available, do not stop at curl, requests, raw HTML, search snippets, or mirror pages before attempting original-page browser evidence
  • in this repo, prefer the configured Codex browser MCP such as chrome-devtools-mcp when present
  • if browser evidence still cannot be obtained, say that explicitly before continuing with fallback sources

Treat this as a browse-first heuristic for URL-content analysis, not a suggestion to browse every casual link mention.

Codex Role Escalation

Use role files in codex/agents/ to support a stage, not replace the stage router from root AGENTS.md:

  • super_stack_explorer for read-only repository or evidence investigation
  • super_stack_planner for decomposition and sequencing
  • super_stack_reviewer for findings-first risk review
  • super_stack_builder for bounded implementation with explicit verification

Recommended triggers:

  • stage blocked by repository uncertainty -> super_stack_explorer
  • stage blocked by planning ambiguity -> super_stack_planner
  • stage near merge or risky change set -> super_stack_reviewer
  • stage has a bounded implementation slice with clear file ownership -> super_stack_builder

Important:

  • codex/config.toml enabling multi_agent = true means the host can support multi-agent orchestration, not that Codex must auto-delegate on every suitable task.
  • role escalation is still conditional on host policy, current session permissions, and an explicit decision that delegation will help more than local execution.
  • if a conversation never explicitly authorizes delegation in a host that requires that signal, multi-agent may remain unused even when config and role files are correct.
  • prefer staying local when the next critical-path step is blocked on the exact result you would delegate.
  • when the host/session allows it, Codex may auto-escalate to multi-agent based on task shape, but only after checking the conditions below instead of delegating by default.

Use sub-agents only when:

  • the work can run in parallel without overlapping writes
  • the subtask is concrete and bounded
  • the main thread can keep making progress while the helper runs
  • the coordination cost is lower than the expected speed or quality gain

Role discipline:

  • super_stack_explorer, super_stack_planner, and super_stack_reviewer stay read-only and normally do not need dedicated worktrees
  • super_stack_builder is the only default write-capable helper and should own an explicitly bounded file set
  • use a dedicated worktree only for super_stack_builder tasks with disjoint write scope and an explicit cleanup plan

Auto-escalation heuristic:

  • if the host/session allows delegation and the task naturally splits into independent sidecar work, Codex should prefer using the matching helper instead of staying fully local
  • if the very next critical-path action depends on the delegated result, stay local unless a helper can finish in parallel without blocking the main thread
  • if write ownership is unclear or likely to overlap, stay local or delegate read-only exploration only

Read codex/references/multi-agent-escalation-examples.md when a concrete example will help decide whether to delegate.

Codex File Discipline

For Codex, prefer these durable artifacts:

  • use docs/overview/project-overview.md, docs/reference/requirements.md, docs/overview/roadmap.md, and harness/state.md for stage memory
  • use docs/reference/codebase/* when map-codebase is active
  • use root AGENTS.md and codex/AGENTS.md as the workflow contract
  • use skills/*/SKILL.md as optional stage manuals

Do not let important stage state live only in transient conversation if a file is available for it.

What Counts As Success

Codex is correctly adapted when:

  • root AGENTS.md defines the primary workflow
  • codex/config.toml provides stable runtime policy
  • codex/agents/*.toml provides stable role behavior
  • skills/ adds deeper stage-specific instructions without being the sole dependency

That is the target model for this repository.

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.