fix: isolate claude reviewer templates

This commit is contained in:
Stefano Fiorini
2026-03-08 18:04:07 -05:00
parent d44a2288b4
commit 4d37674626
11 changed files with 135 additions and 34 deletions

View File

@@ -248,7 +248,9 @@ Do not try to capture the Codex session ID yet. When using the helper, extract i
```bash
claude -p \
"Read the file /tmp/milestone-${REVIEW_ID}.md and review this milestone implementation.
"Review this milestone implementation using the following spec, acceptance criteria, git diff, and verification output:
$(cat /tmp/milestone-${REVIEW_ID}.md)
Evaluate:
1. Correctness — Does the implementation match the milestone spec?
@@ -260,7 +262,8 @@ Evaluate:
Be specific and actionable. If solid, end with exactly: VERDICT: APPROVED
If changes are needed, end with exactly: VERDICT: REVISE" \
--model ${REVIEWER_MODEL} \
--allowedTools Read
--strict-mcp-config \
--setting-sources user
```
**If `REVIEWER_CLI` is `cursor`:**
@@ -390,7 +393,9 @@ claude -p \
Previous feedback summary: [key points from last review]
I've addressed your feedback. Updated diff and verification output are in /tmp/milestone-${REVIEW_ID}.md.
I've addressed your feedback. Updated diff and verification output are below.
$(cat /tmp/milestone-${REVIEW_ID}.md)
Changes made:
[List specific changes]
@@ -398,7 +403,8 @@ Changes made:
Re-review. If solid, end with: VERDICT: APPROVED
If more changes needed, end with: VERDICT: REVISE" \
--model ${REVIEWER_MODEL} \
--allowedTools Read \
--strict-mcp-config \
--setting-sources user \
> /tmp/milestone-review-${REVIEW_ID}.md
```