# AI Developer Toolkit — Reference & help: Reference > The "Reference & help: Reference" section of the AI Developer Toolkit documentation (English). Full site index: https://developertoolkit.ai/llms.txt Generated: 2026-11-02T15:41:09.231Z Source: https://developertoolkit.ai Total documents: 5 --- # Appendices URL: https://developertoolkit.ai/en/reference/ Description: Lookup pages for Claude Code, Codex and Cursor: commands, config files, shortcuts and terms, plus how to check them against the version you run. The Appendices are the lookup shelf for Claude Code, Codex and Cursor: four reference pages covering commands and flags, configuration files, keyboard shortcuts, and the glossary. Each page states when it was checked. Each page is for finding an exact spelling or file path, which should then be confirmed against the tool version installed on the machine that runs the agent. This section is for developers who script agents and for tech leads who own a team's shared configuration. The typical situation: a CI job that worked last month now fails with `unexpected argument`, or one laptop ignores `AGENTS.md` while the rest of the team's machines read it. The answer is a flag, a file path or a release channel, and you need it spelled exactly. ## Which reference page answers your question? | You want to know… | Open | What it covers | | --- | --- | --- | | The exact flag for a headless run, an approval policy or an MCP command | [Command reference](/en/reference/command-reference/) | CLI flags and slash commands by job, plus a table of removed and renamed flags | | Which instruction file a tool reads, and in what order | [Configuration reference](/en/reference/config-reference/) | `.cursor/rules/`, `CLAUDE.md`, `AGENTS.md`, `.claude/settings.json` and Codex `config.toml`, with loading rules | | The key that cancels, accepts or opens a panel | [Keyboard shortcuts](/en/reference/keyboard-shortcuts/) | Shortcut tables for the Cursor editor and the Claude Code and Codex terminals | | What a term means in this documentation | [Glossary](/en/reference/glossary/) | The canonical term for each concept, so one word means one thing across the site | ## How do you check a reference entry against your installed version? A reference page is correct for the version it names. Claude Code ships roughly one release per day, and its `stable` channel typically runs about a week behind `latest`, so two machines on one team can disagree. Treat the installed binary's help output as the authority. 1. **Print the version you run.** Compare it with the version the reference page names. **Claude Code** ```bash claude --version claude doctor # installation health; reads settings without a trust prompt ``` To install the stable build on one machine, run `claude install stable`; the `autoUpdatesChannel` setting (`"stable"` or `"latest"`) keeps it on that channel. **Codex** ```bash codex --version codex features list # feature flags with their stage and effective state ``` **Cursor** Check the version in the editor's About dialog. Cursor facts on these pages are re-checked less often than the two CLIs, so confirm a setting in Cursor's own documentation before you roll it out to a team. 2. **Check the exact flag in the help for that subcommand.** Flags differ between subcommands: `codex exec --help` lists different options from `codex --help`. If the flag is missing from the output, it does not exist in your version, whatever any page says. 3. **Pin the version in CI.** A flag verified today should still exist on next week's runner. Install an exact version instead of the moving tag. The example pins the `latest` build of 2026-10-12 (2.1.296); `stable` is 2.1.292 on 2026-10-17, so pin that one if your machines follow `stable`: ```bash npm install -g @anthropic-ai/claude-code@2.1.296 @openai/codex@0.162.1 ``` Bump the pin in a pull request, so that the CI run on that pull request proves your scripts still run. **Copy-paste prompt: find stale agent flags in scripts and CI** ```text Search this repository's shell scripts, Makefiles, package.json scripts and .github/workflows for every invocation of `claude` and `codex`. For each one, run the matching help command on this machine (for example `codex exec --help` or `claude --help`) and report any flag that does not appear in that output. Check these known traps explicitly: `--full-auto`, `-a on-failure`, `-a untrusted`, and `codex exec -a` (the approval flag goes before `exec`). Output a table with file:line, the current command, the problem, and the corrected command. Do not edit any file. ``` **Copy-paste prompt: prove which instruction files loaded** ```text List every instruction file in this repository: CLAUDE.md, CLAUDE.local.md, AGENTS.md, AGENTS.override.md and files under .cursor/rules/, excluding node_modules. For each, state whether it applies to the current working directory according to the configuration reference rules for the tool you are running in, and why. Then tell me the exact command or view I should use to confirm it independently: /context in Claude Code, `codex debug prompt-input` in Codex, and in Cursor (which has no such command) opening a file the rule should cover and checking for the rule's canary line, as the configuration reference describes. Do not rely on your own memory of what you loaded. ``` The second prompt produces a hypothesis, not proof: a model can misreport its own context. The proof is the tool's view of the context, which the [configuration reference](/en/reference/config-reference/) walks through with a canary line per file and a CI budget check. Cursor has no counterpart to `/context` or `codex debug prompt-input` on these pages (checked 2026-09-26), so in Cursor the canary line is the only independent check. ## When the reference and your tool disagree | Symptom | Likely cause | Recovery | | --- | --- | --- | | `unexpected argument` or `invalid value` in CI | The flag was removed or renamed, or it sits after the wrong subcommand | Run the first prompt above, then check the removed-flags table in the [command reference](/en/reference/command-reference/) | | A feature the page describes is missing on one machine | That install is on an older pinned version, or on `stable` for a feature from v2.1.293 or later | Run `claude --version` on both machines; align the channel or the pin | | A shortcut does nothing in Cursor | The key is rebound in your keybindings, or an extension claims it | Check the keybinding editor for conflicts before assuming the page is wrong | | A term means something different in a vendor's docs | Vendors rename features; the glossary keeps one canonical term | Use the glossary term in team docs and note the vendor's name beside it | | A link you bookmarked for models, pricing or migration no longer lands here | Those pages moved during the 2026-09 restructure | Use the links in the next section | ## What moved out of the Appendices? Model versions and prices now live on one page, the [models hub](/en/ecosystem/models/), so no other page repeats them. Plan pricing and the cost worksheet are in the [pricing analysis](/en/comparison/pricing-analysis/), and the tool-switching checklist is in the [migration guide](/en/comparison/migration-guide/). Per-tool release notes sit in each tool's reference: [Claude Code](/en/claude-code/reference/), [Codex](/en/codex/reference/) and [Cursor](/en/cursor-ide/reference/). ## Where to go next from the reference - When something fails and the cause is not a flag, go to the [troubleshooting guide](/en/resources/troubleshooting/). - Before you script an unattended run, set the approval and sandbox posture with [permissions and sandboxing across the three tools](/en/workflows/harness/permissions-and-sandboxing/). - To see what changed on this site since your last visit, read [what's new](/en/resources/whats-new/). - For the other help pages, including the FAQ and community resources, open the [resources overview](/en/resources/). --- # Command Reference Cheatsheet URL: https://developertoolkit.ai/en/reference/command-reference/ Description: Claude Code, Codex and Cursor commands checked against the installed CLIs: flags, slash commands, headless runs, review commands and stale flags to remove. The command reference for Claude Code, Codex and Cursor lists the flags, subcommands and slash commands that exist in the current releases, checked against Claude Code 2.1.296 and Codex CLI 0.162.1. It also names the stale commands to delete from scripts, and the commands that verify an agent's output without a line-by-line read. This page is for developers who drive agents from a terminal or CI, and for tech leads who maintain the team's scripts. The usual trigger: a nightly job that ran `codex -a on-failure` or `claude -p … /review` last month now exits with "invalid value" or quietly does something different, and nobody knows which flags are still real. The page was first checked on 2026-09-26 against Claude Code 2.1.283 (the `latest` channel) and Codex CLI 0.157.1. Its flag, subcommand and slash-command tables were checked again on 2026-10-12 against Claude Code 2.1.296 (`stable` is 2.1.292 on 2026-10-17) and the `--help` output of Codex CLI 0.162.1, and an entry added in a newer release names the version that added it. A row that carries no later date, such as the `think harder` row, still stands on the 2026-09-26 check. ## What you get from this command reference - The session, headless and MCP commands for each tool, in one table per tool, with the flag spellings the installed CLI accepts today. - A list of removed and renamed commands, so you can grep your scripts for them. - The review and verification commands that let you accept agent work on evidence: diffs, review findings, schema-checked output and budgets. - Two copy-paste prompts: one that audits your scripts for stale flags, one that runs a pre-merge check before you open the PR. Keyboard bindings live on the [keyboard shortcuts reference](/en/reference/keyboard-shortcuts/), and settings files on the [configuration reference](/en/reference/config-reference/). ## Which commands start, resume and script a session? The three tools share a shape: an interactive session, a one-shot headless mode for scripts, a way to resume, and a model switch. The spellings differ. **Claude Code** ```bash claude # interactive session in this directory claude "explain the auth module" # interactive, with a first prompt claude -p "list TODOs in src/" # headless: print the answer and exit claude -c # continue the most recent conversation here claude -r # open the session picker (or pass an ID) claude --model opus # alias for the latest Opus; also sonnet, fable claude --effort high # low | medium | high | xhigh | max claude -w feature-x # new git worktree for this session claude --bg "fix the flaky test in tests/api" # background session; see `claude agents` claude --desktop # open this directory in the Claude Desktop app and exit (v2.1.285) ``` **Codex** ```bash codex # interactive TUI codex "explain the auth module" # interactive, with a first prompt codex exec "list TODOs in src/" # headless (alias: codex e) codex resume --last # continue the most recent session codex fork --last # branch the most recent session codex -m gpt-6-astra # pick a model by ID codex --worktree # run in a new managed git worktree codex apply # git-apply the latest diff Codex produced codex cloud # [experimental] browse Codex cloud tasks ``` **Cursor** Cursor is IDE-first, and its terminal command is `agent` (Cursor's CLI installation and overview pages, checked 2026-10-12); `cursor-agent` appears on no Cursor documentation page. Install it with `curl https://cursor.com/install -fsS | bash` on macOS, Linux and WSL, or `irm 'https://cursor.com/install?win32=true' | iex` on Windows. ```bash agent --version # confirm the install agent # interactive session agent -p "list TODOs in src/" --output-format text # headless: print mode, for scripts and GitHub Actions agent persist # persistent sessions (CLI v2026.08.26) agent update # update the CLI ``` In a session, the CLI's modes are Agent (the default), Plan (`Shift+Tab`, `/plan`, `--plan` or `--mode=plan`) and Ask (`/ask` or `--mode=ask`); it also has `/debug`. **Plan Mode** "creates detailed implementation plans before writing any code" (Cursor's docs, read 2026-08-28). Prefix a message with `&` to hand it to a Cloud Agent. `/goal` gives the agent "a long-lived objective to work towards until it's fully complete" and is still rolling out in Cursor's docs (checked 2026-10-12). `/run-everything [on|off|status]` switches the run mode, with `/auto-run` as an alias, and `/rewind` is listed among the CLI slash commands (Cursor's docs, read 2026-08-28). `agent persist` also has `attach`, `list`, `stop` and `--resume` forms. On 2026-10-12 the latest CLI release is v2026.10.08 (Cursor's CLI changelog) and the desktop editor is Cursor 3.24, released 2026-10-09 (Cursor's release notes). Which model each tool starts on, and what it costs, changes monthly. Check the [models hub](/en/ecosystem/models/) instead of hardcoding a model ID into a script; start on the default and raise effort before you switch model. ## Claude Code CLI flags that matter in scripts Every flag below appears in `claude --help` for Claude Code 2.1.296 (checked 2026-10-12). Flags marked "print only" have no effect without `-p`. | Flag | What it does | Example | | --- | --- | --- | | `-p, --print` | Run headless and print the result. Skips the workspace trust dialog, so run it only in directories you trust | `claude -p "summarise this diff"` | | `--output-format` | `text`, `json` or `stream-json` (print only) | `--output-format json` | | `--json-schema` | Validate the final answer against a JSON Schema | `--json-schema "$(cat verdict.schema.json)"` | | `--max-budget-usd` | Stop spending past a dollar cap (print only) | `--max-budget-usd 2` | | `--permission-mode` | `manual`, `acceptEdits`, `plan`, `auto`, `dontAsk`, `bypassPermissions` | `--permission-mode plan` | | `--allowedTools` / `--disallowedTools` | Pre-approve or deny named tools and command patterns. Pre-approving does not remove the other tools | `--allowedTools "Read Grep Bash(npm test *)"` | | `--tools` | Limit which built-in tools exist in the session at all | `--tools "Read,Grep,Glob"` | | `--add-dir` | Give access to another directory | `--add-dir ../shared` | | `--mcp-config`, `--strict-mcp-config` | Load MCP servers from a file, and only those | `--mcp-config ci.mcp.json --strict-mcp-config` | | `--bare` | Skip hooks, plugins, auto-memory and `CLAUDE.md` discovery; from v2.1.286 it also connects only the MCP servers named on the command line, sends no system reminders and starts no background tasks | `claude --bare -p "…"` | | `--safe-mode` | Start with all customisations off, to debug a broken setup | `claude --safe-mode` | | `--restricted` | Remove code-running tools and ignore user and project settings | `claude --restricted -p "…"` | | `--from-pr` | Resume a session linked to a PR | `claude --from-pr 123` | | `--fallback-model` | Try other models when the primary is unavailable | `--fallback-model sonnet` | | `--dangerously-skip-permissions` | Bypass every permission check | Only in a disposable sandbox with no network access | Subcommands you run from the shell: `claude mcp` (servers), `claude plugin` (plugins), `claude agents` (lists background sessions; `--json` for scripts), `claude attach `, `claude logs `, `claude stop ` and `claude rm ` (manage one background session), `claude doctor` (install health), `claude import codex|gemini|cursor` (bring config across), `claude ultrareview` (cloud multi-agent review of the branch or a PR) and `claude update`. Added since v2.1.283 (checked 2026-10-12): `claude --desktop` (v2.1.285) opens the Claude Desktop app on the current directory and exits. `claude purge [path]` (v2.1.288, both channels on 2026-10-17) deletes all Claude Code state for a project, with `--dry-run` to preview, `-y` to skip the prompt, `-i` to confirm each item and `--all` for every project; the old name, `claude project purge`, still works and prints a notice. `claude plugin configure ` (v2.1.285) shows a plugin's options and which are unset, or saves values piped to `--values-stdin`. `claude plugin install` takes `--config ` (repeatable; the plugins CLI reference lists no minimum version), which since v2.1.285 also accepts `.=` for a bundled `.mcpb` MCP server's own settings, and `--marketplace ` (v2.1.292, both channels on 2026-10-17), and `claude plugin test` runs a mod's tests. `claude attach` and `claude logs` accept part of a session name (v2.1.290, both channels on 2026-10-17). ## Claude Code slash commands by job The in-session list is long and includes bundled skills. These are the ones a working day needs, grouped by what you are trying to do. Type `/` in a session for the full list. Every command in the table is in Claude Code's commands reference as of 2026-10-12 (Claude Code 2.1.296). | Job | Commands | | --- | --- | | Context | `/clear` (new conversation), `/compact [focus]` (summarise and continue), `/context` (what fills the window), `/add-dir`, `/cd` (move the session, keep the conversation), `/memory` (edit `CLAUDE.md`) | | Mode and depth | `/plan [task]` (plan mode), `/model`, `/effort [low…max\|auto\|status\|ultracode [on\|off]]` (since v2.1.284, `ultracode` is a toggle that keeps the session's effort level), `/permissions`, `/config` | | Long-running work | `/goal ` (keep going until the condition holds), `/loop [interval] [prompt]`, `/background`, `/fork`, `/subtask`, `/tasks`, `/batch `, `/schedule` (cloud routines), `/workflows` | | Checking the work | `/diff`, `/code-review [level] [--fix] [--comment] [--max-findings n\|all\|default] [pr\|branch\|path]` (`--max-findings` needs v2.1.288, both channels on 2026-10-17), `/security-review`, `/simplify`, `/verify`, `/rewind` (alias `/undo`) | | Setup and cost | `/init`, `/mcp` (`/mcp reconnect all` retries every server that failed or needs authentication, v2.1.284), `/skills`, `/hooks`, `/plugin`, `/doctor`, `/usage` (aliases `/cost`, `/stats`), `/rate-limit-options` (ways to keep working when a claude.ai usage limit blocks a request), `/import codex\|gemini\|cursor` | Three prefixes work at the prompt: `/` for commands and skills, `@` for a file-path mention, and `!` to run a shell command and hand its output to Claude. **Reasoning depth is a setting, not a magic word** The `think` / `think harder` budget ladder is gone. `think`, `think hard` and `think more` are ordinary text. `ultrathink` adds a deeper-reasoning instruction to one turn without changing the effort sent to the API. Set lasting depth with `/effort` or `claude --effort`. ## Codex CLI flags and approval policies Every flag below appears in `codex --help` or `codex exec --help` for both 0.157.1 and 0.162.1 (checked 2026-10-12), except the one that names its own version. | Flag | What it does | Example | | --- | --- | --- | | `-m, --model` | Model for the session | `codex -m gpt-6-sol` | | `-a, --ask-for-approval` | `on-request` (the model decides when to ask) or `never`. Not accepted by `codex exec`: put it before the subcommand | `codex -a never exec "…"` | | `-s, --sandbox` | `read-only`, `workspace-write` or `danger-full-access` | `codex exec -s read-only "…"` | | `-c key=value` | Override one `config.toml` value, for example a beta permission profile | `-c default_permissions=":workspace"` | | `--approve-for-me` | Route approval requests through automatic review in the `workspace-write` sandbox | `codex --approve-for-me` | | `-p, --profile` | Layer `$CODEX_HOME/.config.toml` over your config | `codex -p ci exec "…"` | | `-C, --cd`, `--add-dir` | Set the working root; add writable directories | `codex -C services/api` | | `--search` | Enable live web search | `codex --search` | | `--json`, `-o FILE`, `--output-schema FILE` | JSONL events, last message to a file, schema-shaped final answer (`exec` only) | `codex exec --output-schema verdict.json -o out.json "…"` | | `--cyber-access-program ` | Request an experimental Cyber access program for this turn, OpenAI provider only: `standard`, `daybreak_blue` or `daybreak_red`. `exec` takes it (0.161.0); `exec review` does not support it | `codex exec --cyber-access-program standard "…"` | | `--dangerously-bypass-approvals-and-sandbox` | No approvals and no sandbox | Only in an externally sandboxed, disposable runner | OpenAI now prefers permission profiles (beta, selected with `default_permissions`) over the legacy `--sandbox` flag, and says the two systems "do not compose". Pick one per invocation. The trade-offs are on the [permissions and sandboxing page](/en/workflows/harness/permissions-and-sandboxing/). Shell subcommands: `codex exec` (headless), `codex review` (`--uncommitted`, `--base `, `--commit `), `codex mcp` (list, get, add, remove, login, logout), `codex plugin`, `codex agents` (session dashboard), `codex resume`, `codex fork`, `codex apply`, `codex doctor`, `codex features list` and `codex update`. ## Codex slash commands by job Taken from the TUI's command table in the 0.157.1 source and checked again against the 0.162.1 source on 2026-10-12: every command below is in the 0.162.1 list. | Job | Commands | | --- | --- | | Context | `/new`, `/clear`, `/compact`, `/mention` (add a file), `/cd`, `/init` (create `AGENTS.md`) | | Mode and depth | `/plan`, `/model` (model and reasoning effort), `/fast` (toggles a Fast service tier when the model catalog exposes one; it is not in the static command list, and Codex hides it when the current model has no Fast tier), `/permissions`, `/approve` (retry one auto-review denial), `/experimental` | | Long-running work | `/goal`, `/agents` (command center), `/subagents`, `/worktree` (start or continue a conversation in a new worktree; 0.162.0 added managed worktree tools that create and list worktrees from trusted projects), `/fork`, `/side` (alias `/btw`, a side conversation in an ephemeral fork) | | Checking the work | `/diff` (includes untracked files), `/review` (review current changes), `/status` (config and token use) | | Setup and cost | `/mcp` (lists MCP tools; `/mcp verbose` shows them in full and, from 0.161.0, `/mcp login ` signs in to a server), `/skills`, `/plugins`, `/hooks`, `/memories`, `/import` (from Claude Code, per the 0.162.1 source), `/usage`, `/resume`, `/copy` (copy the last response or part of it; in the 0.162.0 release notes), `/daybreak` (turn Daybreak on or off; opt-in since 0.161.0, so it is unavailable until you enable the `cli_daybreak` feature, for example with `--enable cli_daybreak`) | Codex's own manual still lists `/personality`, `/sandbox-add-read-dir` and `/agent`. The 0.162.1 command list has none of them and names the agent switcher `/subagents`, so trust the binary. There is no `/loop` in Codex 0.162.1 (checked 2026-10-12 in the command list and the developer-commands reference); use `/goal` or your CI. ## Connect an MCP server from the command line The syntax differs by tool, and the result is the same: the agent gains the server's tools. The example uses the Sentry HTTP server shown in `claude mcp add --help` and Microsoft's Playwright server (`@playwright/mcp`, 0.0.83 on npm, published 2026-09-28). **Claude Code** ```bash claude mcp add --transport http sentry https://mcp.sentry.dev/mcp claude mcp add -s project playwright -- npx -y @playwright/mcp@0.0.83 # writes .mcp.json; pin versions in shared config claude mcp list # health-checks approved servers claude mcp serve # expose Claude Code itself as an MCP server ``` In a session, `/mcp reconnect all` retries every server that failed to connect or needs authentication (v2.1.284). **Codex** ```bash codex mcp add sentry --url https://mcp.sentry.dev/mcp codex mcp add playwright -- npx -y @playwright/mcp@latest codex mcp list ``` `codex mcp add` takes `--oauth-client-id ` and, from 0.158.0, `--oauth-client-secret ` for a pre-registered OAuth client; read the secret from your secret store instead of typing it into a script. In the TUI, `/mcp login ` signs in to a server (0.161.0). `codex mcp` has list, get, add, remove, login and logout, and still no `--transport` flag (0.162.1, checked 2026-10-12). Codex can no longer run as an MCP server (removed in 0.154.0). Use `codex exec` or the Codex SDK to drive it from code. **Cursor** Cursor's documentation says MCP "enables Cursor to connect to external tools and data sources", and Cursor plugins "package rules, skills, agents, commands, MCP servers, and hooks into distributable bundles", so a team can ship its servers as one plugin. This page documents no Cursor command-line flow for adding a server, and does not name the config file: neither was checked for this page on 2026-10-12. The [MCP hub](/en/ecosystem/mcp/) covers setup per tool. Scope matters in Claude Code: `-s local` (the default) is private to you in this project, `-s project` writes a shared `.mcp.json` that each teammate approves once, and `-s user` follows you across projects. ## Custom commands: skills and command files In Claude Code, custom commands have merged into skills. `.claude/commands/fix-issue.md` and `.claude/skills/fix-issue/SKILL.md` both create `/fix-issue`; prefer the skill folder for new work because it can hold scripts and reference files. Codex exposes the same idea through `/skills`. ```markdown --- description: Fix a GitHub issue and prove it with a failing-then-passing test argument-hint: "[issue-number]" allowed-tools: - Bash(gh issue view *) - Bash(npm test *) - Read - Edit --- Issue details: !`gh issue view $ARGUMENTS` 1. Write a test that reproduces the issue and confirm it fails. 2. Fix the code until that test and the rest of `npm test` pass. 3. Report the test name, the before/after result and the files you changed. ``` `$ARGUMENTS` is everything typed after the command (`$0`, `$1` for positional arguments). A line of the form `` !`command` `` runs before Claude reads the skill and is replaced by its output. `allowed-tools` **pre-approves** the listed tools for the turn that invokes the skill; it does not restrict Claude to them. The [custom commands guide](/en/claude-code/automate/custom-commands/) covers arguments, invocation control and sharing. ## How do you verify agent output from the command line? A fast agent is only useful if accepting its work does not mean reading every line. Wire these commands into the loop so that what you review is evidence, not the raw diff. **Claude Code** ```bash # In a session: set a stop condition that a check can prove /goal npm test and npm run lint both exit 0 with no skipped tests # In a session: review the branch, then apply the fixes it finds /code-review high --fix /code-review high --max-findings all # report every finding, not the usual limit (v2.1.288, both channels) /security-review # Headless, in CI: a read-only review with a schema-checked verdict and a spend cap git diff origin/main...HEAD | claude -p "Review this diff for correctness bugs. Return blocking findings only." \ --bare --setting-sources "" --strict-mcp-config \ --tools "Read,Grep,Glob" \ --json-schema "$(cat .ci/verdict.schema.json)" \ --output-format json --max-budget-usd 3 > review.json ``` **Codex** ```bash # Review uncommitted work, the branch against main, or one commit codex review --uncommitted codex review --base main codex review --commit # Headless, in CI: read-only sandbox, no prompts, schema-shaped answer codex -a never exec -s read-only --output-schema .ci/verdict.schema.json \ -o review.json "Review the changes on this branch against main for correctness bugs" ``` **Cursor** Cursor's pull-request reviewer is **Bugbot**, which "reviews pull requests and identifies bugs, security issues, and code quality problems". Plan Mode gives you a plan to approve before any edit. For a scripted check, run the Cursor CLI in print mode (`agent -p`) inside the same CI job that runs your tests; Cursor documents the CLI for "GitHub Actions and other CI/CD systems". PR Routing & Approval "assigns reviewers based on code ownership and commit history, and can approve low-risk PRs when your criteria are met", so write those criteria as checks the pipeline can prove. On pull requests from forks, `--bare` skips the fork's hooks, plugins and `CLAUDE.md`, and `--strict-mcp-config` limits MCP servers to the ones you pass with `--mcp-config`. Neither flag ignores the fork's `.claude/settings.json`; `--setting-sources ""` does, which is why the CI example above passes all three. For untrusted forks, you can also use `--restricted --strict-mcp-config`: `--restricted` also ignores user, project and local settings files and removes the command-running tools unless `--tools` names them. Alternatively, run the review against a checkout of the base branch. The [headless agents in CI](/en/ecosystem/agent-tools/headless-agents-ci/) page covers the full fork policy. Who signs off: the pipeline decides pass or fail from the test run, the lint and type gates, and the review verdict file; the engineer who owns the change reads the findings and the test evidence, then merges. The [agent PR review workflow](/en/workflows/ship/agent-pr-review/) and [headless agents in CI](/en/ecosystem/agent-tools/headless-agents-ci/) pages show the full pipeline, including the security rules for untrusted pull requests. **Copy-paste prompt: audit your scripts for stale agent flags** ```text Find every place in this repository that invokes `claude` or `codex`: shell scripts, Makefile and package.json scripts, .github/workflows, and docs with runnable commands. For each invocation, run `claude --help`, `claude mcp --help`, `codex --help` or `codex exec --help` as appropriate and check every flag and subcommand against that output. Flag in particular: `codex -a untrusted` or `-a on-failure`, `--full-auto`, `-a` placed after `exec`, `codex mcp-server`, and `/review` or `/cost` used as if they were separate commands. Output a table: file, line, current command, problem, corrected command. Do not edit any file. Finish by printing the versions you checked against. ``` **Copy-paste prompt: pre-merge check before you open the PR (Claude Code)** ```text Before I open a PR for this branch, prove it is ready without asking me to read the diff: 1. Run the full test suite, the linter and the type checker. Paste the exit code and the last 20 lines of each. 2. Run /code-review high in Claude Code (or `codex review --base main` in Codex) and list every blocking finding with file:line. 3. For each blocking finding, fix it, re-run the affected tests, and show the result. 4. End with a short evidence summary: commands run, pass/fail, findings fixed, findings you disagree with and why. Do not push and do not open the PR. ``` ## Which commands and flags were removed or renamed? Grep your scripts and runbooks for the left column. Each row names the CLI version and the date it was checked against. | Stale | Use instead | Checked against | | --- | --- | --- | | `codex -a untrusted`, `codex -a on-failure` | `-a on-request` or `-a never` (both old values fail with "invalid value") | Codex 0.157.1–0.162.1 (2026-10-12) | | `codex --full-auto`, `codex exec --full-auto` | `--approve-for-me`, `--sandbox workspace-write`, or a permission profile | Codex 0.157.1–0.162.1 (2026-10-12) | | `codex exec -a never "…"` | `codex -a never exec "…"` | Codex 0.157.1–0.162.1 (2026-10-12) | | `codex mcp-server` | `codex exec`, the Codex SDK or `codex app-server` (experimental) | Codex 0.157.1–0.162.1 (2026-10-12) | | `tui.prompt_suggestions` in `config.toml`, and the automatic follow-up prompt suggestions | Delete the key: the setting and the feature were removed in 0.159.0 | Codex 0.159.0 release notes; absent from the 0.162.1 config schema (2026-10-12) | | The bundled `plugin-creator` skill | None named in the release notes; the bundled sample skills in 0.162.1 are `imagegen`, `openai-docs`, `review-agent`, `skill-creator` and `skill-installer` | Removed in Codex 0.159.0; checked against 0.162.1 (2026-10-12) | | `claude project purge` | `claude purge` (the old name still works and prints a notice; v2.1.288, both channels on 2026-10-17) | Claude Code 2.1.296 (`claude --help`, 2026-10-12) | | `/review`, `/cost`, `/stats` as separate Claude Code commands | `/code-review` and `/usage` (the old names are aliases) | Claude Code 2.1.296 / commands docs (2026-10-12) | | `/ultrareview` as the preferred command | `/code-review ultra` in a session (`/ultrareview` still works as an alias), `claude ultrareview` from the shell | Claude Code 2.1.296 / commands docs (2026-10-12) | | `/ultraplan` | `/plan` (plan mode) | Claude Code 2.1.296 / commands docs (2026-10-12) | | `/agents` wizard | Ask Claude, or edit `.claude/agents/` | Claude Code 2.1.296 / commands docs (2026-10-12) | | `think harder` as a budget keyword | `/effort` or `--effort` | Claude Code 2.1.283 / commands docs (2026-09-26) | ## When commands misbehave in scripts **A headless run stops short or edits nothing.** `claude -p` starts in Manual mode on first-party installs with telemetry on, so in an unattended job nobody is there to approve a tool call that needs approval; on third-party providers or with telemetry off it starts in auto mode from v2.1.285, and a classifier decides instead. Pre-approve exactly what the job needs with `--allowedTools`, or use `--permission-mode plan` for read-only analysis. Pre-approval is not a restriction: to make a job genuinely read-only, remove the other tools with `--tools "Read,Grep,Glob"`. Do not reach for `--dangerously-skip-permissions` outside a disposable, network-restricted sandbox. **`--output-format json` returns plain text.** The flag works only with `-p`. Add `-p`, and add `--json-schema` when you need a validated shape rather than prose. **Auto mode set in the repository is ignored.** Claude Code ignores `auto` and `bypassPermissions` as `defaultMode` in project settings; they belong in user or managed settings. This is deliberate: a cloned repository cannot switch off your prompts. **A background command ends partway through a headless run.** From v2.1.285, background Bash and PowerShell commands stop after a time limit: their own `timeout`, 30 minutes by default and at most 2 hours. Since v2.1.288 the limit applies only in unattended sessions (`-p`, the Agent SDK, CI and cloud sessions). Give the command a longer `timeout`, up to the 2-hour maximum, or run a longer job outside the agent. **Codex rejects a flag that worked yesterday.** Run `codex --help` and `codex exec --help` and compare; the approval and sandbox flags changed between releases. Pin the CLI version in CI (`npm install -g @openai/codex@0.162.1`) and bump it on purpose. **A slash command from a blog post does not exist.** Commands are removed and aliased often. Type `/` and filter, or check the [Claude Code changelog](/en/claude-code/reference/changelog/) and the [Codex changelog](/en/codex/reference/changelog/). If a whole configuration seems broken, start once with `claude --safe-mode` to rule out your own hooks, plugins and skills. ## Where to go next after the command reference - [Configuration reference](/en/reference/config-reference/): `CLAUDE.md`, `AGENTS.md`, `config.toml` and settings files side by side. - [Keyboard shortcuts](/en/reference/keyboard-shortcuts/): the key bindings this page leaves out. - [Codex non-interactive mode](/en/codex/automate/non-interactive/) and [`/goal` workflows](/en/workflows/automate/goal-command/): the headless and long-running patterns in depth. - [Glossary](/en/reference/glossary/): terms such as subagent, skill and permission profile. - [What's new](/en/resources/whats-new/): commands added since this page's last update. --- # Configuration reference URL: https://developertoolkit.ai/en/reference/config-reference/ Description: Where Cursor, Claude Code and Codex read project instructions: .cursor/rules, CLAUDE.md, AGENTS.md and config.toml, with loading rules and checks. Cursor, Claude Code and Codex read project instructions from different files: Cursor from `.cursor/rules/*.mdc`, `AGENTS.md` and `CLAUDE.md`, Claude Code from `CLAUDE.md` (and `AGENTS.md` when no `CLAUDE.md` exists, from v2.1.277 on both release channels), Codex from an `AGENTS.md` chain plus `config.toml`. Loading order, scoping and size limits differ, and none of the tools warns when a rule fails to load (checked on Claude Code 2.1.283, Codex CLI 0.157.1 and `@cursor/sdk` 1.0.32). This reference is for the developer or tech lead who owns a repository's agent configuration. The typical failure is quiet: a rule scoped to API routes fires on every file, a personal `CLAUDE.local.md` stops Claude Code from reading the team's `AGENTS.md`, or Codex drops the package instructions you wrote last week because the chain crossed its byte budget. Nothing errors. The agent just stops following the rule. The entries below that name Claude Code 2.1.296, Codex 0.162.1 or a Cursor page were checked on 2026-10-12. ## What this configuration reference gives you - One table of which file each tool loads, from where, and when. - Minimal, correct templates for `.cursor/rules/*.mdc`, `CLAUDE.md`, `.claude/settings.json`, `AGENTS.md` and `config.toml`. - A one-source-of-truth layout for teams that use more than one tool. - Commands that prove which instructions actually loaded, plus a CI budget check you can paste into a workflow. - The silent failures, each with its recovery step. For what to put *in* these files and what to cut, see [Pruning CLAUDE.md and AGENTS.md](/en/workflows/context/pruning-context-files/). This page covers where the files go and how each tool loads them. ## Which file does each AI coding tool read? | | Cursor† | Claude Code | Codex | |---|---|---|---| | **Instruction file** | `.cursor/rules/**/*.mdc`; also `AGENTS.md` in the project root and subdirectories, and `CLAUDE.md` (Cursor's docs, 2026-10-12) | `CLAUDE.md` or `.claude/CLAUDE.md`; `AGENTS.md` when no `CLAUDE.md` exists | `AGENTS.md` in each directory from the project root to the working directory | | **Scoped rules** | `globs` in `.mdc` frontmatter | `.claude/rules/*.md` with `paths` frontmatter | By directory only: a nested `AGENTS.md` | | **Personal, uncommitted** | Not a repository file | `CLAUDE.local.md` (add it to `.gitignore`) | `AGENTS.override.md` (add it to `.gitignore`) | | **User-level** | Cursor settings | `~/.claude/CLAUDE.md`, `~/.claude/rules/` | `~/.codex/AGENTS.md` | | **Settings and permissions** | Cursor settings; `permissions.json` in `~/.cursor/` and in the project's `.cursor/` (merged), `sandbox.json` for the sandbox, and from Cursor 3.24 the managed policy `AgentRemoteWorkspaceAuthorities`, which lets admins restrict Agent to approved remote workspaces (Cursor's docs and release notes, 2026-10-12) | `.claude/settings.json`, `.claude/settings.local.json` | `~/.codex/config.toml`, `.codex/config.toml` in a trusted project | | **MCP servers** | `.cursor/mcp.json`, `~/.cursor/mcp.json` | `.mcp.json` (project scope) | `[mcp_servers.]` in `config.toml` | | **Older formats still read** | `.cursorrules`: legacy, and Cursor's help says it "will be deprecated"; the `@cursor/sdk` 1.0.32 loader applies it as an always-on rule | `.claude/commands/*.md` (still works; now part of skills) | `[profiles.]` tables (still parsed) | | **Check what loaded** | Ask the agent (see the prompt below) | `/context`, `/doctor prompt-audit` | `codex debug prompt-input` | † The Cursor column follows the rule loader in Cursor's agent SDK, `@cursor/sdk` 1.0.32, and Cursor's documentation (checked 2026-10-12); see the note below. **How the Cursor rows were checked** cursor.com could not be reached when this page was first revised on 2026-09-26, so the Cursor behaviour on this page was read from the rule loader in Cursor's own `@cursor/sdk` 1.0.32 package, which watches `.cursor/rules/**/*.mdc`, `AGENTS.md`, `CLAUDE.md`, `CLAUDE.local.md`, `.cursorrules` and `.cursorignore`. It loads `CLAUDE.md` only when third-party configuration is enabled. That package is Cursor's agent SDK runtime, not the editor, so for the editor this page follows Cursor's documentation, checked 2026-10-12. Project rules live in `.cursor/rules` as `.mdc` files, and "a plain `.md` file in `.cursor/rules` is ignored by the rules system". Cursor supports `AGENTS.md` in the project root and in subdirectories, combines nested files with their parent directories (the more specific instructions take precedence), and reads `CLAUDE.md` the same way, always applied whatever `alwaysApply` says. Cursor's help calls `.cursorrules` legacy, and "rules only apply to Agent (Chat)": they do not apply to Tab completion, Inline Edit or Bugbot pull-request reviews. Re-check the rules page in Cursor's documentation before you rely on a detail in production. ## Cursor: rules in `.cursor/rules/` Each rule is one `.mdc` file: YAML frontmatter, then Markdown. Three frontmatter fields decide when the rule enters the context. ```markdown --- description: "API route conventions for the Next.js App Router" globs: src/app/api/**/*.ts alwaysApply: false --- - Validate every request body with the zod schema in `src/lib/schemas/`. - Call the service layer; never query the database from a route. - Return `{ ok: true, data }` or `{ ok: false, error }` with a matching status code. - Run `npm run test -- src/app/api` before reporting the task complete. ``` The fields are checked in a fixed order, and the first matching row wins: | Frontmatter | Rule type | When it loads | |---|---|---| | `alwaysApply: true` | Always | Every request, whatever `globs` says | | `globs` set | File-scoped | When the agent works with a matching file | | Only `description` | Agent-selected | When the agent judges the description relevant | | None of the three | Manual | Only when you attach the rule yourself | `globs` takes a comma-separated string (`src/**/*.ts, src/**/*.tsx`); a YAML list also works. Keep one topic per file and name files after the topic (`api-routes.mdc`, `testing.mdc`), so a reviewer can see from the file list what is always on. For setup inside the editor, see [Cursor project rules](/en/cursor-ide/quick-start/project-rules/). ## Claude Code: `CLAUDE.md`, rules and settings ### Where Claude Code looks for `CLAUDE.md` | Location | Scope | When it loads | |---|---|---| | Managed policy file (`/etc/claude-code/CLAUDE.md` on Linux, `/Library/Application Support/ClaudeCode/CLAUDE.md` on macOS) | Every user on the machine; cannot be excluded | At launch | | `~/.claude/CLAUDE.md`, `~/.claude/rules/` | You, in every project | At launch | | `./CLAUDE.md` or `./.claude/CLAUDE.md`, and each one in a parent directory | The team, through version control | At launch, root first | | `./CLAUDE.local.md` | You, in this project | At launch | | `src/billing/CLAUDE.md` (below the working directory) | That part of the tree | When Claude reads a file there | | `.claude/rules/*.md` without `paths` | The project | At launch | | `.claude/rules/*.md` with `paths` | Matching files | When Claude reads a matching file | Files are concatenated, not overridden, so a contradiction between two of them is resolved arbitrarily. Anthropic's memory documentation recommends keeping each `CLAUDE.md` under 200 lines. A path-scoped rule looks like this: ```markdown --- paths: - "src/api/**/*.ts" --- - Validate input with the zod schemas in `src/api/schemas/`. - Errors use the `ApiError` class; never return a raw stack trace. ``` A lean project `CLAUDE.md` holds what the agent cannot read from the code: commands, boundaries and pitfalls. ```markdown # CLAUDE.md @AGENTS.md ## Claude Code only - Use plan mode for any change under `src/billing/`. - Before reporting done: `npm run typecheck && npm run lint && npm test`. ``` `@path` imports keep a long file organised, but they do not save context: imported files load at launch with the file that imports them. Block-level HTML comments (``) are stripped before injection, so maintainer notes cost no tokens. ### How `CLAUDE.md` and `AGENTS.md` interact From v2.1.277, Claude Code reads `AGENTS.md` when there is no `CLAUDE.md`, `.claude/CLAUDE.md` or `CLAUDE.local.md` in the working directory or above it. v2.1.281 extended this to Amazon Bedrock, Google Cloud, Foundry, LLM gateways and telemetry-off sessions. Builds older than v2.1.277 read `CLAUDE.md` only; both release channels are past that since `stable` reached 2.1.287 (checked 2026-10-12). Claude Code does not read `AGENTS.local.md`, `AGENTS.override.md` or anything under a `.agents/` directory (Claude Code 2.1.296 memory docs, 2026-10-12), so Codex's personal `AGENTS.override.md` never reaches it. The **Project instructions** setting in `/config` changes the default: | Value | What Claude reads | |---|---| | `claude-md-or-agents-md` (default) | `CLAUDE.md` files, or `AGENTS.md` when there is no `CLAUDE.md` | | `claude-md-and-agents-md` | Both, each directory's `CLAUDE.md` first; a file already imported is not read twice | | `claude-md` | `CLAUDE.md` files only | | `managed-only` | Only the managed `CLAUDE.md` and auto memory at launch | The `@AGENTS.md` import in the template above works on every channel and never loads the file twice, which makes it the safe choice for a team on mixed versions. ### `.claude/settings.json`: permissions, not context Settings control what Claude may do; they add no instructions. Precedence, highest first: managed settings, command-line arguments, `.claude/settings.local.json`, `.claude/settings.json`, `~/.claude/settings.json`. List keys such as `permissions.allow` merge across files instead of replacing each other. ```json { "$schema": "https://json.schemastore.org/claude-code-settings.json", "permissions": { "allow": ["Bash(npm run lint)", "Bash(npm run test *)", "Bash(npx tsc --noEmit)"], "deny": ["Bash(git push *)", "Read(./.env)", "Read(./.env.*)"] } } ``` Two rules catch teams out. `allow` rules from a committed file apply only after each teammate trusts the folder. And `auto` or `bypassPermissions` as `permissions.defaultMode` is ignored in project and local settings; it takes effect only from user settings, a `--settings` file or managed settings. Skills go in `.claude/skills//SKILL.md`; existing `.claude/commands/*.md` files keep working. For the full walkthrough, see [Claude Code configuration](/en/claude-code/quick-start/configuration/) and [the Claude Code memory system](/en/claude-code/build/memory-system/). These settings, hook fields and environment variables arrived or changed behaviour in Claude Code 2.1.284 to 2.1.296. Each row names the version, and everything from v2.1.293 on is on the `latest` channel only (`stable` is 2.1.292 on 2026-10-17; checked against Claude Code's settings, hooks and environment-variable docs and its changelog). | Name | Where it goes | What it does | Version | |---|---|---|---| | `allowedProviders` | Managed settings | Limits which API providers a machine may use: `"anthropic"`, `"bedrock"`, `"vertex"`, `"foundry"`, `"anthropicAws"`, `"mantle"`, `"customEndpoint"` or `"gateway"`. A session on an unlisted provider is refused at startup, at login and when it next contacts the API. `"customEndpoint"` is admitted only for the exact value that a managed `env` block pins. Unset means any provider | v2.1.285 | | `onFailure` | A `command` or `http` hook handler | `"continue"` (the default) or `"block"`. With `"block"`, a hook that can't start, times out or exits with an unexpected code blocks the action instead of letting it through | v2.1.295 (`latest`) | | `CLAUDE_CODE_DISABLE_WEB_FETCH` | Environment | `1` turns off the WebFetch tool; WebSearch stays available | v2.1.285 | | `CLAUDE_CODE_WEB_SEARCH_REFILLS_PER_HOUR` | Environment | Rate at which a session's WebSearch limit refills, in calls per hour: 100 by default in an interactive session, 0 (no refill) in a non-interactive one | v2.1.290 | | `CLAUDE_CODE_DISABLE_1M_CONTEXT` | Environment | `1` turns off 1M-context support and holds models that default to a 1M window to 200K. Since v2.1.287, Opus 4.7+ and Fable default to 1M on Bedrock, Google Cloud, Foundry and the Claude apps gateway, with no `[1m]` suffix | the variable is older; its effect changed in v2.1.287 | | `CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL` | Environment | Runs every workflow agent on one model while other subagents keep theirs | v2.1.296 (`latest`) | | `MCP_PROTOCOL_NEGOTIATION` | Environment | `legacy` stops Claude Code from probing servers for MCP protocol revision 2026-07-28; local (stdio) servers negotiate it by default on every install from v2.1.292 | the variable needs v2.1.221; the stdio default changed in v2.1.292 | | `CLAUDE_CODE_NONSTREAMING_TIMEOUT_RETRIES` | Environment | Limits how often Claude Code re-sends a non-streaming request that times out; `0` fails on the first timeout | v2.1.285 | | `CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS` | Environment | Starting delay of the backoff between retries of a request the API rejects as overloaded (`529`), in place of the default 500; whole milliseconds from 500 to 32000 | v2.1.292 | | `CLAUDE_CODE_RETRY_WATCHDOG_MAX_WAIT_MS` | Environment | With `CLAUDE_CODE_RETRY_WATCHDOG` set, the longest time each API request spends waiting out `429` and `529` errors; unset means no limit | v2.1.295 (`latest`) | ## Codex: `AGENTS.md` and `config.toml` ### How Codex builds the `AGENTS.md` chain Codex walks up from the working directory to the project root (the nearest directory containing `.git`, unless `project_root_markers` says otherwise). It then reads one file per directory, root first, and concatenates them. In each directory it takes the first file that exists from this list: 1. `AGENTS.override.md`: a personal replacement for that directory's `AGENTS.md`. Parent directories still load. 2. `AGENTS.md`. 3. Each name in `project_doc_fallback_filenames`, in order. Files below the working directory are not read, so start Codex in the package you are changing (`codex --cd packages/api`). The global `~/.codex/AGENTS.md` arrives as user instructions and does not count against the project budget. A project marked untrusted supplies no `AGENTS.md` at all (since Codex CLI 0.150.0). ### What goes in `config.toml` Codex merges `config.toml` layers in this order, later winning: `/etc/codex/config.toml`, `~/.codex/config.toml`, a profile selected with `--profile ` (`~/.codex/.config.toml`), `.codex/config.toml` files from the project tree, then `-c key=value` flags. Project layers apply only in a trusted project, so a committed `.codex/config.toml` is a real team setting once each developer trusts the repository. Administrators enforce limits in `requirements.toml`, which users cannot override. ```toml # .codex/config.toml (committed) or ~/.codex/config.toml (personal) # Leave `model` unset to follow Codex's bundled default; pin a model only when your evals say so. approval_policy = "on-request" # untrusted | on-request (default) | granular | never # Permission profiles are beta (Codex CLI 0.138.0 and later). # Built-ins: ":read-only", ":workspace", ":danger-full-access". Do not combine with sandbox_mode. default_permissions = ":workspace" project_doc_max_bytes = 32768 # default: 32 KiB across all project AGENTS.md files project_doc_fallback_filenames = ["CLAUDE.md"] # read CLAUDE.md where a directory has no AGENTS.md [mcp_servers.playwright] command = "npx" args = ["@playwright/mcp@latest"] ``` On the command line, `-a` accepts only `on-request` and `never` in Codex CLI 0.157.1 through 0.162.1 (checked 2026-10-12); `untrusted` and `granular` are `config.toml` values. Put the flag before a subcommand: `codex -a never exec "…"`. Current model names and defaults live on the [models hub](/en/ecosystem/models/). For the full option set, see [Codex configuration](/en/codex/quick-start/configuration/) and [writing AGENTS.md for Codex](/en/codex/quick-start/agents-md/). Codex 0.158.0 to 0.162.1 added or changed these keys and features (checked against the 0.162.1 config schema, its feature list and the release notes on 2026-10-12): | Key or feature | File | What it does | Version | |---|---|---|---| | `daybreak` | `config.toml` | Default Daybreak preference for new threads and non-interactive turns. `daybreak = true` alone is not enough: Daybreak is opt-in through `features.cli_daybreak = true` or `--enable cli_daybreak`, and `/daybreak` is unavailable until then | 0.161.0 | | `features.cli_daybreak` | `config.toml` | The gate for Daybreak: under development, off by default | 0.161.0 | | `audio.microphone_channel` | `config.toml` | One-based microphone channels to mix for voice input; unset mixes all input channels | between 0.157.1 and 0.162.1 | | `auto_review.circuit_break_action` | `config.toml` | Whether circuit-breaker interruptions include a structured error; strict mode writes errors that older clients may not recognise when reading shared history. Defaults to `default` | between 0.157.1 and 0.162.1 | | `auto_review.conversation_history_max_output_tokens` | `config.toml` | Maximum estimated tokens per history-tool response in automatic review; defaults to 4,000 | between 0.157.1 and 0.162.1 | | `auto_review.experimental_conversation_history_prompt` | `config.toml` | Experimental replacement for the history-retrieval instructions when history tools and Apps are enabled; blank uses the built-in prompt | between 0.157.1 and 0.162.1 | | `tui.mouse_scroll_speed` | `config.toml` | Mouse-wheel speed multiplier for transcript scrolling; defaults to `1.0` | 0.162.0 | | `allow_mxc` | `requirements.toml` | Admin requirement for the Windows MXC sandbox | 0.161.0 | | `features.write_stdin_approval` | `config.toml` | Terminal-input approval for commands running with elevated permissions; stable and on by default | 0.158.0 | | `features.api_key_model_discovery` | `config.toml` | Model discovery when you sign in with an API key; stable and on by default | 0.161.0 | | `features.ultrafast_mode` | `config.toml` | The Ultrafast speed tier for GPT-6 Astra and GPT-6.1 Sol; stable and on, but in Codex it needs an eligible plan (see the [pricing analysis](/en/comparison/pricing-analysis/)) | between 0.157.1 and 0.162.1 | | `tui.prompt_suggestions` | `config.toml` | Removed together with the automatic follow-up prompt suggestions; delete it | removed in 0.159.0 | Codex 0.162.0 also preserves CRLF line endings in `apply_patch` without an opt-in, so the `apply_patch_preserve_line_endings` feature no longer exists. ## How do you share one instruction set across all three tools? Make `AGENTS.md` the source of truth: Codex reads it natively, Claude Code reads or imports it, and Cursor reads it in the project root and in subdirectories (Cursor's docs, checked 2026-10-12). Cursor needs no copy of it in `.cursor/rules/`; keep that folder for rules that only Cursor needs. Then add only what each tool needs on top. ```text AGENTS.md # shared: stack, commands, boundaries, done criteria packages/api/AGENTS.md # package rules; Codex and Cursor read it directly CLAUDE.md # "@AGENTS.md" plus Claude-only notes (Cursor reads it too) .claude/rules/api.md # paths: packages/api/** (Claude's copy of scoped rules) .cursor/rules/test-files.mdc # globs: **/*.test.ts (Cursor-only scoping a directory cannot express) .codex/config.toml # project_doc_max_bytes, approval policy, MCP servers ``` **Cursor** No copy of the shared layer is needed: Cursor reads `AGENTS.md` in the project root and in subdirectories, combines nested files with their parents (the more specific instructions take precedence), and reads `CLAUDE.md` the same way, always applied (Cursor's rules docs and help, checked 2026-10-12). Add a `.mdc` rule only for what is specific to Cursor, such as file-type scoping that a directory cannot express, like `**/*.test.ts`, with `globs`. Because Cursor applies `CLAUDE.md` too, write its Claude-only notes so they do no harm in Cursor. **Claude Code** Put `@AGENTS.md` on the first line of `CLAUDE.md`. With a root `CLAUDE.md` present, the default setting skips every `AGENTS.md` that is not imported, including `packages/api/AGENTS.md`. Either set **Project instructions** to `claude-md-and-agents-md` (from v2.1.277), or mirror package rules in `.claude/rules/` with `paths`. **Codex** No change: `AGENTS.md` is Codex's native file. If the repository already has `CLAUDE.md` files and no `AGENTS.md`, set `project_doc_fallback_filenames = ["CLAUDE.md"]` instead of duplicating them. When the duplicated scoped rules start to drift, a sync tool can generate them from one source; see [rules sync tools](/en/ecosystem/frameworks/rules-sync/). **Copy-paste prompt: consolidate instruction files into AGENTS.md** ```text Inventory every agent instruction file in this repository: AGENTS.md, AGENTS.override.md, CLAUDE.md, CLAUDE.local.md, .claude/CLAUDE.md, .claude/rules/**, .cursor/rules/**, .cursorrules. For each, list its path, size in bytes, and which tools load it. Then propose a consolidation: 1. Move instructions every tool needs into the root AGENTS.md or the package AGENTS.md nearest to the code they govern. 2. Reduce CLAUDE.md to "@AGENTS.md" plus Claude-only notes. 3. Cursor reads AGENTS.md and CLAUDE.md directly, so do not copy the shared layer into .cursor/rules. Keep .cursor/rules/*.mdc only for rules specific to Cursor, and .claude/rules/*.md for Claude Code's path scoping. 4. Flag contradictions between files and instructions the code already makes obvious. Show the proposed file tree and a diff. Do not write any files until I approve. ``` ## How do you prove which instructions loaded? Reading every instruction file after each change does not scale. Check what the agent actually received, gate the size in CI, and give the files an owner. 1. **Add a canary line.** Put a short, unique sentence in each file, such as `Instruction set: api-rules-2026-09.` It costs a few tokens and makes loading visible. 2. **Inspect the loaded context.** **Cursor** Open a file the rule should cover, then run the prompt at the end of these steps. Every file-scoped rule you expect must appear by its canary. **Claude Code** Run `/context` and check that each expected file appears under **Memory files**. From v2.1.283 (both release channels on 2026-10-12), run `/doctor prompt-audit` to find stale, contradictory or broken instructions. It proposes edits and changes nothing until you approve. **Codex** Render the exact model-visible input from the directory you work in, then search it for the canary: ```bash cd packages/api codex debug prompt-input | grep -c "Instruction set: api-rules-2026-09" ``` `0` means the file was skipped: the project is marked untrusted, the file sits below the working directory, or the budget ran out before it. 3. **Gate the Codex budget in CI.** The script fails when any root-to-leaf chain exceeds 32 KiB. Run it from the repository root. It counts `AGENTS.override.md` and `AGENTS.md` only; if you set `project_doc_fallback_filenames`, add those names to `names`, or a repository that relies on `CLAUDE.md` passes with nothing measured. ```bash #!/usr/bin/env bash # Fails when any root-to-leaf instruction chain exceeds Codex's default 32 KiB budget. set -euo pipefail limit=32768 # Names Codex looks for in each directory, in order. If you set # project_doc_fallback_filenames, append those names too, e.g. CLAUDE.md. names=(AGENTS.override.md AGENTS.md) match=(-false) for name in "${names[@]}"; do match+=(-o -name "$name"); done status=0 while IFS= read -r leaf; do dir=$leaf total=0 while :; do for name in "${names[@]}"; do if [ -f "$dir/$name" ]; then total=$((total + $(wc -c < "$dir/$name"))) break fi done [ "$dir" = "." ] && break dir=$(dirname "$dir") done if [ "$total" -gt "$limit" ]; then echo "over budget: $total bytes in the chain ending at $leaf/" status=1 fi done < <(find . \( "${match[@]}" \) -not -path '*/node_modules/*' -exec dirname {} \; | sort -u) exit "$status" ``` 4. **Assign an owner.** Instruction files change agent behaviour on every run, so review them like code. The tech lead, or whoever owns the build, approves changes through `CODEOWNERS`: ```text AGENTS.md @your-org/eng-leads **/AGENTS.md @your-org/eng-leads CLAUDE.md @your-org/eng-leads .claude/ @your-org/eng-leads .cursor/rules/ @your-org/eng-leads .codex/ @your-org/eng-leads ``` Replace `@your-org/eng-leads` with your own team handle. Organisation-wide policy that individuals must not override belongs in managed settings rather than in the repository; see [managed agent policy](/en/org/managed-policy/). **Copy-paste prompt: report the instructions you received** ```text Before doing anything else, list every project instruction file and rule you have loaded in this session: the path, and the line that starts with "Instruction set:" if the file has one. Then list any instruction file in this repository that exists but that you did not load, and say why (scope, glob, directory, size limit, or setting). Do not read new files to answer the first list; report only what is already in your context. ``` ## When configuration files fail silently | Symptom | Cause | Recovery | |---|---|---| | A Cursor rule scoped to API routes applies to every file | `alwaysApply: true` overrides `globs` | Set `alwaysApply: false`; keep `globs` | | A Cursor rule never loads | The file ends in `.md`, not `.mdc`, or sits outside `.cursor/rules/` | Rename to `.mdc` under `.cursor/rules/` | | Claude Code stopped following the team's `AGENTS.md` | Someone added `CLAUDE.local.md` or a `CLAUDE.md`, which switches the fallback off | Put `@AGENTS.md` at the top of `CLAUDE.md`, or set **Project instructions** to `claude-md-and-agents-md` | | Claude Code ignores `AGENTS.md` on one laptop | That install is older than v2.1.277 or disabled the built-in `agents-md` plugin | Use the `@AGENTS.md` import; it works on every version | | Claude Code forgets an instruction after `/compact` | The instruction was given only in chat, or it lives in a nested file or path-scoped rule that has not reloaded | Move it into the root `CLAUDE.md`; nested files reload when Claude reads a file there | | Codex ignores the newest package rules | The chain exceeded `project_doc_max_bytes`; the crossing file was cut and later files skipped | Run the budget script, trim the root file, or raise `project_doc_max_bytes` | | Codex ignores `packages/api/AGENTS.md` | Codex was started at the root; files below the working directory are not read | Start Codex with `--cd packages/api` | | Codex ignores the committed `.codex/config.toml` or all project `AGENTS.md` files | The project is not trusted, or is marked untrusted | Trust the project when Codex asks, then re-run `codex debug prompt-input` | | `codex -a untrusted` fails with "invalid value" | In 0.157.1 through 0.162.1, `-a` accepts only `on-request` and `never` | Set `approval_policy = "untrusted"` in `config.toml` | | Codex's `AGENTS.override.md` has no effect in Claude Code | Claude Code does not read `AGENTS.local.md`, `AGENTS.override.md` or anything under `.agents/` | Put the content in `AGENTS.md`, or import the file from `CLAUDE.md` with `@path` | | `defaultMode: "auto"` in `.claude/settings.json` has no effect | Project and local settings cannot set `auto` or `bypassPermissions` | Set `auto` in user or managed settings; never set `bypassPermissions` outside a disposable, network-restricted sandbox | ## Where to go next with agent configuration - [Pruning CLAUDE.md and AGENTS.md](/en/workflows/context/pruning-context-files/): decide which lines belong in which file, and measure what removing them changes. - [Command reference](/en/reference/command-reference/): the CLI flags and slash commands used on this page. - [Installing and managing skills](/en/ecosystem/skills/installing-managing/): when a workflow belongs in a skill rather than an instruction file. - [Glossary](/en/reference/glossary/): the terms used across these three tools. --- # A–Z Reference: AI Development Terms URL: https://developertoolkit.ai/en/reference/glossary/ Description: A to Z reference of AI development terms: what each means, its name in Claude Code, Codex and Cursor, and how 21 names for working with AI differ. The glossary below defines the vocabulary of agentic engineering, the practice of building software with coding agents such as Claude Code, Codex and Cursor. It covers how agents run, what they know and may do, how they are extended, and how their output is proven. Each entry gives the meaning, each tool's name for it, and the in-depth page. A policy says the agent "may run unattended in a sandbox". The developer reads that as auto mode, security reads it as network-off containers, and the Codex user sets `approval_policy = "never"` and believes the sandbox came with it. None of them is wrong about the words, but they have agreed to three different setups. This page is for the developer, tech lead, CTO or executive who needs one meaning per term before writing it into a spec, a policy or an `AGENTS.md`. ## What this glossary settles for your team - One spelling and one meaning per term, used across this site: "subagent", not "sub-agent"; "Bugbot", not "BugBot". - The Claude Code, Codex and Cursor name for the same idea, so a mixed-tool team can write one policy. - The pairs of terms that cause real incidents when mixed up, with the fix for each. - Two prompts and a CI check that hold your own repository to this vocabulary. Tool facts on this page were checked on 2026-09-26 against Claude Code 2.1.283 (the `latest` channel) and Codex CLI 0.157.1. Entries that name Claude Code 2.1.296, Codex 0.162.1, a Cursor page or the date 2026-10-12, and every entry added or changed on 2026-10-12, were re-checked on that day. The Cursor entries that carry no date come from Cursor's documentation as read on 2026-08-28. ## Same idea, three names: how do Claude Code, Codex and Cursor name things? | Concept | Claude Code | Codex | Cursor | | --- | --- | --- | --- | | Project instructions | `CLAUDE.md`; reads `AGENTS.md` when there is no `CLAUDE.md`, from v2.1.277 | `AGENTS.md` (`/init` creates one) | Rules (`.cursor/rules`); also reads `AGENTS.md` and `CLAUDE.md` | | What the agent may do without asking | Permission mode (Manual, `acceptEdits`, `plan`, `auto`, `dontAsk`, `bypassPermissions`) | Approval policy plus sandbox or permission profile | Run modes (Auto-review, Allowlist, Run Everything) | | Automatic approval without prompting you | Auto mode (a classifier reviews actions) | Auto-review (`--approve-for-me`) | Auto-review for local tool calls | | Plan before editing | Plan mode (`/plan`, Shift+Tab) | Plan mode (`/plan`) | Plan Mode | | Parallel isolated checkout | `--worktree` | `--worktree`, `/worktree` | Worktrees | | Delegated helper agent | Subagent (`.claude/agents/`) | Subagent (`/subagents`) | Subagents | | Non-interactive run | `claude -p` | `codex exec` | Print mode (`agent -p`) | | Remote or scheduled work | `--cloud`, background sessions, Routines | Codex cloud, Automations | Cloud Agents, Automations | | Code review by the agent | `/code-review` | `/review`, `codex review` | Bugbot (on pull requests) | | Keep working until done | `/goal` | `/goal` | `/goal` (rolling out) | | Installable bundle | Plugin (`claude plugin`) | Plugin (`codex plugin`) | Plugin | ## How do you hold your repository to one vocabulary? A glossary helps only if the files agents read use it. Run these steps once, then keep the CI check. 1. Ask the agent to audit your instruction files and policies against this page with the first prompt below. 2. Ask the agent to translate your effective configuration into plain terms with the second prompt, and compare the answer with what your policy claims. 3. Add the terminology check to CI so retired terms cannot come back. **Copy-paste prompt: terminology audit of agent instructions** ```text Read AGENTS.md, CLAUDE.md, every file under .cursor/rules/ and docs/ai-policy.md if they exist. List every term that describes agent autonomy, permissions, sandboxing, review or "done" (for example: unattended, auto, sandbox, approve, safe, verified, reviewed). For each term, quote the sentence, say which concrete setting or check it maps to in this repository (a permission mode, approval policy, sandbox mode, CI job or test suite), and flag it when it maps to nothing or to two different things. Do not edit any file. Output a table: term | file:line | maps to | problem | proposed wording. ``` **Copy-paste prompt: explain what the configured autonomy allows** ```text Inspect .claude/settings.json, .claude/settings.local.json, .mcp.json, .codex/config.toml and ~/.codex/config.toml if they exist. In plain language, tell me for each tool: 1. which permission mode or approval policy a session starts in, 2. what the sandbox or permission profile lets a shell command read, write and reach on the network, 3. which hooks run and on which events, 4. which MCP servers load and what each can change outside this repository. Cite the file and key for every statement. If a value is not set, say which default applies and that you are assuming it. Finish with the three settings a reviewer should check first. ``` The audit is verified without reading every line: each row cites `file:line`, so a reviewer spot-checks three rows and rejects the report if one is wrong. The configuration answer is verified by running the matching status commands yourself. **Claude Code** Run `/status` for the version, model and account, `/permissions` for allow and deny rules, `/hooks` for hook configuration, `/mcp` for servers, and `/context` for what fills the context window. **Codex** Run `/status` for the session configuration and token usage, `/permissions` for what Codex is allowed to do, `/debug-config` for config layers and requirement sources, `/mcp` for tools, and `/hooks` for lifecycle hooks. **Cursor** Cursor documents Rules, Hooks, MCP and Run modes as separate settings pages. Run modes are under **Settings > Agents > Approvals & Execution** (Cursor's docs, checked 2026-10-12). Open each page and compare it with the agent's answer; menu paths change between releases, so confirm the path in your build. The CI check fails the build when a retired term reappears in the files agents read: ```bash # Runs in CI. Globs skip missing paths, --hidden reaches .cursor/rules/, # and the step fails when the search prints a match or rg itself errors. The patterns target the # retired usage only; if your docs quote a retired term as a negative example, # add an allow-list (for example a --glob '!docs/terminology.md' exclusion). rc=0 hits=$(rg -n --hidden --no-messages \ -e 'codex[^`]*--full-auto' -e 'BugBot' -e 'Background Agent' \ -e 'approval_policy *= *"on-failure"' -e '(-a|--ask-for-approval) on-failure' \ -g 'AGENTS.md' -g 'CLAUDE.md' -g '.cursor/rules/**' -g 'docs/**' .) || rc=$? [ "$rc" -le 1 ] || { echo "rg failed with exit $rc"; exit 2; } if [ -n "$hits" ]; then echo "$hits"; exit 1; fi ``` ## Which terms describe agents and how they run? ### Agent (coding agent) A model running in a loop with tools: it reads files, runs commands, edits code and checks results until it decides the task is done. Claude Code, Codex and Cursor are agents; the model is one part of each. See [AI coding agents](/en/glossary/ai-coding-agents/). ### Agent loop The repeated cycle of plan, act, observe and correct inside one session. A loop runs unattended only when an automated check, not the agent's own opinion, decides when it stops. ### Agentic engineering Building software by specifying behaviour, delegating implementation to agents and verifying the result with evidence instead of reading every line. See the [agentic engineering term page](/en/glossary/agentic-engineering/) and [how it compares with 20 other names](/en/ladder/vibe-coding-vs-agentic-engineering/). ### Autonomy ladder Dan Shapiro's six-level scale, Level 0 to Level 5, for how much code agents write and how much humans still read. See [the autonomy ladder](/en/ladder/). ### Background and cloud agents Sessions that keep running while you do something else. Claude Code has background sessions (`--bg`, managed with `claude agents`) and cloud sessions (`--cloud`). Codex has Codex cloud, whose tasks run in published, reusable cloud environments; the earlier setup is now called Codex Cloud (Legacy) (Codex docs, checked 2026-10-12). Cursor calls its remote agents **Cloud Agents**, which run in isolated VMs (Cursor docs, read 2026-10-13); the older name "Background Agents" is retired. See [background agents](/en/workflows/automate/background-agents/). ### Goal A completion condition the agent keeps working toward across turns. `/goal` exists in Claude Code and Codex, and Cursor lists it as rolling out. See [the /goal command](/en/workflows/automate/goal-command/). ### Headless mode Running an agent without an interactive session, usually in CI: `claude -p`, `codex exec`, or Cursor's print mode (`agent -p`). In Claude Code 2.1.296 (checked 2026-10-12), `-p` skips the workspace trust dialog, so run it only in directories you trust. See [headless mode](/en/glossary/headless-mode/). ### Routine and automation Saved agent runs started by a schedule or an event. Claude Code calls them Routines (`/schedule`, research preview); Codex and Cursor call them Automations, and Codex's docs page for them is now titled "Scheduled tasks" (checked 2026-10-12). ### Claude Tag Claude's Slack integration for channel work. It is in Public Beta on Team and Enterprise plans and only on Anthropic's first-party service (Claude Tag docs, checked 2026-10-12). The earlier Claude in Slack app stopped answering in channels of a workspace paired with a Claude organization on 2026-10-05; direct messages are not affected. Codex's Slack integration is a different thing: mention `@ChatGPT`, and when Cloud delegation is enabled, ChatGPT sends repository work to a Codex Cloud task. See [Claude Tag](/en/claude-code/team/claude-tag/). ### Software factory A pipeline in which agents pull work from a queue, build and verify it, and open pull requests with little or no human reading the diff. See [software factories](/en/method/principles/software-factories/) and the [software factory term page](/en/glossary/software-factory/). ### Subagent A helper agent the main agent starts for one subtask, with its own context window, so the parent's context stays small. Claude Code ships built-in Explore, Plan and general-purpose subagents and reads custom ones from `.claude/agents/`. Codex manages them with `/subagents`; Cursor calls them Subagents. See [subagents](/en/glossary/subagents/). ### Agent team In Claude Code, a lead session plus peer sessions that share a task list and message each other. It is experimental and off by default (`CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1`). Unlike subagents, teammates are full sessions. ## Which terms describe what the agent knows? ### Context window Everything the model can see in one request, measured in tokens: instructions, conversation, file contents and tool output. Limits differ by model and tool; the [models hub](/en/ecosystem/models/) lists them. See [context windows](/en/workflows/context/context-windows/) and the [context window term page](/en/glossary/context-window/). ### Token The unit models read, write and bill by. Word-to-token ratios vary by tokenizer: Anthropic states that its Claude 4.7 and later tokenizer produces roughly 30% more tokens for the same text than earlier models (pricing page, checked 2026-09-26). ### Compaction Summarising the conversation so far to free context. Claude Code and Codex compact automatically near the limit and on demand with `/compact`; both expose `PreCompact` and `PostCompact` hook events. Compaction drops detail, so durable facts belong in instruction files, not the chat. ### AGENTS.md An open Markdown format for agent instructions: build commands, conventions, boundaries. Codex reads it before doing any work; Claude Code reads it when a project has no `CLAUDE.md`, from v2.1.277. See [AGENTS.md](/en/glossary/agents-md/). ### CLAUDE.md Claude Code's instruction file, loaded from the project root and `~/.claude/CLAUDE.md` at session start, and from a subdirectory when the agent works there. `/init` drafts one, `/memory` edits it, and `@path/to/file` imports another file into it. See [CLAUDE.md](/en/glossary/claude-md/). ### Rules Cursor's name for project and user instructions the agent follows. See [Cursor project rules](/en/cursor-ide/quick-start/project-rules/). ### Memory Knowledge that survives between sessions. Claude Code has instruction files plus auto memory, which records learnings on its own. Codex has memories, stable but off by default in 0.157.1 through 0.162.1 (`/memories`). ### Codebase indexing and agentic search Two ways an agent finds code. Indexing builds a searchable embedding of the repository ahead of time; agentic search reads and greps files on demand. See [codebase indexing](/en/workflows/context/codebase-indexing/). ### Intent, spec and plan The first three files of the artifact chain: `intent.md` says why the work matters, `spec.md` says what "done" means in testable terms, and `plan.md` says how the agent will get there. See [the artifact chain](/en/method/lifecycle/artifact-chain/). ## Which terms describe what the agent may do? ### Permission mode Claude Code's setting for which actions run without asking: `default` (shown as **Manual**), `acceptEdits`, `plan`, `auto`, `dontAsk` and `bypassPermissions`. Shift+Tab cycles them. See [permissions and sandboxing](/en/workflows/harness/permissions-and-sandboxing/). ### Auto mode The Claude Code permission mode in which a classifier model reviews each action instead of you. From v2.1.283 (both release channels on 2026-10-12) it is the starting mode for interactive terminal and VS Code sessions on supported models. `claude -p` and the Agent SDK still start in Manual, except on third-party providers or with telemetry off, where they start in auto mode from v2.1.285; unsupported models such as Haiku 4.5 also start in Manual. Haiku 5.5 is supported from v2.1.293 (the `latest` channel only on 2026-10-12), and a session in an organization with the HIPAA configuration starts in Manual from v2.1.285. ### Approval policy Codex's setting for when it asks before acting: `untrusted`, `on-request` (the default), `granular` or `never`. On the command line, `-a` accepts only `on-request` and `never` in 0.157.1 through 0.162.1, and it goes before the subcommand: `codex -a never exec`. ### Sandbox An operating-system boundary on what agent commands can read, write and reach on the network. Claude Code sandboxes Bash with Seatbelt on macOS and bubblewrap on Linux and WSL2. Codex offers `--sandbox read-only`, `workspace-write` or `danger-full-access`. See [sandbox](/en/glossary/sandbox/). ### Permission profile Codex's newer, preferred way to set the sandbox, in beta: `default_permissions` in `config.toml`, with built-ins such as `:read-only` and `:workspace`. OpenAI states that profiles and the legacy `--sandbox` flag do not compose, so pick one. ### Run modes (Cursor) Cursor's setting for what an agent may do without asking, under **Settings > Agents > Approvals & Execution**: **Auto-review** (the recommended default since Cursor 3.6, 2026-05-29), **Allowlist** and **Run Everything**. Auto-review runs allowlisted calls at once, runs other shell commands in the sandbox when possible and sends calls that don't use the sandbox to a classifier; Cursor says it "is not a security boundary". Cloud Agents don't use run modes, because each runs on its own dedicated machine and never asks you to approve an action (Cursor's docs, checked 2026-10-12). See [permissions and sandboxing](/en/workflows/harness/permissions-and-sandboxing/). ### Plan mode A read-only mode in which the agent investigates and proposes a plan, and edits stay blocked until you approve it. See [plan mode](/en/glossary/plan-mode/). ### Worktree A second Git checkout of the same repository in its own directory, so parallel agents do not overwrite each other. See [Git worktrees](/en/glossary/git-worktrees/). ### Bypass mode Running with every permission check off: `--dangerously-skip-permissions` in Claude Code, `--dangerously-bypass-approvals-and-sandbox` in Codex. Claude Code recommends it only for sandboxes with no internet access; Codex reserves it for environments that are already externally sandboxed (checked in 2.1.283 / 0.157.1 help). Use it nowhere else. "YOLO mode" is the informal name; do not put it in policies. ### Checkpoint A saved point you can return to. Claude Code's `/rewind` (or Esc twice on an empty prompt) restores earlier code and conversation. Treat Git commits as the checkpoint of record. ### Prompt injection Instructions hidden in content the agent reads, such as an issue, a web page or a dependency README, that redirect it. See [the agent threat model](/en/org/agent-threat-model/). ## What are MCP servers, skills, plugins and hooks? ### MCP (Model Context Protocol) An open protocol that connects agents to tools and data. The current specification is dated 2026-07-28, and Anthropic donated MCP to the Agentic AI Foundation in December 2025. See [MCP](/en/glossary/mcp/) and [the 2026-07-28 spec](/en/ecosystem/mcp/spec-2026-07-28/). ### MCP server A process that exposes tools, resources or prompts over MCP. Add one with `claude mcp add` or `codex mcp add`. A Server Card (SEP-2127, Final since 2026-10-06) is a standard format that describes a server's transports, protocol versions and connection guidance before a client connects. Each server adds tool definitions to the context; Claude Code and Codex load them on demand through tool search, which is on by default. See [essential MCP servers](/en/ecosystem/mcp/essential-servers/). ### Agent Skills An open format for reusable instructions: a folder with a `SKILL.md` whose `name` (at most 64 characters) and `description` (at most 1,024) are always visible to the agent, and whose body loads only when the task matches. The spec lists 46 compatible clients (checked 2026-09-26). The `skills` CLI (1.7.0 on npm) installs them across agents with `npx skills add OWNER/REPO`. See [Agent Skills](/en/glossary/agent-skills/). ### Slash command A `/name` shortcut typed in the session. In Claude Code, custom commands are now skills. See [slash commands](/en/glossary/slash-commands/). ### Plugin An installable bundle of skills, subagents, hooks and MCP configuration, distributed through a marketplace. See [plugins](/en/ecosystem/plugins/). ### Mod (Claude Mods) A Claude Code plugin that changes how Claude Code looks and behaves, through JavaScript or TypeScript event handlers. Claude Mods arrived in v2.1.287 ("plugins may now modify deeper behavior"), which both release channels have on 2026-10-12. Some built-in features are mods, such as `/diff`, and `claude plugin test` runs a mod's tests (Claude Code docs and changelog, checked 2026-10-12). See [plugins](/en/ecosystem/plugins/). ### Hook A script or handler that runs on an agent lifecycle event and can block the action. Claude Code documents 33 events; Codex has 12 (0.157.1 through 0.162.1, checked 2026-10-12) and asks you to trust a hook before it runs. A Claude Code `command` or `http` hook can set `onFailure: "block"` (v2.1.295, `latest` channel), so a hook that can't start, times out or exits with an unexpected code blocks the action instead of letting it through. See [hooks](/en/glossary/hooks/). ### Harness Everything around the model: context, tools, permissions, hooks, skills, plugins and environment. See [the harness](/en/workflows/harness/) and [harness engineering](/en/glossary/harness-engineering/). ## Which terms describe how agent output is proven correct? ### Acceptance criteria (executable) Each requirement written as a Given/When/Then scenario with a test that fails before the code exists. See [acceptance criteria](/en/workflows/plan/acceptance-criteria/). ### Oracle and oracle strength The oracle is whatever decides a change is correct. Oracle strength is how likely it is to fail when the code is wrong, measured with mutation score, behaviour coverage, test provenance and flake rate. See [oracle strength](/en/workflows/test/oracle-strength/). ### Protecting the oracle Making tests and CI configuration impossible for the agent to change in the task they judge. See [protect the oracle](/en/workflows/test/protect-the-oracle/). ### Code Review Rules (Codex) A `## Code Review Rules` section in `AGENTS.md` that holds the rules Codex applies when it reviews a pull request on GitHub. `@codex review` in a PR comment, or automatic reviews turned on in Codex settings, starts the review, and "in GitHub, Codex flags only P0 and P1 issues". Security Review is separate (research preview): `@codex security review` (Codex docs, checked 2026-10-12). ### Evidence bundle A structured block in an agent's pull request that maps each acceptance criterion to a check that ran. CI blocks the merge when it is incomplete. See [the evidence bundle](/en/workflows/ship/evidence-bundle/). ### Eval A fixed set of real tasks run against two agent configurations and scored by code. See [evals for coding agents](/en/ecosystem/observability/evals-coding-agents/). ### Model-graded check A CI gate in which a different model grades an artifact against a rubric. See [model-graded checks](/en/workflows/test/model-graded-checks/). ### Fitness function An automated structural rule, such as no layer violations or a complexity budget, that fails the build. See [fitness functions](/en/workflows/test/fitness-functions/). ### Characterization test A test that records what existing code does today, so an agent can refactor against it. See [characterization tests](/en/workflows/test/characterization-tests/). ### Slop Agent-written code that compiles, passes its tests and reads well but is wrong, such as swallowed errors or weakened tests. See [slop detection](/en/workflows/test/slop-detection/). ### Human in the loop The four decisions a person keeps: intent, spec, evidence and risk class. See [human in the loop](/en/method/principles/human-in-the-loop/). ### Risk class A label on a change that decides whether a human must read the code, for example auth, money, schema or migrations. ### Vibe coding Accepting agent output without verifying it. Fine for throwaway prototypes, and the opposite of what this site teaches for production code. Andrej Karpathy introduced the term on 2 February 2025. See [vibe coding](/en/glossary/vibe-coding/). ## Which terms describe models, effort and cost? ### Default model The model a tool uses when you choose nothing. On 2026-10-12 that is Claude Opus 5.5 in Claude Code (from v2.1.280, both release channels) and GPT-6.1 Sol in Codex (bundled default since CLI 0.159.1). Prices and the full lineup live on the [models hub](/en/ecosystem/models/). ### Effort How much reasoning the model spends per step. Claude Code takes `low`, `medium`, `high`, `xhigh` and `max` through `/effort` or `--effort`, and Opus 5.5, Sonnet 5.5 and Haiku 5.5 default to `medium`. Codex sets effort with `/model`, and GPT-6.1 Sol defaults to `low`. Raise effort before switching model. ### Ultracode A Claude Code setting, not a model effort level: it has Claude plan a workflow for each substantive task without being asked, at whichever effort level the session runs. Since v2.1.284, turning it on or off with `/effort ultracode [on|off]` or the `ultracode` setting leaves the effort level unchanged; `--effort ultracode` still turns it on and also sets `xhigh`. Before v2.1.284, turning it on set the session to `xhigh` effort. It is unavailable when workflows are turned off or when the model doesn't support `xhigh` (Claude Code docs, checked 2026-10-12). See [dynamic workflows](/en/claude-code/automate/dynamic-workflows/). ### Fast mode A faster serving tier at a higher cost per token: fast mode in Claude Code, the Fast service tier in Codex. ### Ultrafast A Codex speed tier that is separate from fast mode. It covers GPT-6 Astra and GPT-6.1 Sol: "GPT-6 Astra Ultrafast generates tokens up to 8x faster than GPT-6 Astra in Standard mode in Codex". It uses 8x included usage or 6x credits, where fast mode uses 2.5x and 2x, and in Codex it needs an eligible plan (Codex docs, checked 2026-10-12; plans and prices are on the [pricing analysis](/en/comparison/pricing-analysis/)). See the [models hub](/en/ecosystem/models/). ### Usage limits Subscription allowances. Claude Code and Codex both meter usage in rolling five-hour and weekly windows. ### Open-weight model A model whose weights you can download and host. See [open-weight models](/en/ecosystem/models/open-weight/). ## Which terms describe the method? ### AI-native SDLC A looped lifecycle in which agents do the mechanical work at every stage and humans decide at gates. Also called the agentic SDLC or the AI SDLC. See [the AI-native SDLC](/en/method/lifecycle/) and the [AI SDLC term page](/en/glossary/ai-sdlc/). ### Artifact chain The versioned files each stage hands to the next: intent, spec, plan, diff and tests, pull request, incident record. See [the artifact chain](/en/method/lifecycle/artifact-chain/). ### Spec-driven development Keeping `spec.md` authoritative, with a spec delta in every behaviour-changing pull request. See [spec-driven development](/en/workflows/plan/spec-driven-development/) and the [spec-driven development term page](/en/glossary/spec-driven-development/). ## Which names describe ways of working with AI, and how do they differ from vibe coding? The pillar article [Vibe coding vs agentic engineering: 21 terms compared](/en/ladder/vibe-coding-vs-agentic-engineering/) gives each name's origin, a dated quote and its contrast with vibe coding. The entries below are the short versions. ### Agentic coding Using a tool in which an AI agent plans, writes, runs and tests code in a loop toward a goal. The term names what the tool does, not how carefully you use it, so you can vibe code with it. See [agentic coding](/en/glossary/agentic-coding/). ### Agentic software development Software delivery in which autonomous agents work across the whole lifecycle and humans stay accountable at gates (Forrester, 8 June 2026). Its scope is the lifecycle, not one session. See [agentic software development](/en/glossary/agentic-software-development/). ### Vibe engineering Simon Willison's proposed name (7 October 2025) for professionals who use LLMs while staying accountable for what ships. On 23 February 2026 he wrote that "agentic engineering" was coming out on top. See [vibe engineering](/en/glossary/vibe-engineering/). ### Augmented coding Kent Beck's name for coding with an AI "genie" while caring about the code, its complexity and its tests. It began as his word for vibe coding (18 April 2025) and became its contrast on 25 June 2025. It is not Gartner's AI-augmented development. See [augmented coding](/en/glossary/augmented-coding/). ### AI-assisted coding The umbrella for every way of using AI to help write software, from autocomplete to agents to vibe coding. Willison calls vibe coding its "less responsible subset". See [AI-assisted coding](/en/glossary/ai-assisted-coding/). ### AI pair programming Treating the AI as a second programmer whose suggestions you read as they appear, popularised by GitHub Copilot on 29 June 2021. On this site's autonomy ladder it is Level 2. See [AI pair programming](/en/glossary/ai-pair-programming/). ### Prompt engineering Writing effective instructions for a model. It concerns the quality of the input and says nothing about reviewing the output. See [prompt engineering](/en/glossary/prompt-engineering/) and [prompt engineering for Claude Code](/en/claude-code/build/prompt-engineering/). ### Context engineering Deciding what information, tools and instructions a model sees at each step. Tobi Lütke and Andrej Karpathy popularised the name in June 2025. See [context engineering](/en/glossary/context-engineering/) and [context management](/en/workflows/context/). ### Harness engineering Turning each recurring agent mistake into a permanent control: an instruction, a tool, a test or a linter rule. Mitchell Hashimoto named the practice in writing on 5 February 2026. See [harness engineering](/en/glossary/harness-engineering/). ### Compound engineering Every's method, and plugin, for making each change leave the next one easier: the compound step writes each lesson into files the next run reads. Kieran Klaassen introduced it on 18 August 2025. See [compound engineering](/en/glossary/compound-engineering/). ### AI engineering The discipline and job of building applications on foundation models, popularised by swyx on 30 June 2023. It is a different job from agentic engineering, which uses coding agents to build any software; some pages on this site use the phrase in the second sense. See [AI engineering](/en/glossary/ai-engineering/). ### Agentic workflows LLM applications designed so the model works in several passes, with reflection, tools or other agents, popularised by Andrew Ng in March 2024. GitHub Agentic Workflows is a separate product. See [agentic workflows](/en/glossary/agentic-workflows/). ### Agent orchestration Coordinating several agents on one body of work: split it, run the pieces in parallel or in sequence, then merge. It multiplies whatever review discipline already exists. See [agent orchestration](/en/glossary/agent-orchestration/) and [orchestration patterns](/en/workflows/automate/orchestration-patterns/). ### AI-driven development A generic label for AI leading the work, with no single owner. Its strongest anchor is AWS's AI-Driven Development Lifecycle. See [AI-driven development](/en/glossary/ai-driven-development/). ### AI-DLC AWS's AI-Driven Development Lifecycle, introduced by Raja SP on 31 July 2025: AI proposes, and the team validates in "Mob Elaboration" and "Mob Construction". See [AI-DLC](/en/glossary/ai-dlc/) and [the AI-DLC comparison](/en/ecosystem/frameworks/enterprise-frameworks/). ### AI-native development A posture in which a team redesigns its process around AI instead of adding AI to the old process, popularised by Tessl on 6 July 2024. See [AI-native development](/en/glossary/ai-native-development/). ## Which glossary terms do teams confuse, and what breaks? | Confused pair | What breaks | Recovery | | --- | --- | --- | | Approval policy and sandbox (Codex) | `approval_policy = "never"` is read as "safe"; commands then run with whatever sandbox was already set | Set both in the same config block, and state both in the policy | | Auto mode, auto-review and Auto-review | Three vendors, three similar names, three different mechanisms; a policy approving "auto" approves an unknown one | Name the tool and setting: "Claude Code `auto` permission mode", "Codex `--approve-for-me`" | | `CLAUDE.md` and `AGENTS.md` | From v2.1.277, Claude Code reads `AGENTS.md` only when there is no `CLAUDE.md`, so adding a `CLAUDE.md` silently hides your `AGENTS.md` | Keep rules in `AGENTS.md` and make `CLAUDE.md` import it with `@AGENTS.md` | | Skill, MCP server and plugin | A team builds an MCP server for what a 30-line skill does, or installs the same skill twice through a plugin and `npx skills` | Skill for instructions, MCP server for live tools, plugin to ship both together | | Subagent and agent team | Expecting subagents to coordinate with each other; they report only to the parent | Use an agent team or an orchestration script when workers must talk | | Tests pass and oracle is strong | The agent wrote the tests it then passed | Lock tests before implementation and measure oracle strength | | "Default model" from memory | Defaults change between releases, so a remembered default can be wrong (Claude Code's became Opus 5.5 in v2.1.280) | Check `/status` or `/model` in the session, not a blog post | | Ultracode and `xhigh` effort | Reading `/effort ultracode` as "`xhigh`"; that was true before v2.1.284 | Since v2.1.284 it is a toggle that leaves the level unchanged (only `--effort ultracode` also sets `xhigh`); check `/effort status` | | Cursor "Background Agent" and "BugBot" | Old names break search in Cursor's docs | Write **Cloud Agents** and **Bugbot** | ## Where to go next with the vocabulary - [The AI coding glossary](/en/glossary/): a free page for each term, with the three tools compared. - [Vibe coding vs agentic engineering: 21 terms compared](/en/ladder/vibe-coding-vs-agentic-engineering/): the origin of each name and how it differs from vibe coding. - [Command reference](/en/reference/command-reference/) and [configuration reference](/en/reference/config-reference/): the exact flags and keys behind these terms. - [The harness](/en/workflows/harness/): how permissions, hooks, skills and plugins fit together. - Start your role track: [developer](/en/start/developer/), [tech lead](/en/start/tech-lead/), [CTO](/en/start/cto/) or [executive](/en/start/executive/). --- # Keyboard shortcuts for Claude Code, Codex and Cursor URL: https://developertoolkit.ai/en/reference/keyboard-shortcuts/ Description: The keys that stop, rewind, plan and inspect agent work in Claude Code 2.1.283, Codex CLI 0.157.1 and Cursor, how to remap them, and what breaks in tmux. Keyboard shortcuts for coding agents decide how fast a developer can stop, rewind, plan and inspect agent work. In Claude Code 2.1.283 and the Codex CLI 0.157.1, `Esc` interrupts, `Shift+Tab` cycles modes and `Ctrl+J` inserts a newline. Cursor's help lists its AI shortcuts (checked 2026-10-12), but they have moved across 3.x builds, so confirm them in the editor itself. This reference is for developers who drive agents from the keyboard. The agent starts rewriting the wrong module, you press `Ctrl+C` out of habit, and the session exits instead of stopping. Or you press `Shift+Enter` inside tmux to add a second line and the half-written prompt goes to the agent. Every shortcut below was checked on 2026-09-26: Claude Code against its interactive-mode and keybindings docs for v2.1.283, and Codex against the `rust-v0.157.1` source of its terminal UI. Entries that name a later version or a Cursor page were checked on 2026-10-12: Claude Code 2.1.296's docs and changelog, Codex 0.162.1's release notes and config schema, and Cursor's help. ## What this shortcut reference gives you - The ten keys per tool that matter daily, side by side. - The keys that keep you in control of verification: interrupt, rewind, plan first, and open the transcript or diff. - A remapping recipe for each tool, and a way to prove a new binding works. - Two copy-paste prompts: one that writes a Claude Code keybindings file, one that audits your terminal for broken keys. - The failures you meet in tmux, WSL and macOS terminals, with the fix for each. ## Which shortcuts matter most in each tool? The three tools split along one line. Claude Code and Codex are terminal programs with readline-style editing and very similar keys. Cursor is a VS Code fork, so its AI actions are ordinary VS Code keybindings. **Claude Code** | Shortcut | Action | | --- | --- | | `Esc` | Interrupt the current response or tool call; Claude keeps the work done so far | | `Esc` `Esc` | With text: clear the draft (saved to history). With an empty prompt: open the rewind menu | | `Shift+Tab` | Cycle permission modes, including Plan mode | | `Ctrl+J` or `\` + `Enter` | New line, in any terminal | | `Ctrl+O` | Toggle the transcript viewer (tool calls, timestamps, model per message) | | `Ctrl+R` | Reverse search through prompt history | | `Ctrl+B` | Send a running Bash command or agent to the background | | `Ctrl+V` | Paste an image (`Alt+V` on Windows and WSL; `Cmd+V` in iTerm2) | | `Ctrl+G` | Edit the prompt in your external editor | | `?` on an empty prompt | Show the shortcut help panel | **Codex** | Shortcut | Action | | --- | --- | | `Esc` | Interrupt a running turn (the status line reads "esc to interrupt") | | `Esc` `Esc` | Edit the previous message | | `Shift+Tab` | Cycle modes (Plan mode is one of them) | | `Ctrl+J` | New line, in any terminal | | `Ctrl+T` | Show the transcript; `F3` searches it | | `Ctrl+R` | Search prompt history | | `Tab` | While a turn runs, queue the message you are typing | | `Alt+,` / `Alt+.` | Lower or raise reasoning effort | | `Ctrl+G` | Edit the prompt in your external editor | | `?` | Show the shortcut overlay | **Cursor** Cursor's AI shortcuts (inline edit, the Agent panel, add selection to chat, accept or reject changes) are VS Code keybindings. Cursor's keyboard-shortcuts help page (checked 2026-10-12) lists these, spelled with the macOS `Cmd` key: | Shortcut | Action | | --- | --- | | `Cmd+I` or `Cmd+L` | Toggle the side panel; Cursor's help gives `Ctrl+I` for the Agent panel on Windows and Linux | | `Cmd+K` | Inline edit | | `Cmd+.` | Open the mode menu | | `Shift+Tab` | Rotate through the Agent modes: Agent, Ask, Plan and Debug. Each mode uses its own context, so switching starts a fresh context window | | `Cmd+/` | "Loop between AI models" | Cursor's help lists no Windows or Linux key for the last four rows, and the defaults have moved across the Cursor 3.x line. In Cursor 3.24 (2026-10-09) the Goal, queue, debug, canvas and browser panels open from pills above the prompt (Cursor's release notes). Confirm every key in your own build: open the Command Palette (`Cmd+Shift+P` on macOS, `Ctrl+Shift+P` on Windows and Linux), run **Preferences: Open Keyboard Shortcuts**, and search for the action. The [Cursor keyboard shortcuts page](/en/cursor-ide/reference/keyboard-shortcuts/) has the worksheet of actions to confirm and the `keybindings.json` pattern that pins them so an update cannot move them. ## Which keys keep you in control of what the agent does? Speed at the keyboard matters less than how quickly you can stop a wrong turn and check the result. These are the keys that keep the loop verifiable without reading every line the agent writes. | Job | Claude Code | Codex CLI | | --- | --- | --- | | Stop a wrong direction, keep the work | `Esc` | `Esc` | | Plan before any edit | `Shift+Tab` to Plan mode, or `/plan` | `Shift+Tab` to Plan mode, or `/plan` | | Undo the last turn's code and conversation | `Esc` `Esc` on an empty prompt, or `/rewind` | `Esc` `Esc` edits the previous message; revert files with git | | See every tool call the agent made | `Ctrl+O` | `Ctrl+T` | | See the changed files | `/diff` | `/diff` (includes untracked files) | | Add a correction without interrupting | Type and press `Enter`: it queues; `Ctrl+Enter` or `Ctrl+X Ctrl+S` sends it now | Type and press `Tab` to queue | | Stop background subagents | `Ctrl+X Ctrl+K`, twice within 3 seconds | `/stop` ends background terminals | The keys only make review faster; they do not replace the gate. The proof that a change is correct still comes from the tests, type checks and review agents you run before merging, as described in [evidence instead of diffs](/en/ladder/evidence-not-diffs/) and the [evidence bundle](/en/workflows/ship/evidence-bundle/). Use `Shift+Tab` into Plan mode and the transcript key to confirm the agent is attacking the right problem, then let the checks decide whether it solved it. ## Claude Code shortcuts in full (v2.1.283) ### Session and control keys | Shortcut | Action | | --- | --- | | `Ctrl+C` | Interrupt a running operation. At an idle prompt, the first press clears the input and the second exits. `Up` on the emptied prompt brings the draft back, pasted text and images included (v2.1.288; it also works after a slash command or a sent message from v2.1.292; both channels on 2026-10-17) | | `Ctrl+D` | Exit. The first press shows a hint; the second within 800 ms exits. With text in the prompt, deletes the next character | | `Ctrl+L` | Redraw the screen. Input and conversation history stay; use it when the display is garbled | | `Ctrl+T` | Show or hide Claude's to-do checklist (not the background-task view; that is `/tasks`) | | `Ctrl+S` | Stash the current prompt; press again on an empty prompt to restore it | | `Ctrl+Z` | Suspend to your shell (Unix only); `fg` resumes | | `Up` / `Down` or `Ctrl+P` / `Ctrl+N` | Move within a multiline prompt, then through history | | `Tab` | Accept an autocomplete suggestion | | `Option+P` / `Alt+P` | Switch model without clearing the prompt | | `Option+T` / `Alt+T` | Toggle extended thinking (no effect on Opus 5.5 or the Fable models, which always think) | | `Option+O` / `Alt+O` | Toggle fast mode | | `Ctrl+F` in the agents view (`claude agents`) | Find sessions by name with the `n:` filter; `Alt+↑` and `Alt+↓` jump between group headers (v2.1.288, both channels on 2026-10-17) | On macOS, the `Option` shortcuts, except `Option+T`, need the terminal to send Option as Meta (see the failure modes below). ### Text editing keys Claude Code uses readline conventions: `Ctrl+A` and `Ctrl+E` jump to the start and end of the line, `Ctrl+K` and `Ctrl+U` delete to the end or start, `Ctrl+W` deletes back to the previous whitespace (a whole path in one press), `Ctrl+Y` pastes what you deleted, and `Ctrl+_` undoes the last edit. `Alt+B`, `Alt+F` and `Alt+D` move and delete by word. ### Prefixes typed at the prompt | Prefix | Action | | --- | --- | | `/` at the start | Command or skill menu; type letters to filter | | `!` at the start | Shell mode: runs the command and adds its output to the session | | `@` | File path autocomplete | | `?` on an empty prompt | Shortcut help panel | To edit `CLAUDE.md`, run `/memory`. The command reference lists every slash command: see the [command reference cheatsheet](/en/reference/command-reference/). ### Vim mode Turn it on in `/config` under **Editor mode**, or set `"editorMode": "vim"` in `~/.claude/settings.json` (the old `/vim` command was removed in v2.1.92). `Esc` then switches to NORMAL mode instead of interrupting, so use `Ctrl+C` to stop a running turn. NORMAL mode supports the usual motions (`hjkl`, `w`/`b`/`e`, `0`/`$`, `gg`/`G`, `f{char}`), operators (`d`, `c`, `y` with text objects such as `iw` or `i"`), visual mode (`v`, `V`), `u` and `.`. ## Codex CLI shortcuts in full (0.157.1) | Shortcut or prefix | Action | | --- | --- | | `Ctrl+C` | With text in the composer, clear the draft (it stays in history). With an empty composer, interrupt a running turn, or quit when idle | | `Ctrl+D` | Quit, when the composer is empty | | `Ctrl+V` | Paste an image from the clipboard (`Ctrl+Alt+V` also works) | | `F4` | Focus the activity pane | | `F8` | Toggle voice input | | `@` | Mention a file (the menu also lists plugins and skills) | | `!` at the start | Shell mode: run a command directly | | `/` at the start | Slash command menu, for example `/model`, `/plan`, `/diff`, `/review`, `/compact`, `/new` | Pasting an image file path also attaches it. `/vim` toggles Vim mode for the composer. Codex 0.158.0 added copy-on-select and right-click paste to the fullscreen TUI. `tui.copy_on_select` (`auto`, `always` or `never`) and `tui.right_click_paste` (`auto`, `on` or `off`) control them: right-click paste is on by default on Windows, WSL and Linux, and `on` also enables macOS. `tui.mouse_scroll_speed` (0.162.0) scales the mouse wheel, and the 0.162.0 release notes also name `Ctrl+Insert` and `/copy` (config schema and release notes, checked 2026-10-12). For the full command list, see [Codex CLI commands](/en/codex/build/cli-commands/). The Codex desktop app (`codex app`, macOS and Windows) has its own shortcut set, which this page does not cover. ## How do you remap agent shortcuts? **Claude Code** 1. Run `/keybindings`. It creates or opens `~/.claude/keybindings.json`. 2. Add a block per context. This example makes `Enter` insert a newline and `Shift+Enter` send, which suits people who paste long multi-line prompts: ```json { "$schema": "https://www.schemastore.org/claude-code-keybindings.json", "bindings": [ { "context": "Chat", "bindings": { "enter": "chat:newline", "shift+enter": "chat:submit" } } ] } ``` 3. Save. Claude Code applies the change without a restart. Set an action to `null` to unbind a key. `Ctrl+C`, `Ctrl+D`, `Ctrl+M`, `Ctrl+[`, `Ctrl+I` and `Ctrl+H` are reserved and cannot be rebound. Vim keys are not remappable here; the `vimInsertModeRemaps` setting in your user settings maps a two-key sequence such as `jj` to `Esc`, and Claude Code ignores that setting in a project's `.claude/settings.json`, so a cloned repository cannot remap your keys. The `/effort` slider's keys became rebindable in v2.1.284: `effortSlider:decreaseEffort` (Left), `effortSlider:increaseEffort` (Right) and `effortSlider:toggleUltracode` (Tab). Enter and Escape in the slider can't be rebound. In the agents view, `agents:find` (`Ctrl+F`) can be rebound from v2.1.288 (both channels on 2026-10-17). **Codex** Run `/keymap` in the Codex CLI to remap its TUI shortcuts interactively, or write the bindings yourself in `~/.codex/config.toml`, one table per context. A value is one key or a list of keys, written as `ctrl-a`, `shift-enter` or `f9`. This example keeps `Tab` for queueing a message, adds `Ctrl+Q` as a second key, and moves voice input from `F8` to `F9`: ```toml [tui.keymap.composer] queue = ["tab", "ctrl-q"] [tui.keymap.chat] toggle_voice = "f9" ``` Some keys belong to fixed actions and cannot be rebound: `Ctrl+C`, `Ctrl+D`, `Ctrl+V`, `Ctrl+Alt+V`, `Shift+Tab`, `Esc`, `Alt+Left`, `Alt+Right`, and `/`, `!`, `@` and `$`. Binding one of them fails at startup with an `Ambiguous tui.keymap` error (checked on 0.157.1). `/vim` toggles Vim mode for the composer. Press `?` afterwards: the overlay shows the bindings in effect. **Cursor** Open **Preferences: Open Keyboard Shortcuts** from the Command Palette, search for the action, and record a new key. Pin the bindings you depend on in `keybindings.json`, as the [Cursor keyboard shortcuts page](/en/cursor-ide/reference/keyboard-shortcuts/) shows, so the next Cursor update cannot move them. **Copy-paste prompt: write a Claude Code keybindings file** ```text Read ~/.claude/keybindings.json if it exists (create it if not) and the keybindings docs at https://code.claude.com/docs/en/keybindings. Add these bindings in the "Chat" context without removing any existing ones: - "enter" -> "chat:newline" - "shift+enter" -> "chat:submit" - "ctrl+s" -> null (my terminal uses Ctrl+S for flow control; I accept losing prompt stash) Keep the "$schema" line. Do not bind Ctrl+C, Ctrl+D, Ctrl+M, Ctrl+[, Ctrl+I or Ctrl+H: they are reserved. Show me the final file as a diff, then tell me the exact command to start Claude Code with --debug so I can confirm there are no keybinding warnings. ``` **Copy-paste prompt: audit my terminal for broken agent keys** ```text Check whether my terminal setup passes the keys Claude Code and Codex rely on. Do not change anything yet; report first. 1. Print $TERM, $TERM_PROGRAM and whether I am inside tmux ($TMUX) or screen. 2. If ~/.tmux.conf exists, check for "set -s extended-keys on", "set -as terminal-features 'xterm*:extkeys'" and "set -g allow-passthrough on". 3. On macOS, tell me whether my terminal (from $TERM_PROGRAM) needs "Use Option as Meta" turned on for Option+P and Option+Enter. 4. Check whether my tmux prefix is Ctrl+B or Ctrl+A. Give me a table: key, works / broken / unknown, the evidence you used, and the one-line fix. Then propose the exact config lines to add and wait for my approval before editing any file. ``` ## How do you prove a new binding works? Do not trust a binding because the file saved. Three checks confirm it in under a minute: 1. Press `?` on an empty prompt. Claude Code's help panel and Codex's overlay show the keys actually in effect. 2. Start Claude Code with `claude --debug`. It writes a warning to the debug log for invalid JSON, a misspelled modifier, an unknown context or action, a reserved key and a duplicate binding. 3. Press the key on a throwaway prompt such as `echo test` before you rely on it in a real session, and confirm it did what the table says. ## What breaks with agent shortcuts, and how do you recover? | Symptom | Cause | Fix | | --- | --- | --- | | `Shift+Enter` sends the prompt inside tmux | tmux does not pass extended keys by default | Add `set -s extended-keys on` and `set -as terminal-features 'xterm*:extkeys'` to `~/.tmux.conf`, then run `tmux source-file ~/.tmux.conf`. Until then, use `Ctrl+J` | | `Shift+Enter` sends in the VS Code or Cursor integrated terminal | The terminal needs a keybinding | Run `/terminal-setup` once in Claude Code, from the host terminal, not inside tmux | | `Option+P` or `Option+Enter` does nothing on macOS | The terminal does not send Option as Meta | Apple Terminal: Settings, Profiles, Keyboard, "Use Option as Meta Key". iTerm2: set both Option keys to "Esc+". VS Code: `"terminal.integrated.macOptionIsMeta": true` | | `Ctrl+B` does nothing in tmux | It is the tmux prefix | Press it twice in Claude Code, or use the default `Ctrl+X Ctrl+B` chord | | Image paste fails on WSL | The terminal intercepts `Ctrl+V` | Use `Alt+V` | | `Esc` no longer stops Claude | Vim mode is on, so `Esc` enters NORMAL mode | Press `Ctrl+C` to interrupt | | A key you bound fires a bare letter | A misspelled modifier (`ctl+k`) is dropped and binds `k` | Fix the spelling; `claude --debug` shows the warning | | You sent a half-written prompt and the agent started editing | `Enter` submitted | Press `Esc` at once, then `Esc` `Esc` on the empty prompt to rewind in Claude Code, or `Esc` `Esc` to edit the previous message in Codex. Check `git status` before continuing | | `Ctrl+C` quit the session | At an idle prompt, Claude Code exits on the second press, and Codex exits on the first press once the composer is empty | Resume with `claude --continue` or `codex resume --last`, and use `Esc` to stop turns from now on | For session recovery beyond the keyboard, see [error recovery in Claude Code](/en/claude-code/quick-start/error-recovery/) and [error recovery in Codex](/en/codex/quick-start/error-recovery/). ## Where to go next from the shortcut reference - [Terminal mastery for Claude Code](/en/claude-code/build/terminal-mastery/): tmux, panes and long sessions in the terminal. - [Command reference cheatsheet](/en/reference/command-reference/): the slash commands and CLI flags for all three tools. - [Configuration reference](/en/reference/config-reference/): where each tool keeps its settings files. - [Permissions and sandboxing](/en/workflows/harness/permissions-and-sandboxing/): what the modes you cycle with `Shift+Tab` actually allow. ---