uctm 1.0.1 → 1.0.2
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/README.md +30 -31
- package/bin/cli.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -93,7 +93,7 @@ Six subagents work across any project and any language, automatically handling *
|
|
|
93
93
|
> [bugfix] Fix typo in login error message
|
|
94
94
|
```
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
Main Claude calls router, which selects `execution-mode: direct` and handles everything in its session. No additional subagent spawned. Creates WORK-NN directory + PLAN + result.md + commit.
|
|
97
97
|
|
|
98
98
|
### Quick Task (pipeline mode)
|
|
99
99
|
|
|
@@ -101,7 +101,7 @@ Router selects `execution-mode: direct` → handles entirely in its own session.
|
|
|
101
101
|
> [bugfix] Fix the login button not responding on mobile
|
|
102
102
|
```
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
Main Claude calls router, which selects `execution-mode: pipeline` and creates PLAN. Then Main Claude calls builder → verifier → committer in sequence.
|
|
105
105
|
|
|
106
106
|
### Complex Feature (WORK)
|
|
107
107
|
|
|
@@ -166,7 +166,7 @@ Skip to a specific TASK within a WORK (e.g., retry after a failure):
|
|
|
166
166
|
> Run WORK-02: TASK-02
|
|
167
167
|
```
|
|
168
168
|
|
|
169
|
-
The scheduler
|
|
169
|
+
The scheduler returns the next TASK, then Main Claude calls builder → verifier → committer in sequence.
|
|
170
170
|
|
|
171
171
|
#### 7. Force WORK Creation (Skip Complexity Check)
|
|
172
172
|
|
|
@@ -276,34 +276,26 @@ claude
|
|
|
276
276
|
|
|
277
277
|
## Concept: Three Execution Modes
|
|
278
278
|
|
|
279
|
-
|
|
279
|
+
Main Claude detects the `[]` tag and calls the **router** subagent, which selects one of three `execution-mode` values:
|
|
280
280
|
|
|
281
281
|
```
|
|
282
|
-
User Request
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
(reads .agent/router_rule_config.json if present)
|
|
292
|
-
│
|
|
282
|
+
User Request → Main Claude (orchestrator)
|
|
283
|
+
│
|
|
284
|
+
▼
|
|
285
|
+
┌────────┐
|
|
286
|
+
│ router │ (called by Main Claude)
|
|
287
|
+
└───┬────┘
|
|
288
|
+
│
|
|
289
|
+
execution-mode returned
|
|
290
|
+
│
|
|
293
291
|
├─ direct (no build/test required)
|
|
294
|
-
│
|
|
295
|
-
│ Router handles everything — no subagent overhead
|
|
296
|
-
│ Creates WORK-NN/PLAN.md + result.md + commit (0 extra sessions)
|
|
292
|
+
│ → router handles everything — 0 additional subagent calls
|
|
297
293
|
│
|
|
298
294
|
├─ pipeline (build/test required, single domain, sequential)
|
|
299
|
-
│
|
|
300
|
-
│ router → builder → verifier → committer
|
|
301
|
-
│ Router creates PLAN, dispatches 3 subagents
|
|
295
|
+
│ → Main Claude calls: builder → verifier → committer (in sequence)
|
|
302
296
|
│
|
|
303
297
|
└─ full (multi-domain / complex DAG / new module / 5+ tasks)
|
|
304
|
-
|
|
305
|
-
router → planner → scheduler → [builder → verifier → committer] × N
|
|
306
|
-
(full planning + multi-task pipeline)
|
|
298
|
+
→ Main Claude calls: planner → scheduler → [builder → verifier → committer] × N
|
|
307
299
|
```
|
|
308
300
|
|
|
309
301
|
All three modes output to `works/WORK-NN/` and guarantee `result.md` + `COMMITTER DONE` callback.
|
|
@@ -320,18 +312,19 @@ WORK (unit of work) A single goal. The unit requested by the user.
|
|
|
320
312
|
|
|
321
313
|
### pipeline mode (Single Task, Delegated)
|
|
322
314
|
|
|
323
|
-
Subagent-delegated path for moderate single tasks. Router stays clean.
|
|
315
|
+
Subagent-delegated path for moderate single tasks. Main Claude calls each agent in sequence. Router stays clean.
|
|
324
316
|
|
|
325
317
|
```
|
|
326
|
-
|
|
318
|
+
Main Claude → builder(sonnet) → verifier(haiku) → committer(haiku)
|
|
319
|
+
(each called individually by Main Claude)
|
|
327
320
|
```
|
|
328
321
|
|
|
329
322
|
### direct mode (Trivial)
|
|
330
323
|
|
|
331
|
-
|
|
324
|
+
Main Claude calls router, which handles everything in its own session. No additional subagent calls.
|
|
332
325
|
|
|
333
326
|
```
|
|
334
|
-
router: Analyze → Implement → Self-verify → Commit → result.md
|
|
327
|
+
Main Claude → router: Analyze → Implement → Self-verify → Commit → result.md
|
|
335
328
|
```
|
|
336
329
|
|
|
337
330
|
---
|
|
@@ -340,7 +333,12 @@ router: Analyze → Implement → Self-verify → Commit → result.md
|
|
|
340
333
|
|
|
341
334
|
### WORK Pipeline (Complex)
|
|
342
335
|
|
|
336
|
+
> Subagents cannot nest — Main Claude (CLI terminal) orchestrates every call.
|
|
337
|
+
|
|
343
338
|
```
|
|
339
|
+
Main Claude (orchestrator)
|
|
340
|
+
┌──────────┼──────────────────────┐
|
|
341
|
+
│ │ │
|
|
344
342
|
router planner scheduler builder verifier committer
|
|
345
343
|
┌────────┐ ┌─────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐
|
|
346
344
|
│Request │────▶│Create │────▶│Dependency │────▶│Code │────▶│Build/Test│────▶│Result │
|
|
@@ -360,7 +358,8 @@ router: Analyze → Implement → Self-verify → Commit → result.md
|
|
|
360
358
|
│PLAN │─────▶│Code │────▶│Build/Test│────▶│Result │
|
|
361
359
|
│+TASK │ │Implement │ │Verify │ │→ git │
|
|
362
360
|
└────────┘ └──────────┘ └──────────┘ └──────────┘
|
|
363
|
-
|
|
361
|
+
(sonnet) (haiku) (haiku)
|
|
362
|
+
← each called by Main Claude →
|
|
364
363
|
```
|
|
365
364
|
|
|
366
365
|
### direct mode (Trivial)
|
|
@@ -686,8 +685,8 @@ For a monorepo with strict build requirements:
|
|
|
686
685
|
### Three Execution Modes
|
|
687
686
|
|
|
688
687
|
The router matches effort to complexity via `execution-mode`:
|
|
689
|
-
- **direct**: 1-line typo fix —
|
|
690
|
-
- **pipeline**: Moderate fix —
|
|
688
|
+
- **direct**: 1-line typo fix — Main Claude calls router, which handles everything. 0 additional subagent sessions.
|
|
689
|
+
- **pipeline**: Moderate fix — Main Claude calls builder → verifier → committer in sequence. Main Claude only orchestrates, minimizing its own context usage
|
|
691
690
|
- **full**: Complex features — full planning, decomposition, and tracking
|
|
692
691
|
|
|
693
692
|
All three modes output to `works/WORK-NN/` with identical artifact structure (PLAN.md + result.md + COMMITTER DONE callback), ensuring Runner integration works regardless of mode.
|
package/bin/cli.mjs
CHANGED