tlc-claude-code 2.2.0 → 2.2.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/.claude/commands/tlc/build.md +59 -54
- package/package.json +1 -1
|
@@ -166,7 +166,7 @@ Senior engineers know when rules don't apply:
|
|
|
166
166
|
|
|
167
167
|
This is the core TLC command. Tests before code, one task at a time.
|
|
168
168
|
|
|
169
|
-
**
|
|
169
|
+
**Parallel by default:** When tasks are independent, TLC auto-detects and runs them in parallel. Multiple providers (Claude + Codex) get their own git worktrees and tmux panes. Single provider uses in-process agents. No flags needed — it just works.
|
|
170
170
|
|
|
171
171
|
## Usage
|
|
172
172
|
|
|
@@ -185,74 +185,80 @@ This is the core TLC command. Tests before code, one task at a time.
|
|
|
185
185
|
|
|
186
186
|
Read all `.planning/phases/{phase}-*-PLAN.md` files for this phase.
|
|
187
187
|
|
|
188
|
-
### Step 1a:
|
|
188
|
+
### Step 1a: Auto-Parallel Detection
|
|
189
189
|
|
|
190
|
-
After loading plans, analyze task dependencies to
|
|
190
|
+
After loading plans, analyze task dependencies and available providers to pick the best execution strategy automatically.
|
|
191
191
|
|
|
192
|
-
**
|
|
193
|
-
```javascript
|
|
194
|
-
// Patterns that indicate dependencies:
|
|
195
|
-
// - "depends on task N"
|
|
196
|
-
// - "after task N"
|
|
197
|
-
// - "requires task N"
|
|
198
|
-
// - "blocked by task N"
|
|
199
|
-
// - "## Dependencies" section with task relationships
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
**Decision logic:**
|
|
192
|
+
**Detection:**
|
|
203
193
|
1. Parse all tasks from plan
|
|
204
|
-
2.
|
|
205
|
-
3.
|
|
206
|
-
4.
|
|
207
|
-
5.
|
|
194
|
+
2. Check "## Dependencies" section for task relationships
|
|
195
|
+
3. Identify independent tasks (no unmet dependencies)
|
|
196
|
+
4. Read `.tlc/.router-state.json` for available providers
|
|
197
|
+
5. Check if tmux is available
|
|
208
198
|
|
|
209
|
-
**
|
|
210
|
-
```
|
|
211
|
-
🚀 Overdrive Mode Available (Opus 4.6)
|
|
199
|
+
**Strategy selection (automatic, no flags needed):**
|
|
212
200
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
201
|
+
| Condition | Strategy | What happens |
|
|
202
|
+
|-----------|----------|--------------|
|
|
203
|
+
| 2+ independent tasks, Claude + Codex available, tmux available | **Worktree + Tmux** | Each task gets own git worktree + tmux pane. Claude and Codex work simultaneously. |
|
|
204
|
+
| 2+ independent tasks, Claude + Codex available, no tmux | **Worktree + Background** | Same but without tmux visibility. |
|
|
205
|
+
| 2+ independent tasks, single provider only | **In-process agents** | Agent tool spawns parallel sub-agents (sonnet/haiku by complexity). |
|
|
206
|
+
| All tasks have dependencies | **Sequential** | One task at a time, in dependency order. |
|
|
207
|
+
| 1 task only | **Sequential** | Just build it. |
|
|
218
208
|
|
|
219
|
-
|
|
209
|
+
**No prompt, no options menu.** TLC picks the best strategy and runs it. User sees:
|
|
220
210
|
|
|
221
|
-
Options:
|
|
222
|
-
1) Overdrive mode (parallel agents) [Recommended]
|
|
223
|
-
2) Sequential mode (one task at a time)
|
|
224
|
-
3) Let me pick which tasks to parallelize
|
|
225
211
|
```
|
|
212
|
+
Phase 3 has 4 independent tasks.
|
|
213
|
+
Providers: claude, codex (2 available)
|
|
214
|
+
Strategy: worktree + tmux (parallel)
|
|
226
215
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
| Standard | sonnet | Normal implementation tasks (default) |
|
|
232
|
-
| Light | haiku | Config, boilerplate, DTOs, enums, constants, seed data |
|
|
216
|
+
Task 1: Create user schema → claude [worktree-phase-3-task-1]
|
|
217
|
+
Task 2: Add validation helpers → codex [worktree-phase-3-task-2]
|
|
218
|
+
Task 3: Write migration scripts → claude [worktree-phase-3-task-3]
|
|
219
|
+
Task 4: Create seed data → codex [worktree-phase-3-task-4]
|
|
233
220
|
|
|
234
|
-
|
|
221
|
+
Launching...
|
|
222
|
+
```
|
|
235
223
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
224
|
+
Or for single provider:
|
|
225
|
+
```
|
|
226
|
+
Phase 3 has 4 independent tasks.
|
|
227
|
+
Providers: claude (1 available)
|
|
228
|
+
Strategy: in-process agents (parallel)
|
|
241
229
|
|
|
242
|
-
|
|
230
|
+
Task 1: Create user schema → opus (heavy)
|
|
231
|
+
Task 2: Add validation helpers → sonnet (standard)
|
|
232
|
+
Task 3: Write migration scripts → sonnet (standard)
|
|
233
|
+
Task 4: Create seed data → haiku (light)
|
|
234
|
+
|
|
235
|
+
Launching...
|
|
243
236
|
```
|
|
244
|
-
📋 Sequential Mode
|
|
245
237
|
|
|
238
|
+
Or for waterfall:
|
|
239
|
+
```
|
|
246
240
|
Phase 3 tasks have dependencies:
|
|
247
241
|
Task 2 depends on Task 1
|
|
248
242
|
Task 3 depends on Task 2
|
|
249
243
|
|
|
250
|
-
|
|
244
|
+
Strategy: sequential
|
|
245
|
+
|
|
246
|
+
Starting Task 1...
|
|
251
247
|
```
|
|
252
248
|
|
|
253
|
-
|
|
249
|
+
**Model auto-selection (in-process agent mode):**
|
|
250
|
+
| Complexity | Model | When |
|
|
251
|
+
|-----------|-------|------|
|
|
252
|
+
| Heavy | opus | Architecture, multi-file features, security, auth, database |
|
|
253
|
+
| Standard | sonnet | Normal implementation tasks (default) |
|
|
254
|
+
| Light | haiku | Config, boilerplate, DTOs, enums, constants, seed data |
|
|
255
|
+
|
|
256
|
+
**Provider round-robin (worktree mode):**
|
|
257
|
+
Tasks alternate between available providers. If Claude + Codex are both available, odd tasks go to Claude, even to Codex. Respects router state — never dispatches to unavailable providers.
|
|
258
|
+
|
|
259
|
+
### Step 1b: Execute Parallel Build
|
|
254
260
|
|
|
255
|
-
|
|
261
|
+
**Worktree + Tmux mode** (multi-provider):
|
|
256
262
|
|
|
257
263
|
```
|
|
258
264
|
🚀 Launching Overdrive Mode (Opus 4.6)
|
|
@@ -962,14 +968,13 @@ Phase 2 complete. Ready for /tlc:verify 2
|
|
|
962
968
|
| `--agents N` | Limit parallel agents to N (default: one per independent task) |
|
|
963
969
|
| `--model MODEL` | Force all agents to use a specific model (opus, sonnet, haiku) |
|
|
964
970
|
| `--max-turns N` | Limit each agent's execution to N turns (default: 50) |
|
|
965
|
-
| `--
|
|
966
|
-
| `--
|
|
967
|
-
| `--
|
|
968
|
-
| `--parallel --dry-run` | Preview execution plan: show DAG, task assignments, provider routing |
|
|
971
|
+
| `--providers claude,codex` | Force specific providers (default: auto-detect from router state) |
|
|
972
|
+
| `--no-tmux` | Skip tmux panes, run worktree agents in background |
|
|
973
|
+
| `--dry-run` | Preview execution plan without running (show DAG, task assignments) |
|
|
969
974
|
|
|
970
|
-
## When
|
|
975
|
+
## When Parallel is NOT Used
|
|
971
976
|
|
|
972
|
-
|
|
977
|
+
Parallel is the default but won't activate when:
|
|
973
978
|
- Only 1 task in phase
|
|
974
979
|
- All tasks have dependencies (waterfall)
|
|
975
980
|
- Tasks modify the same files
|