agent-codexcli
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CODEX_LOG_DIR | No | Directory for per-task `.log` diagnostics (established before spawning Codex). Defaults to a private user state dir. | |
| CODEX_CLI_PATH | No | Explicit path or absolute-`PATH` command for `codex` / `codex.exe` / npm `codex.js`. Auto-detected by default. | |
| CODEX_MAX_TASKS | No | Number of completed tasks retained in memory (5–500). | 50 |
| CODEX_DEFAULT_MODEL | No | Default `--model` (and `review_model` for reviews) override when not specified per call. Unset by default — inherits `~/.codex/config.toml`. | |
| CODEX_MAX_LOG_FILES | No | Maximum retained `codex_*.log` files in `CODEX_LOG_DIR` (`0` disables pruning, max `10000`). | 100 |
| CODEX_DEFAULT_SANDBOX | No | Default sandbox for new `codex_run` tasks (`workspace-write`, `danger-full-access`, or `read-only`). | workspace-write |
| CODEX_DEFAULT_WAIT_SECONDS | No | Initial sync wait for `codex_run`, `codex_review`, and interrupt `codex_steer` (0–600; e.g. `165` in Antigravity). | 300 |
| CODEX_MAX_CONCURRENT_TASKS | No | Maximum simultaneous active Codex tasks (1–50). | 8 |
| CODEX_DEFAULT_REASONING_EFFORT | No | Default `model_reasoning_effort` override when not specified per call. Unset by default — inherits `~/.codex/config.toml`. | |
| CODEX_DISABLE_RESET_CARD_GUARD | No | Set to `1` or `true` to disable the best-effort `/usage` & reset-card prompt guard. | 0 |
| CODEX_DEFAULT_POLL_WAIT_SECONDS | No | Wait budget for `codex_wait` (0–600; e.g. `165` in Antigravity). | 180 |
| CODEX_EXTRA_RATE_LIMIT_PATTERNS | No | Comma-separated regexes or substrings for custom provider rate-limit detection. Empty by default. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| codex_runA | Run Codex CLI (Executor) on a task or continue an existing Codex session via session_id. Inherits ~/.codex/config.toml (model, reasoning effort, custom provider, auth, MCPs, plugins, notify), disables unbounded_connection_retries, and applies a best-effort reset-card prompt guard (opt out via CODEX_DISABLE_RESET_CARD_GUARD=1 or true). Defaults for new runs: model=(inherited from ~/.codex/config.toml), reasoning_effort=(inherited from ~/.codex/config.toml), sandbox="workspace-write", wait_seconds=300. When session_id is provided and sandbox is omitted, saved session permissions are preserved instead of reapplying CODEX_DEFAULT_SANDBOX. Progress notifications are emitted every 15s when the client supplies a progressToken. If execution exceeds wait_seconds, returns status="running" with task_id so you can call codex_wait / codex_status / codex_cancel. If status="rate_limited", STOP immediately and ask the user; never retry or trigger a reset card. |
| codex_reviewA | Run a code review with Codex CLI ( |
| codex_waitA | Wait up to wait_seconds (default 180) for a background Codex task to finish. Returns minimal status ({task_id, status, session_id, elapsed_ms}) while still running, and full structured output once finished. Emits progress notifications every 15s when the client supplies a progressToken. |
| codex_statusA | Non-blocking check of a specific Codex task_id, or omit task_id to list all active and recent Codex tasks managed by this server. |
| codex_steerA | Send a new or updated instruction to an in-progress or existing Codex session. Two modes:
|
| codex_cancelB | Terminate a running Codex background task and its child process tree. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
codex_run and codex_steer can both target an existing session, but the descriptions separate continuing a run from interrupting/steering it. wait, status, cancel, and review are clearly differentiated, leaving only minor overlap around session continuation.
All six tools use the codex_ prefix plus a concise snake_case action (run, review, wait, status, steer, cancel), making names highly predictable. status is a noun rather than a verb, but it still fits the consistent action-style pattern.
Six tools map neatly to launching, reviewing, monitoring, waiting on, steering, and cancelling Codex CLI work. There is no obvious padding, and the count is well-scoped for an async CLI execution wrapper.
The set covers the core async execution lifecycle and a read-only review path, with status also serving as a list operation. Minor gaps remain: no dedicated output/history retrieval beyond wait/status, and session management is only implicit through run and steer.