OpenAI · codex
Run Codex with Wisp Agents
Run OpenAI’s Codex CLI on real tasks without watching it. Wisp Agents starts codex exec in a fresh worktree, keeps the sandbox you pick, and turns the JSON event stream into a readable report: what changed, what ran, what passed.
wisp "fix the flaky test" --agent codexHow Wisp Agents runs it
codex exec --json --skip-git-repo-check \
-c sandbox_mode="workspace-write" \
-c mcp_servers.wisp.command=…
| Wisp Agents mode | What Codex gets |
|---|---|
| Plan (read-only) | -c sandbox_mode="read-only" |
| Edits | -c sandbox_mode="workspace-write" |
| Full auto | --dangerously-bypass-approvals-and-sandbox |
Questions and permissions
An MCP tool, mcp__wisp__ask_user, configured for the run. Codex pauses on it, and your answer comes back as the tool result.
Codex has no “accept edits only” mode, so Edits uses the workspace-write sandbox: it edits the project and runs sandboxed commands. Anything the sandbox refuses shows up on the card with Allow & retry.
Models
Any model your Codex CLI can use, plus a reasoning level passed as -c model_reasoning_effort.
Ask on the side, pick it up yourself
A btw question is answered on a fork of the thread (codex exec fork <id>), so it knows what the run did and why. Open in Codex (o in the TUI) resumes the same conversation in its own CLI: codex resume <id>.
Also
- Several folders in one task:
--add-diron the first turn, writable roots in the sandbox config after that. - Pasted screenshots go in as images.
- Compare: run the same task on Codex and Claude Code side by side and keep the better branch.