@su-record/vibe 2.6.22 → 2.6.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commands/vibe.review.md +9 -2
- package/commands/vibe.run.md +9 -3
- package/commands/vibe.spec.review.md +15 -20
- package/package.json +1 -1
package/commands/vibe.review.md
CHANGED
|
@@ -96,10 +96,17 @@ security-review:
|
|
|
96
96
|
| Quick iteration | ❌ Standard review |
|
|
97
97
|
| API cost concerns | ❌ Standard review |
|
|
98
98
|
|
|
99
|
-
### Tool Invocation (Race Mode)
|
|
99
|
+
### Tool Invocation (Race Mode - GPT + Gemini in parallel via Bash)
|
|
100
100
|
|
|
101
101
|
```bash
|
|
102
|
-
|
|
102
|
+
# Cross-platform path
|
|
103
|
+
VIBE_SCRIPTS="$(node -p "process.env.APPDATA || require('os').homedir() + '/.config'")/vibe/hooks/scripts"
|
|
104
|
+
|
|
105
|
+
# GPT review (Bash tool call 1)
|
|
106
|
+
node "$VIBE_SCRIPTS/llm-orchestrate.js" gpt orchestrate-json "Review this code for [REVIEW_TYPE]. Return JSON: {issues: [{id, title, description, severity, suggestion}]}. Code: [CODE_HERE]"
|
|
107
|
+
|
|
108
|
+
# Gemini review (Bash tool call 2 - run in parallel)
|
|
109
|
+
node "$VIBE_SCRIPTS/llm-orchestrate.js" gemini orchestrate-json "Review this code for [REVIEW_TYPE]. Return JSON: {issues: [{id, title, description, severity, suggestion}]}. Code: [CODE_HERE]"
|
|
103
110
|
```
|
|
104
111
|
|
|
105
112
|
## Priority System
|
package/commands/vibe.run.md
CHANGED
|
@@ -905,11 +905,17 @@ After all scenarios are implemented, **GPT and Gemini review in parallel with cr
|
|
|
905
905
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
906
906
|
```
|
|
907
907
|
|
|
908
|
-
**Race Review Invocation:**
|
|
908
|
+
**Race Review Invocation (GPT + Gemini in parallel via Bash):**
|
|
909
909
|
|
|
910
910
|
```bash
|
|
911
|
-
#
|
|
912
|
-
node -
|
|
911
|
+
# Cross-platform path
|
|
912
|
+
VIBE_SCRIPTS="$(node -p "process.env.APPDATA || require('os').homedir() + '/.config'")/vibe/hooks/scripts"
|
|
913
|
+
|
|
914
|
+
# GPT review (Bash tool call 1)
|
|
915
|
+
node "$VIBE_SCRIPTS/llm-orchestrate.js" gpt orchestrate-json "Review this code for security, performance, and best practices. Return JSON: {issues: [{id, title, description, severity, suggestion}]}. Code: [CODE]"
|
|
916
|
+
|
|
917
|
+
# Gemini review (Bash tool call 2 - run in parallel)
|
|
918
|
+
node "$VIBE_SCRIPTS/llm-orchestrate.js" gemini orchestrate-json "Review this code for security, performance, and best practices. Return JSON: {issues: [{id, title, description, severity, suggestion}]}. Code: [CODE]"
|
|
913
919
|
```
|
|
914
920
|
|
|
915
921
|
**Confidence-based Priority:**
|
|
@@ -169,7 +169,7 @@ Score: 96/100 ✅ PASSED
|
|
|
169
169
|
|
|
170
170
|
**🚨 ABSOLUTE RULES FOR RACE REVIEW:**
|
|
171
171
|
|
|
172
|
-
1. **YOU MUST** use the Bash tool to call `
|
|
172
|
+
1. **YOU MUST** use the Bash tool to call `llm-orchestrate.js` directly
|
|
173
173
|
2. **DO NOT** skip GPT/Gemini calls
|
|
174
174
|
3. **DO NOT** simulate or fake review results
|
|
175
175
|
4. **YOU MUST** run all 3 rounds sequentially (each round uses updated SPEC)
|
|
@@ -178,34 +178,29 @@ Score: 96/100 ✅ PASSED
|
|
|
178
178
|
|
|
179
179
|
### 3.1 Review Loop (3 Rounds)
|
|
180
180
|
|
|
181
|
-
**For EACH round (1, 2, 3),
|
|
181
|
+
**For EACH round (1, 2, 3), run GPT + Gemini in PARALLEL via Bash tool:**
|
|
182
182
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
```bash
|
|
186
|
-
node -e "import('@su-record/vibe/tools').then(async t => { const result = await t.raceReview({reviewType: 'general', code: \`[SPEC_CONTENT]\`, context: 'SPEC review for [FEATURE_NAME]. Stack: [STACK]. Round [N]/3.'}); console.log(t.formatRaceResult(result)); }).catch(e => console.error('Race review failed:', e.message))"
|
|
187
|
-
```
|
|
188
|
-
|
|
189
|
-
**🚨 MANDATORY: Use the Bash tool to run the above command for EACH round.**
|
|
190
|
-
|
|
191
|
-
- Round 1: Run → Read results → Apply fixes to SPEC → Update SPEC file
|
|
192
|
-
- Round 2: Run with updated SPEC → Read results → Apply fixes → Update SPEC file
|
|
193
|
-
- Round 3: Run with final SPEC → Confirm no issues remain
|
|
194
|
-
|
|
195
|
-
**If the `node -e` command fails** (e.g., module not found), use the fallback method:
|
|
196
|
-
|
|
197
|
-
**Fallback: Direct llm-orchestrate.js calls (run BOTH in parallel via Bash):**
|
|
183
|
+
**🚨 MANDATORY: Copy the EXACT path below. DO NOT modify or use alternative paths.**
|
|
198
184
|
|
|
199
185
|
```bash
|
|
186
|
+
# Cross-platform path (works on Windows/macOS/Linux)
|
|
187
|
+
# ⚠️ COPY THIS EXACTLY - DO NOT USE ~/.claude/ or any other path!
|
|
200
188
|
VIBE_SCRIPTS="$(node -p "process.env.APPDATA || require('os').homedir() + '/.config'")/vibe/hooks/scripts"
|
|
201
189
|
|
|
202
190
|
# GPT review (Bash tool call 1)
|
|
203
|
-
node "$VIBE_SCRIPTS/llm-orchestrate.js" gpt orchestrate-json "Review this SPEC for completeness, specificity, testability, security, and performance. Find issues. Return JSON: {issues: [{id, title, description, severity, suggestion}]}. SPEC content: [SPEC_CONTENT]"
|
|
191
|
+
node "$VIBE_SCRIPTS/llm-orchestrate.js" gpt orchestrate-json "Review this SPEC for completeness, specificity, testability, security, and performance. Round [N]/3. Find issues and improvements. Return JSON: {issues: [{id, title, description, severity, suggestion}]}. SPEC content: [SPEC_CONTENT]"
|
|
204
192
|
|
|
205
|
-
# Gemini review (Bash tool call 2 - run in parallel)
|
|
206
|
-
node "$VIBE_SCRIPTS/llm-orchestrate.js" gemini orchestrate-json "Review this SPEC for completeness, specificity, testability, security, and performance. Find issues. Return JSON: {issues: [{id, title, description, severity, suggestion}]}. SPEC content: [SPEC_CONTENT]"
|
|
193
|
+
# Gemini review (Bash tool call 2 - run in parallel with GPT)
|
|
194
|
+
node "$VIBE_SCRIPTS/llm-orchestrate.js" gemini orchestrate-json "Review this SPEC for completeness, specificity, testability, security, and performance. Round [N]/3. Find issues and improvements. Return JSON: {issues: [{id, title, description, severity, suggestion}]}. SPEC content: [SPEC_CONTENT]"
|
|
207
195
|
```
|
|
208
196
|
|
|
197
|
+
**🚨 MANDATORY: Use the Bash tool to run BOTH commands above for EACH round.**
|
|
198
|
+
**🚨 Run GPT and Gemini calls in PARALLEL (two separate Bash tool calls at once).**
|
|
199
|
+
|
|
200
|
+
- Round 1: Run GPT + Gemini in parallel → Cross-validate → Apply fixes → Update SPEC file
|
|
201
|
+
- Round 2: Run with updated SPEC → Cross-validate → Apply fixes → Update SPEC file
|
|
202
|
+
- Round 3: Run with final SPEC → Cross-validate → Confirm no issues remain
|
|
203
|
+
|
|
209
204
|
### 3.2 Cross-Validation Rules
|
|
210
205
|
|
|
211
206
|
| Agreement | Priority | Action |
|