@titan-design/active-work 0.2.0 → 0.3.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.
@@ -0,0 +1,1090 @@
1
+ # CLI reference
2
+
3
+ Generated from `active-work --help` and individual command `--help` outputs.
4
+ Re-run `node scripts/gen-cli-reference.mjs` to refresh after the CLI
5
+ surface changes.
6
+
7
+ ## active-work
8
+
9
+ Top-level help. Run `active-work <command> --help` for command-specific options.
10
+
11
+ ```
12
+ Usage: active-work [options] [command]
13
+
14
+ active-work CLI — durable workspace state for engineering work
15
+
16
+ Options:
17
+ -V, --version output the version number
18
+ --json emit machine-readable JSON envelope on stdout
19
+ -h, --help display help for command
20
+
21
+ Commands:
22
+ archive <slug> <domain> Move an initiative out of active root into
23
+ <archiveRoot>/<domain>/archive/.
24
+ artifact artifact commands
25
+ audit Cross-initiative summary: lists every
26
+ initiative, parse failures, and worktree path
27
+ conflicts.
28
+ context context commands
29
+ discover [options] Scan configured sources (gh PRs, local git,
30
+ projects root, Claude sessions) and emit
31
+ unfiltered discovery hits.
32
+ doctor Health-check the install: Node, active root,
33
+ daemon, MCP registration, skill, and
34
+ supervision.
35
+ drop [options] <ref> Mark a discover hit as dropped so future
36
+ discovers suppress it.
37
+ edit <slug> <target> Open the operator's editor on brief.md.
38
+ focus [options] <slug> Promote an initiative into the focused list at a
39
+ given rank.
40
+ fold [options] <ref> Mark a discover hit as folded into an existing
41
+ initiative.
42
+ hooks hooks commands
43
+ list List every initiative grouped by state. Replaces
44
+ the legacy INDEX.md dump.
45
+ loops [options] <slug> List an initiative's open-loop ledger. Open
46
+ loops are the unresolved remainder; resolved
47
+ ones carry the outcome and the reason they were
48
+ closed, which the bootstrap only surfaces for
49
+ recent abandonments.
50
+ mcp mcp commands
51
+ migrate [options] Preview (or apply) the pending v2→v3 open-loops
52
+ migration.
53
+ miner miner commands
54
+ new [options] <slug> Scaffold a new initiative directory.
55
+ note note commands
56
+ open [options] [slug] Bootstrap a Claude session for an initiative.
57
+ Without a slug, resolves the initiative whose
58
+ worktree contains the caller's cwd; falls back
59
+ to the picker list when nothing matches.
60
+ paths <slug> Print all artifact paths for an initiative.
61
+ pause [options] <slug> Mark an initiative as paused with required
62
+ restart metadata.
63
+ preflight [options] <slug> Read-only pre-wrap sweep: the uncommitted trees,
64
+ unpushed branches, and
65
+ worktrees/branches/stashes present in git but
66
+ missing from artifacts.yml, plus the checklist a
67
+ wrap must answer. Writes nothing.
68
+ prompt [options] [slug] Print the bootstrap prompt for an initiative —
69
+ the same text `aw` feeds Claude at launch —
70
+ without any side effects. Resolves the
71
+ initiative from a slug or the caller's cwd. Use
72
+ it to re-seed context in a running session.
73
+ rename <old_slug> <new_slug> Rename an initiative slug (moves the directory;
74
+ task_prefix unchanged).
75
+ resume <session_id> Resolve the working directory a Claude session
76
+ id belongs to, so `claude --resume` can be run
77
+ from the right place.
78
+ session session commands
79
+ sessions [options] Browse recent Claude sessions discovered under
80
+ ~/.claude/projects.
81
+ set <slug> <field> <value> Set a single field on an initiative brief.md
82
+ frontmatter.
83
+ setup [options] Interactive wizard: verifies Node, scaffolds
84
+ directories, registers the MCP server, and
85
+ optionally starts the daemon and walks through
86
+ ingestion.
87
+ source source commands
88
+ sync [options] Sync the active root over git: auto-commit local
89
+ edits, pull --rebase, then push.
90
+ task task commands
91
+ touch <slug> Stamp `updated: today()` on an initiative's
92
+ brief.md.
93
+ track [options] <ref> Scaffold a new initiative from a discover hit.
94
+ unfocus <slug> Demote a focused initiative to backburner and
95
+ renumber survivors.
96
+ uninstall [options] Reverse what setup did: remove the skill, stop
97
+ the daemon, unregister MCP. Preserves the active
98
+ root.
99
+ unpause <slug> Move a paused initiative back to backburner.
100
+ worktree worktree commands
101
+ wrap [options] <slug> The last thing a session does. Treat it as the
102
+ moment the process exits: everything not
103
+ persisted before wrap returns is lost, so file
104
+ it first and wrap last. Every category the
105
+ session can leave behind needs an explicit
106
+ answer, and omitting one is an error rather than
107
+ a default — open loops (--next-steps /
108
+ --resolves, or --no-loops), durable notes
109
+ (--notes or --no-notes), and tasks created this
110
+ session (--tasks-filed or --no-tasks). Writes
111
+ the session file and its ledger, files the notes
112
+ under sources/notes/, records any worktrees,
113
+ branches and stashes the initiative had not
114
+ written down, stamps the brief's updated date,
115
+ and returns a receipt of what was filed.
116
+ help [command] display help for command
117
+
118
+ Run `active-work <command> --help` for command-specific options.
119
+ Tip: `aw [slug]` launches Claude with the bootstrap prompt.
120
+ ```
121
+
122
+ ## active-work archive
123
+
124
+ ```
125
+ Usage: active-work archive [options] <slug> <domain>
126
+
127
+ Move an initiative out of active root into <archiveRoot>/<domain>/archive/.
128
+
129
+ Arguments:
130
+ slug slug (string)
131
+ domain domain (string)
132
+
133
+ Options:
134
+ -h, --help display help for command
135
+ ```
136
+
137
+ ## active-work artifact add-branch
138
+
139
+ ```
140
+ Usage: active-work artifact add-branch [options] <slug>
141
+
142
+ Append or upsert a branch entry in artifacts.yml.
143
+
144
+ Arguments:
145
+ slug slug (string)
146
+
147
+ Options:
148
+ --repo <value> Repo path or org/repo
149
+ --name <value> Branch name
150
+ --note <value> Why this branch is worth tracking
151
+ -h, --help display help for command
152
+ ```
153
+
154
+ ## active-work artifact add-stash
155
+
156
+ ```
157
+ Usage: active-work artifact add-stash [options] <slug>
158
+
159
+ Append a stash entry to artifacts.yml.
160
+
161
+ Arguments:
162
+ slug slug (string)
163
+
164
+ Options:
165
+ --repo <value> Repo path
166
+ --label <value> Stash label
167
+ --sha <value> Stash SHA, if known
168
+ -h, --help display help for command
169
+ ```
170
+
171
+ ## active-work artifact list
172
+
173
+ ```
174
+ Usage: active-work artifact list [options] [slug]
175
+
176
+ List artifacts for a slug or across all initiatives.
177
+
178
+ Arguments:
179
+ slug slug (string)
180
+
181
+ Options:
182
+ --all-initiatives Return artifacts for every initiative
183
+ -h, --help display help for command
184
+ ```
185
+
186
+ ## active-work artifact note
187
+
188
+ ```
189
+ Usage: active-work artifact note [options] <slug>
190
+
191
+ Set or update the free-form note on a tracked branch.
192
+
193
+ Arguments:
194
+ slug slug (string)
195
+
196
+ Options:
197
+ --repo <value> Repo path or org/repo
198
+ --name <value> Branch name
199
+ --note <value> Note text
200
+ -h, --help display help for command
201
+ ```
202
+
203
+ ## active-work artifact prune
204
+
205
+ ```
206
+ Usage: active-work artifact prune [options] <slug>
207
+
208
+ List (default) or remove (--apply) tracked branches and worktrees that no longer
209
+ exist locally.
210
+
211
+ Arguments:
212
+ slug slug (string)
213
+
214
+ Options:
215
+ --apply Write the pruned artifacts.yml. Without this, dry-run only.
216
+ -h, --help display help for command
217
+ ```
218
+
219
+ ## active-work artifact status
220
+
221
+ ```
222
+ Usage: active-work artifact status [options] <slug>
223
+
224
+ Pull live PR and branch state for the initiative via `git` + `gh`. Read-only.
225
+
226
+ Arguments:
227
+ slug slug (string)
228
+
229
+ Options:
230
+ -h, --help display help for command
231
+ ```
232
+
233
+ ## active-work audit
234
+
235
+ ```
236
+ Usage: active-work audit [options]
237
+
238
+ Cross-initiative summary: lists every initiative, parse failures, and worktree
239
+ path conflicts.
240
+
241
+ Options:
242
+ -h, --help display help for command
243
+ ```
244
+
245
+ ## active-work context graph
246
+
247
+ ```
248
+ Usage: active-work context graph [options] <id>
249
+
250
+ Trace every exact-ID reference to a task id, session, or loop ref across tasks,
251
+ sessions, and artifacts
252
+
253
+ Arguments:
254
+ id id (string)
255
+
256
+ Options:
257
+ --slug <value> Limit the scan to one initiative (default: every initiative)
258
+ -h, --help display help for command
259
+ ```
260
+
261
+ ## active-work discover
262
+
263
+ ```
264
+ Usage: active-work discover [options]
265
+
266
+ Scan configured sources (gh PRs, local git, projects root, Claude sessions) and
267
+ emit unfiltered discovery hits.
268
+
269
+ Options:
270
+ --github-repos <value> Comma-separated owner/repo list for gh PR discovery
271
+ --local-repos <value> Comma-separated repo paths for local git discovery
272
+ --projects-root <value> Root directory whose subdirs are scanned as projects
273
+ -h, --help display help for command
274
+ ```
275
+
276
+ ## active-work doctor
277
+
278
+ ```
279
+ Usage: active-work doctor [options]
280
+
281
+ Health-check the install: Node, active root, daemon, MCP registration, skill,
282
+ and supervision.
283
+
284
+ Options:
285
+ -h, --help display help for command
286
+ ```
287
+
288
+ ## active-work drop
289
+
290
+ ```
291
+ Usage: active-work drop [options] <ref>
292
+
293
+ Mark a discover hit as dropped so future discovers suppress it.
294
+
295
+ Arguments:
296
+ ref ref (string)
297
+
298
+ Options:
299
+ --reason <value> Optional one-line reason recorded in the triage log
300
+ -h, --help display help for command
301
+ ```
302
+
303
+ ## active-work edit
304
+
305
+ ```
306
+ Usage: active-work edit [options] <slug> <target>
307
+
308
+ Open the operator's editor on brief.md.
309
+
310
+ Arguments:
311
+ slug slug (string)
312
+ target target (enum)
313
+
314
+ Options:
315
+ -h, --help display help for command
316
+ ```
317
+
318
+ ## active-work focus
319
+
320
+ ```
321
+ Usage: active-work focus [options] <slug>
322
+
323
+ Promote an initiative into the focused list at a given rank.
324
+
325
+ Arguments:
326
+ slug slug (string)
327
+
328
+ Options:
329
+ --rank <value> Target rank (positive integer). Defaults to end of list.
330
+ -h, --help display help for command
331
+ ```
332
+
333
+ ## active-work fold
334
+
335
+ ```
336
+ Usage: active-work fold [options] <ref>
337
+
338
+ Mark a discover hit as folded into an existing initiative.
339
+
340
+ Arguments:
341
+ ref ref (string)
342
+
343
+ Options:
344
+ --into <value> Slug of the initiative this hit is folded into
345
+ --note <value> Optional human note describing the fold
346
+ -h, --help display help for command
347
+ ```
348
+
349
+ ## active-work hooks agent-chat-complete
350
+
351
+ ```
352
+ Usage: active-work hooks agent-chat-complete [options]
353
+
354
+ agent-chat on_complete hook consumer (AW-99): record a spawned peer's run as a
355
+ track:adhoc session via wrap.
356
+
357
+ Options:
358
+ -h, --help display help for command
359
+ ```
360
+
361
+ ## active-work hooks agent-chat-spawn
362
+
363
+ ```
364
+ Usage: active-work hooks agent-chat-spawn [options]
365
+
366
+ agent-chat on_spawn hook consumer (AW-99): stash a spawned peer's context, keyed
367
+ by agentId, for the matching on_complete call.
368
+
369
+ Options:
370
+ -h, --help display help for command
371
+ ```
372
+
373
+ ## active-work list
374
+
375
+ ```
376
+ Usage: active-work list [options]
377
+
378
+ List every initiative grouped by state. Replaces the legacy INDEX.md dump.
379
+
380
+ Options:
381
+ -h, --help display help for command
382
+ ```
383
+
384
+ ## active-work loops
385
+
386
+ ```
387
+ Usage: active-work loops [options] <slug>
388
+
389
+ List an initiative's open-loop ledger. Open loops are the unresolved remainder;
390
+ resolved ones carry the outcome and the reason they were closed, which the
391
+ bootstrap only surfaces for recent abandonments.
392
+
393
+ Arguments:
394
+ slug slug (string)
395
+
396
+ Options:
397
+ --state <value> 'open' (default) | 'resolved' | 'abandoned' | 'all'
398
+ -h, --help display help for command
399
+ ```
400
+
401
+ ## active-work mcp logs
402
+
403
+ ```
404
+ Usage: active-work mcp logs [options]
405
+
406
+ Return the last N lines of the daemon log (default 50).
407
+
408
+ Options:
409
+ --lines <value> Number of trailing lines to return (default 50).
410
+ -h, --help display help for command
411
+ ```
412
+
413
+ ## active-work mcp restart
414
+
415
+ ```
416
+ Usage: active-work mcp restart [options]
417
+
418
+ Restart the MCP HTTP daemon (stop, then spawn a fresh detached instance).
419
+
420
+ Options:
421
+ --port <value> Port for the restarted daemon (default: previous port or
422
+ 7400).
423
+ -h, --help display help for command
424
+ ```
425
+
426
+ ## active-work mcp serve
427
+
428
+ ```
429
+ Usage: active-work mcp serve [options]
430
+
431
+ Start the MCP server. --stdio for stdio mode; --detach to fork the HTTP daemon;
432
+ otherwise runs the HTTP daemon in the foreground.
433
+
434
+ Options:
435
+ --stdio Run in stdio mode for Claude Code `claude mcp add`.
436
+ --detach Spawn the HTTP daemon in the background and return.
437
+ --port <value> TCP port for the HTTP daemon (default 7400).
438
+ -h, --help display help for command
439
+ ```
440
+
441
+ ## active-work mcp status
442
+
443
+ ```
444
+ Usage: active-work mcp status [options]
445
+
446
+ Report the MCP HTTP daemon status (pid, port, version, uptime).
447
+
448
+ Options:
449
+ -h, --help display help for command
450
+ ```
451
+
452
+ ## active-work mcp stop
453
+
454
+ ```
455
+ Usage: active-work mcp stop [options]
456
+
457
+ Stop the running MCP HTTP daemon (sends SIGTERM, waits for exit).
458
+
459
+ Options:
460
+ -h, --help display help for command
461
+ ```
462
+
463
+ ## active-work migrate
464
+
465
+ ```
466
+ Usage: active-work migrate [options]
467
+
468
+ Preview (or apply) the pending v2→v3 open-loops migration.
469
+
470
+ Options:
471
+ --dry-run Report what would change; write nothing
472
+ --apply Actually run the migration
473
+ -h, --help display help for command
474
+ ```
475
+
476
+ ## active-work miner drain-ingest
477
+
478
+ ```
479
+ Usage: active-work miner drain-ingest [options]
480
+
481
+ Cluster new tool-result/error blobs from Claude transcripts into the template
482
+ store.
483
+
484
+ Options:
485
+ --full Ignore stored watermarks and re-read every transcript from
486
+ byte 0.
487
+ --limit <value> Visit at most N transcripts.
488
+ --verify-hashes Re-hash each read prefix to detect a rewritten transcript
489
+ (slow).
490
+ -h, --help display help for command
491
+ ```
492
+
493
+ ## active-work miner liveness
494
+
495
+ ```
496
+ Usage: active-work miner liveness [options]
497
+
498
+ Report which declared index structures nothing ever populates: empty columns,
499
+ unused edge relations, dangling refs, stale transcripts.
500
+
501
+ Options:
502
+ -h, --help display help for command
503
+ ```
504
+
505
+ ## active-work miner refresh
506
+
507
+ ```
508
+ Usage: active-work miner refresh [options]
509
+
510
+ Index new Claude session transcripts into the session-signal index.
511
+
512
+ Options:
513
+ --full Drop every derived row and re-read all transcripts from byte
514
+ 0.
515
+ --limit <value> Visit at most N transcripts.
516
+ --verify-hashes Re-hash every transcript to detect source drift (slow;
517
+ implied by --full).
518
+ -h, --help display help for command
519
+ ```
520
+
521
+ ## active-work miner status
522
+
523
+ ```
524
+ Usage: active-work miner status [options]
525
+
526
+ Report session-signal index size, freshness, and daemon indexing state.
527
+
528
+ Options:
529
+ -h, --help display help for command
530
+ ```
531
+
532
+ ## active-work new
533
+
534
+ ```
535
+ Usage: active-work new [options] <slug>
536
+
537
+ Scaffold a new initiative directory.
538
+
539
+ Arguments:
540
+ slug slug (string)
541
+
542
+ Options:
543
+ --title <value> Initiative title
544
+ --ship-target <value> Ship target (e.g., 2026-Q3)
545
+ --owner <value> Owner / handle
546
+ --worktree <value> Default worktree path
547
+ -h, --help display help for command
548
+ ```
549
+
550
+ ## active-work note add
551
+
552
+ ```
553
+ Usage: active-work note add [options] <slug>
554
+
555
+ File a durable note under <slug>/sources/notes/ — a process lesson, gotcha,
556
+ decision, or FYI that a future session needs but that no task would carry.
557
+ Actionable work belongs in `task add` instead.
558
+
559
+ Arguments:
560
+ slug slug (string)
561
+
562
+ Options:
563
+ --kind <value> process | gotcha | fyi | decision
564
+ --title <value> Short title, at most 120 chars (slugified into the
565
+ filename)
566
+ --body <value> Raw markdown body
567
+ --body-file <value> Path to a file containing the markdown body
568
+ --tags <value> Comma-separated tags
569
+ -h, --help display help for command
570
+ ```
571
+
572
+ ## active-work note list
573
+
574
+ ```
575
+ Usage: active-work note list [options] <slug>
576
+
577
+ List durable notes for an initiative, newest first.
578
+
579
+ Arguments:
580
+ slug slug (string)
581
+
582
+ Options:
583
+ --kind <value> Only notes of this kind: process | gotcha | fyi | decision
584
+ -h, --help display help for command
585
+ ```
586
+
587
+ ## active-work open
588
+
589
+ ```
590
+ Usage: active-work open [options] [slug]
591
+
592
+ Bootstrap a Claude session for an initiative. Without a slug, resolves the
593
+ initiative whose worktree contains the caller's cwd; falls back to the picker
594
+ list when nothing matches.
595
+
596
+ Arguments:
597
+ slug slug (string)
598
+
599
+ Options:
600
+ --offline Skip the live `gh`/`git` artifact lookup; render artifacts
601
+ statically.
602
+ --cwd <value> Directory to resolve the initiative from when no slug is
603
+ given (default: current directory).
604
+ --pick Always return the picker list; skip resolving the
605
+ initiative from the current directory.
606
+ --adhoc Frame the prompt as ad-hoc work on the workstream
607
+ (awaiting the user’s task), not a continuation of the
608
+ handoff / top task.
609
+ --no-sibling-check Skip the check for another session already live on this
610
+ initiative, and do not record a lease for this one.
611
+ -h, --help display help for command
612
+ ```
613
+
614
+ ## active-work paths
615
+
616
+ ```
617
+ Usage: active-work paths [options] <slug>
618
+
619
+ Print all artifact paths for an initiative.
620
+
621
+ Arguments:
622
+ slug slug (string)
623
+
624
+ Options:
625
+ -h, --help display help for command
626
+ ```
627
+
628
+ ## active-work pause
629
+
630
+ ```
631
+ Usage: active-work pause [options] <slug>
632
+
633
+ Mark an initiative as paused with required restart metadata.
634
+
635
+ Arguments:
636
+ slug slug (string)
637
+
638
+ Options:
639
+ --since <value> Pause-since date (YYYY-MM-DD).
640
+ --restart-trigger <value> What event should cause this initiative to resume.
641
+ -h, --help display help for command
642
+ ```
643
+
644
+ ## active-work preflight
645
+
646
+ ```
647
+ Usage: active-work preflight [options] <slug>
648
+
649
+ Read-only pre-wrap sweep: the uncommitted trees, unpushed branches, and
650
+ worktrees/branches/stashes present in git but missing from artifacts.yml, plus
651
+ the checklist a wrap must answer. Writes nothing.
652
+
653
+ Arguments:
654
+ slug slug (string)
655
+
656
+ Options:
657
+ --cwd <value> Directory to include in the swept repo set (default: current
658
+ directory).
659
+ -h, --help display help for command
660
+ ```
661
+
662
+ ## active-work prompt
663
+
664
+ ```
665
+ Usage: active-work prompt [options] [slug]
666
+
667
+ Print the bootstrap prompt for an initiative — the same text `aw` feeds Claude
668
+ at launch — without any side effects. Resolves the initiative from a slug or the
669
+ caller's cwd. Use it to re-seed context in a running session.
670
+
671
+ Arguments:
672
+ slug slug (string)
673
+
674
+ Options:
675
+ --offline Skip the live `gh`/`git` artifact lookup; render artifacts
676
+ statically.
677
+ --cwd <value> Directory to resolve the initiative from when no slug is
678
+ given (default: current directory).
679
+ --adhoc Frame the prompt as ad-hoc work on the workstream,
680
+ awaiting the user’s task, not a continuation of the
681
+ handoff / top task.
682
+ --no-sibling-check Skip the check for another session already live on this
683
+ initiative.
684
+ -h, --help display help for command
685
+ ```
686
+
687
+ ## active-work rename
688
+
689
+ ```
690
+ Usage: active-work rename [options] <old_slug> <new_slug>
691
+
692
+ Rename an initiative slug (moves the directory; task_prefix unchanged).
693
+
694
+ Arguments:
695
+ old_slug old_slug (string)
696
+ new_slug new_slug (string)
697
+
698
+ Options:
699
+ -h, --help display help for command
700
+ ```
701
+
702
+ ## active-work resume
703
+
704
+ ```
705
+ Usage: active-work resume [options] <session_id>
706
+
707
+ Resolve the working directory a Claude session id belongs to, so `claude
708
+ --resume` can be run from the right place.
709
+
710
+ Arguments:
711
+ session_id session_id (string)
712
+
713
+ Options:
714
+ -h, --help display help for command
715
+ ```
716
+
717
+ ## active-work session list
718
+
719
+ ```
720
+ Usage: active-work session list [options] <slug>
721
+
722
+ List session summaries for an initiative, sorted by end time
723
+
724
+ Arguments:
725
+ slug slug (string)
726
+
727
+ Options:
728
+ --limit <value> Maximum sessions to return (default 100)
729
+ -h, --help display help for command
730
+ ```
731
+
732
+ ## active-work sessions
733
+
734
+ ```
735
+ Usage: active-work sessions [options]
736
+
737
+ Browse recent Claude sessions discovered under ~/.claude/projects.
738
+
739
+ Options:
740
+ --limit <value> Max sessions to return (default 50).
741
+ --include-active Include sessions whose cwd lives under an active initiative.
742
+ -h, --help display help for command
743
+ ```
744
+
745
+ ## active-work set
746
+
747
+ ```
748
+ Usage: active-work set [options] <slug> <field> <value>
749
+
750
+ Set a single field on an initiative brief.md frontmatter.
751
+
752
+ Arguments:
753
+ slug slug (string)
754
+ field field (string)
755
+ value value (unknown)
756
+
757
+ Options:
758
+ -h, --help display help for command
759
+ ```
760
+
761
+ ## active-work setup
762
+
763
+ ```
764
+ Usage: active-work setup [options]
765
+
766
+ Interactive wizard: verifies Node, scaffolds directories, registers the MCP
767
+ server, and optionally starts the daemon and walks through ingestion.
768
+
769
+ Options:
770
+ --update Re-run setup idempotently (may overwrite the config stub).
771
+ -y, --yes Skip all prompts; use defaults (no daemon, no ingestion).
772
+ -h, --help display help for command
773
+ ```
774
+
775
+ ## active-work source add
776
+
777
+ ```
778
+ Usage: active-work source add [options] <slug> <file>
779
+
780
+ Move a source file into <slug>/sources/ with a conventional filename.
781
+
782
+ Arguments:
783
+ slug slug (string)
784
+ file file (string)
785
+
786
+ Options:
787
+ --type <value> Source type: pr | deepdive | session | pointer
788
+ --label <value> Short label (slugified into filename)
789
+ --topic <value> Topic for deepdive type
790
+ --pr-number <value> PR number for type=pr
791
+ --date <value> Date YYYY-MM-DD for type=session
792
+ --force Overwrite if target exists
793
+ -h, --help display help for command
794
+ ```
795
+
796
+ ## active-work source list
797
+
798
+ ```
799
+ Usage: active-work source list [options] <slug>
800
+
801
+ List an initiative's sources, derived by reading sources/*.md — never a stored
802
+ index.
803
+
804
+ Arguments:
805
+ slug slug (string)
806
+
807
+ Options:
808
+ --type <value> Only sources of this type: pr | deepdive | session | pointer
809
+ -h, --help display help for command
810
+ ```
811
+
812
+ ## active-work sync
813
+
814
+ ```
815
+ Usage: active-work sync [options]
816
+
817
+ Sync the active root over git: auto-commit local edits, pull --rebase, then
818
+ push.
819
+
820
+ Options:
821
+ -m, --message <value> Commit message for the auto-commit (default: timestamp
822
+ + host)
823
+ --require-clean Fail instead of auto-committing when the tree is dirty
824
+ -h, --help display help for command
825
+ ```
826
+
827
+ ## active-work task add
828
+
829
+ ```
830
+ Usage: active-work task add [options] <slug>
831
+
832
+ Create a new task in an initiative
833
+
834
+ Arguments:
835
+ slug slug (string)
836
+
837
+ Options:
838
+ --title <value> Task title
839
+ --priority <value> Priority (positive int)
840
+ --severity <value> critical|high|medium|low
841
+ --estimate <value> Estimate (hours)
842
+ --done-when <value> Definition of done
843
+ --tags <value> Comma-separated tag list
844
+ --notes <value> Free-form notes
845
+ -h, --help display help for command
846
+ ```
847
+
848
+ ## active-work task delete
849
+
850
+ ```
851
+ Usage: active-work task delete [options] <slug> <id>
852
+
853
+ Hard delete a task file (prefer task.done in normal use)
854
+
855
+ Arguments:
856
+ slug slug (string)
857
+ id id (string)
858
+
859
+ Options:
860
+ -h, --help display help for command
861
+ ```
862
+
863
+ ## active-work task done
864
+
865
+ ```
866
+ Usage: active-work task done [options] <slug> <id>
867
+
868
+ Mark a task as done
869
+
870
+ Arguments:
871
+ slug slug (string)
872
+ id id (string)
873
+
874
+ Options:
875
+ -h, --help display help for command
876
+ ```
877
+
878
+ ## active-work task edit
879
+
880
+ ```
881
+ Usage: active-work task edit [options] <slug> <id> <field> <value>
882
+
883
+ Edit a single field on a task
884
+
885
+ Arguments:
886
+ slug slug (string)
887
+ id id (string)
888
+ field field (string)
889
+ value value (unknown)
890
+
891
+ Options:
892
+ -h, --help display help for command
893
+ ```
894
+
895
+ ## active-work task list
896
+
897
+ ```
898
+ Usage: active-work task list [options] [slug]
899
+
900
+ List tasks for an initiative or across all initiatives
901
+
902
+ Arguments:
903
+ slug slug (string)
904
+
905
+ Options:
906
+ --all-initiatives Scan every initiative under the active root
907
+ --tag <value> Filter by tag membership
908
+ --severity <value> Filter by severity (critical|high|medium|low)
909
+ --status <value> open (default), done, or all
910
+ -h, --help display help for command
911
+ ```
912
+
913
+ ## active-work task reorder
914
+
915
+ ```
916
+ Usage: active-work task reorder [options] <slug> <id> <new_priority>
917
+
918
+ Move a task to a new priority and shift siblings down
919
+
920
+ Arguments:
921
+ slug slug (string)
922
+ id id (string)
923
+ new_priority new_priority (number)
924
+
925
+ Options:
926
+ -h, --help display help for command
927
+ ```
928
+
929
+ ## active-work touch
930
+
931
+ ```
932
+ Usage: active-work touch [options] <slug>
933
+
934
+ Stamp `updated: today()` on an initiative's brief.md.
935
+
936
+ Arguments:
937
+ slug slug (string)
938
+
939
+ Options:
940
+ -h, --help display help for command
941
+ ```
942
+
943
+ ## active-work track
944
+
945
+ ```
946
+ Usage: active-work track [options] <ref>
947
+
948
+ Scaffold a new initiative from a discover hit.
949
+
950
+ Arguments:
951
+ ref ref (string)
952
+
953
+ Options:
954
+ --slug <value> Kebab-case slug for the new initiative
955
+ --title <value> Human-readable initiative title
956
+ --ship-target <value> Target ship window (e.g. 2026-Q3)
957
+ --owner <value> Initiative owner handle
958
+ --worktree <value> Default worktree path to record on the brief
959
+ -h, --help display help for command
960
+ ```
961
+
962
+ ## active-work unfocus
963
+
964
+ ```
965
+ Usage: active-work unfocus [options] <slug>
966
+
967
+ Demote a focused initiative to backburner and renumber survivors.
968
+
969
+ Arguments:
970
+ slug slug (string)
971
+
972
+ Options:
973
+ -h, --help display help for command
974
+ ```
975
+
976
+ ## active-work uninstall
977
+
978
+ ```
979
+ Usage: active-work uninstall [options]
980
+
981
+ Reverse what setup did: remove the skill, stop the daemon, unregister MCP.
982
+ Preserves the active root.
983
+
984
+ Options:
985
+ -y, --yes Skip all prompts; assume yes.
986
+ -h, --help display help for command
987
+ ```
988
+
989
+ ## active-work unpause
990
+
991
+ ```
992
+ Usage: active-work unpause [options] <slug>
993
+
994
+ Move a paused initiative back to backburner.
995
+
996
+ Arguments:
997
+ slug slug (string)
998
+
999
+ Options:
1000
+ -h, --help display help for command
1001
+ ```
1002
+
1003
+ ## active-work worktree set
1004
+
1005
+ ```
1006
+ Usage: active-work worktree set [options] <slug> <path>
1007
+
1008
+ Add or update a registered worktree on an existing initiative. A lone worktree
1009
+ is made default automatically; use --default to promote an added one. Registered
1010
+ worktrees live in artifacts.yml alongside the ones wrap sweeps, and are what
1011
+ `aw` resolves a cwd against.
1012
+
1013
+ Arguments:
1014
+ slug slug (string)
1015
+ path path (string)
1016
+
1017
+ Options:
1018
+ --label <value> Worktree label (default: main).
1019
+ --default Mark this worktree as the default, clearing default on
1020
+ others.
1021
+ -h, --help display help for command
1022
+ ```
1023
+
1024
+ ## active-work worktree set-default
1025
+
1026
+ ```
1027
+ Usage: active-work worktree set-default [options] <slug> <label>
1028
+
1029
+ Mark the named worktree label as default for an initiative; clears default on
1030
+ other labels.
1031
+
1032
+ Arguments:
1033
+ slug slug (string)
1034
+ label label (string)
1035
+
1036
+ Options:
1037
+ -h, --help display help for command
1038
+ ```
1039
+
1040
+ ## active-work wrap
1041
+
1042
+ ```
1043
+ Usage: active-work wrap [options] <slug>
1044
+
1045
+ The last thing a session does. Treat it as the moment the process exits:
1046
+ everything not persisted before wrap returns is lost, so file it first and wrap
1047
+ last. Every category the session can leave behind needs an explicit answer, and
1048
+ omitting one is an error rather than a default — open loops (--next-steps /
1049
+ --resolves, or --no-loops), durable notes (--notes or --no-notes), and tasks
1050
+ created this session (--tasks-filed or --no-tasks). Writes the session file and
1051
+ its ledger, files the notes under sources/notes/, records any worktrees,
1052
+ branches and stashes the initiative had not written down, stamps the brief's
1053
+ updated date, and returns a receipt of what was filed.
1054
+
1055
+ Arguments:
1056
+ slug slug (string)
1057
+
1058
+ Options:
1059
+ --session-id <value> Claude session identifier
1060
+ --started <value> ISO 8601 session start timestamp
1061
+ --ended <value> ISO 8601 session end timestamp
1062
+ --track <value> 'canonical' (mainline thread) | 'sidecar'
1063
+ (folded/derived) | 'adhoc' (parallel ad-hoc work)
1064
+ (default: canonical)
1065
+ --parent-session <value> Session id that spawned this one. Set by the
1066
+ agent-chat spawn hook for peers, whose parentage no
1067
+ transcript records.
1068
+ --body <value> Raw markdown body (session narrative)
1069
+ --body-file <value> Path to a file containing the markdown body
1070
+ --next-steps <value> JSON array of loops this session opens:
1071
+ [{"id","text","kind":"task|pr|prose","ref"?}]
1072
+ --resolves <value> JSON array of loops this session closes:
1073
+ [{"ref":"<session-file-stem>#<id>","outcome":"done|abandoned","note"?}]
1074
+ --no-loops Assert that this session leaves nothing hanging.
1075
+ Records no_loops: true so a deliberate empty ledger
1076
+ is distinguishable from an unfiled one. Mutually
1077
+ exclusive with --next-steps / --resolves.
1078
+ --notes <value> JSON array of durable notes to file under
1079
+ sources/notes/:
1080
+ [{"kind":"process|gotcha|fyi|decision","title","body","tags"?}]
1081
+ --no-notes Assert that this session produced no durable
1082
+ knowledge worth keeping. Mutually exclusive with
1083
+ --notes.
1084
+ --tasks-filed <value> JSON array of task ids created during this session,
1085
+ e.g. ["AW-66","AW-67"]. Each must already exist in
1086
+ the initiative.
1087
+ --no-tasks Assert that this session filed no tasks. Mutually
1088
+ exclusive with --tasks-filed.
1089
+ -h, --help display help for command
1090
+ ```