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.
@@ -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
- **Overdrive Mode (Opus 4.6):** When tasks are independent, TLC auto-detects and offers parallel execution with multiple agents. Agents are assigned models based on task complexity (opus for heavy, sonnet for standard, haiku for light). Failed agents can be resumed. No arbitrary cap on agent count.
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: Overdrive Detection (Auto-Parallel, Opus 4.6)
188
+ ### Step 1a: Auto-Parallel Detection
189
189
 
190
- After loading plans, analyze task dependencies to determine if parallel execution is possible.
190
+ After loading plans, analyze task dependencies and available providers to pick the best execution strategy automatically.
191
191
 
192
- **Check for dependencies:**
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. Look for dependency markers in task descriptions
205
- 3. Check "## Dependencies" section if present
206
- 4. Identify independent tasks (no dependencies)
207
- 5. Estimate task complexity for model assignment (heavy/standard/light)
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
- **If 2+ independent tasks found:**
210
- ```
211
- 🚀 Overdrive Mode Available (Opus 4.6)
199
+ **Strategy selection (automatic, no flags needed):**
212
200
 
213
- Phase 3 has 4 independent tasks that can run in parallel:
214
- - Task 1: Create user schema [opus] (heavy)
215
- - Task 2: Add validation helpers [sonnet] (standard)
216
- - Task 3: Write migration scripts [sonnet] (standard)
217
- - Task 4: Create seed data [haiku] (light)
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
- Recommended: 4 agents (one per independent task)
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
- **Model auto-selection per task complexity:**
228
- | Complexity | Model | When |
229
- |-----------|-------|------|
230
- | Heavy | opus | Architecture, multi-file features, security, auth, database |
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
- Override with `--model sonnet` to force all agents to the same model.
221
+ Launching...
222
+ ```
235
223
 
236
- **Router-aware model selection:**
237
- Before assigning models, check `.tlc.json` for `router.providers` and `router.capabilities`. If the project has a router config, respect it:
238
- - Use configured providers for their assigned capabilities (e.g., Gemini for design tasks)
239
- - Fall back to the complexity table above only when no router config exists
240
- - Run `/tlc:llm status` to see current routing
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
- **If tasks have dependencies (waterfall):**
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
- Running in sequential order.
244
+ Strategy: sequential
245
+
246
+ Starting Task 1...
251
247
  ```
252
248
 
253
- ### Step 1b: Execute Overdrive (if selected) — Opus 4.6 Multi-Agent
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
- When overdrive mode is selected, spawn parallel agents with per-task model selection:
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
- | `--parallel` | Multi-agent with git worktrees + tmux. Each task gets its own worktree and tmux pane. Claude and Codex work simultaneously. |
966
- | `--parallel --providers claude,codex` | Force specific providers for parallel mode |
967
- | `--parallel --no-tmux` | Parallel worktrees but without tmux visibility (background processes) |
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 Overdrive is NOT Used
975
+ ## When Parallel is NOT Used
971
976
 
972
- Overdrive auto-detects but won't activate when:
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tlc-claude-code",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "TLC - Test Led Coding for Claude Code",
5
5
  "bin": {
6
6
  "tlc-claude-code": "./bin/install.js",