OpenAI Codex usesDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/bitwikiorg/continuity/llms.txt
Use this file to discover all available pages before exploring further.
AGENTS.md as its primary instruction file and composes instructions across global, repository, and directory scopes automatically. Because Continuity’s default entry file is already AGENTS.md, Codex requires no renaming or delegation step — copy the templates, declare the state chain in AGENTS.md, and Codex picks it up on the next run.
Setup
Copy Continuity templates to your workspace
Copy the files matching your chosen tier from the Continuity repo into your project root:Replace all
{{UPPER_CASE}} placeholders before running. Use the Minimum tier to start and add files as your agent’s loop requires them.Place AGENTS.md in the project root
Codex composes
AGENTS.md from three scopes in order: global (user home), repository root, and the directory the agent is currently working in. Place your Continuity AGENTS.md at the repository root. Codex will merge it with any global instructions automatically.You do not need a separate CLAUDE.md or wrapper file — AGENTS.md is the native entry point for Codex.Declare the state file load order in AGENTS.md
Edit Add further files (
AGENTS.md to include an explicit load order. Codex reads this as part of its instruction composition:MEMORY.md, TOOLS.md, PLAN.md) only when your agent’s loop actually needs them.Key difference from Claude Code
The main distinction between the Claude Code and Codex adapters is which file the runtime auto-loads:| Claude Code | Codex | |
|---|---|---|
| Auto-loaded file | CLAUDE.md | AGENTS.md |
| Scope composition | Nested CLAUDE.md per directory | Global → repo → directory AGENTS.md |
| Entry file | CLAUDE.md (or delegates to AGENTS.md) | AGENTS.md directly |
| Auto-injection | AGENTS.promptinclude.md (Claude-native) | Not supported natively |
AGENTS.promptinclude.md, reference all state files explicitly in AGENTS.md rather than relying on a promptinclude list. This also means you should be intentional about load order — Codex will not pull in IDENTITY.md or SNAPSHOT.md unless AGENTS.md instructs it to.
Writeback contract
Codex writes file updates as part of its result output. The expected writeback shape after each meaningful action is:STATE.md (new operational truth), TODO.md (task queue with completed items marked), and SNAPSHOT.md (refreshed restoration anchor) after every meaningful session. Move completed tasks to completed/ with evidence entries.
Minimal Codex configuration
A minimalAGENTS.md for Codex looks like this: