@su-record/vibe 2.6.21 → 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 +31 -24
- 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:**
|
|
@@ -165,48 +165,55 @@ Score: 96/100 ✅ PASSED
|
|
|
165
165
|
|
|
166
166
|
## Step 3: Race Review (GPT + Gemini Cross-Validation) - 3 Rounds (v2.6.9)
|
|
167
167
|
|
|
168
|
-
|
|
168
|
+
**🚨🚨🚨 CRITICAL: YOU MUST EXECUTE ALL 3 ROUNDS. DO NOT SKIP THIS STEP. 🚨🚨🚨**
|
|
169
|
+
|
|
170
|
+
**🚨 ABSOLUTE RULES FOR RACE REVIEW:**
|
|
171
|
+
|
|
172
|
+
1. **YOU MUST** use the Bash tool to call `llm-orchestrate.js` directly
|
|
173
|
+
2. **DO NOT** skip GPT/Gemini calls
|
|
174
|
+
3. **DO NOT** simulate or fake review results
|
|
175
|
+
4. **YOU MUST** run all 3 rounds sequentially (each round uses updated SPEC)
|
|
169
176
|
|
|
170
177
|
> Race Mode reviews SPEC with both GPT and Gemini in parallel, then cross-validates findings for higher confidence.
|
|
171
178
|
|
|
172
|
-
### 3.1
|
|
179
|
+
### 3.1 Review Loop (3 Rounds)
|
|
173
180
|
|
|
174
|
-
|
|
175
|
-
# Via vibe tools (recommended)
|
|
176
|
-
node -e "import('@su-record/vibe/tools').then(t => t.raceReview({reviewType: 'general', code: '[SPEC content]', context: 'SPEC review round N/3'}).then(r => console.log(t.formatRaceResult(r))))"
|
|
177
|
-
```
|
|
181
|
+
**For EACH round (1, 2, 3), run GPT + Gemini in PARALLEL via Bash tool:**
|
|
178
182
|
|
|
179
|
-
|
|
183
|
+
**🚨 MANDATORY: Copy the EXACT path below. DO NOT modify or use alternative paths.**
|
|
180
184
|
|
|
181
|
-
|
|
185
|
+
```bash
|
|
186
|
+
# Cross-platform path (works on Windows/macOS/Linux)
|
|
187
|
+
# ⚠️ COPY THIS EXACTLY - DO NOT USE ~/.claude/ or any other path!
|
|
188
|
+
VIBE_SCRIPTS="$(node -p "process.env.APPDATA || require('os').homedir() + '/.config'")/vibe/hooks/scripts"
|
|
182
189
|
|
|
183
|
-
|
|
190
|
+
# GPT review (Bash tool call 1)
|
|
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]"
|
|
184
192
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
import('@su-record/vibe/tools').then(async t => {
|
|
188
|
-
const result = await t.raceReview({
|
|
189
|
-
reviewType: 'general',
|
|
190
|
-
code: specContent,
|
|
191
|
-
context: `SPEC review for ${featureName}. Stack: ${stack}. Round ${N}/3.`
|
|
192
|
-
});
|
|
193
|
-
console.log(t.formatRaceResult(result));
|
|
194
|
-
});
|
|
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]"
|
|
195
195
|
```
|
|
196
196
|
|
|
197
|
-
|
|
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
|
+
|
|
204
|
+
### 3.2 Cross-Validation Rules
|
|
198
205
|
|
|
199
206
|
| Agreement | Priority | Action |
|
|
200
207
|
|-----------|----------|--------|
|
|
201
|
-
| Both agree (100%) | P1 | Auto-apply immediately |
|
|
202
|
-
| One model (50%) | P2 | Auto-apply with note |
|
|
208
|
+
| Both GPT + Gemini agree (100%) | P1 | Auto-apply immediately |
|
|
209
|
+
| One model only (50%) | P2 | Auto-apply with note |
|
|
203
210
|
|
|
204
211
|
**After each round:**
|
|
205
212
|
|
|
206
213
|
1. Cross-validate findings (issues found by both → P1, single model → P2)
|
|
207
214
|
2. Merge feedback with confidence scores
|
|
208
|
-
3. Auto-apply P1/P2 improvements to SPEC and Feature files
|
|
209
|
-
4. Continue to next round
|
|
215
|
+
3. Auto-apply P1/P2 improvements to SPEC and Feature files (use Edit tool)
|
|
216
|
+
4. Continue to next round with updated SPEC content
|
|
210
217
|
|
|
211
218
|
**Output format:**
|
|
212
219
|
```
|