auto --request-file <file> | Preferred low-main-token implementation/test/review path | codex_bridge.ts auto --request-file /tmp/request.md |
ask <prompt> | Bounded code generation / parsing / Q&A | codex_bridge.ts ask "write a merge sort in Python" |
ask <prompt> --image <path> | Code grounded in an image | codex_bridge.ts ask "what's wrong?" --image ./screenshot.png |
ask <prompt> --output-schema schema.json | Structured/parseable output | constrain the worker to a JSON Schema |
ask <prompt> --tier strong | Force a model tier | codex_bridge.ts ask "review this patch" --tier strong |
parse <file> [question] | Understand/explain a source file (replaces Read on code) | codex_bridge.ts parse ./src/app.ts "explain the exports" |
web <query> [--depth 1-5] | Web research (replaces WebSearch/WebFetch) | codex_bridge.ts web "rust async patterns 2026" |
vision <image-path> <question> | Describe/understand a local image | codex_bridge.ts vision ./diagram.png "explain this architecture" |
generate-image <prompt> [--out <path>] | Generate an image | codex_bridge.ts generate-image "pixel-art mushroom" |
test <prompt> [-- <cmd>] [--browser] | Model-assisted sandboxed test/repair loop | codex_bridge.ts test "run pytest" -- pytest -x |
exec -- <cmd> | Deterministic local build/test/install/git/cache/deploy command, no LLM tokens | codex_bridge.ts exec --timeout 600 -- npm test |
exec --external --approved -- <cmd> | User-approved external side effect such as deploy/push | codex_bridge.ts exec --external --approved -- git push |
gpt-pro ask <prompt> | Detached ChatGPT Pro review/research | codex_bridge.ts gpt-pro ask "review this architecture" |
gpt-pro poll/collect/cancel --task-id <id> | Check/collect/cancel a Pro background task | codex_bridge.ts gpt-pro collect --task-id abc123 |
mcp-tool <server> <tool> [--args <json>] | Direct MCP tool call | codex_bridge.ts mcp-tool filesystem read_file --args '{"path":"x"}' |