@chinhae/atw-cli 0.1.0 → 0.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 CHANGED
@@ -6,27 +6,28 @@
6
6
  </p>
7
7
 
8
8
  <p align="center">
9
- <a href="https://github.com/LFT-OXY/A-Team-Workflow/blob/main/README_CN.md">简体中文</a>
9
+ <a href="./README_CN.md">简体中文</a>
10
10
  </p>
11
11
 
12
12
  <p align="center">
13
13
  <a href="https://www.npmjs.com/package/@chinhae/atw-cli"><img src="https://img.shields.io/npm/v/@chinhae/atw-cli.svg?style=flat-square&color=2563eb" alt="npm version" /></a>
14
- <a href="https://github.com/LFT-OXY/A-Team-Workflow/issues"><img src="https://img.shields.io/github/issues/LFT-OXY/A-Team-Workflow?style=flat-square&color=e67e22" alt="open issues" /></a>
15
14
  </p>
16
15
 
17
16
  ## Why ATW?
18
17
 
19
18
  | Capability | What it changes |
20
19
  | --- | --- |
20
+ | **A task record with six stages** | Every task moves through `discover → specify → slice → implement → accept → completed`. The stage lives in `task.json`, and a per-turn hook injects that stage's rules into the session — so the AI knows where it is without being told again. |
21
+ | **Four stops, all yours** | Everywhere else the AI advances on its own. At four points it must stop and wait for you: creating the task, confirming the spec, starting each ticket, and accepting the result. |
21
22
  | **Auto-injected specs** | Write conventions once in `.atw/spec/`, then let ATW inject the relevant context into each session instead of repeating yourself. |
22
- | **Task-centered workflow** | Keep PRDs, implementation context, review context, and task status in `.atw/tasks/` so AI work stays structured. |
23
- | **Project memory** | Journals in `.atw/workspace/` preserve what happened last time, so each new session starts with real context. |
24
- | **Team-shared standards** | Specs live in the repo, so one person's hard-won workflow or rule can benefit the whole team. |
23
+ | **One ticket at a time** | Work is sliced into tickets with explicit dependencies. Exactly one is `doing`; two at once is a broken state, not a choice. |
24
+ | **Project memory** | Journals in `.atw/workspace/` preserve what happened last time, so each new session starts with real context. `atw mem` searches conversation history across hosts. |
25
+ | **Team-shared standards** | Specs and tasks live in the repo. Workspace journals stay per-developer, so two people on the same repo don't collide. |
25
26
  | **Multi-platform setup** | Bring the same ATW structure to 22 AI coding platforms instead of rebuilding your workflow per tool. |
26
27
 
27
28
  ## Prerequisites
28
29
 
29
- - **Node.js** >= 18
30
+ - **Node.js** >= 18.17
30
31
  - **Python** >= 3.9
31
32
 
32
33
  ## Quick Start
@@ -42,30 +43,132 @@ atw init -u your-name
42
43
  atw init --cursor --opencode --codex -u your-name
