Skip to content

feat: Review command (codex exec review) #4

@joshrotenberg

Description

@joshrotenberg

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

  • Review struct with builder functions
  • Review.execute/2 runs codex exec review, returns Result
  • CodexWrapper.review/1 convenience function
  • Tests for argument building

Depends on

Reference

  • codex-wrapper (Rust): src/command/review.rs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions