wogiflow 1.8.2 → 1.8.4
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/.claude/commands/wogi-peer-review.md +61 -302
- package/.claude/commands/wogi-register.md +18 -3
- package/.claude/commands/wogi-research.md +1 -2
- package/.claude/commands/wogi-review-fix.md +103 -478
- package/.claude/commands/wogi-start.md +6 -1
- package/.claude/docs/commands.md +1 -0
- package/.claude/docs/knowledge-base/01-setup-onboarding/README.md +1 -1
- package/.claude/docs/knowledge-base/01-setup-onboarding/component-indexing.md +57 -43
- package/.claude/docs/knowledge-base/01-setup-onboarding/installation.md +8 -6
- package/.claude/docs/knowledge-base/01-setup-onboarding/onboarding-existing.md +10 -7
- package/.claude/docs/knowledge-base/02-task-execution/01-task-planning.md +12 -12
- package/.claude/docs/knowledge-base/02-task-execution/02-execution-loop.md +37 -45
- package/.claude/docs/knowledge-base/02-task-execution/03-verification.md +4 -5
- package/.claude/docs/knowledge-base/02-task-execution/04-completion.md +44 -107
- package/.claude/docs/knowledge-base/02-task-execution/05-session-review.md +7 -7
- package/.claude/docs/knowledge-base/02-task-execution/README.md +47 -18
- package/.claude/docs/knowledge-base/02-task-execution/branch-finalization.md +141 -0
- package/.claude/docs/knowledge-base/02-task-execution/debug-hypothesis.md +166 -0
- package/.claude/docs/knowledge-base/02-task-execution/eval-system.md +157 -0
- package/.claude/docs/knowledge-base/02-task-execution/external-integrations.md +6 -6
- package/.claude/docs/knowledge-base/02-task-execution/model-management.md +12 -10
- package/.claude/docs/knowledge-base/02-task-execution/peer-review.md +180 -0
- package/.claude/docs/knowledge-base/02-task-execution/plan-management.md +175 -0
- package/.claude/docs/knowledge-base/02-task-execution/quick-capture.md +165 -0
- package/.claude/docs/knowledge-base/02-task-execution/trade-offs.md +14 -14
- package/.claude/docs/knowledge-base/03-self-improvement/README.md +31 -23
- package/.claude/docs/knowledge-base/03-self-improvement/long-input-extraction.md +175 -0
- package/.claude/docs/knowledge-base/03-self-improvement/model-learning.md +7 -6
- package/.claude/docs/knowledge-base/03-self-improvement/project-learning.md +15 -11
- package/.claude/docs/knowledge-base/03-self-improvement/rules-management.md +141 -0
- package/.claude/docs/knowledge-base/03-self-improvement/skill-learning.md +25 -19
- package/.claude/docs/knowledge-base/03-self-improvement/skill-matching.md +1 -1
- package/.claude/docs/knowledge-base/04-memory-context/context-management.md +39 -29
- package/.claude/docs/knowledge-base/04-memory-context/memory-systems.md +41 -35
- package/.claude/docs/knowledge-base/04-memory-context/session-persistence.md +24 -22
- package/.claude/docs/knowledge-base/05-development-tools/README.md +7 -11
- package/.claude/docs/knowledge-base/05-development-tools/browser-debugging.md +210 -0
- package/.claude/docs/knowledge-base/05-development-tools/figma-analyzer.md +44 -178
- package/.claude/docs/knowledge-base/06-safety-guardrails/README.md +1 -0
- package/.claude/docs/knowledge-base/06-safety-guardrails/commit-gates.md +13 -9
- package/.claude/docs/knowledge-base/06-safety-guardrails/project-audit.md +179 -0
- package/.claude/docs/knowledge-base/README.md +6 -3
- package/.claude/docs/knowledge-base/configuration/all-options.md +770 -1167
- package/.workflow/bridges/claude-bridge.js +48 -6
- package/.workflow/lib/config-substitution.js +18 -0
- package/.workflow/templates/claude-md.hbs +8 -49
- package/.workflow/templates/partials/auto-features.hbs +3 -26
- package/README.md +30 -25
- package/lib/installer.js +823 -120
- package/package.json +1 -1
- package/scripts/flow-audit.js +3 -3
- package/scripts/flow-auto-context.js +16 -16
- package/scripts/flow-bridge.js +1 -28
- package/scripts/flow-cascade.js +22 -25
- package/scripts/flow-code-intelligence.js +41 -3
- package/scripts/flow-community.js +2 -9
- package/scripts/flow-config-defaults.js +635 -0
- package/scripts/flow-config-loader.js +586 -0
- package/scripts/flow-context-compact/summary-tree.js +2 -11
- package/scripts/flow-context-init.js +54 -12
- package/scripts/flow-context-manager.js +184 -0
- package/scripts/flow-context-monitor.js +4 -14
- package/scripts/flow-context-orchestrator.js +6 -16
- package/scripts/flow-context-scoring.js +6 -14
- package/scripts/flow-durable-session.js +4 -4
- package/scripts/flow-entropy-monitor.js +9 -9
- package/scripts/flow-figma-generate.js +26 -10
- package/scripts/flow-health.js +47 -0
- package/scripts/flow-hypothesis-generator.js +1 -1
- package/scripts/flow-io.js +692 -0
- package/scripts/flow-knowledge-sync.js +1 -0
- package/scripts/flow-learning-orchestrator.js +178 -0
- package/scripts/flow-long-input.js +2 -31
- package/scripts/flow-mcp-docs.js +0 -1
- package/scripts/flow-memory-compactor.js +14 -24
- package/scripts/flow-memory-db.js +224 -8
- package/scripts/flow-memory-sync.js +29 -28
- package/scripts/flow-metrics.js +11 -16
- package/scripts/flow-model-router.js +2 -1
- package/scripts/flow-model-types.js +143 -0
- package/scripts/flow-models.js +37 -109
- package/scripts/flow-orchestrate-validation.js +2 -7
- package/scripts/flow-orchestrate.js +2 -12
- package/scripts/flow-output.js +69 -1
- package/scripts/flow-paths.js +239 -0
- package/scripts/flow-plugin-registry.js +112 -10
- package/scripts/flow-project-analyzer.js +9 -0
- package/scripts/flow-providers.js +2 -14
- package/scripts/flow-regression.js +25 -6
- package/scripts/flow-research-protocol.js +2 -2
- package/scripts/flow-roadmap.js +3 -7
- package/scripts/flow-security.js +2 -12
- package/scripts/flow-session-end.js +5 -5
- package/scripts/flow-stack-wizard.js +2 -3
- package/scripts/flow-step-coverage.js +11 -6
- package/scripts/flow-tech-options.js +4 -2
- package/scripts/flow-tokens.js +192 -0
- package/scripts/flow-utils.js +142 -1598
- package/scripts/flow-verify.js +5 -4
- package/scripts/flow-workflow.js +3 -7
- package/scripts/hooks/core/component-check.js +17 -12
- package/scripts/hooks/core/loop-check.js +5 -5
- package/scripts/hooks/core/observation-capture.js +13 -0
- package/scripts/hooks/core/phase-gate.js +33 -7
- package/scripts/hooks/core/research-gate.js +2 -2
- package/scripts/hooks/core/routing-gate.js +7 -5
- package/scripts/hooks/core/scope-gate.js +24 -18
- package/scripts/hooks/core/session-context.js +26 -0
- package/scripts/hooks/core/session-end.js +13 -0
- package/scripts/hooks/core/task-completed.js +15 -0
- package/scripts/hooks/core/task-gate.js +8 -7
- package/scripts/hooks/core/todowrite-gate.js +8 -6
- package/scripts/hooks/core/validation.js +104 -21
- package/scripts/hooks/entry/claude-code/pre-tool-use.js +15 -6
- package/scripts/hooks/entry/claude-code/session-start.js +119 -110
- package/scripts/hooks/entry/claude-code/user-prompt-submit.js +15 -3
- package/scripts/registries/component-registry.js +7 -1
- package/scripts/registries/schema-registry.js +1 -1
- package/scripts/registries/service-registry.js +1 -1
|
@@ -1,121 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: "Run a multi-model peer review with different AI perspectives"
|
|
3
3
|
---
|
|
4
|
-
Run a multi-model peer review where different AI models review the same code.
|
|
4
|
+
Run a multi-model peer review where different AI models review the same code. This command uses a **different review focus** than `/wogi-review` — it targets **improvement opportunities**, not correctness/bugs.
|
|
5
5
|
|
|
6
|
-
##
|
|
7
|
-
|
|
8
|
-
**Models are selected once per session and remembered for subsequent runs.**
|
|
9
|
-
|
|
10
|
-
### Check Session State First
|
|
11
|
-
|
|
12
|
-
```javascript
|
|
13
|
-
const modelConfig = require('./scripts/flow-model-config');
|
|
14
|
-
|
|
15
|
-
// Run migration if needed (handles old config formats)
|
|
16
|
-
modelConfig.migrateOldConfig();
|
|
17
|
-
|
|
18
|
-
// Check if Claude should also review
|
|
19
|
-
const includeClaude = modelConfig.shouldIncludeClaude();
|
|
20
|
-
|
|
21
|
-
// Check if models already selected this session
|
|
22
|
-
const sessionModels = modelConfig.getSessionModels('peerReview');
|
|
23
|
-
|
|
24
|
-
if (sessionModels && sessionModels.length > 0 && !args.includes('--select-models')) {
|
|
25
|
-
// Use session models - show brief note
|
|
26
|
-
const claudeNote = includeClaude ? ' + Claude' : '';
|
|
27
|
-
console.log(`Using models: ${sessionModels.join(', ')}${claudeNote}`);
|
|
28
|
-
console.log(`(Run with --select-models to change)`);
|
|
29
|
-
// Proceed with review using sessionModels
|
|
30
|
-
} else {
|
|
31
|
-
// Need to select models - continue to selection flow
|
|
32
|
-
}
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### If No Models Configured
|
|
36
|
-
|
|
37
|
-
If `modelConfig.getEnabledModels().length === 0`:
|
|
38
|
-
|
|
39
|
-
```
|
|
40
|
-
No external models configured for peer review.
|
|
41
|
-
|
|
42
|
-
Run /wogi-models-setup to configure:
|
|
43
|
-
- OpenAI (GPT-4o)
|
|
44
|
-
- Google (Gemini)
|
|
45
|
-
- Local LLM (Ollama)
|
|
46
|
-
|
|
47
|
-
Or use --manual flag for manual mode.
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
Then either:
|
|
51
|
-
- Auto-launch `/wogi-models-setup` wizard
|
|
52
|
-
- Or use `--manual` mode if user prefers
|
|
53
|
-
|
|
54
|
-
### Model Selection Dialog
|
|
55
|
-
|
|
56
|
-
Show selection dialog when:
|
|
57
|
-
- First run of session (no session models set)
|
|
58
|
-
- User passes `--select-models` flag
|
|
59
|
-
|
|
60
|
-
```javascript
|
|
61
|
-
{
|
|
62
|
-
question: "Select models for peer review (multiple allowed):",
|
|
63
|
-
header: "Models",
|
|
64
|
-
multiSelect: true,
|
|
65
|
-
options: [
|
|
66
|
-
// Claude option (when includeClaude is enabled in config)
|
|
67
|
-
{ label: "Claude (current session)", description: "Reviews using current conversation context" },
|
|
68
|
-
// Dynamically populated from configured models
|
|
69
|
-
{ label: "openai:gpt-4o", description: "Best quality reasoning" },
|
|
70
|
-
{ label: "openai:gpt-4o-mini", description: "Faster, cheaper" },
|
|
71
|
-
{ label: "google:gemini-2.0-flash", description: "Fast, good at code" },
|
|
72
|
-
{ label: "local:qwen2.5-coder", description: "Free, runs locally" }
|
|
73
|
-
// ... other configured models
|
|
74
|
-
]
|
|
75
|
-
}
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
**Show Claude option when:**
|
|
79
|
-
- `modelConfig.shouldIncludeClaude()` returns `true`
|
|
80
|
-
- Claude is shown first (recommended) as it has full context
|
|
81
|
-
|
|
82
|
-
**Show external models that:**
|
|
83
|
-
1. Are configured in `models.providers`
|
|
84
|
-
2. Have `enabled: true`
|
|
85
|
-
3. Have API key set (check `process.env[apiKeyEnv]`) or are local
|
|
86
|
-
|
|
87
|
-
### After Selection
|
|
88
|
-
|
|
89
|
-
Save the selection to session state:
|
|
90
|
-
```javascript
|
|
91
|
-
modelConfig.setSessionModels('peerReview', selectedModels);
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
This persists until `/wogi-session-end` is called, which clears the selection.
|
|
95
|
-
|
|
96
|
-
Then proceed with the review using selected models.
|
|
97
|
-
|
|
98
|
-
## How It Works
|
|
99
|
-
|
|
100
|
-
### When `includeClaude` is enabled (recommended):
|
|
101
|
-
1. **Claude reviews first** using the same improvement-focused prompt as external models
|
|
102
|
-
2. **External model(s)** review the same changes via API
|
|
103
|
-
3. **All findings compared** (Claude + external models)
|
|
104
|
-
4. **Claude synthesizes** all perspectives and responds to disagreements
|
|
105
|
-
|
|
106
|
-
### When `includeClaude` is disabled:
|
|
107
|
-
1. **External model(s)** review the changes via API
|
|
108
|
-
2. **Findings are compared** across external models
|
|
109
|
-
3. **Claude synthesizes** findings and responds to peer feedback:
|
|
110
|
-
- Defends decisions with context
|
|
111
|
-
- OR acknowledges valid alternatives
|
|
112
|
-
|
|
113
|
-
**Why include Claude?**
|
|
114
|
-
- Provides additional perspective alongside external models
|
|
115
|
-
- Has full conversation context (knows why certain decisions were made)
|
|
116
|
-
- Catches things external models might miss due to context limitations
|
|
117
|
-
|
|
118
|
-
## Key Difference from `/wogi-review`
|
|
6
|
+
## Relationship to /wogi-review
|
|
119
7
|
|
|
120
8
|
| `/wogi-review` | `/wogi-peer-review` |
|
|
121
9
|
|----------------|---------------------|
|
|
@@ -124,14 +12,9 @@ Then proceed with the review using selected models.
|
|
|
124
12
|
| Security vulnerabilities | Alternative implementations |
|
|
125
13
|
| Architecture conflicts | Pattern suggestions |
|
|
126
14
|
| Verification-focused | Improvement-focused |
|
|
15
|
+
| Single model (multi-agent) | Multiple external models + optional Claude |
|
|
127
16
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
1. **Optimization opportunities** - "This works, but could be faster/cleaner"
|
|
131
|
-
2. **Alternative approaches** - "Consider doing X instead of Y"
|
|
132
|
-
3. **Cross-model disagreements** - Where different models see things differently
|
|
133
|
-
4. **Pattern suggestions** - "Other codebases typically do this as..."
|
|
134
|
-
5. **Missed edge cases** - Fresh eyes catch what familiarity misses
|
|
17
|
+
This command does NOT run `/wogi-review`'s 5-phase process. Instead it runs its own flow: collect changes, generate improvement-focused prompt, send to multiple models, compare and synthesize results.
|
|
135
18
|
|
|
136
19
|
## Usage
|
|
137
20
|
|
|
@@ -143,81 +26,17 @@ Then proceed with the review using selected models.
|
|
|
143
26
|
/wogi-peer-review --manual # Manual mode (no API keys needed)
|
|
144
27
|
```
|
|
145
28
|
|
|
146
|
-
##
|
|
147
|
-
|
|
148
|
-
### Recommended: Use `/wogi-models-setup`
|
|
149
|
-
|
|
150
|
-
The easiest way to configure models is the setup wizard:
|
|
151
|
-
```
|
|
152
|
-
/wogi-models-setup
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
This creates a unified configuration used by both peer review and hybrid mode.
|
|
156
|
-
|
|
157
|
-
### Config Location
|
|
158
|
-
|
|
159
|
-
Models are configured in `.workflow/config.json` under `models`:
|
|
160
|
-
|
|
161
|
-
```json
|
|
162
|
-
{
|
|
163
|
-
"models": {
|
|
164
|
-
"providers": {
|
|
165
|
-
"openai": {
|
|
166
|
-
"apiKeyEnv": "OPENAI_API_KEY",
|
|
167
|
-
"enabled": true,
|
|
168
|
-
"models": ["gpt-4o", "gpt-4o-mini"]
|
|
169
|
-
},
|
|
170
|
-
"google": {
|
|
171
|
-
"apiKeyEnv": "GOOGLE_API_KEY",
|
|
172
|
-
"enabled": true,
|
|
173
|
-
"models": ["gemini-2.0-flash"]
|
|
174
|
-
},
|
|
175
|
-
"local": {
|
|
176
|
-
"endpoint": "http://localhost:11434",
|
|
177
|
-
"provider": "ollama",
|
|
178
|
-
"enabled": true,
|
|
179
|
-
"models": ["qwen2.5-coder"]
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
"defaults": {
|
|
183
|
-
"peerReview": ["openai:gpt-4o", "google:gemini-2.0-flash"],
|
|
184
|
-
"includeClaude": true
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
```
|
|
29
|
+
## Step 0: Model Selection (Session Persistent)
|
|
189
30
|
|
|
190
|
-
|
|
191
|
-
```
|
|
192
|
-
OPENAI_API_KEY=sk-proj-...
|
|
193
|
-
GOOGLE_API_KEY=AIza...
|
|
194
|
-
```
|
|
31
|
+
Models are selected once per session and remembered for subsequent runs.
|
|
195
32
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
"peerReview": {
|
|
202
|
-
"apiKeys": {
|
|
203
|
-
"openai": "${OPENAI_API_KEY}"
|
|
204
|
-
},
|
|
205
|
-
"models": ["openai:gpt-4o"]
|
|
206
|
-
}
|
|
207
|
-
```
|
|
33
|
+
1. Check `modelConfig.getSessionModels('peerReview')` for existing selection
|
|
34
|
+
2. If models already selected AND no `--select-models` flag, reuse them
|
|
35
|
+
3. If no models configured (`modelConfig.getEnabledModels().length === 0`), prompt to run `/wogi-models-setup` or use `--manual`
|
|
36
|
+
4. Show multi-select dialog with configured models + Claude option (when `modelConfig.shouldIncludeClaude()`)
|
|
37
|
+
5. Save selection: `modelConfig.setSessionModels('peerReview', selectedModels)`
|
|
208
38
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
For manual review (no API keys needed):
|
|
212
|
-
```
|
|
213
|
-
/wogi-peer-review --manual
|
|
214
|
-
```
|
|
215
|
-
|
|
216
|
-
When manual:
|
|
217
|
-
1. Outputs the review prompt
|
|
218
|
-
2. User runs in Cursor/other tool
|
|
219
|
-
3. User pastes results back
|
|
220
|
-
4. Claude synthesizes
|
|
39
|
+
**Config**: Models configured in `.workflow/config.json` under `models.providers`. API keys in `.env`.
|
|
221
40
|
|
|
222
41
|
## Review Flow
|
|
223
42
|
|
|
@@ -228,55 +47,21 @@ When manual:
|
|
|
228
47
|
│ 1. Collect code changes (git diff or specified files) │
|
|
229
48
|
│ 2. Generate improvement-focused prompt │
|
|
230
49
|
│ 3. If includeClaude enabled: │
|
|
231
|
-
│
|
|
232
|
-
│ • Claude reviews using same prompt as external │
|
|
50
|
+
│ - Launch Claude review (Task agent, Explore type) │
|
|
233
51
|
│ 4. External model(s) review via API │
|
|
234
52
|
│ 5. Collect all results │
|
|
235
53
|
│ 6. Compare findings: │
|
|
236
|
-
│
|
|
237
|
-
│
|
|
238
|
-
│
|
|
239
|
-
│ 7. Claude synthesizes and responds to feedback
|
|
240
|
-
│ • "I have more context, here's why X is better..." │
|
|
241
|
-
│ • "Valid point, Y would be an improvement..." │
|
|
54
|
+
│ - All agree → Strong suggestion │
|
|
55
|
+
│ - Partial agree → Present perspectives │
|
|
56
|
+
│ - Disagree → Surface disagreement │
|
|
57
|
+
│ 7. Claude synthesizes and responds to feedback │
|
|
242
58
|
│ 8. Output final synthesis │
|
|
243
59
|
└─────────────────────────────────────────────────────────┘
|
|
244
60
|
```
|
|
245
61
|
|
|
246
|
-
### Claude Review Implementation
|
|
247
|
-
|
|
248
|
-
When `includeClaude` is enabled, launch a Task agent to perform Claude's review:
|
|
249
|
-
|
|
250
|
-
```javascript
|
|
251
|
-
// In wogi-peer-review execution
|
|
252
|
-
const modelConfig = require('./scripts/flow-model-config');
|
|
253
|
-
|
|
254
|
-
if (modelConfig.shouldIncludeClaude()) {
|
|
255
|
-
// Launch Task agent with subagent_type=Explore
|
|
256
|
-
// Use the same improvement-focused prompt as external models
|
|
257
|
-
// The agent reviews the code and returns findings
|
|
258
|
-
// Add Claude's results to the comparison alongside external model results
|
|
259
|
-
}
|
|
260
|
-
```
|
|
261
|
-
|
|
262
|
-
**Task agent prompt for Claude review:**
|
|
263
|
-
```
|
|
264
|
-
Review this code for IMPROVEMENT OPPORTUNITIES (not bugs):
|
|
265
|
-
|
|
266
|
-
1. Optimization: Can this be faster/more efficient?
|
|
267
|
-
2. Alternatives: Are there better approaches?
|
|
268
|
-
3. Patterns: Does this follow best practices?
|
|
269
|
-
4. Readability: Could this be clearer/simpler?
|
|
270
|
-
5. Extensibility: Will this be easy to extend?
|
|
271
|
-
|
|
272
|
-
[code changes]
|
|
273
|
-
|
|
274
|
-
Return structured findings with specific suggestions.
|
|
275
|
-
```
|
|
276
|
-
|
|
277
62
|
## Review Prompt Template
|
|
278
63
|
|
|
279
|
-
The peer review focuses on improvements, not correctness:
|
|
64
|
+
The peer review prompt focuses on improvements, not correctness:
|
|
280
65
|
|
|
281
66
|
```
|
|
282
67
|
Review this code for IMPROVEMENT OPPORTUNITIES, not bugs:
|
|
@@ -287,108 +72,82 @@ Review this code for IMPROVEMENT OPPORTUNITIES, not bugs:
|
|
|
287
72
|
4. **Readability**: Could this be clearer/simpler?
|
|
288
73
|
5. **Extensibility**: Will this be easy to extend?
|
|
289
74
|
|
|
290
|
-
|
|
291
|
-
[code changes]
|
|
292
|
-
|
|
293
|
-
Respond with:
|
|
294
|
-
- Specific improvement suggestions
|
|
295
|
-
- Alternative approaches considered
|
|
296
|
-
- Trade-off analysis for any changes
|
|
75
|
+
Respond with: specific suggestions, alternative approaches, trade-off analysis.
|
|
297
76
|
```
|
|
298
77
|
|
|
299
78
|
## Output
|
|
300
79
|
|
|
301
80
|
```
|
|
302
81
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
303
|
-
|
|
82
|
+
Peer Review Results
|
|
304
83
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
305
84
|
|
|
306
85
|
Reviewers: Claude, GPT-4o, Gemini 2.0 Flash
|
|
307
86
|
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
87
|
+
Agreement (3/3 models):
|
|
88
|
+
- Consider using early return for readability
|
|
89
|
+
- Extract repeated logic to helper function
|
|
311
90
|
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
91
|
+
Partial Agreement (2/3 models):
|
|
92
|
+
- Claude + Gemini: Add input validation at boundary
|
|
93
|
+
- GPT-4o: Not necessary for internal function
|
|
315
94
|
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
95
|
+
Disagreement:
|
|
96
|
+
- Claude: Prefer inline styling for this case
|
|
97
|
+
- GPT-4o: Recommend extracting to CSS module
|
|
98
|
+
- Gemini: No strong opinion
|
|
320
99
|
→ Resolution: Context-dependent, current approach is valid
|
|
321
100
|
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
101
|
+
Unique Insights:
|
|
102
|
+
- [Claude] Current architecture handles edge case X well
|
|
103
|
+
- [GPT-4o] Consider memoization for expensive computation
|
|
104
|
+
- [Gemini] Similar pattern used in popular library Y
|
|
326
105
|
|
|
327
|
-
|
|
106
|
+
Summary:
|
|
328
107
|
Reviewers: 3 (Claude + 2 external)
|
|
329
108
|
4 actionable improvements identified
|
|
330
109
|
1 disagreement resolved
|
|
331
110
|
Code quality: Good, with minor optimization opportunities
|
|
332
111
|
```
|
|
333
112
|
|
|
334
|
-
##
|
|
335
|
-
|
|
336
|
-
- Before merging significant changes
|
|
337
|
-
- For security-sensitive code
|
|
338
|
-
- When you want high confidence
|
|
339
|
-
- For learning different perspectives
|
|
340
|
-
- When stuck on architecture decisions
|
|
341
|
-
|
|
342
|
-
## Phase: Post-Review Actions
|
|
113
|
+
## Post-Review: Task Creation
|
|
343
114
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
### Store & Create Tasks
|
|
347
|
-
|
|
348
|
-
Unlike `/wogi-review` (which finds bugs), peer review finds **improvement opportunities**. These are optional enhancements, not required fixes.
|
|
115
|
+
Unlike `/wogi-review` (which finds bugs and creates fix tasks), peer review finds **improvement opportunities**. These are optional enhancements, not required fixes.
|
|
349
116
|
|
|
350
117
|
**Task creation rules:**
|
|
351
118
|
- Strong agreements (2+ models) → Create task if user approves
|
|
352
119
|
- Single-model suggestions → Note in tech-debt.json for future
|
|
353
120
|
- Disagreements → Document in review report, no task
|
|
354
121
|
|
|
355
|
-
|
|
356
|
-
```
|
|
357
|
-
═══════════════════════════════════════
|
|
358
|
-
ACTIONABLE IMPROVEMENTS
|
|
359
|
-
═══════════════════════════════════════
|
|
360
|
-
3 improvements with strong agreement:
|
|
361
|
-
• Extract repeated logic to helper (readability)
|
|
362
|
-
• Add memoization for expensive computation (performance)
|
|
363
|
-
• Use early return pattern (readability)
|
|
364
|
-
|
|
365
|
-
Options:
|
|
366
|
-
[1] Create tasks - Add as improvement tasks (P3)
|
|
367
|
-
[2] Add to tech-debt - Track for future
|
|
368
|
-
[3] Skip - Just log the review
|
|
369
|
-
```
|
|
122
|
+
Present options: [1] Create tasks (P3), [2] Add to tech-debt, [3] Skip (just log).
|
|
370
123
|
|
|
371
|
-
|
|
124
|
+
## Post-Review: Learning Loop
|
|
372
125
|
|
|
373
126
|
For recurring suggestions across reviews:
|
|
127
|
+
1. Same improvement suggested 3+ times → Consider adding to `decisions.md`
|
|
128
|
+
2. Pattern disagreement resolved consistently → Document the resolution
|
|
374
129
|
|
|
375
|
-
|
|
376
|
-
2. If pattern disagreement resolved consistently → Document the resolution
|
|
130
|
+
## Manual Mode
|
|
377
131
|
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
132
|
+
For manual review (no API keys needed): `/wogi-peer-review --manual`
|
|
133
|
+
|
|
134
|
+
1. Outputs the review prompt with code changes
|
|
135
|
+
2. User runs in Cursor/other AI tool
|
|
136
|
+
3. User pastes results back
|
|
137
|
+
4. Claude synthesizes all perspectives
|
|
383
138
|
|
|
384
139
|
## Options
|
|
385
140
|
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
141
|
+
| Flag | Description |
|
|
142
|
+
|------|-------------|
|
|
143
|
+
| `--select-models` | Force model re-selection (overrides session selection) |
|
|
144
|
+
| `--manual` | Manual mode (copy prompt to another AI, paste response back) |
|
|
145
|
+
| `--provider <name>` | Override configured provider |
|
|
146
|
+
| `--model <name>` | Specify secondary model |
|
|
147
|
+
| `--files <glob>` | Review specific files |
|
|
148
|
+
| `--task <id>` | Review task changes |
|
|
149
|
+
| `--json` | Output JSON for automation |
|
|
150
|
+
| `--verbose` | Show full model responses |
|
|
151
|
+
| `--create-tasks` | Auto-create tasks for strong agreements |
|
|
152
|
+
|
|
153
|
+
ARGUMENTS: {args}
|
|
@@ -52,7 +52,18 @@ If MCP inspection yields few or no results:
|
|
|
52
52
|
|
|
53
53
|
### Step 3: Build Plugin Entry
|
|
54
54
|
|
|
55
|
-
From the discovered information, construct
|
|
55
|
+
From the discovered information, construct each capability entry. For each capability, classify its **mode** and **flowPhases**:
|
|
56
|
+
|
|
57
|
+
**Mode Classification Guide:**
|
|
58
|
+
| Mode | When to use | Examples |
|
|
59
|
+
|------|-------------|----------|
|
|
60
|
+
| `standalone` | Action works independently, no task context needed | Screenshots, status checks, lookups, notifications, sending messages |
|
|
61
|
+
| `flow-integrated` | Action is part of a development workflow phase | Running tests (validating), design checks (exploring), deploys (completing), linting (validating) |
|
|
62
|
+
| `trigger` | Action feeds events INTO WogiFlow routing | Error alerts → `/wogi-bug`, deployment failures → `/wogi-story`, PR comments → `/wogi-review` |
|
|
63
|
+
|
|
64
|
+
**flowPhases** (only for `flow-integrated` mode): `exploring`, `coding`, `validating`, `completing`
|
|
65
|
+
|
|
66
|
+
**outputFormat**: `text` (default), `json` (structured data), `artifact` (file/image output)
|
|
56
67
|
|
|
57
68
|
```json
|
|
58
69
|
{
|
|
@@ -66,7 +77,10 @@ From the discovered information, construct:
|
|
|
66
77
|
"description": "What this action does",
|
|
67
78
|
"triggerPhrases": ["send to X", "push to X"],
|
|
68
79
|
"mcpTool": "mcp__server__tool_name or null",
|
|
69
|
-
"requiresTask": false
|
|
80
|
+
"requiresTask": false,
|
|
81
|
+
"mode": "standalone|flow-integrated|trigger",
|
|
82
|
+
"flowPhases": ["validating"],
|
|
83
|
+
"outputFormat": "text"
|
|
70
84
|
}
|
|
71
85
|
],
|
|
72
86
|
"metadata": {
|
|
@@ -91,10 +105,11 @@ Source: MCP tools | Web search | Manual
|
|
|
91
105
|
|
|
92
106
|
Capabilities discovered (N):
|
|
93
107
|
1. <action>: <description>
|
|
94
|
-
Triggers: "phrase 1", "phrase 2"
|
|
108
|
+
Mode: standalone | Triggers: "phrase 1", "phrase 2"
|
|
95
109
|
MCP Tool: mcp__server__tool
|
|
96
110
|
|
|
97
111
|
2. <action>: <description>
|
|
112
|
+
Mode: flow-integrated | Phases: validating, completing
|
|
98
113
|
Triggers: "phrase 3"
|
|
99
114
|
|
|
100
115
|
Trigger phrases (top-level):
|
|
@@ -198,7 +198,6 @@ In `.workflow/config.json`:
|
|
|
198
198
|
"research": {
|
|
199
199
|
"enabled": true,
|
|
200
200
|
"defaultDepth": "standard",
|
|
201
|
-
"strictMode": true,
|
|
202
201
|
"autoTrigger": true,
|
|
203
202
|
"maxTokensPerDepth": {
|
|
204
203
|
"quick": 5000,
|
|
@@ -265,7 +264,7 @@ This will:
|
|
|
265
264
|
|
|
266
265
|
## Integration with Hooks
|
|
267
266
|
|
|
268
|
-
When `research.
|
|
267
|
+
When `research.requireCitations` is enabled and `research.autoTrigger` is true:
|
|
269
268
|
- Capability/feasibility questions automatically trigger research
|
|
270
269
|
- Claims without citations are flagged
|
|
271
270
|
- Negative claims require exhaustive search evidence
|