turbo / codex
AGENTS.md405 starsChanged 57 days agoMITView on GitHub
This directory is the Codex edition of Turbo. The root AGENTS.md covers project-wide context; this file adds edition-specific rules.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 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 repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- claude/AGENTS.mdAGENTS.md
- assets/CLAUDE.mdCLAUDE.md
- claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- codex/CLAUDE.mdCLAUDE.md
- apply-turbo-handoffsSkill
The file
We split this AGENTS.md into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
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
- Very specific: line 5
Read SKILL-CONVENTIONS.md before editing any skill or doc in this tree — it has the prescriptive rules.
- Very specific: line 6
Use Codex-native vocabulary and tool contracts.
≈ “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.
Files
Codex Edition
This directory is the Codex edition of Turbo. The root AGENTS.md covers project-wide context; this file adds edition-specific rules.
- Read
SKILL-CONVENTIONS.mdbefore editing any skill or doc in this tree — it has the prescriptive rules. Harness facts live inskills/create-skill/references/harness.md. - Use Codex-native vocabulary and tool contracts. Do not introduce Claude Code control primitives such as
TaskCreate,TaskList,AskUserQuestion, or Claude Agent tool instructions except inside explicit mapping docs. - Install/update paths point at
codex/skills/(source) and~/.agents/skills/(user-scope install location per Codex'score-skillsloader). $peer-reviewis the stable abstraction; in this edition it delegates to Claude through$claude-print.- Claude-specific changes belong under
../claude/, not here. - When changing a skill, convention, addition, or setup/update/migration file here, mirror the change to the parallel file in
../claude/. Translate vocabulary via../claude/docs/harness-vocabulary.md. The two editions track each other behaviorally; vocabulary differs but principles stay aligned. Drift between editions is the most common failure mode. A capability one harness lacks is not drift: mirror the principle, never this harness's ceiling. When a rule exists to work around a constraint only Codex has, the Claude sibling keeps the unconstrained form and the difference is recorded as an intentional divergence below. Narrowing a Claude gate, option set, or loop to match a Codex limit costs a real behavior there and does not count as alignment. - After mirroring, run
$claude-printto have Claude review the Claude sibling against../claude/SKILL-CONVENTIONS.mdand../claude/CLAUDE.md. Instruct it to read those conventions and the changed files and report findings directly, the way$create-skillreviews a skill, without invoking/review-codeor any other skill. Review skills carry user-input gates that a non-interactive run drops, stalling it. Independent cross-edition eyes catch vocabulary leaks and behavioral drift the same-edition reviewer cannot see. Treat findings the same as a same-edition review (evaluate, apply). - Intentional divergence — crash retry:
/codex-execin the Claude edition retries once when a run dies producing no output.$claude-printhas no such rule. The evidence is codex-process-specific, and$claude-printStep 3 polls a shell session rather than observing a process, so a retry trigger there would license the premature give-up that Step 3 exists to prevent. Add one only if aclaude -pcrash-without-output is actually observed. - Intentional divergence — plan continuation: child skills here restate a parent workflow's remaining steps in their own
update_plancall and close with a plainupdate_planline, where the Claude edition callsTaskList.update_planis write-only and replaces the whole list, so a child that lists only its own steps erases the parent's and nothing can read them back;TaskListretrieves real stored state, so the Claude form has neither problem. Do not "resync" these to theTaskListphrasing when mirroring. - Intentional divergence — consultation option budget:
request_user_inputallows 3 options per question while the Claude edition'sAskUserQuestionallows 4. Where a gate's concrete choices already fill the budget, this edition presents the consultation option in place of whichever option fits least and gives the displaced option an explicit freeform path in the step that consumes it; the Claude edition simply adds a fourth option.$apply-findings,$draft-plan,$discuss-change,$resolve-pr-comments,$create-project-skills,$simplify-code, and$assess-technical-debtdiffer from their Claude siblings for this reason. Both editions displace at$update-dependencies, whose strategies already fill either budget. Do not "resync" these to the Claude form when mirroring. - Intentional divergence — loop autonomy:
$polish-codeand$refine-planrun their re-run loops to natural convergence, without the iteration hard cap, the skip/continuerequest_user_inputgates, or the handoff-then-compact gate on a low-context signal that the Claude edition keeps;skills/create-skill/references/workflows.mdandskills/create-skill/references/tools.mdteach the autonomous form to match. This is deliberate —request_user_inputdoes not reliably reach the user in Codex's non-interactive modes, so these loops rely on their own convergence signal instead.$implementStep 7 omits, for the same reason, the handoff-then-compact gate its Claude sibling carries ahead of QA. Do not "resync" them to the capped/gated Claude form when mirroring. - Intentional divergence — gate fallback:
$smoke-test,$exploratory-test, and$investigatewrite nothing and report the approval as unresolved when their external-write gates cannot reach the user. The Claude sibling has no such rule:AskUserQuestionalways reaches the user from the main conversation, while Codex dropsrequest_user_inputin non-interactive modes, and those gates are the only thing standing between a request and an unapproved write to a shared system. Do not mirror this rule into../claude/, and do not strip it here when resyncing. - Intentional divergence — goal, ledger, and workflow-state anchoring:
$polish-codeand$refine-plancarry a Loop State section (.turbo/loops/<slug>.mdledgers), and$implement,$implement-plan,$finalize,$quick-finalize, and$turboplancreate goals viacreate_goaland maintain one pipeline checklist per goal at.turbo/workflows/<slug>.md, mirroring everyupdate_plancall into it. The Claude siblings have none of this: Codex compaction dropsupdate_planstate and loop history, while a goal's objective is re-injected every turn from storage; Claude Code task state survives in its harness and its loops keep iteration caps andAskUserQuestiongates. For the same reason,$previewStep 5,$prototypeStep 6,$discuss-changeStep 5, and$draft-planStep 8 end a goal continuation turn that carries no reply from the user without calling any tool, since a continuation turn with no tool call suppresses the next one; the Claude siblings halt without it. Do not mirror the goal, ledger, workflow-state, or continuation-guard steps into../claude/, and do not strip them here when resyncing. - Intentional divergence — plan read projection:
$implement-planStep 2 reads every file the plan references without the Claude edition's projection of that read's share of the context window, the question it asks above 25%, or the subagent answer its Step 3 passes to/implement.$implementStep 3 likewise omits the path that answer selects there, which hands each Implementation Step to a fresh sub-agent. The projection needs a context reading that Codex does not expose, and that question is what leads to the path. Do not mirror either into this edition when resyncing. - Intentional divergence — default-branch commit:
$commit-stagedStep 2 and$shipStep 5 omit the Claude edition's statement that the current branch is kept and committed on, including when it is the default branch. That sentence counteracts a Claude Code system-prompt rule ("If on the default branch, branch first"); Codex has no equivalent, so it would be inert here. Do not mirror it into this edition when resyncing. - Intentional divergence — shared auto memory: Setup writes the global
codex.sharedClaudeAutoMemory = truecontract only after validating the shared Claude Code memory integration, and$self-improvetrusts that saved value for every project while resolving the source path instead of repeating setup or project-readiness checks; otherwise it uses a harness-approved memory update target or skips Auto memory. The Claude sibling writes the auto-memory directory its own harness exposes directly. Keep imported Codex extension resources read-only, preserve the Codex preference and discovery branch during resyncing, and do not add them to the Claude sibling. - Intentional divergence — out-of-checkout writes:
$note-improvementStep 3 leaves an append into another repo unqualified, as do$create-handoffStep 3 and$implement-planStep 4 their writes to the main checkout. The Claude siblings route them through the Edit or Write tool, which its Bash sandbox does not gate;apply_patchruns under the same sandbox policy as shell commands here, so it offers no equivalent escape, andSKILL-CONVENTIONS.mdbars a skill from requesting a wider sandbox for routine work. Whether a denied cross-repo append fails silently here, as it does under Claude Code, and whether a main-checkout write is refused from inside a linked worktree are unverified; establish that before adding a rule. Do not mirror the Claude tool guidance into this edition, nor the refuse-and-print fallback that depends on it, which covers a write to the main checkout refused from inside a linked worktree. The worktree-aware repo-root resolution in$note-improvementand$create-handoffStep 1 carries no such dependency and is mirrored.
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.

