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

@@ -146,7 +146,10 @@ Do not try to capture the Codex session ID yet. When using the helper, extract i
```bash
claude -p \
"Read the file /tmp/plan-${REVIEW_ID}.md and review the implementation plan. Focus on:
"Review the implementation plan below. Focus on:
$(cat /tmp/plan-${REVIEW_ID}.md)
1. Correctness — Will this plan achieve the stated goals?
2. Risks — What could go wrong? Edge cases? Data loss?
3. Missing steps — Is anything forgotten?
@@ -156,7 +159,8 @@ claude -p \
Be specific and actionable. If the plan is 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`:**
@@ -274,7 +278,9 @@ claude -p \
Previous feedback summary: [key points from last review]
I've revised the plan. Updated version is in /tmp/plan-${REVIEW_ID}.md.
I've revised the plan. Updated version is below.
$(cat /tmp/plan-${REVIEW_ID}.md)
Changes made:
[List specific changes]
@@ -282,7 +288,8 @@ Changes made:
Re-review the full plan. 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
```
**If `REVIEWER_CLI` is `cursor`:**