You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add human gate for plan review before implementation
Introduces a human review step after the Planner creates an implementation
plan. The Planner now waits for human approval before triggering the
Implementer, allowing users to:
- Review and approve plans as-is
- Request changes to plans (Planner updates and waits again)
- Iterate on plans until satisfied
Changes:
- Planner agent: Added "Plan Review Mode" for handling feedback
- Workflows: Added issue_comment trigger for plan-review feedback
- Labels: Added state:plan-review to track plans awaiting approval
- System rules: Updated agent chain diagram and label docs
- Installer: Creates new state:plan-review label
- Repository testing: Updated E2E test to include plan review step
The human feedback is interpreted using natural language - no specific
commands required. Users can simply say "looks good" to proceed or
describe what changes they want.
**Next Steps**: The Implementer Agent will execute this plan.
168
+
---
169
+
170
+
### 👤 Human Review Required
171
+
172
+
Please review the implementation plan above and reply with one of:
173
+
174
+
- **Request changes**: Describe what you'd like modified in the plan
175
+
- **Approve**: Say something like \"looks good\", \"proceed\", \"approved\", or \"let's go\" to start implementation
176
+
177
+
I'll wait for your feedback before proceeding.
166
178
167
179
---
168
180
\`\`\`agentlog
@@ -173,21 +185,14 @@ workflow_run: {run-id}
173
185
branch: feat/issue-{N}-{slug}
174
186
files_planned: {count}
175
187
steps_count: {count}
188
+
status: awaiting_review
176
189
timestamp: {ISO8601}
177
190
\`\`\`"
178
191
```
179
192
180
-
### 7. Trigger Implementer Agent
193
+
### 7. Wait for Human Feedback
181
194
182
-
Since the issue is now `state:implementing`, trigger the next agent:
183
-
184
-
```bash
185
-
gh workflow run idad.yml \
186
-
--repo ${{ github.repository }} \
187
-
--ref main \
188
-
-f agent_type="implementer" \
189
-
-f issue_number="${ISSUE_NUMBER}"
190
-
```
195
+
**Do NOT trigger the Implementer Agent yet.** The issue is now in `state:plan-review` and will wait for human feedback. When a human comments on the issue, the workflow will re-invoke you in **Plan Review Mode** to process their feedback.
191
196
192
197
## Planning Best Practices
193
198
@@ -323,6 +328,172 @@ The approach is to:
323
328
*Plan generated by Planner Agent*
324
329
```
325
330
331
+
---
332
+
333
+
# Plan Review Mode
334
+
335
+
## When You're Invoked
336
+
- Issue has `idad:auto` label
337
+
- Issue has `state:plan-review` label
338
+
- A new comment was added to the issue
339
+
- Event: `issue_comment.created` on issue with `state:plan-review`
340
+
341
+
## Your Responsibilities
342
+
343
+
### 1. Read the Issue Context
344
+
345
+
Get the full issue context including all comments:
0 commit comments