codex
Codex
AI-powered code review and autonomous task execution via the codex CLI.
- Both modes run non-interactively and are safe to invoke with generous timeouts
Review Mode
Uncommitted Changes
codex review --uncommitted
Against a Base Branch
codex review --base main
codex review --base develop
Specific Commit
codex review --commit <sha>
codex review --commit HEAD~1
Custom Prompt (standalone)
Cannot be combined with --uncommitted, --base, or --commit.
codex review "Focus on security issues and error handling"
Review Options
- Use
--titleto add context when reviewing feature branches or PRs - Use a generous timeout (30 minutes / 1800000ms)
Exec Mode
Run autonomous tasks non-interactively. Progress streams to stderr; final result on stdout.
codex exec "task description"
Permission Levels
| Level | Flag | When to Use |
|---|---|---|
| Read-only (default) | (none) | Analysis, code reading, generating reports |
| Workspace write | --sandbox workspace-write |
Editing files within the project |
| Full access | --sandbox danger-full-access |
Installing packages, running tests, system operations |
| Full auto | --full-auto |
Combined with a sandbox level for unattended execution |
Exec Options
| Option | Description |
|---|---|
--full-auto |
Allow file edits without confirmation prompts |
--sandbox <level> |
Permission level: danger-full-access, workspace-write |
--json |
JSON Lines output (progress + final message) |
-o <path> |
Write final message to a file |
--output-schema <path> |
Enforce JSON Schema on the output |
--ephemeral |
No persisted session files |
--skip-git-repo-check |
Bypass git repository requirement |
-m, --model <MODEL> |
Specify the model to use |
Interpreting Results
- Exec output is a starting point, not a guaranteed solution
- Cross-reference suggestions with project documentation and conventions
- Test incrementally rather than applying all changes at once
- For file-editing tasks, always review the diff before committing
- Use a generous timeout (60 minutes / 3600000ms)
More from tobihagemann/turbo
find-dead-code
Find dead code using parallel subagent analysis and optional CLI tools, treating code only referenced from tests as dead. Use when the user asks to \"find dead code\", \"find unused code\", \"find unused exports\", \"find unreferenced functions\", \"clean up dead code\", or \"what code is unused\". Analysis-only — does not modify or delete code.
30simplify-code
Run a multi-agent review of changed files for reuse, quality, efficiency, and clarity issues followed by automated fixes. Use when the user asks to \"simplify code\", \"review changed code\", \"check for code reuse\", \"review code quality\", \"review efficiency\", \"simplify changes\", \"clean up code\", \"refactor changes\", or \"run simplify\".
23smoke-test
Launch the app and hands-on verify that it works by interacting with it. Use when the user asks to \"smoke test\", \"test it manually\", \"verify it works\", \"try it out\", \"run a smoke test\", \"check it in the browser\", or \"does it actually work\". Not for unit/integration tests.
22finalize
Run the post-implementation quality assurance workflow including tests, code polishing, review, and commit. Use when the user asks to \"finalize implementation\", \"finalize changes\", \"wrap up implementation\", \"finish up\", \"ready to commit\", or \"run QA workflow\".
22self-improve
Extract lessons from the current session and route them to the appropriate knowledge layer (project AGENTS.md, auto memory, existing skills, or new skills). Use when the user asks to \"self-improve\", \"distill this session\", \"save learnings\", \"update CLAUDE.md with what we learned\", \"capture session insights\", \"remember this for next time\", \"extract lessons\", \"update skills from session\", or \"what did we learn\".
22evaluate-findings
Critically assess external feedback (code reviews, AI reviewers, PR comments) and decide which suggestions to apply using adversarial verification. Use when the user asks to \"evaluate findings\", \"assess review comments\", \"triage review feedback\", \"evaluate review output\", or \"filter false positives\".
22