codex-reply
Continue a Codex session by thread ID with a follow-up prompt, returning the new final agent message. Use it to resume prior work or ask further questions.
Instructions
Continue a previous Codex session (codex exec resume <THREAD_ID>) with a follow-up prompt and return the new final message. Only the flags codex exec resume accepts are exposed; the working directory and sandbox come from the current configuration (this server's own flags and config.toml), not from the original session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Extra environment variables for the codex subprocess. | |
| model | No | Pass -m <MODEL>: the model slug for this call, overriding config.toml. | |
| config | No | Configuration overrides as key=value strings, one per element. Each entry maps to a separate codex -c flag (for example "model_reasoning_effort=high"). Values are parsed as TOML by codex, so quote strings that are not bare words. | |
| prompt | Yes | Prompt sent verbatim to codex on stdin. codex runs its full agentic loop and this server returns the final agent message. | |
| ephemeral | No | Pass --ephemeral: do not persist the session's rollout file to disk. | |
| thread_id | Yes | The thread to continue: the thread_id from a previous result's [codex] line. Maps to codex exec resume <THREAD_ID>. | |
| extra_args | No | Raw CLI flags appended verbatim (one token per element). Use to reach new or uncommon codex exec flags without updating this server. Do not pass --json or a prompt: the server adds both. | |
| timeout_seconds | No | Hard wall-clock timeout for the codex subprocess in seconds (default 1800). | |
| skip_git_repo_check | No | Pass --skip-git-repo-check: allow running in a directory that is not inside a git repository. Without it codex refuses such a working directory. |