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
- Distinctive: line 14
Use this file only for Codex-specific execution details.
- Distinctive: line 15
Do not duplicate shared routing, stage definitions, language defaults, or quality boundaries here unless Codex needs an explicit host-side …
- Distinctive: line 23
Follow the workflow and routing rules from root AGENTS.md.
- Very specific: line 24
Treat skills/*/SKILL.md as detailed manuals for a stage, not as the only source of behavior.
- Distinctive: line 25
When a task clearly maps to a workflow stage, you may read the corresponding skill file for more detail.
- Very specific: line 27
Use codex/config.toml and codex/agents/*.toml for stable Codex-specific behavior.
- Distinctive: line 31
When shared workflow rules change, update root AGENTS.md first.
- Distinctive: line 32
Only update this adapter when the change is truly Codex-specific.
- Very specific: line 39
Check whether the required docs/ and harness/ prerequisites exist for that stage.
- Distinctive: line 40
If prerequisites are missing, explicitly route backward to the stage that should happen first.
- Very specific: line 41
Use skills/ for details only after the stage has been chosen.
- Very specific: line 42
Prefer updating harness/state.md over keeping transient plan state only in conversation.
- Distinctive: line 44
Treat this as a fixed procedure, not a suggestion.
- Distinctive: line 48
Use the backtracking rules from root AGENTS.md.
- Very specific: line 57
if the user links a webpage, article, post, document, or authenticated product page and asks to analyze, summarize, inspect, or verify what …
- Very specific: line 58
if configured browser MCP/tooling is available, do not stop at curl, requests, raw HTML, search snippets, or mirror pages before attempting …
- Distinctive: line 60
if browser evidence still cannot be obtained, say that explicitly before continuing with fallback sources
- Distinctive: line 62
Treat this as a browse-first heuristic for URL-content analysis, not a suggestion to browse every casual link mention.
- Very specific: line 66
Use role files in codex/agents/ to support a stage, not replace the stage router from root AGENTS.md:
- Distinctive: line 84
if a conversation never explicitly authorizes delegation in a host that requires that signal, multi-agent may remain unused even when …
- Distinctive: line 85
prefer staying local when the next critical-path step is blocked on the exact result you would delegate.
- Distinctive: line 86
when the host/session allows it, Codex may auto-escalate to multi-agent based on task shape, but only after checking the conditions below …
- Distinctive: line 88
Use sub-agents only when:
- Very specific: line 99
use a dedicated worktree only for super_stack_builder tasks with disjoint write scope and an explicit cleanup plan
- Distinctive: line 103
if the host/session allows delegation and the task naturally splits into independent sidecar work, Codex should prefer using the matching …
- Distinctive: line 104
if the very next critical-path action depends on the delegated result, stay local unless a helper can finish in parallel without blocking …
- Distinctive: line 105
if write ownership is unclear or likely to overlap, stay local or delegate read-only exploration only
- Very specific: line 107
Read codex/references/multi-agent-escalation-examples.md when a concrete example will help decide whether to delegate.
- Very specific: line 113
use docs/overview/project-overview.md, docs/reference/requirements.md, docs/overview/roadmap.md, and harness/state.md for stage memory
- Very specific: line 114
use docs/reference/codebase/* when map-codebase is active
- Very specific: line 115
use root AGENTS.md and codex/AGENTS.md as the workflow contract
- Very specific: line 116
use skills/*/SKILL.md as optional stage manuals
- Distinctive: line 118
Do not let important stage state live only in transient conversation if a file is available for it.
≈ “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.
Files
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:
- Follow the workflow and routing rules from root
AGENTS.md. - Treat
skills/*/SKILL.mdas detailed manuals for a stage, not as the only source of behavior. - When a task clearly maps to a workflow stage, you may read the corresponding skill file for more detail.
- Preserve project state in
docs/ + harness/just like Claude Code. - Use
codex/config.tomlandcodex/agents/*.tomlfor 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:
- Name the current stage internally before acting.
- Check whether the required
docs/andharness/prerequisites exist for that stage. - If prerequisites are missing, explicitly route backward to the stage that should happen first.
- Use
skills/for details only after the stage has been chosen. - Prefer updating
harness/state.mdover 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-mcpwhen 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_explorerfor read-only repository or evidence investigationsuper_stack_plannerfor decomposition and sequencingsuper_stack_reviewerfor findings-first risk reviewsuper_stack_builderfor 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.tomlenablingmulti_agent = truemeans 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, andsuper_stack_reviewerstay read-only and normally do not need dedicated worktreessuper_stack_builderis the only default write-capable helper and should own an explicitly bounded file set- use a dedicated worktree only for
super_stack_buildertasks 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, andharness/state.mdfor stage memory - use
docs/reference/codebase/*whenmap-codebaseis active - use root
AGENTS.mdandcodex/AGENTS.mdas the workflow contract - use
skills/*/SKILL.mdas 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.mddefines the primary workflow codex/config.tomlprovides stable runtime policycodex/agents/*.tomlprovides stable role behaviorskills/adds deeper stage-specific instructions without being the sole dependency
That is the target model for this repository.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 28,693 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository42 other files it gives its agents.
- AGENTS.mdAGENTS.md
- claude/CLAUDE.mdCLAUDE.md
- backend-refactorSkill
- buildSkill
- discussSkill
- docSkill
- frontend-designSkill
- frontend-refactorSkill
- low-altitude-interviewerSkill
- pdfSkill
- repo-bootstrapSkill
- skill-maintenanceSkill
- tdd-executionSkill
- architecture-guardrailsSkill
- closed-loop-testingSkill
- harness-marathonSkill
- task-harnessSkill
- api-designSkill
- architecture-designSkill
- brainstormSkill
- codex-record-retrospectiveSkill
- database-designSkill
- integration-designSkill
- map-codebaseSkill
- migration-designSkill
- observability-designSkill
- planSkill
- query-optimizationSkill
- scalability-checkSkill
- service-boundary-reviewSkill
- api-change-checkSkill
- browseSkill
- bugfix-verificationSkill
- debugSkill
- incident-debugSkill
- performance-investigationSkill
- qaSkill
- reviewSkill
- security-reviewSkill
- verifySkill
- release-checkSkill
- shipSkill
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
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.

