@cluesmith/codev 2.0.6 → 2.0.7
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/dashboard/dist/assets/{index-B-s8BA2l.js → index-BblS3DWL.js} +30 -30
- package/dashboard/dist/assets/index-BblS3DWL.js.map +1 -0
- package/dashboard/dist/assets/index-Cr9PyjqX.css +32 -0
- package/dashboard/dist/index.html +2 -2
- package/dist/agent-farm/cli.d.ts.map +1 -1
- package/dist/agent-farm/cli.js +23 -48
- package/dist/agent-farm/cli.js.map +1 -1
- package/dist/agent-farm/commands/architect.d.ts +5 -5
- package/dist/agent-farm/commands/architect.d.ts.map +1 -1
- package/dist/agent-farm/commands/architect.js +37 -20
- package/dist/agent-farm/commands/architect.js.map +1 -1
- package/dist/agent-farm/commands/attach.d.ts.map +1 -1
- package/dist/agent-farm/commands/attach.js +1 -21
- package/dist/agent-farm/commands/attach.js.map +1 -1
- package/dist/agent-farm/commands/cleanup.d.ts +12 -0
- package/dist/agent-farm/commands/cleanup.d.ts.map +1 -1
- package/dist/agent-farm/commands/cleanup.js +108 -7
- package/dist/agent-farm/commands/cleanup.js.map +1 -1
- package/dist/agent-farm/commands/spawn-worktree.d.ts +1 -2
- package/dist/agent-farm/commands/spawn-worktree.d.ts.map +1 -1
- package/dist/agent-farm/commands/spawn-worktree.js +12 -18
- package/dist/agent-farm/commands/spawn-worktree.js.map +1 -1
- package/dist/agent-farm/commands/spawn.d.ts.map +1 -1
- package/dist/agent-farm/commands/spawn.js +30 -26
- package/dist/agent-farm/commands/spawn.js.map +1 -1
- package/dist/agent-farm/commands/start.d.ts.map +1 -1
- package/dist/agent-farm/commands/start.js +2 -6
- package/dist/agent-farm/commands/start.js.map +1 -1
- package/dist/agent-farm/commands/status.d.ts.map +1 -1
- package/dist/agent-farm/commands/status.js +4 -23
- package/dist/agent-farm/commands/status.js.map +1 -1
- package/dist/agent-farm/commands/stop.d.ts.map +1 -1
- package/dist/agent-farm/commands/stop.js +2 -6
- package/dist/agent-farm/commands/stop.js.map +1 -1
- package/dist/agent-farm/commands/tower-cloud.d.ts +2 -9
- package/dist/agent-farm/commands/tower-cloud.d.ts.map +1 -1
- package/dist/agent-farm/commands/tower-cloud.js +12 -47
- package/dist/agent-farm/commands/tower-cloud.js.map +1 -1
- package/dist/agent-farm/commands/tower.d.ts.map +1 -1
- package/dist/agent-farm/commands/tower.js +6 -23
- package/dist/agent-farm/commands/tower.js.map +1 -1
- package/dist/agent-farm/db/index.d.ts.map +1 -1
- package/dist/agent-farm/db/index.js +52 -2
- package/dist/agent-farm/db/index.js.map +1 -1
- package/dist/agent-farm/db/schema.d.ts +1 -1
- package/dist/agent-farm/db/schema.d.ts.map +1 -1
- package/dist/agent-farm/db/schema.js +1 -1
- package/dist/agent-farm/lib/cloud-config.d.ts +1 -0
- package/dist/agent-farm/lib/cloud-config.d.ts.map +1 -1
- package/dist/agent-farm/lib/cloud-config.js +2 -2
- package/dist/agent-farm/lib/cloud-config.js.map +1 -1
- package/dist/agent-farm/lib/tower-client.d.ts +49 -0
- package/dist/agent-farm/lib/tower-client.d.ts.map +1 -1
- package/dist/agent-farm/lib/tower-client.js +32 -2
- package/dist/agent-farm/lib/tower-client.js.map +1 -1
- package/dist/agent-farm/servers/overview.d.ts +47 -1
- package/dist/agent-farm/servers/overview.d.ts.map +1 -1
- package/dist/agent-farm/servers/overview.js +298 -58
- package/dist/agent-farm/servers/overview.js.map +1 -1
- package/dist/agent-farm/servers/tower-instances.d.ts.map +1 -1
- package/dist/agent-farm/servers/tower-instances.js +2 -1
- package/dist/agent-farm/servers/tower-instances.js.map +1 -1
- package/dist/agent-farm/servers/tower-routes.d.ts.map +1 -1
- package/dist/agent-farm/servers/tower-routes.js +21 -20
- package/dist/agent-farm/servers/tower-routes.js.map +1 -1
- package/dist/agent-farm/servers/tower-server.js +3 -4
- package/dist/agent-farm/servers/tower-server.js.map +1 -1
- package/dist/agent-farm/servers/tower-terminals.d.ts +1 -1
- package/dist/agent-farm/servers/tower-terminals.d.ts.map +1 -1
- package/dist/agent-farm/servers/tower-terminals.js +4 -4
- package/dist/agent-farm/servers/tower-terminals.js.map +1 -1
- package/dist/agent-farm/servers/tower-tunnel.d.ts.map +1 -1
- package/dist/agent-farm/servers/tower-tunnel.js +3 -19
- package/dist/agent-farm/servers/tower-tunnel.js.map +1 -1
- package/dist/agent-farm/servers/tower-websocket.d.ts.map +1 -1
- package/dist/agent-farm/servers/tower-websocket.js +2 -1
- package/dist/agent-farm/servers/tower-websocket.js.map +1 -1
- package/dist/agent-farm/types.d.ts +1 -1
- package/dist/agent-farm/types.d.ts.map +1 -1
- package/dist/agent-farm/utils/display.d.ts +8 -0
- package/dist/agent-farm/utils/display.d.ts.map +1 -0
- package/dist/agent-farm/utils/display.js +26 -0
- package/dist/agent-farm/utils/display.js.map +1 -0
- package/dist/agent-farm/utils/notifications.d.ts.map +1 -1
- package/dist/agent-farm/utils/notifications.js +7 -16
- package/dist/agent-farm/utils/notifications.js.map +1 -1
- package/dist/agent-farm/utils/server-utils.d.ts +4 -0
- package/dist/agent-farm/utils/server-utils.d.ts.map +1 -1
- package/dist/agent-farm/utils/server-utils.js +20 -0
- package/dist/agent-farm/utils/server-utils.js.map +1 -1
- package/dist/agent-farm/utils/shell.d.ts +5 -0
- package/dist/agent-farm/utils/shell.d.ts.map +1 -1
- package/dist/agent-farm/utils/shell.js +15 -11
- package/dist/agent-farm/utils/shell.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +25 -19
- package/dist/cli.js.map +1 -1
- package/dist/commands/consult/index.d.ts +10 -9
- package/dist/commands/consult/index.d.ts.map +1 -1
- package/dist/commands/consult/index.js +401 -259
- package/dist/commands/consult/index.js.map +1 -1
- package/dist/commands/consult/usage-extractor.d.ts +3 -0
- package/dist/commands/consult/usage-extractor.d.ts.map +1 -1
- package/dist/commands/consult/usage-extractor.js +52 -29
- package/dist/commands/consult/usage-extractor.js.map +1 -1
- package/dist/commands/porch/index.d.ts.map +1 -1
- package/dist/commands/porch/index.js +13 -12
- package/dist/commands/porch/index.js.map +1 -1
- package/dist/commands/porch/next.d.ts.map +1 -1
- package/dist/commands/porch/next.js +7 -18
- package/dist/commands/porch/next.js.map +1 -1
- package/dist/commands/porch/plan.d.ts.map +1 -1
- package/dist/commands/porch/plan.js +17 -2
- package/dist/commands/porch/plan.js.map +1 -1
- package/dist/commands/porch/prompts.d.ts.map +1 -1
- package/dist/commands/porch/prompts.js +6 -3
- package/dist/commands/porch/prompts.js.map +1 -1
- package/dist/commands/porch/state.d.ts +13 -0
- package/dist/commands/porch/state.d.ts.map +1 -1
- package/dist/commands/porch/state.js +46 -1
- package/dist/commands/porch/state.js.map +1 -1
- package/dist/lib/github.d.ts +10 -9
- package/dist/lib/github.d.ts.map +1 -1
- package/dist/lib/github.js +49 -9
- package/dist/lib/github.js.map +1 -1
- package/dist/terminal/index.d.ts +2 -0
- package/dist/terminal/index.d.ts.map +1 -1
- package/dist/terminal/index.js +2 -0
- package/dist/terminal/index.js.map +1 -1
- package/dist/terminal/pty-manager.js +2 -2
- package/dist/terminal/pty-manager.js.map +1 -1
- package/dist/terminal/pty-session.js +1 -1
- package/dist/terminal/pty-session.js.map +1 -1
- package/package.json +1 -1
- package/skeleton/.claude/skills/af/SKILL.md +9 -9
- package/skeleton/.claude/skills/consult/SKILL.md +55 -38
- package/skeleton/.claude/skills/porch/SKILL.md +53 -0
- package/skeleton/DEPENDENCIES.md +2 -2
- package/skeleton/builders.md +8 -19
- package/skeleton/protocol-schema.json +1 -1
- package/skeleton/protocols/bugfix/prompts/pr.md +3 -3
- package/skeleton/protocols/bugfix/protocol.json +1 -1
- package/skeleton/protocols/maintain/consult-types/impl-review.md +72 -0
- package/skeleton/protocols/maintain/consult-types/pr-review.md +72 -0
- package/skeleton/protocols/maintain/protocol.json +4 -4
- package/skeleton/protocols/maintain/protocol.md +3 -3
- package/skeleton/protocols/protocol-schema.json +1 -1
- package/skeleton/protocols/spir/consult-types/impl-review.md +72 -0
- package/skeleton/protocols/spir/consult-types/phase-review.md +72 -0
- package/skeleton/protocols/spir/consult-types/pr-review.md +72 -0
- package/skeleton/protocols/spir/prompts/plan.md +4 -4
- package/skeleton/protocols/spir/prompts/review.md +8 -8
- package/skeleton/protocols/spir/prompts/specify.md +6 -6
- package/skeleton/protocols/spir/protocol.json +11 -11
- package/skeleton/protocols/spir/templates/review.md +2 -2
- package/skeleton/protocols/tick/consult-types/impl-review.md +72 -0
- package/skeleton/protocols/tick/consult-types/plan-review.md +59 -0
- package/skeleton/protocols/tick/consult-types/pr-review.md +72 -0
- package/skeleton/protocols/tick/consult-types/spec-review.md +55 -0
- package/skeleton/protocols/tick/protocol.json +2 -7
- package/skeleton/resources/commands/agent-farm.md +13 -11
- package/skeleton/resources/commands/codev.md +0 -35
- package/skeleton/resources/commands/consult.md +88 -234
- package/skeleton/resources/commands/overview.md +6 -7
- package/skeleton/resources/workflow-reference.md +24 -24
- package/skeleton/roles/architect.md +17 -21
- package/skeleton/roles/builder.md +13 -13
- package/skeleton/templates/AGENTS.md +1 -1
- package/skeleton/templates/CLAUDE.md +1 -1
- package/skeleton/templates/cheatsheet.md +22 -18
- package/skeleton/templates/pr-overview.md +5 -5
- package/dashboard/dist/assets/index-B-s8BA2l.js.map +0 -1
- package/dashboard/dist/assets/index-DB2AxRP7.css +0 -32
- package/dist/agent-farm/commands/consult.d.ts +0 -15
- package/dist/agent-farm/commands/consult.d.ts.map +0 -1
- package/dist/agent-farm/commands/consult.js +0 -39
- package/dist/agent-farm/commands/consult.js.map +0 -1
- /package/skeleton/{consult-types → protocols/bugfix/consult-types}/impl-review.md +0 -0
- /package/skeleton/{consult-types/pr-ready.md → protocols/bugfix/consult-types/pr-review.md} +0 -0
- /package/skeleton/{consult-types → protocols/spir/consult-types}/plan-review.md +0 -0
- /package/skeleton/{consult-types → protocols/spir/consult-types}/spec-review.md +0 -0
|
@@ -26,7 +26,7 @@ Quick reference for the 7-stage project workflow. For protocol details, see `cod
|
|
|
26
26
|
│ IMPLEMENTATION │
|
|
27
27
|
├─────────────────────────────────────────────────────────────────────────────────────┤
|
|
28
28
|
│ → 4. IMPLEMENTING │
|
|
29
|
-
│ Architect spawns builder: af spawn
|
|
29
|
+
│ Architect spawns builder: af spawn XXXX │
|
|
30
30
|
│ Builder reads spec and plan │
|
|
31
31
|
│ For each phase: Implement → Defend → Evaluate │
|
|
32
32
|
│ Builder commits after each phase │
|
|
@@ -80,7 +80,7 @@ AI agents must stop and wait for human action at these gates.
|
|
|
80
80
|
af dash start
|
|
81
81
|
|
|
82
82
|
# Spawn a builder for a project
|
|
83
|
-
af spawn
|
|
83
|
+
af spawn 44 --protocol spir
|
|
84
84
|
|
|
85
85
|
# Check all builder statuses
|
|
86
86
|
af status
|
|
@@ -118,7 +118,7 @@ af open src/path/to/file.ts
|
|
|
118
118
|
codev import /path/to/other-project
|
|
119
119
|
|
|
120
120
|
# Import from GitHub
|
|
121
|
-
codev import github:cluesmith/
|
|
121
|
+
codev import github:cluesmith/codev
|
|
122
122
|
|
|
123
123
|
# Preview without running Claude
|
|
124
124
|
codev import github:owner/repo --dry-run
|
|
@@ -128,29 +128,29 @@ codev import github:owner/repo --dry-run
|
|
|
128
128
|
|
|
129
129
|
```bash
|
|
130
130
|
# Spec review (during Stage 1)
|
|
131
|
-
consult
|
|
132
|
-
consult
|
|
131
|
+
consult -m gemini --protocol spir --type spec
|
|
132
|
+
consult -m codex --protocol spir --type spec
|
|
133
133
|
|
|
134
134
|
# Plan review (during Stage 2)
|
|
135
|
-
consult
|
|
136
|
-
consult
|
|
135
|
+
consult -m gemini --protocol spir --type plan
|
|
136
|
+
consult -m codex --protocol spir --type plan
|
|
137
137
|
|
|
138
138
|
# Implementation review (during Stage 4, after each phase)
|
|
139
|
-
consult
|
|
140
|
-
consult
|
|
139
|
+
consult -m gemini --protocol spir --type impl
|
|
140
|
+
consult -m codex --protocol spir --type impl
|
|
141
141
|
|
|
142
|
-
# PR
|
|
143
|
-
consult
|
|
144
|
-
consult
|
|
142
|
+
# PR review (during Stage 5)
|
|
143
|
+
consult -m gemini --protocol spir --type pr
|
|
144
|
+
consult -m codex --protocol spir --type pr
|
|
145
145
|
|
|
146
146
|
# Integration review (during Stage 6)
|
|
147
|
-
consult
|
|
148
|
-
consult
|
|
147
|
+
consult -m gemini --type integration
|
|
148
|
+
consult -m codex --type integration
|
|
149
149
|
|
|
150
150
|
# Parallel 3-way reviews (run all three concurrently)
|
|
151
|
-
consult
|
|
152
|
-
consult
|
|
153
|
-
consult
|
|
151
|
+
consult -m gemini --protocol spir --type spec &
|
|
152
|
+
consult -m codex --protocol spir --type spec &
|
|
153
|
+
consult -m claude --protocol spir --type spec &
|
|
154
154
|
wait
|
|
155
155
|
```
|
|
156
156
|
|
|
@@ -158,16 +158,16 @@ wait
|
|
|
158
158
|
|
|
159
159
|
| Type | When Used | Focus |
|
|
160
160
|
|------|-----------|-------|
|
|
161
|
-
| `spec
|
|
162
|
-
| `plan
|
|
163
|
-
| `impl
|
|
164
|
-
| `pr
|
|
165
|
-
| `integration
|
|
161
|
+
| `spec` | Stage 1 | Requirements clarity, completeness, feasibility |
|
|
162
|
+
| `plan` | Stage 2 | Implementation approach, phase breakdown, risk assessment |
|
|
163
|
+
| `impl` | Stage 4 | Code quality, test coverage, spec adherence |
|
|
164
|
+
| `pr` | Stage 5 | Final self-check before PR creation |
|
|
165
|
+
| `integration` | Stage 6 | System fit, architectural consistency, side effects |
|
|
166
166
|
|
|
167
167
|
## Builder Lifecycle
|
|
168
168
|
|
|
169
169
|
```
|
|
170
|
-
spawning → implementing → blocked → implementing → pr
|
|
170
|
+
spawning → implementing → blocked → implementing → pr → complete
|
|
171
171
|
↑______________|
|
|
172
172
|
```
|
|
173
173
|
|
|
@@ -176,7 +176,7 @@ spawning → implementing → blocked → implementing → pr-ready → complete
|
|
|
176
176
|
| `spawning` | Worktree created, builder starting up |
|
|
177
177
|
| `implementing` | Actively working on the spec |
|
|
178
178
|
| `blocked` | Stuck, needs architect help |
|
|
179
|
-
| `pr
|
|
179
|
+
| `pr` | Implementation complete, ready for review |
|
|
180
180
|
| `complete` | Merged, worktree can be cleaned up |
|
|
181
181
|
|
|
182
182
|
## Git Workflow
|
|
@@ -16,8 +16,8 @@ Builders work autonomously in isolated git worktrees. The Architect:
|
|
|
16
16
|
|
|
17
17
|
| Mode | Command | Use When |
|
|
18
18
|
|------|---------|----------|
|
|
19
|
-
| **Strict** (default) | `af spawn
|
|
20
|
-
| **Soft** | `af spawn --soft
|
|
19
|
+
| **Strict** (default) | `af spawn XXXX` | Porch orchestrates - runs autonomously to completion |
|
|
20
|
+
| **Soft** | `af spawn XXXX --soft` | AI follows protocol - you verify compliance |
|
|
21
21
|
|
|
22
22
|
**Strict mode** (default): Porch orchestrates the builder with automated gates, 3-way consultations, and enforced phase transitions. More likely to complete autonomously without intervention.
|
|
23
23
|
|
|
@@ -28,14 +28,13 @@ Builders work autonomously in isolated git worktrees. The Architect:
|
|
|
28
28
|
### Agent Farm CLI (`af`)
|
|
29
29
|
|
|
30
30
|
```bash
|
|
31
|
-
af spawn
|
|
32
|
-
af spawn
|
|
33
|
-
af spawn
|
|
34
|
-
af spawn --soft -p 1 # Soft mode - protocol-guided
|
|
31
|
+
af spawn 1 # Strict mode (default) - porch-driven
|
|
32
|
+
af spawn 1 --resume # Resume existing porch state
|
|
33
|
+
af spawn 1 --soft # Soft mode - protocol-guided
|
|
35
34
|
af spawn --task "fix the bug" # Ad-hoc task builder (soft mode)
|
|
36
35
|
af spawn --worktree # Worktree with no initial prompt
|
|
37
36
|
af status # Check all builders
|
|
38
|
-
af cleanup
|
|
37
|
+
af cleanup --project 1 # Remove completed builder
|
|
39
38
|
af dash start/stop # Dashboard management
|
|
40
39
|
af send 1 "message" # Short message to builder
|
|
41
40
|
```
|
|
@@ -54,9 +53,9 @@ porch pending # List pending gates
|
|
|
54
53
|
|
|
55
54
|
```bash
|
|
56
55
|
# 3-way parallel integration review of builder's PR
|
|
57
|
-
consult
|
|
58
|
-
consult
|
|
59
|
-
consult
|
|
56
|
+
consult -m gemini --type integration pr 35 &
|
|
57
|
+
consult -m codex --type integration pr 35 &
|
|
58
|
+
consult -m claude --type integration pr 35 &
|
|
60
59
|
wait
|
|
61
60
|
```
|
|
62
61
|
|
|
@@ -79,13 +78,10 @@ wait
|
|
|
79
78
|
# 2. Spawn the builder
|
|
80
79
|
|
|
81
80
|
# Default: Strict mode (porch-driven with gates)
|
|
82
|
-
af spawn
|
|
83
|
-
|
|
84
|
-
# With project title (if no spec exists yet)
|
|
85
|
-
af spawn -p 42 -t "user-authentication"
|
|
81
|
+
af spawn 42
|
|
86
82
|
|
|
87
83
|
# Or: Soft mode (builder follows protocol independently)
|
|
88
|
-
af spawn --soft
|
|
84
|
+
af spawn 42 --soft
|
|
89
85
|
```
|
|
90
86
|
|
|
91
87
|
### 2. Approving Gates (Strict Mode Only)
|
|
@@ -123,9 +119,9 @@ When the builder creates a PR:
|
|
|
123
119
|
|
|
124
120
|
```bash
|
|
125
121
|
# Run 3-way integration review
|
|
126
|
-
consult
|
|
127
|
-
consult
|
|
128
|
-
consult
|
|
122
|
+
consult -m gemini --type integration pr 83 &
|
|
123
|
+
consult -m codex --type integration pr 83 &
|
|
124
|
+
consult -m claude --type integration pr 83 &
|
|
129
125
|
wait
|
|
130
126
|
|
|
131
127
|
# Post findings as PR comment
|
|
@@ -216,13 +212,13 @@ Before approving implementations with UX requirements:
|
|
|
216
212
|
|
|
217
213
|
| Task | Command |
|
|
218
214
|
|------|---------|
|
|
219
|
-
| Start feature (strict, default) | `af spawn
|
|
220
|
-
| Start feature (soft) | `af spawn --soft
|
|
215
|
+
| Start feature (strict, default) | `af spawn <id>` |
|
|
216
|
+
| Start feature (soft) | `af spawn <id> --soft` |
|
|
221
217
|
| Check all builders | `af status` |
|
|
222
218
|
| Check one project | `porch status <id>` |
|
|
223
219
|
| Approve spec | `porch approve <id> spec-approval` |
|
|
224
220
|
| Approve plan | `porch approve <id> plan-approval` |
|
|
225
221
|
| See pending gates | `porch pending` |
|
|
226
|
-
| Integration review | `consult
|
|
222
|
+
| Integration review | `consult -m X --type integration pr N` |
|
|
227
223
|
| Message builder | `af send <id> "short message"` |
|
|
228
224
|
| Cleanup builder | `af cleanup -p <id>` |
|
|
@@ -8,12 +8,12 @@ Builders run in one of two modes, determined by how they were spawned:
|
|
|
8
8
|
|
|
9
9
|
| Mode | Command | Behavior |
|
|
10
10
|
|------|---------|----------|
|
|
11
|
-
| **Strict** (default) | `af spawn
|
|
12
|
-
| **Soft** | `af spawn --soft
|
|
11
|
+
| **Strict** (default) | `af spawn XXXX` | Porch orchestrates - runs autonomously to completion |
|
|
12
|
+
| **Soft** | `af spawn XXXX --soft` | AI follows protocol - architect verifies compliance |
|
|
13
13
|
|
|
14
14
|
## Strict Mode (Default)
|
|
15
15
|
|
|
16
|
-
Spawned with: `af spawn
|
|
16
|
+
Spawned with: `af spawn XXXX`
|
|
17
17
|
|
|
18
18
|
In strict mode, porch orchestrates your work and drives the protocol to completion autonomously. Your job is simple: **run porch until the project completes**.
|
|
19
19
|
|
|
@@ -69,7 +69,7 @@ You must:
|
|
|
69
69
|
|
|
70
70
|
## Soft Mode
|
|
71
71
|
|
|
72
|
-
Spawned with: `af spawn --soft
|
|
72
|
+
Spawned with: `af spawn XXXX --soft` or `af spawn --task "..."`
|
|
73
73
|
|
|
74
74
|
In soft mode, you follow the protocol document yourself. The architect monitors your work and verifies you're adhering to the protocol correctly.
|
|
75
75
|
|
|
@@ -98,21 +98,21 @@ cat codev/protocols/spir/protocol.md
|
|
|
98
98
|
Run 3-way consultations at checkpoints:
|
|
99
99
|
```bash
|
|
100
100
|
# After writing spec
|
|
101
|
-
consult
|
|
102
|
-
consult
|
|
103
|
-
consult
|
|
101
|
+
consult -m gemini --protocol spir --type spec &
|
|
102
|
+
consult -m codex --protocol spir --type spec &
|
|
103
|
+
consult -m claude --protocol spir --type spec &
|
|
104
104
|
wait
|
|
105
105
|
|
|
106
106
|
# After writing plan
|
|
107
|
-
consult
|
|
108
|
-
consult
|
|
109
|
-
consult
|
|
107
|
+
consult -m gemini --protocol spir --type plan &
|
|
108
|
+
consult -m codex --protocol spir --type plan &
|
|
109
|
+
consult -m claude --protocol spir --type plan &
|
|
110
110
|
wait
|
|
111
111
|
|
|
112
112
|
# After implementation
|
|
113
|
-
consult
|
|
114
|
-
consult
|
|
115
|
-
consult
|
|
113
|
+
consult -m gemini --protocol spir --type pr &
|
|
114
|
+
consult -m codex --protocol spir --type pr &
|
|
115
|
+
consult -m claude --protocol spir --type pr &
|
|
116
116
|
wait
|
|
117
117
|
```
|
|
118
118
|
|
|
@@ -50,7 +50,7 @@ Codev provides three CLI tools:
|
|
|
50
50
|
|
|
51
51
|
- **codev**: Project management (init, adopt, update, doctor)
|
|
52
52
|
- **af**: Agent Farm orchestration (start, spawn, status, cleanup)
|
|
53
|
-
- **consult**: AI consultation for reviews (
|
|
53
|
+
- **consult**: AI consultation for reviews (general, protocol, stats)
|
|
54
54
|
|
|
55
55
|
For complete reference, see `codev/resources/commands/`:
|
|
56
56
|
- `codev/resources/commands/overview.md` - Quick start
|
|
@@ -48,7 +48,7 @@ Codev provides three CLI tools:
|
|
|
48
48
|
|
|
49
49
|
- **codev**: Project management (init, adopt, update, doctor)
|
|
50
50
|
- **af**: Agent Farm orchestration (start, spawn, status, cleanup)
|
|
51
|
-
- **consult**: AI consultation for reviews (
|
|
51
|
+
- **consult**: AI consultation for reviews (general, protocol, stats)
|
|
52
52
|
|
|
53
53
|
For complete reference, see `codev/resources/commands/`:
|
|
54
54
|
- `codev/resources/commands/overview.md` - Quick start
|
|
@@ -76,10 +76,12 @@ A **role** defines who does what work and what tools/permissions they have.
|
|
|
76
76
|
| **Consultant** | External reviewers providing second opinions on specs, plans, implementations |
|
|
77
77
|
|
|
78
78
|
**Consultant Flavors** (via `--type`):
|
|
79
|
-
- `spec
|
|
80
|
-
- `plan
|
|
81
|
-
- `impl
|
|
82
|
-
- `
|
|
79
|
+
- `spec` - Review specification completeness
|
|
80
|
+
- `plan` - Review implementation plan feasibility
|
|
81
|
+
- `impl` - Review code for spec adherence
|
|
82
|
+
- `pr` - Review pull request before merge
|
|
83
|
+
- `phase` - Phase-scoped review (builder only)
|
|
84
|
+
- `integration` - Review for architectural fit
|
|
83
85
|
|
|
84
86
|
### Context Hierarchy
|
|
85
87
|
|
|
@@ -102,7 +104,6 @@ Project management commands. Typically used by **humans** to set up and maintain
|
|
|
102
104
|
| `codev doctor` | Check dependencies and configuration |
|
|
103
105
|
| `codev update` | Update Codev framework |
|
|
104
106
|
| `codev import` | Import specs from another project |
|
|
105
|
-
| `codev tower` | Cross-project dashboard |
|
|
106
107
|
|
|
107
108
|
### agent-farm (af)
|
|
108
109
|
|
|
@@ -112,7 +113,7 @@ Architect-Builder orchestration. Used by both **humans and agents**—agents use
|
|
|
112
113
|
|---------|-------------|
|
|
113
114
|
| `af dash start` | Start dashboard (port 4200, 4300, etc.) |
|
|
114
115
|
| `af dash stop` | Stop all processes |
|
|
115
|
-
| `af spawn
|
|
116
|
+
| `af spawn <id> --protocol spir` | Spawn a builder for project |
|
|
116
117
|
| `af status` | Check status of all builders |
|
|
117
118
|
| `af send <target> <msg>` | Send message (builder↔architect) |
|
|
118
119
|
| `af cleanup -p <id>` | Clean up a builder worktree |
|
|
@@ -126,20 +127,23 @@ Multi-agent consultation. Used by both humans and agents—**mostly agents** dur
|
|
|
126
127
|
|
|
127
128
|
| Command | Description |
|
|
128
129
|
|---------|-------------|
|
|
129
|
-
| `consult
|
|
130
|
-
| `consult
|
|
131
|
-
| `consult
|
|
132
|
-
| `consult
|
|
130
|
+
| `consult -m <model> --prompt "text"` | General consultation |
|
|
131
|
+
| `consult -m <model> --protocol spir --type spec` | Review a specification |
|
|
132
|
+
| `consult -m <model> --protocol spir --type plan` | Review an implementation plan |
|
|
133
|
+
| `consult -m <model> --protocol spir --type pr` | Review a pull request |
|
|
134
|
+
| `consult stats` | View consultation statistics |
|
|
133
135
|
|
|
134
136
|
**Models**: `gemini` (alias: `pro`), `codex` (alias: `gpt`), `claude` (alias: `opus`)
|
|
135
137
|
|
|
136
|
-
**Review Types** (via `--type`):
|
|
138
|
+
**Review Types** (via `--type` with `--protocol`):
|
|
137
139
|
| Type | Use Case |
|
|
138
140
|
|------|----------|
|
|
139
|
-
| `spec
|
|
140
|
-
| `plan
|
|
141
|
-
| `impl
|
|
142
|
-
| `
|
|
141
|
+
| `spec` | Review spec completeness and clarity |
|
|
142
|
+
| `plan` | Review plan coverage and feasibility |
|
|
143
|
+
| `impl` | Review implementation quality (Builder use) |
|
|
144
|
+
| `pr` | Review pull request before merge |
|
|
145
|
+
| `phase` | Phase-scoped review (Builder use) |
|
|
146
|
+
| `integration` | Review architectural fit (Architect use) |
|
|
143
147
|
|
|
144
148
|
---
|
|
145
149
|
|
|
@@ -161,9 +165,9 @@ Multi-agent consultation. Used by both humans and agents—**mostly agents** dur
|
|
|
161
165
|
|
|
162
166
|
```bash
|
|
163
167
|
# Run 3-way review in parallel
|
|
164
|
-
consult
|
|
165
|
-
consult
|
|
166
|
-
consult
|
|
168
|
+
consult -m gemini --protocol spir --type pr &
|
|
169
|
+
consult -m codex --protocol spir --type pr &
|
|
170
|
+
consult -m claude --protocol spir --type pr &
|
|
167
171
|
wait
|
|
168
172
|
```
|
|
169
173
|
|
|
@@ -57,15 +57,15 @@ To use this template for architect-mediated reviews:
|
|
|
57
57
|
|
|
58
58
|
```bash
|
|
59
59
|
# Fill out this template and save as overview.md, then:
|
|
60
|
-
consult
|
|
60
|
+
consult -m gemini --type pr --context overview.md
|
|
61
61
|
|
|
62
62
|
# Or pipe directly:
|
|
63
|
-
cat overview.md | consult
|
|
63
|
+
cat overview.md | consult -m gemini --type pr --context -
|
|
64
64
|
|
|
65
65
|
# For 3-way parallel reviews:
|
|
66
|
-
consult
|
|
67
|
-
consult
|
|
68
|
-
consult
|
|
66
|
+
consult -m gemini --type pr --context overview.md &
|
|
67
|
+
consult -m codex --type pr --context overview.md &
|
|
68
|
+
consult -m claude --type pr --context overview.md &
|
|
69
69
|
wait
|
|
70
70
|
```
|
|
71
71
|
|