AGENTS.md & Memories
How Codex loads AGENTS.md instruction files across global, project, and nested scopes, and how local Memories carry context between chats.
Slash Commands & Shortcuts
Reference for Codex CLI slash commands, keyboard shortcuts, quick prefixes, IDE extension commands, and terminal customization options.
Managing Context
How to manage the Codex context window with compaction, reasoning effort, Fast mode, goals, session resume and fork, image inputs, and reasoning display.
Permissions & Sandbox
Configure Codex sandbox modes, approval policies, writable roots, network access, execpolicy rules, permission profiles, and managed requirements.
Auto-review
Use Codex Auto-review to route sandbox-boundary approval requests through a reviewer agent instead of stopping for a human on every escalation.
CLI Flags & Configuration
Reference for Codex CLI global flags, subcommands, config.toml locations and precedence, profiles, model providers, and environment variables.
Skills
Codex skills are SKILL.md folders that package reusable workflows, scripts, and references Codex loads on demand via $skill mentions or implicit matching.
Subagents
Codex subagents run delegated work in parallel agent threads with their own model, reasoning effort, and sandbox, keeping noisy output out of the main chat.
Hooks
Codex hooks run shell commands or MCP tools at lifecycle events like PreToolUse, PostToolUse, and Stop for deterministic control independent of the model.
MCP
Connect Codex to MCP servers with codex mcp add or config.toml, handle OAuth, control tool approval and timeouts, and use MCP tools from hooks.
Plugins
Codex plugins bundle skills, MCP servers, and hooks into installable packages shared through marketplaces and the universal ChatGPT and Codex plugin directory.
Automation & Non-interactive Mode
Run Codex without a TUI using codex exec, the Codex SDK, the GitHub Action, and scheduled tasks, and compose skills, agents, and hooks into workflows.
Codex Cloud & Remote
Delegate Codex tasks to isolated cloud environments, drive a connected computer from your phone, connect over SSH, and review pull requests with @codex.
Worktrees & Parallel Sessions
Run several Codex chats side by side using Git worktrees, local environment setup scripts, handoff between Local and Worktree, and multiple CLI terminals.
Debugging
Troubleshoot Codex with codex doctor, /status, /debug-config, RUST_LOG, log locations, and fixes for login, sandbox, MCP, Windows, WSL, and network issues.
Tips
Practical Codex tips grouped by theme, covering prompting, scoping, reviewing, AGENTS.md, approvals, parallel work, and model and reasoning effort choices.