Skip to content

Commit ff4305b

Browse files
committed
Implement SILENT_MODE to prevent reviewer from prompting user during autonomous loops
- Updates the reviewer agent to skip `vscode_askQuestions` when `SILENT_MODE` is present in the prompt. - Ensures the engineer agent uses this mode during its review-fix iterations to maintain an uninterrupted workflow. - Maintains interactive prompting only when the reviewer is invoked directly by a user.
1 parent 1afdeae commit ff4305b

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.claude/agents/engineer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ Report back with: PASS or FAIL, and describe what you see.
178178
```
179179
iteration = 0
180180
while iteration < 3:
181-
# 4a: Review
182-
invoke @reviewer with: scope, 1-sentence summary, list of modified files
181+
# 4a: Review (ALWAYS include "SILENT_MODE" in the prompt so reviewer doesn't ask user)
182+
invoke @reviewer with: SILENT_MODE, scope, 1-sentence summary, list of modified files
183183
184184
if 0 findings: DONE → move to Step 5
185185

.claude/agents/reviewer.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,11 @@ End your review with:
188188
[One sentence on overall quality and most important finding]
189189
```
190190

191-
# Final Ask (Required)
192-
193-
If reviewer is invoked directly by a user, call `vscode_askQuestions` (askuserquestion) before ending and include a concise findings summary in the prompt:
191+
# Final Behavior
194192

193+
**Default (direct invocation by user):** After outputting the Summary block, call `vscode_askQuestions` (askuserquestion) with a concise findings summary:
195194
- Blockers count + top blocker
196195
- Warnings count + top warning
197-
- Ask whether to run a deeper pass, hand off to engineer, or stop
196+
- Ask whether to hand off to engineer, run a deeper pass, or stop
198197

199-
If reviewer is invoked as a subagent by engineer, do **not** prompt the user. Return findings only and let engineer continue automatically into a deeper pass/fix loop.
198+
**When prompt includes "SILENT_MODE":** Do NOT call `vscode_askQuestions`. Output the Summary block and stop. Return findings only — the calling agent handles next steps. This mode is used when the engineer invokes you as part of its autonomous review-fix loop.

0 commit comments

Comments
 (0)