uctm 1.1.0 → 1.2.0
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 +7 -19
- package/agents/en/agent-flow.md +106 -106
- package/agents/en/builder.md +5 -5
- package/agents/en/committer.md +25 -9
- package/agents/en/context-policy.md +1 -1
- package/agents/en/file-content-schema.md +1 -1
- package/agents/en/planner.md +6 -6
- package/agents/en/router.md +20 -8
- package/agents/en/scheduler.md +7 -7
- package/agents/en/shared-prompt-sections.md +4 -5
- package/agents/en/verifier.md +4 -4
- package/agents/en/work-activity-log.md +45 -45
- package/agents/en/xml-schema.md +109 -109
- package/agents/ko/agent-flow.md +106 -106
- package/agents/ko/builder.md +5 -5
- package/agents/ko/committer.md +25 -9
- package/agents/ko/context-policy.md +1 -1
- package/agents/ko/file-content-schema.md +1 -1
- package/agents/ko/planner.md +6 -6
- package/agents/ko/router.md +19 -7
- package/agents/ko/scheduler.md +7 -7
- package/agents/ko/shared-prompt-sections.md +4 -5
- package/agents/ko/verifier.md +4 -4
- package/agents/ko/work-activity-log.md +45 -45
- package/agents/ko/xml-schema.md +109 -109
- package/lib/constants.mjs +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -60,24 +60,6 @@ uc-taskmanager was built to solve this. When you provide a requirement as input,
|
|
|
60
60
|
|
|
61
61
|
Each step runs in an **isolated subagent pipeline**, so your context stays clean and every decision is documented.
|
|
62
62
|
|
|
63
|
-
### The Bigger Picture
|
|
64
|
-
|
|
65
|
-
This agent is designed to work with an **SDD-based requirement management and automated development system** — a server application that links requirement management → automated development → plans and artifacts. The full system architecture is documented in [`docs/spec_SDD_with_ucagent_requirement.md`](docs/spec_SDD_with_ucagent_requirement.md). Use it as a reference to build your own system tailored to your needs.
|
|
66
|
-
|
|
67
|
-
### A Note on Language
|
|
68
|
-
|
|
69
|
-
Starting from v1.1.0, uctm supports **multi-language agent prompts**. Use `uctm init --lang en` for English or `--lang ko` for Korean. All 12 agent files are available in both languages with identical structure and functionality.
|
|
70
|
-
|
|
71
|
-
I'm Korean, so you'll find Korean in some internal documents (design specs, commit messages). Modern translation tools handle Korean well, so this shouldn't be a barrier.
|
|
72
|
-
|
|
73
|
-
### What This Took
|
|
74
|
-
|
|
75
|
-
I built this agent and the accompanying SDD requirement management system in roughly **one calendar month — about 2 weeks of actual development time** (8 hours/day). Ideas become reality. The technical and time barriers that once stopped you have fallen. This is the age of AI agents.
|
|
76
|
-
|
|
77
|
-
**Good luck. Build something great.**
|
|
78
|
-
|
|
79
|
-
This project is open source. Use it freely, share your ideas, and let's push this forward together.
|
|
80
|
-
|
|
81
63
|
---
|
|
82
64
|
|
|
83
65
|
Six subagents work across any project and any language, automatically handling **request routing → task decomposition → dependency management → code implementation → verification → commit**.
|
|
@@ -265,7 +247,7 @@ uctm update --lang en
|
|
|
265
247
|
```bash
|
|
266
248
|
git clone https://github.com/UCJung/uc-taskmanager-claude-agent.git /tmp/uc-tm
|
|
267
249
|
mkdir -p .claude/agents
|
|
268
|
-
cp /tmp/uc-tm/agents/*.md .claude/agents/
|
|
250
|
+
cp /tmp/uc-tm/agents/en/*.md .claude/agents/ # or agents/ko/ for Korean
|
|
269
251
|
rm -rf /tmp/uc-tm
|
|
270
252
|
git add .claude/agents/ && git commit -m "chore: add uc-taskmanager agents"
|
|
271
253
|
```
|
|
@@ -953,6 +935,12 @@ The dashboard is still available at `http://localhost:PORT` — it just won't au
|
|
|
953
935
|
|
|
954
936
|
---
|
|
955
937
|
|
|
938
|
+
## The Bigger Picture
|
|
939
|
+
|
|
940
|
+
This agent is designed to work with an **SDD-based requirement management and automated development system** — a server application that links requirement management → automated development → plans and artifacts. The full system architecture is documented in [`docs/spec_SDD_with_ucagent_requirement.md`](docs/spec_SDD_with_ucagent_requirement.md). Use it as a reference to build your own system tailored to your needs.
|
|
941
|
+
|
|
942
|
+
---
|
|
943
|
+
|
|
956
944
|
## License
|
|
957
945
|
|
|
958
946
|
GPL-3.0
|
package/agents/en/agent-flow.md
CHANGED
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
# Agent Flow — Main Claude Orchestration Guide
|
|
2
|
-
|
|
3
|
-
> **All agent invocations are performed by Main Claude.**
|
|
4
|
-
> Subagents only return results (dispatch XML or task-result XML) after completing their work.
|
|
5
|
-
> Main Claude receives the return values and invokes the next agent.
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Execution Mode Decision
|
|
10
|
-
|
|
11
|
-
```
|
|
12
|
-
[] tag detected → invoke router
|
|
13
|
-
│
|
|
14
|
-
Check router return value (execution-mode)
|
|
15
|
-
│
|
|
16
|
-
├─ direct → router handles everything (no additional invocations)
|
|
17
|
-
├─ pipeline → Execute § pipeline procedure
|
|
18
|
-
└─ full → Execute § full procedure
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
---
|
|
22
|
-
|
|
23
|
-
## direct Mode
|
|
24
|
-
|
|
25
|
-
Router handles everything on its own. No additional invocations by Main Claude.
|
|
26
|
-
|
|
27
|
-
---
|
|
28
|
-
|
|
29
|
-
## pipeline Mode
|
|
30
|
-
|
|
31
|
-
```
|
|
32
|
-
1. Invoke router → creates PLAN.md + TASK-00.md + returns builder dispatch XML
|
|
33
|
-
2. Invoke builder (dispatch XML as prompt)
|
|
34
|
-
3. Invoke verifier (builder result as prompt)
|
|
35
|
-
4. Invoke committer (verifier result as prompt)
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
---
|
|
39
|
-
|
|
40
|
-
## full Mode
|
|
41
|
-
|
|
42
|
-
```
|
|
43
|
-
1. Invoke router → creates WORK directory + returns planner dispatch XML
|
|
44
|
-
2. Invoke planner (dispatch XML as prompt) → creates PLAN.md + TASK files
|
|
45
|
-
3. Invoke scheduler → DAG analysis + READY TASK + returns builder dispatch XML
|
|
46
|
-
4. Invoke builder (dispatch XML as prompt) → implementation
|
|
47
|
-
5. Invoke verifier (builder result as prompt) → verification
|
|
48
|
-
6. Invoke committer (verifier result as prompt) → commit
|
|
49
|
-
7. If incomplete TASKs remain, return to step 3
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
Parallel execution: If scheduler returns multiple READY TASKs, invoke builders concurrently.
|
|
53
|
-
|
|
54
|
-
---
|
|
55
|
-
|
|
56
|
-
## Agent Role Summary
|
|
57
|
-
|
|
58
|
-
| Agent | Return Value | Invoked By |
|
|
59
|
-
|-------|-------------|------------|
|
|
60
|
-
| router | execution-mode + dispatch XML | Main Claude |
|
|
61
|
-
| planner | PLAN.md/TASK file creation completion report | Main Claude |
|
|
62
|
-
| scheduler | READY TASK + dispatch XML | Main Claude |
|
|
63
|
-
| builder | task-result XML (includes context-handoff) | Main Claude |
|
|
64
|
-
| verifier | task-result XML | Main Claude |
|
|
65
|
-
| committer | task-result XML + commit hash | Main Claude |
|
|
66
|
-
|
|
67
|
-
---
|
|
68
|
-
|
|
69
|
-
## Bash CLI Execution (Server Automation)
|
|
70
|
-
|
|
71
|
-
Method to run pipeline independently without an interactive session. `claude -p` acts as Main Claude.
|
|
72
|
-
|
|
73
|
-
```bash
|
|
74
|
-
env -u CLAUDECODE -u ANTHROPIC_API_KEY claude -p \
|
|
75
|
-
"[new-work] {task description}" \
|
|
76
|
-
--dangerously-skip-permissions \
|
|
77
|
-
--output-format stream-json \
|
|
78
|
-
--verbose \
|
|
79
|
-
2>&1 | tee /tmp/pipeline.log
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
| Option | Purpose |
|
|
83
|
-
|--------|---------|
|
|
84
|
-
| `env -u CLAUDECODE` | Bypass nested execution blocking |
|
|
85
|
-
| `env -u ANTHROPIC_API_KEY` | Use subscription auth (Max) instead of API key |
|
|
86
|
-
| `--dangerously-skip-permissions` | Skip permission prompts for unattended execution |
|
|
87
|
-
| `--output-format stream-json --verbose` | Streaming for real-time monitoring |
|
|
88
|
-
|
|
89
|
-
Resume interrupted pipeline:
|
|
90
|
-
```bash
|
|
91
|
-
env -u CLAUDECODE -u ANTHROPIC_API_KEY claude -p \
|
|
92
|
-
"Resume WORK-XX pipeline." \
|
|
93
|
-
--dangerously-skip-permissions
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
Verification result (WORK-24): `claude -p` → 9 Task tool invocations → full auto-completion of router/planner/scheduler/builder/verifier/committer confirmed.
|
|
97
|
-
|
|
98
|
-
---
|
|
99
|
-
|
|
100
|
-
## Context Transfer (Sliding Window)
|
|
101
|
-
|
|
102
|
-
| Distance | Level | Content |
|
|
103
|
-
|----------|-------|---------|
|
|
104
|
-
| Immediate predecessor | FULL | what + why + caution + incomplete |
|
|
105
|
-
| 2 steps back | SUMMARY | what only, 1-2 lines |
|
|
106
|
-
| 3+ steps back | DROP | Not transmitted |
|
|
1
|
+
# Agent Flow — Main Claude Orchestration Guide
|
|
2
|
+
|
|
3
|
+
> **All agent invocations are performed by Main Claude.**
|
|
4
|
+
> Subagents only return results (dispatch XML or task-result XML) after completing their work.
|
|
5
|
+
> Main Claude receives the return values and invokes the next agent.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Execution Mode Decision
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
[] tag detected → invoke router
|
|
13
|
+
│
|
|
14
|
+
Check router return value (execution-mode)
|
|
15
|
+
│
|
|
16
|
+
├─ direct → router handles everything (no additional invocations)
|
|
17
|
+
├─ pipeline → Execute § pipeline procedure
|
|
18
|
+
└─ full → Execute § full procedure
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## direct Mode
|
|
24
|
+
|
|
25
|
+
Router handles everything on its own. No additional invocations by Main Claude.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## pipeline Mode
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
1. Invoke router → creates PLAN.md + TASK-00.md + returns builder dispatch XML
|
|
33
|
+
2. Invoke builder (dispatch XML as prompt)
|
|
34
|
+
3. Invoke verifier (builder result as prompt)
|
|
35
|
+
4. Invoke committer (verifier result as prompt)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## full Mode
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
1. Invoke router → creates WORK directory + returns planner dispatch XML
|
|
44
|
+
2. Invoke planner (dispatch XML as prompt) → creates PLAN.md + TASK files
|
|
45
|
+
3. Invoke scheduler → DAG analysis + READY TASK + returns builder dispatch XML
|
|
46
|
+
4. Invoke builder (dispatch XML as prompt) → implementation
|
|
47
|
+
5. Invoke verifier (builder result as prompt) → verification
|
|
48
|
+
6. Invoke committer (verifier result as prompt) → commit
|
|
49
|
+
7. If incomplete TASKs remain, return to step 3
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Parallel execution: If scheduler returns multiple READY TASKs, invoke builders concurrently.
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Agent Role Summary
|
|
57
|
+
|
|
58
|
+
| Agent | Return Value | Invoked By |
|
|
59
|
+
|-------|-------------|------------|
|
|
60
|
+
| router | execution-mode + dispatch XML | Main Claude |
|
|
61
|
+
| planner | PLAN.md/TASK file creation completion report | Main Claude |
|
|
62
|
+
| scheduler | READY TASK + dispatch XML | Main Claude |
|
|
63
|
+
| builder | task-result XML (includes context-handoff) | Main Claude |
|
|
64
|
+
| verifier | task-result XML | Main Claude |
|
|
65
|
+
| committer | task-result XML + commit hash | Main Claude |
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Bash CLI Execution (Server Automation)
|
|
70
|
+
|
|
71
|
+
Method to run pipeline independently without an interactive session. `claude -p` acts as Main Claude.
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
env -u CLAUDECODE -u ANTHROPIC_API_KEY claude -p \
|
|
75
|
+
"[new-work] {task description}" \
|
|
76
|
+
--dangerously-skip-permissions \
|
|
77
|
+
--output-format stream-json \
|
|
78
|
+
--verbose \
|
|
79
|
+
2>&1 | tee /tmp/pipeline.log
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
| Option | Purpose |
|
|
83
|
+
|--------|---------|
|
|
84
|
+
| `env -u CLAUDECODE` | Bypass nested execution blocking |
|
|
85
|
+
| `env -u ANTHROPIC_API_KEY` | Use subscription auth (Max) instead of API key |
|
|
86
|
+
| `--dangerously-skip-permissions` | Skip permission prompts for unattended execution |
|
|
87
|
+
| `--output-format stream-json --verbose` | Streaming for real-time monitoring |
|
|
88
|
+
|
|
89
|
+
Resume interrupted pipeline:
|
|
90
|
+
```bash
|
|
91
|
+
env -u CLAUDECODE -u ANTHROPIC_API_KEY claude -p \
|
|
92
|
+
"Resume WORK-XX pipeline." \
|
|
93
|
+
--dangerously-skip-permissions
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Verification result (WORK-24): `claude -p` → 9 Task tool invocations → full auto-completion of router/planner/scheduler/builder/verifier/committer confirmed.
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Context Transfer (Sliding Window)
|
|
101
|
+
|
|
102
|
+
| Distance | Level | Content |
|
|
103
|
+
|----------|-------|---------|
|
|
104
|
+
| Immediate predecessor | FULL | what + why + caution + incomplete |
|
|
105
|
+
| 2 steps back | SUMMARY | what only, 1-2 lines |
|
|
106
|
+
| 3+ steps back | DROP | Not transmitted |
|
package/agents/en/builder.md
CHANGED
|
@@ -35,11 +35,11 @@ You are the **Builder** — the implementation agent that receives a TASK specif
|
|
|
35
35
|
|
|
36
36
|
| File | Purpose |
|
|
37
37
|
|------|---------|
|
|
38
|
-
|
|
|
39
|
-
|
|
|
40
|
-
|
|
|
41
|
-
|
|
|
42
|
-
|
|
|
38
|
+
| `.claude/agents/file-content-schema.md` | File format schema |
|
|
39
|
+
| `.claude/agents/shared-prompt-sections.md` | Common rules (TASK ID, PLAN.md 7 fields, WORK-LIST) |
|
|
40
|
+
| `.claude/agents/xml-schema.md` | XML communication format |
|
|
41
|
+
| `.claude/agents/context-policy.md` | Sliding window rules |
|
|
42
|
+
| `.claude/agents/work-activity-log.md` | Activity Log rules (log_work function, STAGE table) |
|
|
43
43
|
|
|
44
44
|
### 3-2. XML Input Parsing
|
|
45
45
|
|
package/agents/en/committer.md
CHANGED
|
@@ -35,11 +35,11 @@ You are the **Committer** — the agent that generates the result report for a v
|
|
|
35
35
|
|
|
36
36
|
| File | Purpose |
|
|
37
37
|
|------|---------|
|
|
38
|
-
|
|
|
39
|
-
|
|
|
40
|
-
|
|
|
41
|
-
|
|
|
42
|
-
|
|
|
38
|
+
| `.claude/agents/file-content-schema.md` | File format schema |
|
|
39
|
+
| `.claude/agents/shared-prompt-sections.md` | Common rules |
|
|
40
|
+
| `.claude/agents/xml-schema.md` | XML communication format |
|
|
41
|
+
| `.claude/agents/context-policy.md` | Sliding window rules |
|
|
42
|
+
| `.claude/agents/work-activity-log.md` | Activity Log rules (log_work function, STAGE table) |
|
|
43
43
|
|
|
44
44
|
### 3-2. XML Input Parsing
|
|
45
45
|
|
|
@@ -66,7 +66,7 @@ On gate failure:
|
|
|
66
66
|
|
|
67
67
|
### 3-4. Result Report Generation
|
|
68
68
|
|
|
69
|
-
→ see
|
|
69
|
+
→ see `.claude/agents/file-content-schema.md` § 4 (format + language-specific section headers)
|
|
70
70
|
|
|
71
71
|
Create `works/{WORK_ID}/TASK-XX_result.md`.
|
|
72
72
|
- builder context-handoff `what` → "Builder Context" section
|
|
@@ -155,8 +155,24 @@ Committer-specific additional fields:
|
|
|
155
155
|
</next-tasks>
|
|
156
156
|
```
|
|
157
157
|
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
### 3-9-1. WORK-LIST.md Auto-Completion
|
|
159
|
+
|
|
160
|
+
Check if this is the last TASK. If so, change WORK-LIST.md from `IN_PROGRESS` to `COMPLETED`.
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
# Check if last TASK
|
|
164
|
+
TOTAL=$(ls works/${WORK_ID}/TASK-*.md 2>/dev/null | grep -cv '_result\|_progress')
|
|
165
|
+
DONE=$(ls works/${WORK_ID}/TASK-*_result.md 2>/dev/null | wc -l)
|
|
166
|
+
|
|
167
|
+
if [ "$DONE" -ge "$TOTAL" ]; then
|
|
168
|
+
# Change IN_PROGRESS → COMPLETED in WORK-LIST.md
|
|
169
|
+
sed -i "s/| ${WORK_ID} |\\(.*\\)| IN_PROGRESS |\\(.*\\)|\\(.*\\)|/| ${WORK_ID} |\\1| COMPLETED |\\2| $(date '+%Y-%m-%d') |/" works/WORK-LIST.md
|
|
170
|
+
git add works/WORK-LIST.md
|
|
171
|
+
git commit --amend --no-edit
|
|
172
|
+
fi
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
→ see `.claude/agents/shared-prompt-sections.md` § 8
|
|
160
176
|
|
|
161
177
|
---
|
|
162
178
|
|
|
@@ -173,7 +189,7 @@ Do not change WORK-LIST.md to COMPLETED — changed only at git push time.
|
|
|
173
189
|
- If Files changed is empty → immediately return FAIL
|
|
174
190
|
|
|
175
191
|
### WORK-LIST.md Rules
|
|
176
|
-
-
|
|
192
|
+
- Automatically change WORK-LIST.md from `IN_PROGRESS` to `COMPLETED` when the last TASK is completed
|
|
177
193
|
|
|
178
194
|
### Output Language Rule
|
|
179
195
|
→ see `shared-prompt-sections.md` § 1
|
|
@@ -56,7 +56,7 @@ Processing:
|
|
|
56
56
|
2. Gate passed → write result.md + git commit
|
|
57
57
|
3. Gate failed → return FAIL (triggers scheduler retry)
|
|
58
58
|
|
|
59
|
-
Output: →
|
|
59
|
+
Output: → `.claude/agents/file-content-schema.md` § 4 reference
|
|
60
60
|
|
|
61
61
|
## Inter-TASK Dependency Transfer
|
|
62
62
|
|
|
@@ -23,7 +23,7 @@ Path: `works/{WORK_ID}/PLAN.md`
|
|
|
23
23
|
# WORK-01: {title}
|
|
24
24
|
|
|
25
25
|
> Created: {YYYY-MM-DD}
|
|
26
|
-
> Requirement: {REQ-XXX |
|
|
26
|
+
> Requirement: {REQ-XXX | user request text}
|
|
27
27
|
> Execution-Mode: {direct | pipeline | full}
|
|
28
28
|
> Project: {project name}
|
|
29
29
|
> Tech Stack: {stack}
|
package/agents/en/planner.md
CHANGED
|
@@ -37,9 +37,9 @@ WORK (unit of work) — Goal unit of the user's request
|
|
|
37
37
|
|
|
38
38
|
| File | Purpose |
|
|
39
39
|
|------|---------|
|
|
40
|
-
|
|
|
41
|
-
|
|
|
42
|
-
|
|
|
40
|
+
| `.claude/agents/file-content-schema.md` | File format schema (PLAN.md 7 fields, TASK format) |
|
|
41
|
+
| `.claude/agents/shared-prompt-sections.md` | Common rules (TASK ID, WORK-LIST rules) |
|
|
42
|
+
| `.claude/agents/work-activity-log.md` | Activity Log rules (log_work function, STAGE table) |
|
|
43
43
|
|
|
44
44
|
### 3-2. Project Exploration (Discovery Process)
|
|
45
45
|
|
|
@@ -103,7 +103,7 @@ Use `mcp__sequential-thinking__sequentialthinking` when TASK count is 4+ or depe
|
|
|
103
103
|
|
|
104
104
|
### 3-6. Output Structure
|
|
105
105
|
|
|
106
|
-
→ see
|
|
106
|
+
→ see `.claude/agents/file-content-schema.md` § 7
|
|
107
107
|
|
|
108
108
|
Creation responsibilities:
|
|
109
109
|
- `PLAN.md`, `TASK-XX.md`, `TASK-XX_progress.md` (initial template) → Planner
|
|
@@ -113,7 +113,7 @@ Creation responsibilities:
|
|
|
113
113
|
|
|
114
114
|
When creating TASK files, always create `TASK-XX_progress.md` template in the same directory.
|
|
115
115
|
|
|
116
|
-
File formats: →
|
|
116
|
+
File formats: → `.claude/agents/file-content-schema.md` § 1 (PLAN.md), § 2 (TASK), § 3 (progress initial value)
|
|
117
117
|
|
|
118
118
|
### 3-7. MCP Tool Usage (Serena)
|
|
119
119
|
|
|
@@ -143,7 +143,7 @@ Record resolved language in PLAN.md `> Language:` field. Write all outputs in th
|
|
|
143
143
|
### 3-9. Requirement Code (REQ) Recording
|
|
144
144
|
|
|
145
145
|
- `REQ-XXX` pattern exists: `> Requirement: REQ-XXX`
|
|
146
|
-
- If absent: `> Requirement:
|
|
146
|
+
- If absent: `> Requirement: {user request text}` — record the user's request text as-is
|
|
147
147
|
|
|
148
148
|
---
|
|
149
149
|
|
package/agents/en/router.md
CHANGED
|
@@ -34,10 +34,10 @@ You are the **Router** — the top-level orchestrator that analyzes user request
|
|
|
34
34
|
|
|
35
35
|
| File | Purpose |
|
|
36
36
|
|------|---------|
|
|
37
|
-
|
|
|
38
|
-
|
|
|
39
|
-
|
|
|
40
|
-
|
|
|
37
|
+
| `.claude/agents/file-content-schema.md` | File format schema (PLAN.md 7 fields, TASK format, result.md format) |
|
|
38
|
+
| `.claude/agents/shared-prompt-sections.md` | Common rules (TASK ID pattern, WORK-LIST rules, log_work function) |
|
|
39
|
+
| `.claude/agents/xml-schema.md` | XML communication format (dispatch / task-result structure) |
|
|
40
|
+
| `.claude/agents/work-activity-log.md` | Activity Log rules (log_work function, STAGE table, reference collection) |
|
|
41
41
|
|
|
42
42
|
### 3-2. Execution-Mode Determination
|
|
43
43
|
|
|
@@ -103,9 +103,21 @@ Router handles everything on its own. Use Serena MCP first for code exploration:
|
|
|
103
103
|
16. Add WORK-LIST.md IN_PROGRESS
|
|
104
104
|
```
|
|
105
105
|
|
|
106
|
-
### 3-5.
|
|
106
|
+
### 3-5. Pipeline Mode Execution
|
|
107
107
|
|
|
108
|
-
|
|
108
|
+
> ⚠️ In pipeline mode, Router only creates PLAN.md + TASK-NN.md.
|
|
109
|
+
> Code modification, builder invocation, and commits are strictly prohibited. Only return dispatch XML.
|
|
110
|
+
|
|
111
|
+
```
|
|
112
|
+
1. Determine WORK ID
|
|
113
|
+
2. mkdir works/WORK-NN/
|
|
114
|
+
3. log_work INIT "WORK-NN created — Execution-Mode: pipeline"
|
|
115
|
+
4. Create PLAN.md (Execution-Mode: pipeline) → file-content-schema.md § 1
|
|
116
|
+
5. Create TASK-NN.md (multiple if needed) → file-content-schema.md § 2
|
|
117
|
+
6. Add IN_PROGRESS to WORK-LIST.md
|
|
118
|
+
7. Generate and return dispatch XML below. **Invocation is performed by Main Claude.**
|
|
119
|
+
8. log_work DISPATCH "Builder dispatch XML returned"
|
|
120
|
+
```
|
|
109
121
|
|
|
110
122
|
→ dispatch XML format: see `xml-schema.md` § 1 (to="builder", task="TASK-00", execution-mode="pipeline")
|
|
111
123
|
|
|
@@ -138,10 +150,10 @@ Router handles everything on its own. Use Serena MCP first for code exploration:
|
|
|
138
150
|
- Only enable auto mode when "run automatically" is explicitly stated (valid only within current WORK)
|
|
139
151
|
|
|
140
152
|
### WORK-LIST.md Rules
|
|
141
|
-
→ see
|
|
153
|
+
→ see `.claude/agents/shared-prompt-sections.md` § 8
|
|
142
154
|
|
|
143
155
|
- On WORK creation: add `IN_PROGRESS`
|
|
144
|
-
- COMPLETED change:
|
|
156
|
+
- COMPLETED change: automatically changed by committer when last TASK is completed
|
|
145
157
|
|
|
146
158
|
### File Naming Rules
|
|
147
159
|
- TASK filenames: `TASK-XX.md` format
|
package/agents/en/scheduler.md
CHANGED
|
@@ -38,11 +38,11 @@ You are the **Scheduler** — the WORK pipeline execution agent.
|
|
|
38
38
|
|
|
39
39
|
| File | Purpose |
|
|
40
40
|
|------|---------|
|
|
41
|
-
|
|
|
42
|
-
|
|
|
43
|
-
|
|
|
44
|
-
|
|
|
45
|
-
|
|
|
41
|
+
| `.claude/agents/file-content-schema.md` | File format schema |
|
|
42
|
+
| `.claude/agents/shared-prompt-sections.md` | Common rules |
|
|
43
|
+
| `.claude/agents/xml-schema.md` | XML communication format |
|
|
44
|
+
| `.claude/agents/context-policy.md` | Sliding Window rules |
|
|
45
|
+
| `.claude/agents/work-activity-log.md` | Activity Log rules (log_work function, STAGE table) |
|
|
46
46
|
|
|
47
47
|
### 3-2. WORK Identification and Initial Load
|
|
48
48
|
|
|
@@ -132,7 +132,7 @@ Committer FAIL retry:
|
|
|
132
132
|
|
|
133
133
|
### 3-9. Progress Report
|
|
134
134
|
|
|
135
|
-
Update PROGRESS.md after TASK completion (→ see
|
|
135
|
+
Update PROGRESS.md after TASK completion (→ see `.claude/agents/file-content-schema.md` § 6) and output status:
|
|
136
136
|
|
|
137
137
|
```
|
|
138
138
|
✅ TASK-XX completed — commit: {hash}
|
|
@@ -164,7 +164,7 @@ Multi-WORK status check:
|
|
|
164
164
|
|
|
165
165
|
### WORK-LIST.md Rules
|
|
166
166
|
- Do not change WORK-LIST.md to COMPLETED — changed only at git push time
|
|
167
|
-
- → see
|
|
167
|
+
- → see `.claude/agents/shared-prompt-sections.md` § 8
|
|
168
168
|
|
|
169
169
|
### Output Language Rule
|
|
170
170
|
→ see `shared-prompt-sections.md` § 1
|
|
@@ -106,12 +106,12 @@ echo "$DONE / $TOTAL"
|
|
|
106
106
|
|
|
107
107
|
## § 7. PLAN.md Required Meta-Information — 7 Fields
|
|
108
108
|
|
|
109
|
-
→
|
|
109
|
+
→ `.claude/agents/file-content-schema.md` § 1 reference
|
|
110
110
|
|
|
111
111
|
| Field | Required | Description |
|
|
112
112
|
|-------|----------|-------------|
|
|
113
113
|
| `> Created:` | ✅ | YYYY-MM-DD |
|
|
114
|
-
| `> Requirement:` | ✅ | `REQ-XXX` or
|
|
114
|
+
| `> Requirement:` | ✅ | `REQ-XXX` or user request text |
|
|
115
115
|
| `> Execution-Mode:` | ✅ | `direct` / `pipeline` / `full` |
|
|
116
116
|
| `> Project:` | ✅ | Project name |
|
|
117
117
|
| `> Tech Stack:` | ✅ | Detected tech stack |
|
|
@@ -127,11 +127,10 @@ File: `works/WORK-LIST.md`
|
|
|
127
127
|
| Status | Timing |
|
|
128
128
|
|--------|--------|
|
|
129
129
|
| `IN_PROGRESS` | Added when WORK directory is created |
|
|
130
|
-
| `COMPLETED` |
|
|
130
|
+
| `COMPLETED` | Automatically changed by committer when last TASK is completed |
|
|
131
131
|
|
|
132
|
-
- committer / scheduler → changing to COMPLETED is prohibited
|
|
133
132
|
- Must add IN_PROGRESS when WORK directory is created
|
|
134
|
-
-
|
|
133
|
+
- committer: after committing the last TASK, change WORK-LIST.md from `IN_PROGRESS` to `COMPLETED`
|
|
135
134
|
|
|
136
135
|
---
|
|
137
136
|
|
package/agents/en/verifier.md
CHANGED
|
@@ -35,10 +35,10 @@ Verifies the results of TASKs completed by the Builder, checking build, lint, te
|
|
|
35
35
|
|
|
36
36
|
| File | Purpose |
|
|
37
37
|
|------|---------|
|
|
38
|
-
|
|
|
39
|
-
|
|
|
40
|
-
|
|
|
41
|
-
|
|
|
38
|
+
| `.claude/agents/shared-prompt-sections.md` | Common rules |
|
|
39
|
+
| `.claude/agents/xml-schema.md` | XML communication format |
|
|
40
|
+
| `.claude/agents/context-policy.md` | Sliding Window rules |
|
|
41
|
+
| `.claude/agents/work-activity-log.md` | Activity Log rules (log_work function, STAGE table) |
|
|
42
42
|
|
|
43
43
|
### 3-2. XML Input Parsing
|
|
44
44
|
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
# Work Activity Log
|
|
2
|
-
|
|
3
|
-
Defines the rules for each agent to record WORK progress in the `works/{WORK_ID}/work_{WORK_ID}.log` file.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# 1. Stages and Log Content
|
|
8
|
-
* On first execution: The received prompt message** Content of the prompt message received at agent startup (Required)
|
|
9
|
-
* On Callback invocation: Called Callback URL, success status, Payload, Response (Required)
|
|
10
|
-
* During work: Work items and work content
|
|
11
|
-
* On task completion: The prompt message sent to other agents** Content of the prompt message received at agent startup (Required)
|
|
12
|
-
|
|
13
|
-
## log_work Function
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
AGENT_NAME="ROUTER" # Set appropriately in each agent file
|
|
17
|
-
|
|
18
|
-
log_work() {
|
|
19
|
-
local WORK_ID="$1" AGENT="$2" STAGE="$3" DESC="$4"
|
|
20
|
-
mkdir -p "works/${WORK_ID}"
|
|
21
|
-
printf '[%s]_%s_%s_%s\n' \
|
|
22
|
-
"$(date '+%Y-%m-%dT%H:%M:%S')" "$AGENT" "$STAGE" "$DESC" \
|
|
23
|
-
>> "works/${WORK_ID}/work_${WORK_ID}.log"
|
|
24
|
-
}
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
---
|
|
28
|
-
|
|
29
|
-
## STAGE Table
|
|
30
|
-
|
|
31
|
-
| STAGE | Timing | Description Example |
|
|
32
|
-
|-------|--------|---------------------|
|
|
33
|
-
| `INIT` | After WORK_ID determined | `WORK-NN created — Execution-Mode: direct/pipeline/full` |
|
|
34
|
-
| `REF` | After STARTUP references | `References: CLAUDE.md, .agent/router_rule_config.json, agents/file-content-schema.md` |
|
|
35
|
-
| `PLAN` | After PLAN.md + TASK files created | `PLAN.md, TASK-00.md created` |
|
|
36
|
-
| `IMPL` | When direct mode code implementation starts | `Code implementation started — References: {modified file list}` |
|
|
37
|
-
| `BUILD` | After self-check passes | `Build/lint passed` |
|
|
38
|
-
| `COMMIT` | After git commit completed | `commit {hash}` |
|
|
39
|
-
| `DISPATCH` | On pipeline/full dispatch | `Builder dispatch` or `Planner dispatch` |
|
|
40
|
-
|
|
41
|
-
---
|
|
42
|
-
|
|
43
|
-
## Reference Collection Rules
|
|
44
|
-
|
|
45
|
-
Cumulatively track files read during STARTUP and subsequent exploration, recording them all at once during the `REF` stage.
|
|
1
|
+
# Work Activity Log
|
|
2
|
+
|
|
3
|
+
Defines the rules for each agent to record WORK progress in the `works/{WORK_ID}/work_{WORK_ID}.log` file.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 1. Stages and Log Content
|
|
8
|
+
* On first execution: The received prompt message** Content of the prompt message received at agent startup (Required)
|
|
9
|
+
* On Callback invocation: Called Callback URL, success status, Payload, Response (Required)
|
|
10
|
+
* During work: Work items and work content
|
|
11
|
+
* On task completion: The prompt message sent to other agents** Content of the prompt message received at agent startup (Required)
|
|
12
|
+
|
|
13
|
+
## log_work Function
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
AGENT_NAME="ROUTER" # Set appropriately in each agent file
|
|
17
|
+
|
|
18
|
+
log_work() {
|
|
19
|
+
local WORK_ID="$1" AGENT="$2" STAGE="$3" DESC="$4"
|
|
20
|
+
mkdir -p "works/${WORK_ID}"
|
|
21
|
+
printf '[%s]_%s_%s_%s\n' \
|
|
22
|
+
"$(date '+%Y-%m-%dT%H:%M:%S')" "$AGENT" "$STAGE" "$DESC" \
|
|
23
|
+
>> "works/${WORK_ID}/work_${WORK_ID}.log"
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## STAGE Table
|
|
30
|
+
|
|
31
|
+
| STAGE | Timing | Description Example |
|
|
32
|
+
|-------|--------|---------------------|
|
|
33
|
+
| `INIT` | After WORK_ID determined | `WORK-NN created — Execution-Mode: direct/pipeline/full` |
|
|
34
|
+
| `REF` | After STARTUP references | `References: CLAUDE.md, .agent/router_rule_config.json, agents/file-content-schema.md` |
|
|
35
|
+
| `PLAN` | After PLAN.md + TASK files created | `PLAN.md, TASK-00.md created` |
|
|
36
|
+
| `IMPL` | When direct mode code implementation starts | `Code implementation started — References: {modified file list}` |
|
|
37
|
+
| `BUILD` | After self-check passes | `Build/lint passed` |
|
|
38
|
+
| `COMMIT` | After git commit completed | `commit {hash}` |
|
|
39
|
+
| `DISPATCH` | On pipeline/full dispatch | `Builder dispatch` or `Planner dispatch` |
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Reference Collection Rules
|
|
44
|
+
|
|
45
|
+
Cumulatively track files read during STARTUP and subsequent exploration, recording them all at once during the `REF` stage.
|