Summary
Wrap codex exec review for code review with git integration.
CodexWrapper.Review struct with builder functions
- Git diff modes: uncommitted changes, base branch comparison, specific commit
Review options
- prompt (optional additional context)
- uncommitted (review uncommitted changes)
- base (compare against base branch)
- commit (review a specific commit)
- title (PR/review title)
- model, full_auto, dangerously_bypass_approvals_and_sandbox
- ephemeral, json, output_last_message
- config, enable, disable (lists)
Convenience API
# Review uncommitted changes
CodexWrapper.review(uncommitted: true, working_dir: "/path/to/repo")
# Review against a base branch
CodexWrapper.Review.new()
|> CodexWrapper.Review.base("main")
|> CodexWrapper.Review.model("o3")
|> CodexWrapper.Review.execute(config)
Acceptance criteria
Depends on
Reference
- codex-wrapper (Rust):
src/command/review.rs
Summary
Wrap
codex exec reviewfor code review with git integration.CodexWrapper.Reviewstruct with builder functionsReview options
Convenience API
Acceptance criteria
Reviewstruct with builder functionsReview.execute/2runscodex exec review, returns ResultCodexWrapper.review/1convenience functionDepends on
Reference
src/command/review.rs