🤖 Review Addressor
Review Addressor is a feature that allows DAIV to address code review comments by applying the changes suggested by the reviewer or answering questions about the codebase.
Triggering runs
DAIV monitor merge/pull requests for comments that mention DAIV using webhooks. This streamlines the process of addressing code review comments and requires no manual intervention to start a run.
Just leave a comment on the merge/pull request and reference DAIV (e.g. @daiv use Redis instead of in-memory storage) in the comment to trigger the agent to address the comment.
You can leave comments in the diff of the merge/pull request or directly on the merge/pull request.
Workflow
💬 Code Review Response Workflow
graph TD
A["👥 Code Reviewer"] --> B["💬 Comments on Merge/Pull Request<br/>(requests changes or asks questions)"]
B --> C["🔔 Comment Webhook"]
C --> D["🤖 Review Addressor Agent"]
D --> E["📊 Comment Assessment<br/>(ReviewCommentEvaluator)"]
E --> F["🔍 Change Request?"]
F -->|Yes| G["🛠️ Plan & Execute<br/>(code changes needed)"]
F -->|No| H["💬 Reply to Reviewer<br/>(answer questions)"]
G --> I["📝 Analyzes Code Context"]
I --> J["🔨 Applies Code Changes"]
J --> K["🎨 Code Formatting"]
K --> L["📤 Commits to MR/PR Branch"]
L --> M["✅ Marks Discussion Resolved<br/>(GitLab) or Adds Comment (GitHub)"]
H --> N["🔍 Gathers Context<br/>(if needed)"]
N --> O["💭 Thinks Through Response"]
O --> P["💬 Posts Detailed Reply"]
style B fill:#e1f5fe
style E fill:#fff3e0
style G fill:#ffebee
style H fill:#e8f5e8
style M fill:#f3e5f5