agentleFS
tobihagemanntobihagemann/turbo/codex/AGENTS.md

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.

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
  1. Very specific:

    Read SKILL-CONVENTIONS.md before editing any skill or doc in this tree — it has the prescriptive rules.

    line 5
  2. Very specific:

    Use Codex-native vocabulary and tool contracts.

    line 6

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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.md before editing any skill or doc in this tree — it has the prescriptive rules. Harness facts live in skills/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 turbo Codex plugin: skills under skills/, the Codex hooks under hooks/. Users install it from the marketplace at ../.agents/plugins/. Codex copies it into a versioned cache, so a skill resolves its own directory from the SKILL.md it was loaded from.
  • $peer-review is 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-print to have Claude review the Claude sibling against ../claude/SKILL-CONVENTIONS.md and ../claude/CLAUDE.md. Instruct it to read those conventions and the changed files and report findings directly, the way $write-skill reviews a skill, without invoking /review-code or 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-exec in the Claude edition retries once when a run dies producing no output. $claude-print has no such rule. The evidence is codex-process-specific, and $claude-print Step 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 a claude -p crash-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 calls TaskList. update_plan is 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; TaskList retrieves real stored state, so the Claude form has neither problem. Do not "resync" these to the TaskList phrasing when mirroring.
  • Intentional divergence — consultation option budget: request_user_input allows 3 options per question while the Claude edition's AskUserQuestion allows 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-debt differ 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-code and $refine-plan run their re-run loops to natural convergence, without the iteration hard cap, the skip/continue request_user_input gates, or the handoff-then-compact gate on a low-context signal that the Claude edition keeps; skills/write-skill/references/workflows.md and skills/write-skill/references/tools.md teach the autonomous form to match. This is deliberate — request_user_input does not reliably reach the user in Codex's non-interactive modes, so these loops rely on their own convergence signal instead. $implement Step 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 $investigate write nothing and report the approval as unresolved when their external-write gates cannot reach the user. $investigate also stops and reports the way forward as unresolved when its reproduction gate cannot reach the user. $polish-code and $refine-plan start a fresh ledger and delete nothing when their discovery question cannot reach the user, and $polish-code halts 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: AskUserQuestion always reaches the user from the main conversation, while Codex drops request_user_input in 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 SessionStart hook points Codex to it after compaction or resume. The UserPromptSubmit hook surfaces it on ordinary replies. ADDITIONS.md governs 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-plan Step 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. $implement Step 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-staged Step 2 and $ship-together Step 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 = true contract only after validating the shared Claude Code memory integration, and $route-lessons and $self-improve trust that saved value for every project while resolving the source path instead of repeating setup or project-readiness checks. Otherwise $route-lessons writes to a harness-approved memory update target or skips Auto memory, and $self-improve takes its past-session cutoff from that target or sweeps the whole history. The Claude /route-lessons writes 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 /dream consolidates the Claude Code auto-memory directory in place, routes its notes through /route-lessons to 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 source codex.sharedClaudeAutoMemory enables, 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: $backlog Step 3, $route-lessons Step 6, and $draft-plan Step 6 leave their writes into another repo unqualified (an append, a turbo lesson handoff, and a gated plan), as do $handoff Step 3 and $implement-plan Step 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_patch runs under the same sandbox policy as shell commands here, so it offers no equivalent escape, and SKILL-CONVENTIONS.md bars 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-plan Step 4 offer to leave the worktree first either, which depends on Claude Code's ExitWorktree tool. The worktree-aware repo-root resolution in $backlog and $handoff Step 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-items and the open-items list call in /handoff Step 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-backlog can 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 queue delivers 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), and SKILL-CONVENTIONS.md bars 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-plan hands 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-plan Step 6 always writes the gated plan file, since codex queue fails 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-feedback Step 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-feedback omits 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-pr offers 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. Under request_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-checks and $test-run-rules omit the Claude edition's re-run of a command that failed on a sandbox denial with its Bash tool's sandbox override, and $ship-together Step 7 and $split-and-ship Step 2 omit its re-run of the upstream-tracking write a sandbox refused after a push. $implement-backlog Step 2 and $land-pr Step 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-pr make after restoring the files it left. SKILL-CONVENTIONS.md bars 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-review runs 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-review stays 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-print confines 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 give claude -p that 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-session asks 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-session searches Codex session history, which has no known cleanup period. Leave it out here until Codex's session retention is established.

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.