turbo / codex
AGENTS.md427 starsChanged 22 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 code style.
Of the AGENTS.md files we read, the 35,337 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 45,344 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/write-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. - This directory is the root of the
turboCodex plugin: skills underskills/, the Codex hooks underhooks/. Users install it from the marketplace at../.agents/plugins/. Codex copies it into a versioned cache, so a skill resolves its own directory from theSKILL.mdit was loaded from. $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, plugin hook, or setup/update file here, mirror the change to the parallel file in
../claude/, where the plugin hook's counterpart is the plugin mod. 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$write-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 merge their steps into the checkpoint and mirror the full list with
update_plan, 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-feedback,$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/write-skill/references/workflows.mdandskills/write-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.$investigatealso stops and reports the way forward as unresolved when its reproduction gate cannot reach the user.$polish-codeand$refine-planstart a fresh ledger and delete nothing when their discovery question cannot reach the user, and$polish-codehalts with its ledger in place, reporting the differing paths, when a pending smoke-test baseline or a failed tree restore needs a decision it cannot ask for. The Claude siblings have no such rules:AskUserQuestionalways reaches the user from the main conversation, while Codex dropsrequest_user_inputin non-interactive modes. The external-write gates are the only thing standing between a request and an unapproved write to a shared system, and the ledger fallbacks keep an unanswered question from discarding loop state or staging what a sub-agent left behind. Do not mirror these rules into../claude/, and do not strip them here when resyncing. - Intentional divergence — workflow recovery: Codex keeps tracked checklists, including ad hoc plans, in a checkpoint keyed to the chat. The
SessionStarthook points Codex to it after compaction or resume. TheUserPromptSubmithook surfaces it on ordinary replies.ADDITIONS.mdgoverns its lifecycle across nested skills and user gates. Claude Code retrieves its task state from its harness. Both editions retain their loop ledgers and pending smoke-test reconciliation. - 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$ship-togetherStep 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$route-lessonsand$self-improvetrust that saved value for every project while resolving the source path instead of repeating setup or project-readiness checks. Otherwise$route-lessonswrites to a harness-approved memory update target or skips Auto memory, and$self-improvetakes its past-session cutoff from that target or sweeps the whole history. The Claude/route-lessonswrites the auto-memory directory its 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 — memory consolidation: the Claude edition's
/dreamconsolidates the Claude Code auto-memory directory in place, routes its notes through/route-lessonsto move what belongs in the repo, and then offers to clean up.turbo/. This edition therefore has no path that moves memory into the repo. It reaches that directory only as the shared sourcecodex.sharedClaudeAutoMemoryenables, which a run of the Claude skill already covers, and its own consolidated memory files stay read-only. The.turbo/cleanup stays with the memory pass as one skill. Do not mirror it into this edition when resyncing. - Intentional divergence — out-of-checkout writes:
$backlogStep 3,$route-lessonsStep 6, and$draft-planStep 6 leave their writes into another repo unqualified (an append, a turbo lesson handoff, and a gated plan), as do$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 fallbacks that depend on it for a write to the main checkout refused from inside a linked worktree: printing the content or the edit, and writing the handoff to the session scratchpad. Do not mirror the Claude/implement-planStep 4 offer to leave the worktree first either, which depends on Claude Code's ExitWorktree tool. The worktree-aware repo-root resolution in$backlogand$handoffStep 1 carries no such dependency and is mirrored. - Intentional divergence — open items: the Claude edition's plugin mod keeps a list of open items above the prompt, through a tool, a rule it injects, and a context block, and
/resolve-open-itemsand the open-itemslistcall in/handoffStep 2 build on it. This edition has no mod and no band above the prompt to list items in. Do not mirror any of them into this edition when resyncing. - Intentional divergence — parallel backlog split: the Claude edition's
/implement-backlogcan hand parallel working sets to extra sessions it briefs by message, each working in a worktree of its own unless its lane only plans, and so has one more step than$implement-backlog.codex queuedelivers a message to an open session, but under the sandbox it fails to start its app server or to reach the daemon socket (probed on codex-cli 0.167.1), andSKILL-CONVENTIONS.mdbars a skill from requesting a wider sandbox for routine work. Do not mirror the split into this edition when resyncing; re-run the probe first. - Intentional divergence — plan hand-off to a live session: the Claude edition's
/draft-planhands later work in another repository to a live session working there, by message, and writes no gated plan file there; that session drafts its own plan.$draft-planStep 6 always writes the gated plan file, sincecodex queuefails under the sandbox for the reason the parallel backlog split entry gives. Do not mirror the hand-off into this edition when resyncing; re-run that probe first. - Intentional divergence — PR verdict record: the Claude edition's
/resolve-pr-feedbackStep 7 records every item's outcome, skip reasoning included, in a task description once Steps 2 to 6 settle, and its Step 8 adds downgrades there, so its later steps read the record back after a compaction.$resolve-pr-feedbackomits both: its checkpoint tracks workflow steps and blockers. It does not require a separate verdict description for every review item. Do not mirror it into this edition when resyncing. - Intentional divergence — PR landing: the Claude edition's
/land-proffers handoff-then-compact on a low-context reading before resolving a round's feedback, so it has one more step than$land-pr. It also leaves a merged pull request's worktree with its ExitWorktree tool before removing it and deleting the local branch. This edition has no context reading and presents the commands that finish a worktree's cleanup from the main checkout. Underrequest_user_input's three-option limit, it offers two reviewer candidates and two merge methods, taking the rest through a freeform answer, where the Claude edition offers three candidates and every method. Do not mirror the context step or the worktree exit into this edition when resyncing. - Intentional divergence — sandbox-denial retry:
$run-checksand$test-run-rulesomit the Claude edition's re-run of a command that failed on a sandbox denial with its Bash tool's sandbox override, and$ship-togetherStep 7 and$split-and-shipStep 2 omit its re-run of the upstream-tracking write a sandbox refused after a push.$implement-backlogStep 2 and$land-prStep 7 likewise restore the files a failed fast-forward left but omit the re-run of one a sandbox denial failed, which the Claude edition's/implement-backlog,/implement-plan, and/land-prmake after restoring the files it left.SKILL-CONVENTIONS.mdbars a skill from requesting a wider sandbox for routine work. Do not mirror the retry into this edition when resyncing. - Intentional divergence — blocked peer review: Codex setup offers a scoped Claude review rule for the Codex auto-reviewer. When Codex approval review blocks sending material to Claude, the main chat asks how to proceed before using internal findings. Keep the missing-peer-coverage instructions in this edition when syncing skills.
- Intentional divergence — peer review execution: the Claude edition's
/peer-reviewruns a code review through a Codex sandbox that keeps the repository read-only and the temporary directory writable, so its peer can run test suites and mutation checks.$peer-reviewstays limited to reading, and tells the reviewer so, to name the checks it could not run, and to mark a verdict resting on reading alone:$claude-printconfines Claude through a tool allow-list of file reads and read-only git commands, which cannot express execution that leaves the repository unwritable. Whether Claude Code's own Bash sandbox could giveclaude -pthat shape from inside the Codex sandbox is unprobed; probe it before adding execution here, and do not widen the allow-list to mirror it when resyncing. - Intentional divergence — pruned transcripts: the Claude edition's
/recall-sessionasks for a backup of the Claude configuration home when its search finds no transcript for a session older than Claude Code's transcript cleanup period, and re-runs its search against that backup.$recall-sessionsearches Codex session history, which has no known cleanup period. Leave it out here until Codex's session retention is established.
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.

