Loading...
Loading...
Operate OpenAI Codex CLI (terminal coding agent) to accomplish software engineering tasks. Use when the user asks to: run codex commands, use codex for coding tasks, execute codex exec for automation, do code review with codex, manage codex sessions (resume/fork), configure codex (config.toml, approval modes, sandbox), use codex cloud, set up MCP servers in codex, or any task involving the `codex` command-line tool. Triggers: codex, codex exec, codex review, codex cloud, codex mcp, codex resume, codex sandbox, openai codex.
npx skill4agent add zkl2333/skills codex-cli| Flag | Short | Purpose |
|---|---|---|
| `--model` | `-m` | Select model (e.g. `gpt-5.3-codex`, `o3`) |
| `--sandbox` | `-s` | `read-only` / `workspace-write` / `danger-full-access` |
| `--ask-for-approval` | `-a` | `untrusted` / `on-failure` / `on-request` / `never` |
| `--full-auto` | Shortcut: `-a on-request -s workspace-write` | |
| `--image` | `-i` | Attach image(s) to prompt |
| `--search` | Enable live web search | |
| `--cd` | `-C` | Set the working directory for the `codex` command. This directory will be used as the base for operations by subcommands like `exec`, `review`, `cloud exec`, etc. This flag should be passed directly to the `codex` command. For example: `codex --cd /path/to/project review`. |
| `--add-dir` | Grant additional writable directories | |
| `--config` | `-c` | Override config value (e.g. `-c model="o3"`) |
| `--profile` | `-p` | Load named config profile |
| `--oss` | Use local model provider (LM Studio / Ollama) | |
| `--json` | (exec only) JSONL output | |
| `--output-last-message` | `-o` | (exec only) Write last message to file |
| `--yolo` | Bypass all approvals and sandbox (DANGEROUS) |
| Command | Purpose |
|---|---|
| `/model` | Switch model mid-session |
| `/permissions` | Adjust approval/sandbox settings |
| `/review` | Run code review |
| `/diff` | Show git diff including untracked files |
| `/compact` | Summarize conversation to free tokens |
| `/mention` | Attach file to conversation |
| `/new` | Start new conversation in same session |
| `/resume` | Resume saved conversation |
| `/fork` | Fork current conversation |
| `/init` | Generate AGENTS.md scaffold |
| `/mcp` | List MCP tools |
| `/status` | Show session config and token usage |
| `/ps` | Show background terminals |
| `/quit` | Exit |