@cluesmith/codev 1.1.0 → 1.1.1
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/dist/agent-farm/cli.d.ts.map +1 -1
- package/dist/agent-farm/cli.js +19 -0
- package/dist/agent-farm/cli.js.map +1 -1
- package/dist/agent-farm/commands/cleanup.d.ts.map +1 -1
- package/dist/agent-farm/commands/cleanup.js +18 -1
- package/dist/agent-farm/commands/cleanup.js.map +1 -1
- package/dist/agent-farm/commands/consult.d.ts +16 -0
- package/dist/agent-farm/commands/consult.d.ts.map +1 -0
- package/dist/agent-farm/commands/consult.js +51 -0
- package/dist/agent-farm/commands/consult.js.map +1 -0
- package/dist/agent-farm/commands/open.js +6 -6
- package/dist/agent-farm/commands/open.js.map +1 -1
- package/dist/agent-farm/commands/spawn.d.ts.map +1 -1
- package/dist/agent-farm/commands/spawn.js +48 -42
- 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 +8 -14
- package/dist/agent-farm/commands/start.js.map +1 -1
- package/dist/agent-farm/commands/util.js +2 -2
- package/dist/agent-farm/commands/util.js.map +1 -1
- package/dist/agent-farm/db/errors.d.ts +4 -0
- package/dist/agent-farm/db/errors.d.ts.map +1 -1
- package/dist/agent-farm/db/errors.js +8 -0
- package/dist/agent-farm/db/errors.js.map +1 -1
- package/dist/agent-farm/servers/dashboard-server.js +113 -71
- package/dist/agent-farm/servers/dashboard-server.js.map +1 -1
- package/dist/agent-farm/servers/open-server.d.ts +9 -0
- package/dist/agent-farm/servers/open-server.d.ts.map +1 -0
- package/dist/agent-farm/servers/{annotate-server.js → open-server.js} +17 -15
- package/dist/agent-farm/servers/open-server.js.map +1 -0
- package/dist/agent-farm/servers/tower-server.js +4 -7
- package/dist/agent-farm/servers/tower-server.js.map +1 -1
- package/dist/agent-farm/state.d.ts +5 -0
- package/dist/agent-farm/state.d.ts.map +1 -1
- package/dist/agent-farm/state.js +17 -0
- package/dist/agent-farm/state.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/config.d.ts.map +1 -1
- package/dist/agent-farm/utils/config.js +13 -7
- package/dist/agent-farm/utils/config.js.map +1 -1
- package/dist/agent-farm/utils/port-registry.d.ts +1 -1
- package/dist/agent-farm/utils/port-registry.d.ts.map +1 -1
- package/dist/agent-farm/utils/port-registry.js +1 -1
- package/dist/agent-farm/utils/port-registry.js.map +1 -1
- package/dist/agent-farm/utils/shell.d.ts +19 -0
- package/dist/agent-farm/utils/shell.d.ts.map +1 -1
- package/dist/agent-farm/utils/shell.js +28 -0
- package/dist/agent-farm/utils/shell.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +18 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/adopt.d.ts +3 -0
- package/dist/commands/adopt.d.ts.map +1 -1
- package/dist/commands/adopt.js +31 -25
- package/dist/commands/adopt.js.map +1 -1
- package/dist/commands/consult/index.d.ts +3 -2
- package/dist/commands/consult/index.d.ts.map +1 -1
- package/dist/commands/consult/index.js +128 -54
- package/dist/commands/consult/index.js.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +30 -34
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/eject.d.ts +18 -0
- package/dist/commands/eject.d.ts.map +1 -0
- package/dist/commands/eject.js +149 -0
- package/dist/commands/eject.js.map +1 -0
- package/dist/commands/init.d.ts +3 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +32 -27
- package/dist/commands/init.js.map +1 -1
- package/dist/lib/projectlist-parser.d.ts +70 -0
- package/dist/lib/projectlist-parser.d.ts.map +1 -0
- package/dist/lib/projectlist-parser.js +200 -0
- package/dist/lib/projectlist-parser.js.map +1 -0
- package/dist/lib/skeleton.d.ts +41 -0
- package/dist/lib/skeleton.d.ts.map +1 -0
- package/dist/lib/skeleton.js +110 -0
- package/dist/lib/skeleton.js.map +1 -0
- package/dist/lib/templates.d.ts +2 -1
- package/dist/lib/templates.d.ts.map +1 -1
- package/dist/lib/templates.js +11 -10
- package/dist/lib/templates.js.map +1 -1
- package/package.json +4 -3
- package/{templates → skeleton}/DEPENDENCIES.md +2 -48
- package/{templates → skeleton}/agents/codev-updater.md +4 -3
- package/skeleton/bin/agent-farm +7 -0
- package/skeleton/docs/commands/agent-farm.md +469 -0
- package/skeleton/docs/commands/codev.md +253 -0
- package/skeleton/docs/commands/consult.md +286 -0
- package/skeleton/docs/commands/overview.md +107 -0
- package/{templates → skeleton}/protocols/experiment/protocol.md +2 -2
- package/{templates → skeleton}/protocols/spider/protocol.md +7 -7
- package/{templates/protocols/spider-solo → skeleton/protocols/spider}/templates/plan.md +22 -1
- package/{templates/protocols/spider-solo → skeleton/protocols/spider}/templates/spec.md +30 -1
- package/skeleton/protocols/tick/protocol.md +277 -0
- package/skeleton/resources/lessons-learned.md +30 -0
- package/skeleton/resources/workflow-reference.md +229 -0
- package/{templates → skeleton}/roles/architect.md +2 -0
- package/{templates → skeleton}/roles/builder.md +2 -0
- package/skeleton/roles/review-types/impl-review.md +56 -0
- package/skeleton/roles/review-types/integration-review.md +68 -0
- package/skeleton/roles/review-types/plan-review.md +59 -0
- package/skeleton/roles/review-types/pr-ready.md +72 -0
- package/skeleton/roles/review-types/spec-review.md +55 -0
- package/{templates → skeleton}/templates/projectlist.md +17 -16
- package/dist/agent-farm/servers/annotate-server.d.ts +0 -9
- package/dist/agent-farm/servers/annotate-server.d.ts.map +0 -1
- package/dist/agent-farm/servers/annotate-server.js.map +0 -1
- package/templates/annotate.html +0 -903
- package/templates/bin/agent-farm +0 -18
- package/templates/bin/annotate-server.js +0 -140
- package/templates/dashboard-split.html +0 -1679
- package/templates/dashboard.html +0 -149
- package/templates/protocols/spider/templates/plan.md +0 -169
- package/templates/protocols/spider/templates/review.md +0 -207
- package/templates/protocols/spider/templates/spec.md +0 -140
- package/templates/protocols/spider-solo/protocol.md +0 -619
- package/templates/protocols/tick/protocol.md +0 -250
- package/templates/tower.html +0 -1032
- /package/{templates/AGENTS.md → skeleton/AGENTS.md.template} +0 -0
- /package/{templates/CLAUDE.md → skeleton/CLAUDE.md.template} +0 -0
- /package/{templates → skeleton}/agents/architecture-documenter.md +0 -0
- /package/{templates → skeleton}/agents/spider-protocol-updater.md +0 -0
- /package/{templates → skeleton}/bin/codev-doctor +0 -0
- /package/{templates → skeleton}/builders.md +0 -0
- /package/{templates → skeleton}/config.json +0 -0
- /package/{templates → skeleton}/plans/.gitkeep +0 -0
- /package/{templates → skeleton}/protocols/experiment/templates/notes.md +0 -0
- /package/{templates → skeleton}/protocols/maintain/protocol.md +0 -0
- /package/{templates/protocols/spider-solo → skeleton/protocols/spider}/templates/review.md +0 -0
- /package/{templates → skeleton}/protocols/tick/templates/plan.md +0 -0
- /package/{templates → skeleton}/protocols/tick/templates/review.md +0 -0
- /package/{templates → skeleton}/protocols/tick/templates/spec.md +0 -0
- /package/{templates → skeleton}/reviews/.gitkeep +0 -0
- /package/{templates → skeleton}/roles/consultant.md +0 -0
- /package/{templates → skeleton}/specs/.gitkeep +0 -0
|
@@ -1,250 +0,0 @@
|
|
|
1
|
-
# TICK Protocol
|
|
2
|
-
**T**ask **I**dentification, **C**oding, **K**ickout
|
|
3
|
-
|
|
4
|
-
## Overview
|
|
5
|
-
TICK is a streamlined development protocol for rapid, autonomous implementation. Unlike SPIDER's multi-phase approach with intermediate reviews, TICK runs in a single autonomous step from specification to implementation, with multi-agent consultation only at the review phase.
|
|
6
|
-
|
|
7
|
-
**Core Principle**: Fast iteration for simple tasks - spec, plan, implement, review. No intermediate checkpoints. Multi-agent validation at the end.
|
|
8
|
-
|
|
9
|
-
## When to Use TICK
|
|
10
|
-
|
|
11
|
-
### Use TICK for:
|
|
12
|
-
- Small features (< 300 lines of code)
|
|
13
|
-
- Well-defined tasks with clear requirements
|
|
14
|
-
- Bug fixes with known solutions
|
|
15
|
-
- Straightforward refactoring
|
|
16
|
-
- Configuration changes with logic
|
|
17
|
-
- Simple API endpoints
|
|
18
|
-
- Utility function additions
|
|
19
|
-
|
|
20
|
-
### Use SPIDER instead for:
|
|
21
|
-
- Complex features requiring multiple phases
|
|
22
|
-
- Architecture changes
|
|
23
|
-
- Unclear requirements needing exploration
|
|
24
|
-
- Performance optimization initiatives
|
|
25
|
-
- System design decisions
|
|
26
|
-
- Features requiring stakeholder alignment
|
|
27
|
-
|
|
28
|
-
## Protocol Workflow
|
|
29
|
-
|
|
30
|
-
### Single Autonomous Step
|
|
31
|
-
|
|
32
|
-
**Total Duration**: One continuous execution from start to finish
|
|
33
|
-
|
|
34
|
-
**Phases** (executed sequentially without user intervention):
|
|
35
|
-
1. **Specification** - Define what needs to be built
|
|
36
|
-
2. **Planning** - Create single-phase implementation plan
|
|
37
|
-
3. **Implementation** - Execute the plan
|
|
38
|
-
4. **Review** - Document what was done and lessons learned
|
|
39
|
-
|
|
40
|
-
**User Checkpoints**:
|
|
41
|
-
- **Start**: User provides task description
|
|
42
|
-
- **End**: User reviews completed work and provides feedback
|
|
43
|
-
|
|
44
|
-
## Detailed Workflow
|
|
45
|
-
|
|
46
|
-
### 1. Specification (Autonomous)
|
|
47
|
-
|
|
48
|
-
**Input**: User task description
|
|
49
|
-
|
|
50
|
-
**Agent Actions**:
|
|
51
|
-
1. Analyze the task requirements
|
|
52
|
-
2. Identify scope and constraints
|
|
53
|
-
3. Define success criteria
|
|
54
|
-
4. Generate specification document
|
|
55
|
-
5. **COMMIT**: "TICK Spec: [descriptive-name]"
|
|
56
|
-
|
|
57
|
-
**Output**: `codev/specs/####-descriptive-name.md`
|
|
58
|
-
|
|
59
|
-
**Template**: `templates/spec.md`
|
|
60
|
-
|
|
61
|
-
**Key Sections**:
|
|
62
|
-
- Problem statement
|
|
63
|
-
- Scope (in/out)
|
|
64
|
-
- Success criteria
|
|
65
|
-
- Assumptions
|
|
66
|
-
- No multi-agent consultation
|
|
67
|
-
- No user review at this stage
|
|
68
|
-
|
|
69
|
-
### 2. Planning (Autonomous)
|
|
70
|
-
|
|
71
|
-
**Input**: Generated specification
|
|
72
|
-
|
|
73
|
-
**Agent Actions**:
|
|
74
|
-
1. Break work into logical steps (NOT phases)
|
|
75
|
-
2. Identify file changes needed
|
|
76
|
-
3. Define implementation order
|
|
77
|
-
4. Generate plan document
|
|
78
|
-
5. **COMMIT**: "TICK Plan: [descriptive-name]"
|
|
79
|
-
|
|
80
|
-
**Output**: `codev/plans/####-descriptive-name.md`
|
|
81
|
-
|
|
82
|
-
**Template**: `templates/plan.md`
|
|
83
|
-
|
|
84
|
-
**Key Sections**:
|
|
85
|
-
- Implementation steps (sequential)
|
|
86
|
-
- Files to create/modify
|
|
87
|
-
- Testing approach
|
|
88
|
-
- Single-phase execution (no breaking into phases)
|
|
89
|
-
- No time estimates
|
|
90
|
-
- No user review at this stage
|
|
91
|
-
|
|
92
|
-
### 3. Implementation (Autonomous)
|
|
93
|
-
|
|
94
|
-
**Input**: Generated plan
|
|
95
|
-
|
|
96
|
-
**Agent Actions**:
|
|
97
|
-
1. Execute implementation steps in order
|
|
98
|
-
2. Write code following plan
|
|
99
|
-
3. Test functionality
|
|
100
|
-
4. **COMMIT**: "TICK Impl: [descriptive-name]"
|
|
101
|
-
|
|
102
|
-
**Output**: Working code committed to repository
|
|
103
|
-
|
|
104
|
-
**Notes**:
|
|
105
|
-
- Follow fail-fast principles from AGENTS.md/CLAUDE.md
|
|
106
|
-
- Test before committing
|
|
107
|
-
- No user approval needed during implementation
|
|
108
|
-
- Single commit for all changes
|
|
109
|
-
|
|
110
|
-
### 4. Review (User Checkpoint)
|
|
111
|
-
|
|
112
|
-
**Input**: Completed implementation
|
|
113
|
-
|
|
114
|
-
**Agent Actions**:
|
|
115
|
-
1. Generate review document with:
|
|
116
|
-
- What was implemented
|
|
117
|
-
- Challenges encountered
|
|
118
|
-
- Deviations from plan
|
|
119
|
-
- Lessons learned
|
|
120
|
-
2. **Multi-Agent Consultation** (DEFAULT - MANDATORY):
|
|
121
|
-
- Consult GPT-5 AND Gemini Pro
|
|
122
|
-
- Focus: Code quality, missed issues, improvements
|
|
123
|
-
- Update review with consultation feedback
|
|
124
|
-
3. **Update Architecture Documentation**:
|
|
125
|
-
- Use architecture-documenter agent to update `codev/resources/arch.md`
|
|
126
|
-
- Document new modules, utilities, or architectural changes
|
|
127
|
-
- Ensure arch.md reflects current codebase state
|
|
128
|
-
4. **COMMIT**: "TICK Review: [descriptive-name]" (includes consultation findings and arch.md updates)
|
|
129
|
-
5. **PRESENT TO USER**: Show summary with consultation insights and ask for feedback
|
|
130
|
-
|
|
131
|
-
**Output**: `codev/reviews/####-descriptive-name.md`
|
|
132
|
-
|
|
133
|
-
**Template**: `templates/review.md`
|
|
134
|
-
|
|
135
|
-
**⚠️ BLOCKING**: Cannot present to user without consultation (unless explicitly disabled)
|
|
136
|
-
|
|
137
|
-
**User Actions**:
|
|
138
|
-
- Review completed work
|
|
139
|
-
- Provide feedback
|
|
140
|
-
- Request changes OR approve
|
|
141
|
-
|
|
142
|
-
**If Changes Requested**:
|
|
143
|
-
- Agent makes changes
|
|
144
|
-
- Commits: "TICK Fixes: [descriptive-name]"
|
|
145
|
-
- Updates review document
|
|
146
|
-
- Repeats until user approval
|
|
147
|
-
|
|
148
|
-
## File Naming Convention
|
|
149
|
-
|
|
150
|
-
All three files share the same sequential identifier and name:
|
|
151
|
-
- `specs/0001-feature-name.md`
|
|
152
|
-
- `plans/0001-feature-name.md`
|
|
153
|
-
- `reviews/0001-feature-name.md`
|
|
154
|
-
|
|
155
|
-
Sequential numbering continues across SPIDER and TICK protocols.
|
|
156
|
-
|
|
157
|
-
## Git Commit Strategy
|
|
158
|
-
|
|
159
|
-
**TICK uses 4 commits per task**:
|
|
160
|
-
1. Specification: `TICK Spec: Add user authentication`
|
|
161
|
-
2. Plan: `TICK Plan: Add user authentication`
|
|
162
|
-
3. Implementation: `TICK Impl: Add user authentication`
|
|
163
|
-
4. Review (includes multi-agent consultation): `TICK Review: Add user authentication`
|
|
164
|
-
|
|
165
|
-
Additional commits if changes requested:
|
|
166
|
-
- `TICK Fixes: Add user authentication` (can be multiple)
|
|
167
|
-
|
|
168
|
-
## Key Differences from SPIDER
|
|
169
|
-
|
|
170
|
-
| Aspect | SPIDER | TICK |
|
|
171
|
-
|--------|--------|------|
|
|
172
|
-
| User checkpoints | Multiple (after spec, plan, each phase) | Two (start, end) |
|
|
173
|
-
| Multi-agent consultation | Throughout (spec, plan, implementation, review) | End only (review) |
|
|
174
|
-
| Implementation phases | Multiple | Single |
|
|
175
|
-
| Review timing | Continuous | End only |
|
|
176
|
-
| Complexity | High | Low |
|
|
177
|
-
| Speed | Slower, thorough | Fast, autonomous |
|
|
178
|
-
|
|
179
|
-
## Protocol Selection Guide
|
|
180
|
-
|
|
181
|
-
**Choose TICK when**:
|
|
182
|
-
- Task is well-defined
|
|
183
|
-
- < 300 lines of code
|
|
184
|
-
- Low risk of errors
|
|
185
|
-
- Fast iteration needed
|
|
186
|
-
- Requirements are clear
|
|
187
|
-
|
|
188
|
-
**Choose SPIDER when**:
|
|
189
|
-
- Requirements unclear
|
|
190
|
-
- > 300 lines of code
|
|
191
|
-
- High complexity
|
|
192
|
-
- Stakeholder alignment needed
|
|
193
|
-
- Architecture changes
|
|
194
|
-
|
|
195
|
-
## Example TICK Workflow
|
|
196
|
-
|
|
197
|
-
**User**: "Add a health check endpoint to the API"
|
|
198
|
-
|
|
199
|
-
**Agent**:
|
|
200
|
-
1. Generates spec (30 seconds)
|
|
201
|
-
- `specs/0002-api-health-check.md`
|
|
202
|
-
- Commit: "TICK Spec: API health check"
|
|
203
|
-
2. Generates plan (30 seconds)
|
|
204
|
-
- `plans/0002-api-health-check.md`
|
|
205
|
-
- Commit: "TICK Plan: API health check"
|
|
206
|
-
3. Implements (2 minutes)
|
|
207
|
-
- Creates `/api/health` endpoint
|
|
208
|
-
- Tests endpoint
|
|
209
|
-
- Commit: "TICK Impl: API health check"
|
|
210
|
-
4. Reviews and presents (1 minute)
|
|
211
|
-
- `reviews/0002-api-health-check.md`
|
|
212
|
-
- Commit: "TICK Review: API health check"
|
|
213
|
-
- Shows user the working endpoint
|
|
214
|
-
|
|
215
|
-
**User**: Reviews, approves or requests changes
|
|
216
|
-
|
|
217
|
-
**Total Time**: ~4 minutes for simple task
|
|
218
|
-
|
|
219
|
-
## Benefits
|
|
220
|
-
|
|
221
|
-
1. **Speed**: No intermediate approvals means faster delivery
|
|
222
|
-
2. **Simplicity**: Straightforward workflow, easy to understand
|
|
223
|
-
3. **Autonomy**: Agent executes without constant human intervention
|
|
224
|
-
4. **Documentation**: Still maintains spec, plan, review for reference
|
|
225
|
-
5. **Lightweight**: Minimal overhead for simple tasks
|
|
226
|
-
|
|
227
|
-
## Limitations
|
|
228
|
-
|
|
229
|
-
1. **No course correction**: Can't adjust mid-implementation
|
|
230
|
-
2. **No multi-perspective**: Single agent viewpoint only
|
|
231
|
-
3. **Risk**: May implement wrong solution if spec unclear
|
|
232
|
-
4. **Scope creep**: Easy to go beyond intended scope
|
|
233
|
-
5. **No validation**: No intermediate checks until end
|
|
234
|
-
|
|
235
|
-
## Best Practices
|
|
236
|
-
|
|
237
|
-
1. **Clear Task Description**: User provides detailed initial description
|
|
238
|
-
2. **Test Before Review**: Agent must test functionality before presenting
|
|
239
|
-
3. **Honest Review**: Document all issues and deviations in review
|
|
240
|
-
4. **Quick Iterations**: If changes needed, make them fast
|
|
241
|
-
5. **Know When to Switch**: If task becomes complex, switch to SPIDER
|
|
242
|
-
|
|
243
|
-
## Template Usage
|
|
244
|
-
|
|
245
|
-
All templates are located in `codev/protocols/tick/templates/`:
|
|
246
|
-
- `spec.md` - Specification template
|
|
247
|
-
- `plan.md` - Plan template
|
|
248
|
-
- `review.md` - Review template
|
|
249
|
-
|
|
250
|
-
These are simplified versions of SPIDER templates without consultation sections.
|