agentleFS
tobihagemanntobihagemann/turbo/codex/AGENTS.md

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.

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

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/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's core-skills loader).
  • $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, 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-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 $create-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 restate a parent workflow's remaining steps in their own update_plan call and close with a plain update_plan line, 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-comments, $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/create-skill/references/workflows.md and skills/create-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. The Claude sibling has no such rule: AskUserQuestion always reaches the user from the main conversation, while Codex drops request_user_input in 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-code and $refine-plan carry a Loop State section (.turbo/loops/<slug>.md ledgers), and $implement, $implement-plan, $finalize, $quick-finalize, and $turboplan create goals via create_goal and maintain one pipeline checklist per goal at .turbo/workflows/<slug>.md, mirroring every update_plan call into it. The Claude siblings have none of this: Codex compaction drops update_plan state 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 and AskUserQuestion gates. For the same reason, $preview Step 5, $prototype Step 6, $discuss-change Step 5, and $draft-plan Step 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-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 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 $self-improve trusts 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-improvement Step 3 leaves an append into another repo unqualified, as do $create-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 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-improvement and $create-handoff Step 1 carries no such dependency and is mirrored.

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.