Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Codex Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-codex-knowledge-patch)
---
name: codex-knowledge-patch
description: Codex
version: "0.172.0"
license: MIT
metadata:
author: Nevaberry
---
# Codex compatibility guidance
Load this skill when working with Codex CLI, desktop or iOS workflows,
remote sessions, app-server clients, MCP, plugins, or configuration migrations.
Use the quick reference for common changes and the topic files for full details.
| Reference | Topics |
| --- | --- |
| [App and collaboration](references/app-and-collaboration.md) | Desktop setup, projects, worktrees, skills, Automations, browser, Computer History, media, iOS |
| [CLI execution and cloud](references/cli-execution-and-cloud.md) | Installation, daemon, resume, agents, review, Code Mode, cloud tasks, diagnostics, image and audio tools |
| [Remote, MCP, and connectors](references/remote-mcp-and-connectors.md) | Remote TUI, WebSocket authentication, app-server APIs, MCP access and lifecycle, plugin marketplaces |
| [Security and configuration](references/security-and-configuration.md) | Retirements, trust, permissions, Guardian, network policy, context, model providers |
| [TUI and session controls](references/tui-and-session-controls.md) | Setting migrations, task navigation, composer, transcript, voice, usage, shortcuts |
## Breaking changes and migrations
Switch integrations from `codex mcp-server` to `codex app-server`.
The former command was deprecated on August 24, 2026, and removed on
September 5 along with the standalone `codex-mcp-server` binary.
Use `agents.enabled` to disable subagent tools. Explicitly configuring
`features.multi_agent` produces a warning.
```toml
[agents]
enabled = false
```
Code Mode uses gRPC for all host connections; `code_mode_host_grpc` is deprecated.
The standard shell executor replaces the bundled patched `zsh`.
Configurations using retired shell flags receive a migration notice.
Move `disable_paste_burst` under `[tui]` in `config.toml`.
The top-level key remains a fallback.
```toml
[tui]
disable_paste_burst = true
```
CLI 0.159.0 removed automatic follow-up prompt suggestions,
`tui.prompt_suggestions`, and the bundled `plugin-creator` skill.
Deprecated `friendly` and `pragmatic` settings no longer affect response style.
Use `/personality` in the app, CLI, or IDE extension to choose a terse,
pragmatic style or a more conversational style without changing capabilities.
For ChatGPT sign-in, the standard and mini models in the 5.4 series became
unavailable starting August 31, 2026; API-key sessions retain access.
Update workspace defaults, saved model settings, managed configurations,
custom agents, and scheduled tasks that pin either model for account sign-in.
The 5.5 series retired for account-authenticated sessions on October 14 at
19:00 UTC, with continued API-key access. Migrate pinned workspace defaults,
managed settings, custom agents, scheduled tasks, and scripts to the supported
6.1 replacement where available.
The planning tool defaults to disabled. Enable it in `config.toml` with:
```toml
[tools.update_plan]
enabled = true
```
## Trust, permissions, and approvals
In an untrusted directory, `codex exec` leaves project configuration and MCP
servers disabled even with `--sandbox workspace-write`. Save trust explicitly:
```sh
codex exec --trust "Summarize this repository"
```
`--trust` is also available on `codex review`. The CLI loads project-level
`AGENTS.md` only from trusted projects. Managed deny-read rules continue to
apply after permission changes.
Configure managed network constraints under `[permissions.network]`.
A `prompt-user` command rule requires fresh human approval. A network approval
prompt closes when its request ends; concurrent requests to the same endpoint
prompt one at a time.
Full Access skips Guardian review for confirmation-only actions. User approval
mode skips background Guardian scoring and prewarming, while sensitive-action
checks and user-input requests continue to apply. Updated user instructions or
answers can invalidate an earlier approval.
Approved commands retain explicit filesystem denials. `.aws` directories under
writable roots are protected by default; Git metadata protections apply across
writable roots on Linux and macOS.
## Resume, queue, and worktrees
`codex resume` and `codex resume --last` default to the current working
directory. Use `codex resume --all` for the full local picker, or
`codex resume --last --all` for the latest local session across directories.
```sh
codex exec resume --last --all "Continue the previous task"
codex exec resume SESSION_ID -
```
The second form reads the follow-up from stdin. `codex exec resume` restores
the saved working directory, workspace roots, and sandbox permissions unless
explicitly overridden. The TUI restores saved Plan mode on resume.
Use `codex queue` to message an existing local or remote session, including an
idle one. Add `--resume` to load and resume the target after queueing.
Use `codex --worktree` or `/worktree` to create an isolated checkout for a new
or forked session and resume it later.
Ask for delegation in the prompt to spawn subagents; configure their roles
under `[agents]`. Nested subagent token use counts against the root goal's
token budget. Interrupting a parent turn preserves queued child replies for
delivery in the next turn.
## Remote execution and MCP
Run the app server on the host that owns the workspace, credentials, and
command execution. Connect the TUI to an explicit WebSocket address.
```sh
# Workspace host
codex app-server --listen ws://127.0.0.1:4500
# TUI host, through an SSH forward to the workspace listener
codex --remote ws://127.0.0.1:4500
```
Non-interactive remote sessions also support resuming:
```sh
codex exec --remote ws://127.0.0.1:4500 "Summarize this workspace"
```
For capability-token authentication, start the server with
`--ws-auth capability-token --ws-token-file /abs/path/to/token`. Put the same
token in the TUI host's environment and name the variable with
`--remote-auth-token-env`. Signed bearer authentication, JWT requirements,
claim validation, and handshake transport restrictions are in the remote reference.
After an external app-server disconnect, the TUI reconnects and preserves
drafts and transcripts. Queued submissions and submissions with uncertain
delivery remain paused for review.
Optional stdio MCP servers with cached tool lists wait until their first tool
call to start by default. MCP OAuth refresh failures surface a login challenge;
after reconnecting, manually retry the rejected tool call if still needed.
In an active terminal session, use `/mcp login <name>` to start MCP sign-in.
Remembered MCP tool approvals are scoped to the selected app account, and app
tool calls honor explicit account selectors.
## Terminal controls and diagnostics
Open `/config` to search preferences, apply supported changes immediately,
and see which changes need a restart. `/debug-config` shows config layers in
ascending precedence and the policy sources supplying requirements.
`codex features list` inspects flags; `enable` and `disable` persist changes
in `~/.codex/config.toml` and target a selected `--profile` when supplied.
During a running turn, Enter steers and Tab queues input for the next turn.
The queue accepts prompts, slash commands, and `!` shell commands; queued
slash commands are parsed when they run. Enable `instant_interrupt` with
`codex features enable instant_interrupt` to steer during a model response
or a long-running Code Mode call.
The terminal workspace is enabled by default, with searchable document
previews, image previews, and subagent transcripts beside the conversation.
Drag the divider to resize panes; use the leader key followed by `z` to zoom
the focused pane. `/keymap` configures the leader key, which defaults to Ctrl+X.
`/clear` clears the visible transcript and starts a fresh conversation.
`/new` starts a fresh conversation while keeping the terminal view.
Ctrl+L clears the view while keeping the conversation; Ctrl+T shows earlier
messages afterward. `/clear` and Ctrl+L are disabled during an active turn.
Use `/copy` or Ctrl+O to copy the latest completed response, even while a new
turn runs. The `/copy` picker also offers individual code blocks and blockquotes.
With `unified_exec`, `/ps` shows background commands and up to three recent
nonempty output lines each; `/stop` or `/clean` stops the session's background terminals.
Run `codex doctor` for environment diagnostics or `codex doctor --network-only`
for network configuration, connectivity, and WebSockets. In the terminal report
editor, Ctrl+S saves a diagnostic ZIP locally even when uploads are disabled.
## Providers, context, and desktop projects
Choose the default provider for new terminal chats under **Sessions → Model
providers**. Open and resumed chats keep their saved provider. New TUI threads
honor server model, approval reviewer, provider, reasoning-summary, and verbosity
defaults; explicit launch overrides take precedence where supplied.
Vertex AI uses `model_provider = "gcp"`. Enable `gcp_setup_wizard` to set it up
with Application Default Credentials or a credential file. Vertex AI sends
incremental tool updates by default; opt out in `config.toml` with:
```toml
[features]
incremental_tools_legacy_gcp = false
```
Experimental context management defaults to false. Eligible Plus, Pro, or Pro
Lite sessions signed in to the first-party backend can enable
`[features.context_management]` with `experimental_mode = true` for
token-budgeted context, history notes, and `new_context`. Structured threads
must be persistent to qualify.
In desktop **Edit project**, the primary folder controls where new chats start,
Git operations run, and the app discovers `AGENTS.md`, skills, and `config.toml`.
Secondary folders support search, reading, and editing; **Review** shows diffs
across the project's repositories. The app reference includes desktop and iOS
availability, eligibility, workflow controls, and the change in resume behavior.