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-nevaberry-plugins)
---
name: codex-knowledge-patch
description: Codex
version: "0.172.0"
license: MIT
metadata:
author: Nevaberry
---
# Codex compatibility guidance
Load this skill when configuring or operating the CLI, app-server, desktop app,
or iOS Remote; migrating settings or integrations; or working with MCP,
plugins, agents, and cloud tasks.
Use the references for complete instructions and platform, account, and
experimental constraints.
## Reference index
| Reference | Topics |
| --- | --- |
| [App and collaboration](references/app-and-collaboration.md) | Desktop projects, skills, agents, Code Mode, context, Automations, browser, media, iOS Remote |
| [CLI execution and cloud workflows](references/cli-execution-and-cloud.md) | Installation, invocation, resume, worktrees, task messages, background server, review, cloud, diagnostics |
| [Remote TUI, MCP, and connectors](references/remote-mcp-and-connectors.md) | App-server migration, WebSocket authentication, remote sessions, client APIs, MCP, marketplaces, app accounts |
| [Security and configuration](references/security-and-configuration.md) | Model retirements, shell migration, project trust, sandbox, approvals, Guardian, network policy, providers |
| [TUI and session controls](references/tui-and-session-controls.md) | Preference migrations, tasks, side chats, editing, steering, transcripts, clipboard, voice, usage |
## Migrations and removals
- Switch integrations from `codex mcp-server` to `codex app-server`.
The former command and standalone `codex-mcp-server` binary were removed.
- 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.
- Automatic CLI follow-up prompt suggestions, `tui.prompt_suggestions`, and the
bundled `plugin-creator` skill were removed.
- Deprecated `friendly` and `pragmatic` settings no longer affect response style.
- The standard shell executor replaces bundled patched `zsh`; configurations
using retired shell flags receive a migration notice.
- Move `disable_paste_burst` under `[tui]`; the top-level key remains a fallback:
```toml
[tui]
disable_paste_burst = true
```
For ChatGPT sign-in, the standard and mini models in the 5.4 series became
unavailable on 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.
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.
## Configuration, trust, and approvals
`codex features list` inspects flags. Feature `enable` and `disable` subcommands
write to `~/.codex/config.toml` and target a selected `--profile`:
```sh
codex --profile work features enable unified_exec
```
Project-level `AGENTS.md` loads only from trusted projects. In an untrusted
directory, `codex exec` leaves project configuration and MCP servers disabled
even with `--sandbox workspace-write`. Save project trust explicitly with:
```sh
codex exec --trust "Summarize this repository"
```
`--trust` is also available on `codex review`. Managed deny-read rules remain
effective after permission changes. A `prompt-user` command rule requires fresh
human approval; configure managed network constraints under `[permissions.network]`.
Full Access skips Guardian review for confirmation-only actions. User approval
mode skips background Guardian scoring and prewarming; sensitive-action checks
and user-input requests still apply. Updated instructions or answers can
invalidate an earlier approval.
Use `/config` to find preferences and see which changes need a restart.
Use `/debug-config` to inspect config precedence and policy requirements.
New TUI threads honor the server's model, approval reviewer, provider,
reasoning-summary, and verbosity defaults; explicit launch overrides take
precedence where supplied. The planning tool defaults to disabled; enable it with:
```toml
[tools.update_plan]
enabled = true
```
## Resume, worktrees, and task coordination
`codex resume` and `codex resume --last` default to the current directory.
Use `codex resume --all` for the full local picker, or
`codex resume --last --all` for the most recent local session across directories.
```sh
codex exec resume --last --all "Continue the previous task"
```
`codex exec resume` restores the saved working directory, workspace roots, and
sandbox permissions unless explicitly overridden; it can find compressed
histories when selecting by directory. Resuming or forking restores the active
permission profile, and the TUI carries it across subsequent turns.
Use `codex --worktree` or `/worktree` for an isolated checkout for a new or forked
session. `codex agents` opens the task dashboard; `codex queue` sends to an
existing local or remote session, including an idle one. Add `--resume` to load
and resume the target after queueing.
Ask for delegation in the prompt to spawn subagents; configure roles under
`[agents]` in `config.toml`. Nested subagent token use counts against the root
goal's token budget. Interrupting a parent preserves queued child replies for
the next turn; interrupting a turn stops active Code Mode cells and nested tool calls.
## Remote execution and app-server
The workspace host owns the workspace, credentials, and command execution:
```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
```
`--remote` also works with `codex resume` and `codex fork`. Non-interactive
remote sessions support resuming and can start with:
```sh
codex exec --remote ws://127.0.0.1:4500 "Summarize this workspace"
```
Enable server authentication with `--ws-auth`; a non-local listener without it
warns at startup. Capability-token and signed-bearer authentication use
`--remote-auth-token-env` on the TUI. See the remote reference for token files,
JWT requirements, claims, clock skew, and handshake transport restrictions.
The TUI reconnects after an external app-server disconnect and preserves drafts
and transcripts. Queued submissions and submissions with uncertain delivery
stay paused for review. Remote sandbox enforcement uses the executor's home,
OS, and path conventions. Remote sessions preserve working directory, workspace
roots, and writable paths across differing client and server operating systems.
## MCP, plugins, and providers
Register a streamable HTTP MCP server with environment-backed credentials:
```sh
codex mcp add docs --url https://mcp.example.com/mcp --bearer-token-env-var DOCS_MCP_TOKEN
```
For OAuth servers, `codex mcp login docs --scopes read,write` requests scopes.
Use `--oauth-client-secret` when registering a server that requires a
pre-registered secret. After reconnecting following an OAuth refresh failure,
manually retry the rejected tool call if the action is still needed.
Optional stdio MCP servers with cached tool lists wait for their first tool call
to start by default. Remembered MCP approvals are scoped to the selected app
account; app tool calls honor explicit account selectors.
`codex plugin marketplace add` accepts local roots, Git URLs, and
`owner/repo@ref`. An unnamed `codex plugin marketplace upgrade` refreshes all
configured Git marketplaces. Existing sessions can pick up newly installed
plugin tools and refresh skills and hooks after external upgrades or rollbacks.
Choose the default provider for new terminal chats under **Sessions → Model
providers**. Open and resumed chats keep their saved provider. The security
reference covers custom gateways, Vertex AI, and Bedrock setup and capabilities.
## Terminal interaction
During a running turn, Enter steers and Tab queues input for the next turn.
Queues accept prompts, slash commands, and `!` shell commands; queued slash
commands are parsed when run. Enable `instant_interrupt` for steering during a
model response or a long-running Code Mode call.
Use `/model` arguments for model, reasoning effort, or speed, and `/permissions`
arguments for a permission profile. `/presets` saves prompts or slash commands
in ten numbered slots. `/plan Outline the migration` enters plan mode and
submits a request between turns, including supplied pastes or images.
`/clear` starts a fresh conversation and resets the visible transcript; `/new`
starts one while keeping the terminal view. Ctrl+L clears only the view, and
Ctrl+T accesses earlier messages. `/clear` and Ctrl+L are disabled during a turn.
Use `/copy` or Ctrl+O for the latest completed response, even during a new turn.
The `/copy` picker also offers individual code blocks and blockquotes.
With `unified_exec` active, `/ps` shows background commands; `/stop` or `/clean`
stops all background terminals for the session.
The terminal workspace is enabled by default. Resize panes with the divider or
zoom the focused pane with the leader key followed by `z`; saved local side
chats can reopen after restart. `/side` returns to an existing side conversation.
## Desktop and iOS workflows
In **Edit project**, the primary folder controls new chat locations, Git
operations, and discovery of `AGENTS.md`, skills, and `config.toml`. Secondary
folders support search, reading, and editing; **Review** spans project repositories.
Skills created in the app also work in the CLI and IDE extension and can be
checked into a repository for team sharing.
The desktop app automatically resumes eligible interrupted local chats on
reopen when they were active in the preceding 24 hours and belong to the
signed-in account. On iOS, choose Cloud or a paired-computer project when
starting a task. Follow-ups steer running tasks by default unless a different
preference was saved; custom-provider tasks retain their model and effort.
## Review, cloud tasks, and diagnostics
The `/review` reviewer defaults to the session model; set `review_model` to
override it. The uncommitted preset includes untracked, staged, and unstaged files.
In `codex cloud`, Ctrl+O selects an environment; `--attempts` accepts 1–4:
```sh
codex cloud exec --env ENV_ID --attempts 3 "Summarize open bugs"
```
`codex apply TASK_ID` applies the task's latest diff locally and exits nonzero
if Git cannot apply it. `codex doctor` checks environment and connectivity issues;
`codex doctor --network-only` checks network configuration, connectivity, and
WebSockets. Ctrl+S in the report editor saves a diagnostic ZIP locally even
when uploads are disabled.