43
44
  ```
44
45
 
45
- ## How to Use
46
+ ## How It Works
46
47
 
47
- The workflow is simple:
48
+ ATW runs three phases over a six-stage task record:
48
49
 
49
- 1. **Describe what you want** in natural language.
50
- 2. **Brainstorm** with the AI one question at a time until the PRD is clear, then implementation begins.
51
- 3. **Let it run** — the AI calls ATW Implement and auto-checks the result against specs, lint, type-check, and tests.
52
- 4. **Type `/atw:finish-work`** when the work is done or the session context fills up. ATW archives the task and updates journals.
50
+ ```
51
+ Phase 1: Plan discover → specify → slice (optional)
52
+ Phase 2: Execute implement — one ticket at a time
53
+ Phase 3: Finish accept → completed
54
+ ```
53
55
 
54
- ## How It Works
56
+ **Phase 1 — Plan.** `/atw-askme` works through open requirements one question at
57
+ a time. When the work is large and the route is unclear, `/atw-map` scans the
58
+ territory first and files decision tickets; `/atw-research` handles external
59
+ unknowns and `/atw-prototype` handles design questions that need a throwaway
60
+ build. `/atw-spec` turns the findings into `prd.md` — the requirements,
61
+ constraints, and acceptance criteria everything downstream is checked against.
62
+ When the work won't fit one session, `/atw-tickets` slices the confirmed spec
63
+ into `issues/NN-*.md`.
64
+
65
+ **Phase 2 — Execute.** One ticket at a time, claimed from the ready frontier.
66
+ Each ticket runs a closed chain that must not be broken up from the outside:
67
+ implement → run tests → review → handle findings → write learnings back to spec
68
+ → commit. Review is an `atw-review` sub-agent reading two axes, project
69
+ standards and the task's own spec, and both of its reports reach you verbatim —
70
+ including when the verdict is "nothing found".
71
+
72
+ **Phase 3 — Finish.** Read-only. The acceptance criteria in `prd.md` get walked
73
+ one by one with evidence, and nothing new gets opened — things you notice become
74
+ tickets or a follow-up task. After you accept, the task archives.
75
+
76
+ ### Not every request needs a task
77
+
78
+ | Path | Route |
79
+ | --- | --- |
80
+ | Simple | No task. Just do it, skip ATW for this session. |
81
+ | Medium | Task → discover → specify → implement |
82
+ | Complex | Task → map → specify → slice into tickets → implement each |
83
+
84
+ The threshold is deliberately not a file count — changing two files can be a
85
+ typo fix or an auth rewrite. When unsure, go one path up: the cost of going up
86
+ is one more `prd.md`, and the cost of going down is discovering mid-build that
87
+ there is no record, no spec, and no review baseline.
88
+
89
+ ### The four stops
55
90
 
56
- ATW runs a 4-phase loop with auto-invoked skills and sub-agents:
91
+ Outside these four, the AI advances stages on its own. It does not stop to ask
92
+ "shall we move on?".
93
+
94
+ | Where | Whose call |
95
+ | --- | --- |
96
+ | Before a task is created | Does this work deserve a record |
97
+ | After `prd.md` is written | Is the spec right |
98
+ | Before each ticket starts | You run `/atw-implement`; the AI cannot invoke it |
99
+ | Before archiving | "This is done" |
100
+
101
+ ## What lands in your repo
102
+
103
+ ```
104
+ .atw/
105
+ ├── spec/ coding guidelines, by package and layer
106
+ ├── tasks/MM-DD-<slug>/
107
+ │ ├── task.json stage, branch, metadata
108
+ │ ├── prd.md the spec
109
+ │ ├── map.md territory map — complex path only
110
+ │ ├── issues/NN-*.md implementation tickets (Impl / Blocked by)
111
+ │ ├── research/<topic>.md research notes, one file per topic
112
+ │ └── check.jsonl which specs the review sub-agents read
113
+ ├── workspace/<you>/ per-developer session journals
114
+ ├── workflow.md the workflow the AI follows, in your repo
115
+ └── scripts/ the Python that reads and writes all of it
116
+ ```
57
117
 
58
- 1. **Plan** — `atw-brainstorm` walks through requirements one question at a time and writes `prd.md`. Research-heavy items go to the ATW research skill, which writes findings into the task's `research/`. The result is curated specs + research files referenced from `implement.jsonl` / `check.jsonl`.
59
- 2. **Implement** — the ATW implement skill writes code from the PRD with the curated context auto-injected, no git commit.
60
- 3. **Verify** — an `atw-review` sub-agent reviews the diff on two axes (project standards and the task spec) and runs lint, type-check, and tests, self-fixing where it can.
61
- 4. **Finish** — a final check runs, then `atw-update-spec` promotes new learnings back into `.atw/spec/` so the next session starts smarter.
118
+ `workflow.md` is a file in your project, not something baked into the CLI —
119
+ `atw workflow` switches it between the built-in `native` template and anything
120
+ published to the workflow marketplace, and editing it changes what the AI
121
+ actually does.
122
+
123
+ ## Skills and sub-agents
124
+
125
+ 26 skills install into every configured platform. The ones you reach for daily:
126
+
127
+ | Skill | For |
128
+ | --- | --- |
129
+ | `/atw-askme` | fuzzy requirements, one question at a time (`/atw-askme-with-docs` when the answer is in project docs) |
130
+ | `/atw-map` | large scope, unclear route — scans breadth-first and stops itself if it finds no fog |
131
+ | `/atw-research` | external or third-party unknowns |
132
+ | `/atw-spec` | write or revise `prd.md` |
133
+ | `/atw-tickets` | slice a confirmed spec into tickets |
134
+ | `/atw-implement` | run one ticket's full chain — you invoke it, the AI can't |
135
+ | `/atw-diagnosing-bugs` | the same bug got fixed more than once |
136
+ | `/atw-update-spec` | promote a learning back into `.atw/spec/` |
137
+ | `/atw-channel` | multi-agent collaboration over a durable local event log |
138
+
139
+ Three commands sit alongside them: `/atw-start` loads session context on
140
+ platforms that have no session-start hook, `/atw-continue` resumes the current
141
+ task at the right step, and `/atw-finish-work` archives the task and writes the
142
+ session journal. Nothing is committed there — the implement chain commits per
143
+ ticket, long before a task reaches it.
144
+
145
+ Two sub-agents do the work that shouldn't run in your main session:
146
+ `atw-implement-agent` writes the code, `atw-review` reviews the diff.
147
+
148
+ ## CLI
149
+
150
+ ```bash
151
+ atw init # set up this repo, optionally per-platform
152
+ atw platforms # show which platforms are configured here
153
+ atw update # pull new template bodies into this repo
154
+ atw workflow # list or switch the .atw/workflow.md template
155
+ atw upgrade # upgrade the CLI itself
156
+ atw mem # search conversation history across Claude Code, Codex, OpenCode, Pi
157
+ atw channel # multi-agent collaboration runtime
158
+ atw ablate # temporarily remove ATW; atw restore puts it back
159
+ atw uninstall # permanent removal
160
+ ```
62
161
 
63
162
  ## FAQ
64
163
 
65
164
  <details>
66
165
  <summary><strong>How is ATW different from <code>CLAUDE.md</code>, <code>AGENTS.md</code>, or <code>.cursorrules</code>?</strong></summary>
67
166
 
68
- Those files are useful entry points, but they tend to become monolithic. ATW adds scoped specs, task PRDs, workflow gates, workspace memory, and platform-aware generated files around them.
167
+ Those files are useful entry points, but they tend to become monolithic, and
168
+ they say the same thing on every turn regardless of what you are doing. ATW adds
169
+ a stage the work is actually in, specs scoped to the package and layer you are
170
+ touching, a spec you confirmed before implementation started, and four points
171
+ where the AI has to stop and ask you.
69
172
 
70
173
  </details>
71
174
 
@@ -73,27 +176,47 @@ Those files are useful entry points, but they tend to become monolithic. ATW add
73
176
  <summary><strong>Is ATW only for Claude Code?</strong></summary>
74
177
 
75
178
  No. ATW is a project layer that works across multiple coding agents and IDEs.
179
+ Run `atw platforms` to see what is configured in the current project.
180
+
181
+ </details>
182
+
183
+ <details>
184
+ <summary><strong>What actually stops the AI from just writing code?</strong></summary>
185
+
186
+ A per-turn hook reads the task's stage and injects that stage's rules into the
187
+ session. In `discover` those rules say not to write code and not to create
188
+ tickets yet; in `accept` they say read-only. The rules come from the
189
+ `[workflow-state:*]` blocks in your project's `.atw/workflow.md`, so they are
190
+ editable — and when the hook can't find them, it says so visibly instead of
191
+ failing quietly.
76
192
 
77
193
  </details>
78
194
 
79
195
  <details>
80
196
  <summary><strong>Is ATW for solo developers or teams?</strong></summary>
81
197
 
82
- Both. Solo developers use it for memory and repeatable workflow. Teams get the larger benefit: shared standards, task boundaries, reviewable context, and platform portability.
198
+ Both. Solo developers use it for memory and repeatable workflow. Teams get the
199
+ larger benefit: shared standards, task boundaries, reviewable context, and
200
+ platform portability.
83
201
 
84
202
  </details>
85
203
 
86
204
  <details>
87
205
  <summary><strong>Do I have to write every spec file manually?</strong></summary>
88
206
 
89
- No. Many teams start by letting AI draft specs from existing code and then tighten the important parts by hand. ATW works best when you keep the high-signal rules explicit and versioned.
207
+ No. Many teams start by letting AI draft specs from existing code and then
208
+ tighten the important parts by hand. `/atw-update-spec` promotes learnings back
209
+ as you go. ATW works best when you keep the high-signal rules explicit and
210
+ versioned.
90
211
 
91
212
  </details>
92
213
 
93
214
  <details>
94
215
  <summary><strong>Can teams use this without constant conflicts?</strong></summary>
95
216
 
96
- Yes. Personal workspace journals stay separate per developer, while shared specs and tasks stay in the repo where they can be reviewed and improved like any other project artifact.
217
+ Yes. Personal workspace journals stay separate per developer, while shared specs
218
+ and tasks stay in the repo where they can be reviewed and improved like any
219
+ other project artifact.
97
220
 
98
221
  </details>
99
222
 
@@ -118,5 +241,6 @@ writes until the conflict is resolved.
118
241
 
119
242
  <p align="center">
120
243
  <a href="https://github.com/LFT-OXY/A-Team-Workflow">Repository</a> •
121
- Proprietary — see <a href="./COPYRIGHT">COPYRIGHT</a>
244
+ Free to install and use, including commercially — see <a href="./LICENSE">LICENSE</a>.<br/>
245
+ <sub>The software itself may not be modified or redistributed. Files ATW generates into your project are yours.</sub>
122
246
  </p>
package/dist/cli/index.js CHANGED
@@ -85,7 +85,7 @@ program
85
85
  .option("--overwrite", "Overwrite existing spec directory when using template")
86
86
  .option("--append", "Only add missing files when using template")
87
87
  .option("-r, --registry <source>", "Use a custom template registry (e.g., gh:myorg/myrepo/specs)")
88
- .option("--workflow <id>", "Workflow template id for .atw/workflow.md (default: native; e.g., tdd, channel-driven-subagent-dispatch)")
88
+ .option("--workflow <id>", "Workflow template id for .atw/workflow.md (default: native; any other id comes from the marketplace)")
89
89
  .option("--workflow-source <source>", "Custom marketplace source for the --workflow lookup (e.g., gh:myorg/myrepo/marketplace)")
90
90
  .action(async (options) => {
91
91
  try {
@@ -233,8 +233,8 @@ program
233
233
  });
234
234
  program
235
235
  .command("workflow")
236
- .description("List or switch the project's .atw/workflow.md template (native, tdd, channel-driven-subagent-dispatch, or marketplace)")
237
- .option("-t, --template <id>", "Workflow template id (e.g., native, tdd, channel-driven-subagent-dispatch)")
236
+ .description("List or switch the project's .atw/workflow.md template (built-in native, or one published to the marketplace)")
237
+ .option("-t, --template <id>", "Workflow template id — native, or an id from --list")
238
238
  .option("-m, --marketplace <source>", "Custom marketplace source (e.g., gh:myorg/myrepo/marketplace)")
239
239
  .option("--list", "List available workflow templates and exit")
240
240
  .option("-f, --force", "Overwrite a modified workflow.md without asking")
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EACL,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,uFAAuF;AACvF,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC;AAEjC;;GAEG;AAC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I,CAAC,0CAA0C,CAAC,CAAC,CAAC;YACpE,OAAO;QACT,CAAC;QAED,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC;QACjD,KAAK,MAAM,CAAC,IAAI,SAAS,EAAE,CAAC;YAC1B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,WAAW,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC;QAC/D,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CACX,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,EACnB,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAC/C,CAAC;QACF,IAAI,OAAO,CAAC,GAAG,CAAC,KAAK,IAAI,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC;YAC/C,OAAO,CAAC,KAAK,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QAC9D,CAAC;QACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC,CAAC,CAAC;AAEL,sBAAsB,CAAC,OAAO,CAAC,CAAC;AAEhC,OAAO,CAAC,KAAK,EAAE,CAAC"}
@@ -33,7 +33,7 @@ Do not assume the user has the ATW source repository. Do not default to modifyin
33
33
 
34
34
  - `references/local-architecture/overview.md`: The layered local ATW architecture (workflow / persistence / platform / channel runtime) and customization principles.
35
35
  - `references/local-architecture/generated-files.md`: Files generated by `atw init` and their customization boundaries, including `.atw/agents/`.
36
- - `references/local-architecture/workflow.md`: Phases, routing, workflow-state blocks, and selectable workflow templates (`native`, `tdd`, `channel-driven-subagent-dispatch`, marketplace) in `.atw/workflow.md`.
36
+ - `references/local-architecture/workflow.md`: Phases, routing, workflow-state blocks, and selectable workflow templates (built-in `native`, or one from the marketplace) in `.atw/workflow.md`.
37
37
  - `references/local-architecture/task-system.md`: Task directories, active task, JSONL context, parent/child task trees, and task runtime.
38
38
  - `references/local-architecture/spec-system.md`: How `.atw/spec/` is organized, injected, and refreshed from a `registry.spec` source.
39
39
  - `references/local-architecture/workspace-memory.md`: `.atw/workspace/` journals plus `atw mem` cross-session recall and the `@chinhae/atw-core/mem` SDK.
@@ -63,7 +63,7 @@ Do not assume the user has the ATW source repository. Do not default to modifyin
63
63
 
64
64
  ## Current Rules
65
65
 
66
- - `.atw/workflow.md` is the local workflow source of truth; its initial content was selected from a workflow template (built-in `native`, `tdd`, `channel-driven-subagent-dispatch`, or a marketplace template) at `atw init` time and can be re-selected via `atw workflow --template <id>`. Missing `.atw/agents/<name>.md` files referenced by the active template trigger a non-blocking stderr warning pointing at `atw update`.
66
+ - `.atw/workflow.md` is the local workflow source of truth; its initial content was selected from a workflow template (built-in `native`, or a marketplace template — `atw workflow --list` is the only authority on what is actually fetchable) at `atw init` time and can be re-selected via `atw workflow --template <id>`. Missing `.atw/agents/<name>.md` files referenced by the active template trigger a non-blocking stderr warning pointing at `atw update`.
67
67
  - `.atw/config.yaml` is the project-level ATW configuration entry point. It hosts task lifecycle hooks (`hooks.after_create` / `after_start` / `after_finish` / `after_archive`), journal shape (`session_commit_message` / `max_journal_lines` / `session_auto_commit`), channel worker guard (`channel.worker_guard.idle_timeout` / `max_live_workers`), Codex dispatch mode (`codex.dispatch_mode: inline | sub-agent`), and the spec registry block (`registry.spec.source` + `registry.spec.template`).
68
68
  - `.atw/spec/` stores the user's project-specific coding conventions and design constraints. When `registry.spec` is set, files are refreshed by `atw update`; local edits surface as "modified by user" conflicts in `.atw/.template-hashes.json`.
69
69
  - `.atw/tasks/` stores task PRDs, research files, and JSONL context. Tasks form parent/child trees: `task.py create --parent <slug>`, `task.py add-subtask <parent> <child>`, `task.py remove-subtask <parent> <child>`, and `task.py list-context <task>`. `task.py create` rejects a slug already present in `.atw/tasks/archive/**`.
@@ -58,7 +58,7 @@ Precedence for the worker guard is: CLI flag > environment variable > `.atw/conf
58
58
 
59
59
  ## Relationship To Other Local Layers
60
60
 
61
- - **Workflow layer**: workflows that use channel dispatch (such as `channel-driven-subagent-dispatch`) instruct the main agent to call `atw channel spawn --agent review` or `--agent implement-agent` instead of a platform sub-agent. If `.atw/agents/review.md` or `implement-agent.md` is missing, `atw workflow --template <id>` prints a non-blocking warning at install time. Restore them with `atw update` if they are deleted by accident.
61
+ - **Workflow layer**: workflows that use channel dispatch instruct the main agent to call `atw channel spawn --agent review` or `--agent implement-agent` instead of a platform sub-agent. If `.atw/agents/review.md` or `implement-agent.md` is missing, `atw workflow --template <id>` prints a non-blocking warning at install time. Restore them with `atw update` if they are deleted by accident.
62
62
  - **Task layer**: channel workers do not own task state. The supervising main session passes the active task path through the worker inbox; the worker resolves task artifacts from disk.
63
63
  - **Spec layer**: workers read `.atw/spec/` the same way the main session does. Channel runtime does not bypass spec context loading.
64
64
  - **Platform integration layer**: channel runtime is platform-neutral. It does not depend on `.claude/`, `.codex/`, or any other platform directory. The adapters that normalize provider output (Claude `stream-json`, Codex `app-server`) live inside the ATW CLI binary, not in the project.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chinhae/atw-cli",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "A Team Workflow — an AI coding workflow framework that encodes your team's conventions into the process",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -33,7 +33,7 @@
33
33
  "inquirer": "^9.3.7",
34
34
  "undici": "^6.21.0",
35
35
  "zod": "^4.4.2",
36
- "@chinhae/atw-core": "0.1.0"
36
+ "@chinhae/atw-core": "0.2.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@eslint/js": "^9.18.0",