teamsmith 0.1.2 → 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.
Files changed (158) hide show
  1. package/README.md +13 -7
  2. package/package.json +1 -1
  3. package/skills/teamsmith/CHANGELOG.md +67 -0
  4. package/skills/teamsmith/SKILL.md +26 -8
  5. package/skills/teamsmith/extension/team-notify.ts +37 -6
  6. package/skills/teamsmith/extension/team.ts +438 -0
  7. package/skills/teamsmith/references/agent-adapters.md +7 -7
  8. package/skills/teamsmith/references/config.md +65 -18
  9. package/skills/teamsmith/references/migration.md +220 -34
  10. package/skills/teamsmith/references/protocol.md +250 -25
  11. package/skills/teamsmith/references/troubleshooting.md +124 -7
  12. package/skills/teamsmith/references/workflows.md +66 -20
  13. package/skills/teamsmith/scripts/lib/cmd-agents.sh +525 -90
  14. package/skills/teamsmith/scripts/lib/cmd-bootstrap.sh +71 -10
  15. package/skills/teamsmith/scripts/lib/cmd-config.sh +562 -128
  16. package/skills/teamsmith/scripts/lib/cmd-death.sh +2 -15
  17. package/skills/teamsmith/scripts/lib/cmd-docs.sh +6 -3
  18. package/skills/teamsmith/scripts/lib/cmd-draft.sh +4 -4
  19. package/skills/teamsmith/scripts/lib/cmd-help.sh +677 -0
  20. package/skills/teamsmith/scripts/lib/cmd-init.sh +157 -5
  21. package/skills/teamsmith/scripts/lib/cmd-interrupt.sh +461 -0
  22. package/skills/teamsmith/scripts/lib/cmd-meeting.sh +2 -25
  23. package/skills/teamsmith/scripts/lib/cmd-project.sh +149 -105
  24. package/skills/teamsmith/scripts/lib/cmd-reap.sh +277 -0
  25. package/skills/teamsmith/scripts/lib/cmd-reply.sh +96 -0
  26. package/skills/teamsmith/scripts/lib/cmd-review.sh +188 -40
  27. package/skills/teamsmith/scripts/lib/cmd-status.sh +268 -30
  28. package/skills/teamsmith/scripts/lib/cmd-update.sh +36 -7
  29. package/skills/teamsmith/scripts/lib/cmd-watch.sh +634 -54
  30. package/skills/teamsmith/scripts/lib/common.sh +1560 -109
  31. package/skills/teamsmith/scripts/lib/gate-lock.sh +544 -0
  32. package/skills/teamsmith/scripts/monitor.mjs +34 -3
  33. package/skills/teamsmith/scripts/panel/README.md +22 -11
  34. package/skills/teamsmith/scripts/panel/draft-send.sh +11 -1
  35. package/skills/teamsmith/scripts/panel/panel.js +226 -224
  36. package/skills/teamsmith/scripts/panel/src/App.tsx +478 -184
  37. package/skills/teamsmith/scripts/panel/src/clipboard.ts +11 -5
  38. package/skills/teamsmith/scripts/panel/src/compose.ts +6 -3
  39. package/skills/teamsmith/scripts/panel/src/data.ts +95 -7
  40. package/skills/teamsmith/scripts/panel/src/layout.ts +703 -152
  41. package/skills/teamsmith/scripts/panel/src/main.tsx +129 -19
  42. package/skills/teamsmith/scripts/panel/src/settings.ts +1 -1
  43. package/skills/teamsmith/scripts/panel/src/strings/en.ts +76 -31
  44. package/skills/teamsmith/scripts/panel/src/strings/zh.ts +78 -33
  45. package/skills/teamsmith/scripts/panel/src/types.ts +204 -17
  46. package/skills/teamsmith/scripts/replies.mjs +896 -0
  47. package/skills/teamsmith/scripts/shim/tmux +18 -0
  48. package/skills/teamsmith/scripts/strings/commands.tsv +86 -0
  49. package/skills/teamsmith/scripts/strings/help.en.tsv +503 -0
  50. package/skills/teamsmith/scripts/strings/help.zh.tsv +489 -0
  51. package/skills/teamsmith/scripts/team +20 -6
  52. package/skills/teamsmith/templates/AGENTS.section.md.tmpl +23 -3
  53. package/skills/teamsmith/templates/BOARD.md.tmpl +2 -2
  54. package/skills/teamsmith/templates/OWNERSHIP.md.tmpl +7 -3
  55. package/skills/teamsmith/templates/PROTOCOL.md.tmpl +17 -0
  56. package/skills/teamsmith/templates/config.sh.tmpl +29 -5
  57. package/skills/teamsmith/templates/memory-seed.md.tmpl +3 -0
  58. package/skills/teamsmith/templates/pm-prompt.md.tmpl +41 -1
  59. package/skills/teamsmith/templates/report.md.tmpl +12 -0
  60. package/skills/teamsmith/templates/task.md.tmpl +4 -0
  61. package/skills/teamsmith/tests/bg-ledger-harness.mjs +464 -40
  62. package/skills/teamsmith/tests/bg-ledger.sh +168 -10
  63. package/skills/teamsmith/tests/checkout-shape-probe.sh +3 -1
  64. package/skills/teamsmith/tests/config-cli.sh +320 -300
  65. package/skills/teamsmith/tests/death-cause.sh +5 -2
  66. package/skills/teamsmith/tests/fixtures/delivery-truth-real/scenario.sh +7 -1
  67. package/skills/teamsmith/tests/fixtures/p287/lint-good.sh.in +3 -0
  68. package/skills/teamsmith/tests/fixtures/p287/lint-hardcoded.sh.in +3 -0
  69. package/skills/teamsmith/tests/fixtures/p287/lint-no-ns.sh.in +3 -0
  70. package/skills/teamsmith/tests/fixtures/p55/flip-p49.sh +18 -6
  71. package/skills/teamsmith/tests/flip-m33.sh +5 -3
  72. package/skills/teamsmith/tests/flip-m37.sh +4 -1
  73. package/skills/teamsmith/tests/flip-m4.3.sh +4 -1
  74. package/skills/teamsmith/tests/flip-m6.3.sh +4 -1
  75. package/skills/teamsmith/tests/flip-m6.5.sh +4 -1
  76. package/skills/teamsmith/tests/flip-m7.2.sh +4 -1
  77. package/skills/teamsmith/tests/flip-p158.sh +2 -1
  78. package/skills/teamsmith/tests/flip-p210.sh +4 -1
  79. package/skills/teamsmith/tests/flip-p217.sh +4 -1
  80. package/skills/teamsmith/tests/flip-p287-lock.sh +342 -0
  81. package/skills/teamsmith/tests/flip-p287-name.sh +279 -0
  82. package/skills/teamsmith/tests/flip-p304-read-side.sh +98 -0
  83. package/skills/teamsmith/tests/flip-p308-skip-not-pass.sh +151 -0
  84. package/skills/teamsmith/tests/flip-p309-p162-deep.sh +122 -0
  85. package/skills/teamsmith/tests/flip-p310-lock.sh +216 -0
  86. package/skills/teamsmith/tests/flip-p310-socket.sh +125 -0
  87. package/skills/teamsmith/tests/help-surface.sh +1664 -0
  88. package/skills/teamsmith/tests/install-shape.sh +283 -22
  89. package/skills/teamsmith/tests/key-replies-pty.sh +374 -0
  90. package/skills/teamsmith/tests/key-replies-ui.sh +325 -0
  91. package/skills/teamsmith/tests/key-replies.sh +1314 -0
  92. package/skills/teamsmith/tests/ledger-ban.sh +9 -8
  93. package/skills/teamsmith/tests/ledger-claim.sh +248 -0
  94. package/skills/teamsmith/tests/lib/bounded-spin.sh +90 -0
  95. package/skills/teamsmith/tests/lib/model-policy.sh +30 -0
  96. package/skills/teamsmith/tests/lib/model-routing-boundary.sh +420 -0
  97. package/skills/teamsmith/tests/lib/model-routing-expansion.sh +155 -0
  98. package/skills/teamsmith/tests/lib/model-routing-flips.py +187 -0
  99. package/skills/teamsmith/tests/lib/model-routing-roles.sh +250 -0
  100. package/skills/teamsmith/tests/lib/proc-io.sh +103 -0
  101. package/skills/teamsmith/tests/lib/reply-fixture.sh +367 -0
  102. package/skills/teamsmith/tests/lib/section-guard.sh +258 -13
  103. package/skills/teamsmith/tests/lib/tmp-root.sh +139 -27
  104. package/skills/teamsmith/tests/lib/tmux-cap.sh +10 -1
  105. package/skills/teamsmith/tests/lib/tmux-iso.sh +39 -13
  106. package/skills/teamsmith/tests/loop-inventory.tsv +59 -47
  107. package/skills/teamsmith/tests/panel-b2.sh +107 -4
  108. package/skills/teamsmith/tests/panel-b3-stub.sh +139 -4
  109. package/skills/teamsmith/tests/panel-b3.sh +189 -29
  110. package/skills/teamsmith/tests/panel-choices.sh +81 -63
  111. package/skills/teamsmith/tests/panel-cpu.sh +3 -2
  112. package/skills/teamsmith/tests/panel-knobs.sh +7 -1
  113. package/skills/teamsmith/tests/panel-p21.sh +445 -241
  114. package/skills/teamsmith/tests/panel-snapshots.sh +41 -225
  115. package/skills/teamsmith/tests/panel-strings.mjs +33 -18
  116. package/skills/teamsmith/tests/perf.sh +122 -31
  117. package/skills/teamsmith/tests/pm-box-real.sh +1 -1
  118. package/skills/teamsmith/tests/pulse-nudge-key.sh +1 -1
  119. package/skills/teamsmith/tests/routes.sh +364 -109
  120. package/skills/teamsmith/tests/seat-interrupt.sh +1002 -0
  121. package/skills/teamsmith/tests/seat-visibility.sh +675 -0
  122. package/skills/teamsmith/tests/section-budgets.tsv +26 -12
  123. package/skills/teamsmith/tests/section-guard.sh +6 -1
  124. package/skills/teamsmith/tests/section-needs-audit.sh +24 -7
  125. package/skills/teamsmith/tests/section-paths.tsv +42 -26
  126. package/skills/teamsmith/tests/section-select.sh +90 -7
  127. package/skills/teamsmith/tests/slash-team-e2e.sh +323 -0
  128. package/skills/teamsmith/tests/slash-team.sh +617 -0
  129. package/skills/teamsmith/tests/smoke.sh +3762 -628
  130. package/skills/teamsmith/tests/snapshots/zh-dark-120-detail.txt +2 -2
  131. package/skills/teamsmith/tests/snapshots/zh-dark-120-p4.txt +2 -2
  132. package/skills/teamsmith/tests/snapshots/zh-dark-120.txt +9 -9
  133. package/skills/teamsmith/tests/snapshots/zh-dark-160-p4.txt +2 -2
  134. package/skills/teamsmith/tests/snapshots/zh-dark-160.txt +9 -9
  135. package/skills/teamsmith/tests/snapshots/zh-dark-59-detail.txt +1 -1
  136. package/skills/teamsmith/tests/snapshots/zh-dark-59-p4.txt +1 -1
  137. package/skills/teamsmith/tests/snapshots/zh-dark-59.txt +5 -5
  138. package/skills/teamsmith/tests/snapshots/zh-dark-99-p4.txt +2 -2
  139. package/skills/teamsmith/tests/snapshots/zh-dark-99.txt +5 -5
  140. package/skills/teamsmith/tests/snapshots/zh-light-120-detail.txt +2 -2
  141. package/skills/teamsmith/tests/snapshots/zh-light-120-p4.txt +2 -2
  142. package/skills/teamsmith/tests/snapshots/zh-light-120.txt +9 -9
  143. package/skills/teamsmith/tests/snapshots/zh-light-160-p4.txt +2 -2
  144. package/skills/teamsmith/tests/snapshots/zh-light-160.txt +9 -9
  145. package/skills/teamsmith/tests/snapshots/zh-light-59-detail.txt +1 -1
  146. package/skills/teamsmith/tests/snapshots/zh-light-59-p4.txt +1 -1
  147. package/skills/teamsmith/tests/snapshots/zh-light-59.txt +5 -5
  148. package/skills/teamsmith/tests/snapshots/zh-light-99-p4.txt +2 -2
  149. package/skills/teamsmith/tests/snapshots/zh-light-99.txt +5 -5
  150. package/skills/teamsmith/tests/task-header-model.sh +2 -1
  151. package/skills/teamsmith/tests/task-model-routing.sh +1511 -0
  152. package/skills/teamsmith/tests/tmp-hygiene.sh +782 -45
  153. package/skills/teamsmith/tests/tmux-identity-leak.sh +773 -0
  154. package/skills/teamsmith/tests/tmux-lint-legacy.txt +12 -18
  155. package/skills/teamsmith/tests/upgrade-recipe.sh +537 -0
  156. package/skills/teamsmith-init/SKILL.md +43 -43
  157. package/skills/teamsmith-init/references/bootstrap.md +8 -6
  158. package/skills/teamsmith-init/templates/bootstrap-prompt.md.tmpl +9 -5
@@ -325,6 +325,24 @@ _bounded_append() { # <file>
325
325
  return 0
326
326
  }
327
327
 
328
+ # ── 日志目标解析(P274 · 裁定点 C/A1)─────────────────────────────────────────────────
329
+ # $TEAM_TMUX_CALLS_LOG 在 → 用它(逐字节不变)。缺席时(工具的建对象调用会摘掉整个 TEAM_*
330
+ # 命名空间,见 common.sh 的 team_tmux)按 **cwd 所属项目**解析:向上找 `.pi/team`,落它自己的
331
+ # state/tmux-calls.log —— 审计因此无洞,且共享 server 上**别的项目**的 pane 里的调用记到**它自己**
332
+ # 项目的日志,不再污染本项目的 forensics 文件。两边都解析不出来 → 不写(可见的例外,不是静默丢)。
333
+ # 只做几个 `[ -d ]` 测试,不启子进程(闸门在每次 tmux 调用的热路径上)。
334
+ _shim_resolve_log() { # <起始目录>
335
+ local d="${1:-}"
336
+ [ -n "$d" ] || return 1
337
+ while :; do
338
+ [ -d "$d/.pi/team" ] && { printf '%s/.pi/team/state/tmux-calls.log' "$d"; return 0; }
339
+ [ "$d" = "/" ] && return 1
340
+ d="${d%/*}"; [ -n "$d" ] || d="/"
341
+ done
342
+ }
343
+ if [ -z "${TEAM_TMUX_CALLS_LOG:-}" ]; then
344
+ TEAM_TMUX_CALLS_LOG="$(_shim_resolve_log "$_shim_cwd" || true)"
345
+ fi
328
346
  if [ -n "${TEAM_TMUX_CALLS_LOG:-}" ] && [ ! -p "${TEAM_TMUX_CALLS_LOG}" ]; then
329
347
  _log="${TEAM_TMUX_CALLS_LOG}"
330
348
  _ld="$(dirname "$_log")"
@@ -0,0 +1,86 @@
1
+ # teamsmith · command manifest — the language-neutral single source of the help surface.
2
+ #
3
+ # Read by scripts/lib/cmd-help.sh (the renderer), by tests/help-surface.sh (the surface's own checks)
4
+ # and by tests/routes.sh (Walk A's working set). One row per command the dispatcher accepts, plus the
5
+ # group table; the menu, the group pages and the command pages are all rendered from this file.
6
+ #
7
+ # Columns are tab-separated. `-` means "empty"; list fields are space separated.
8
+ #
9
+ # group <id>
10
+ # cmd <name> <group> <usage> <flags> <subs> <aliases> <terms> <faces> <effect> <auth> <undo> <claims> <probe> <example>
11
+ #
12
+ # name the token the dispatcher accepts (a `case "$CMD" in` label of scripts/team)
13
+ # group the group id this command is listed under (level 1: `team help <group>`)
14
+ # usage one or more usage fragments, separated by ` ;; ` — every one is printed on the page
15
+ # flags the flags the usage fragments print (`-` = none); each needs an `cmd.<name>.arg.<flag>` prose key
16
+ # subs subcommands the usage fragments print
17
+ # aliases other labels the dispatcher accepts for this command (documented on this page)
18
+ # terms concept ids this page uses; the page repeats their definitions verbatim
19
+ # faces the faces this command touches, from the closed list: state docs config worktree skills meetings
20
+ # effect read-only | writes-<face> | starts-process (the headline effect; `faces` carries the rest)
21
+ # auth none | needs-yes | needs-yes:<condition>
22
+ # undo idempotent | undo-by-<cmd> | not-reversible:<reason>
23
+ # claims extra declared facts `key=value` that prose may name (registry in tests/help-surface.sh)
24
+ # probe the probe recipe id that makes the declared effect happen in a scratch fixture
25
+ # example one example command line printed under `Example`
26
+ #
27
+ # The prose for every command lives in help.en.tsv (source) and help.zh.tsv (translation); a key the
28
+ # selected table lacks is printed with a marker naming it and falls back to the other table's value.
29
+ # Placeholders the values may carry — the closed set is declared in scripts/lib/cmd-help.sh
30
+ # (TEAM_HELP_PLACEHOLDERS); any other braced token fails the render: {project} {meeting_ttl}
31
+ # {token} {sub} {cmd} {undo_cmd}
32
+ group start
33
+ group observe
34
+ group ledger
35
+ group seats
36
+ group patrol
37
+ group peers
38
+ group finish
39
+ group versions
40
+ begin bootstrap status dispatch review
41
+ cmd help start help [<group>] [<command>] - group command - - - read-only none idempotent levels=3 help team help dispatch
42
+ cmd bootstrap start bootstrap [--agents <names>] [--task-models <map>] [--pm-model <model>] [--print] --agents --task-models --pm-model --print - - pm seat worktree brief change gate ledger pulse yes config docs skills starts-process none not-reversible:the skeleton, the skill copy and the worktrees it writes have no single undo - bootstrap team bootstrap --agents "dev verify" --task-models "code=provider/model"
43
+ cmd init start init [--copy] [--no-skills] [--force] [--agents <names>] [--task-models <map>] [--pm-model <model>] --copy --no-skills --force --agents --task-models --pm-model - - pm seat ledger gate config docs skills writes-config none not-reversible:the written contract and document skeleton have no undo - init team init --no-skills --agents "dev verify" --task-models "code=provider/model"
44
+ cmd doctor start doctor - - - gate - read-only none idempotent - doctor team doctor
45
+ cmd roster observe roster - - - seat worktree - read-only none idempotent - roster team roster
46
+ cmd status observe status [<ID>] - - - brief ledger state writes-state none idempotent - status team status
47
+ cmd ps observe ps - - - seat - read-only none idempotent - ps team ps
48
+ cmd bg observe bg list ;; bg stop <id> - list stop - - state writes-state none idempotent - bg team bg list
49
+ cmd reap observe reap --orphans [--yes] ;; reap <pid> [--yes] --orphans --yes - - seat state writes-state none not-reversible:the process is gone; the plan and --yes are the only guard - reap team reap --orphans --yes
50
+ cmd interrupt observe interrupt <seat> --reason <line> [--force] [--yes] --reason --force --yes - - seat state docs writes-state needs-yes not-reversible:this command does not put the ended turn back; the thread entry, the inbox line and the audit line are the record and `team resume --agent <seat>` is the way back - interrupt team interrupt dev --reason "18h without a commit"
51
+ cmd digest observe digest - - - ledger pulse state writes-state none idempotent - digest team digest
52
+ cmd inbox observe inbox [<agent>] - - - ledger - read-only none idempotent - inbox team inbox
53
+ cmd paths observe paths - - - ledger - read-only none idempotent - paths team paths
54
+ cmd config observe config list ;; config log ;; config set <key> <value> ;; config set-task-model <category> <model> ;; config upgrade-models [--task-models <map>] [--pm-model <model>] --task-models --pm-model list log set set-task-model upgrade-models help - pm seat change config state writes-config none not-reversible:the audit log keeps every write - config team config list
55
+ cmd task ledger task <ID> --title <title> --category <category> [--agent <a>] [--deps <ids>] [--issue <N>] --title --category --agent --deps --issue - - brief category change ledger docs writes-docs none not-reversible:no command removes a brief or its board row - task team task P1 --title "First task" --category code
56
+ cmd board ledger board add <ID> [--allow-dup] ;; board assign <ID> <agent> ;; board set <ID> <status> ;; board row <ID> ;; board ls --allow-dup add assign set row ls - ledger docs writes-docs none not-reversible:no command removes a board row - board team board ls
57
+ cmd change ledger change status <id> [--json] --json status - change spec ledger - read-only none idempotent - change team change status cli-help
58
+ cmd thread ledger thread <agent> [<message>] [--from <sender>] [--re <n>] --from --re - - ledger docs writes-docs none not-reversible:the thread is append-only - thread team thread dev "a decision with its reason"
59
+ cmd report ledger report <ID> <agent> [--force] --force - - ledger gate docs writes-docs none not-reversible:the report file stays - report team report P1 dev
60
+ cmd add-agent seats add-agent <a> [--register] [--create] [--no-install] [--print] --register --create --no-install --print - - seat worktree worktree writes-worktree none not-reversible:the branch and the worktree stay until you remove them - add-agent team add-agent dev
61
+ cmd dispatch seats dispatch <a> <ID> <task-file> [--model <model>] [--branch <name>] [--fresh] [--allow-overflow] [--print] --model --branch --fresh --allow-overflow --print - - seat brief worktree task-branch gate docs state starts-process none not-reversible:the seat's session and its branch are its own history - dispatch team dispatch dev P1 docs/team/tasks/P1-first-task.md --branch task/P1-first-task
62
+ cmd say seats say <a> <message> [--now] --now - - seat knock docs state writes-docs none not-reversible:the queue keeps what was already delivered - say team say dev "the gate is green, please open the PR"
63
+ cmd notify seats notify <a> <message> [--from <sender>] --from - - seat pulse docs state writes-docs none not-reversible:the inbox line stays - notify team notify pm "P1 delivered, please review"
64
+ cmd draft seats draft [pm] ;; draft send <file> [--now] --now send - seat state writes-state none not-reversible:the delivered text is in the queue - draft team draft send /tmp/note.md
65
+ cmd outbox seats outbox [list] ;; outbox flush [--now] ;; outbox drop <n|all> --now list flush drop - knock state writes-state none idempotent - outbox team outbox list
66
+ cmd reply seats reply list ;; reply show <slug> ;; reply post --from <sender> --title <title> [--stdin] --from --title --stdin list show post - ledger state writes-state none not-reversible:the reply body is kept - reply team reply post --from pm --title "decision"
67
+ cmd pulse patrol pulse up|down|restart|status|logs [--print] --print up down restart status logs watchdog watchdog-status install-watchdog uninstall-watchdog pm pulse knock - starts-process none not-reversible:the window that was started is gone once it stops - pulse team pulse status
68
+ cmd monitor patrol monitor [--once] [--print|--json] [--width <N>] [--height <N>] [--interval <N>] [--events <K>] [--no-pulse] --once --print --json --width --height --interval --events --no-pulse - - pulse state writes-state none not-reversible:every run appends its own bookkeeping line - monitor team monitor --print --once
69
+ cmd watch patrol watch [--once] [--interval <N>] [--ui] --once --interval --ui - - pulse state writes-state none not-reversible:every tick appends to the patrol log - watch team watch --once
70
+ cmd standby patrol standby on [--reason <text>] ;; standby off ;; standby status --reason on off status - pm pulse state writes-state none not-reversible:the state it writes is a record of when it was set - standby team standby on --reason "waiting for the user"
71
+ cmd up patrol up [--agents] [--fresh-pm] [--print] --agents --fresh-pm --print - - pm seat state starts-process none not-reversible:the PM session it starts keeps its own history - up team up
72
+ cmd resume patrol resume [--agent <a>] [--all] [--dry-run] --agent --all --dry-run - - seat pm state starts-process none not-reversible:a resumed seat continues in its own session - resume team resume --all
73
+ cmd meeting peers meeting open <slug> --with <peer> --topic <text> [--ttl <hours>] [--yes] ;; meeting say <slug> --intent <intent> <message> [--knock] ;; meeting read <slug> [--since <n>] [--peek] ;; meeting list [--all] ;; meeting inbox ;; meeting agree <slug> <option> [--note <text>] ;; meeting close <slug> --with --topic --ttl --yes --intent --knock --since --peek --all --note open say read list inbox agree close propose peer knock help - pm meetings writes-meetings needs-yes:TEAM_CONFIRM_WRITES not-reversible:the shared transcript is the record of what was said - meeting team meeting open rename --with other:pm --topic "rename the interface"
74
+ cmd review finish review <ID> --dir <checkout> [--no-gates] [--strong] [--allow-unresolved-branch] --dir --no-gates --strong --allow-unresolved-branch - - gate ledger worktree docs writes-docs none not-reversible:the review record stays - review team review P1 --dir /tmp/P1-checkout
75
+ cmd close finish close <ID> - - - ledger seat docs state writes-docs none not-reversible:the board row keeps the final status - close team close P1
76
+ cmd teardown finish teardown [--agent <a>] [--all] [--purge] [--force] [--register] --agent --all --purge --force --register - - seat worktree worktree writes-worktree none not-reversible:the worktree is gone; the branch stays - teardown team teardown --agent dev
77
+ cmd smoke finish smoke [--select <sections>] --select - test gate - read-only none idempotent - smoke team smoke --select 51
78
+ cmd perf finish perf [--host] --host - - gate - read-only none idempotent - perf team perf --host
79
+ cmd merge finish merge - - - ledger - read-only none idempotent - merge team merge
80
+ cmd pr finish pr - - - ledger - read-only none idempotent - pr team pr
81
+ cmd gh finish gh - - - ledger - read-only none idempotent - gh team gh
82
+ cmd gl finish gl - - - ledger - read-only none idempotent - gl team gl
83
+ cmd mark-loaded versions mark-loaded [--version <X>] --version - - gate state writes-state none idempotent - mark-loaded team mark-loaded --version 0.2.0
84
+ cmd version versions version [--check] --check - - gate - read-only none idempotent - version team version --check
85
+ cmd changelog versions changelog [--since <X>] --since - - - - read-only none idempotent - changelog team changelog
86
+ cmd reload versions reload [--done] --done - - gate state writes-state none not-reversible:every request leaves its own record - reload team reload
@@ -0,0 +1,503 @@
1
+ # teamsmith · help prose (English) — the source language.
2
+ #
3
+ # Key scheme (one row per key, tab separated):
4
+ # menu.<x> the level-0 menu's own lines
5
+ # group.<id>.<x> a group's title and its one-sentence purpose
6
+ # cmd.<name>.<x> a command page's prose: title, what, when, example, read, write, see,
7
+ # the optional effect/auth/undo extra sentences, and arg.<flag> per argument
8
+ # term.<id>.def a concept definition (the menu and every page repeat these verbatim)
9
+ # part.<id>.title a labelled part of a command page
10
+ # claim.<x> the sentence a declared effect/authorization/undo value renders as
11
+ #
12
+ # Placeholders the values may carry — the closed set is declared in scripts/lib/cmd-help.sh
13
+ # (TEAM_HELP_PLACEHOLDERS); any other braced token fails the render: {project} {meeting_ttl}
14
+ # {token} {sub} {cmd} {undo_cmd}
15
+ # Values must not contain tabs or newlines; a value in another table is the fallback for a missing key.
16
+ menu.lead teamsmith turns one git repository into a small team: a PM agent that plans, writes briefs and verifies work, and worker agents that implement in their own worktrees. Every promise it prints is checked by its own gate.
17
+ menu.groups Groups
18
+ menu.deeper `team help <group>` lists a group's commands; `team help <command>` prints one command's own page.
19
+ group.start.title First run
20
+ group.start.purpose Set a project up and check that the ground can carry it.
21
+ group.observe.title Looking around
22
+ group.observe.purpose Seats, capacity, the ledger view and the machine-readable paths.
23
+ group.ledger.title The ledger
24
+ group.ledger.purpose The written record the team works from.
25
+ group.seats.title Handing out work
26
+ group.seats.purpose Give one brief to one seat, and talk to that seat.
27
+ group.patrol.title The patrol
28
+ group.patrol.purpose The metronome that wakes the PM, and the windows it runs in.
29
+ group.peers.title Other projects
30
+ group.peers.purpose Peer talks with another project's PM.
31
+ group.finish.title Verification and wrap-up
32
+ group.finish.purpose Verify a delivery, wrap up, and run the tool's own suites.
33
+ group.versions.title Versions
34
+ group.versions.purpose Which skill version is loaded, and what changed.
35
+ part.usage.title Usage
36
+ part.what.title What it does
37
+ part.when.title When to use it
38
+ part.arguments.title Arguments
39
+ part.example.title Example
40
+ part.read.title Reads
41
+ part.write.title Writes
42
+ part.aliases.alias this is an older name of `{cmd}`
43
+ refuse.unknown `{token}` is not a command or a group
44
+ refuse.hint run `team help` for the menu, `team help <group>` for a group's commands and `team help <command>` for one command
45
+ refuse.sub `{sub}` is not a subcommand of `{cmd}`
46
+ part.side-effects.title Side effects
47
+ part.authorization.title Authorization
48
+ part.undo.title Undo
49
+ part.concepts.title Concepts
50
+ part.arguments.none this command takes no flags
51
+ part.concepts.none this command needs none of the listed terms
52
+ part.see.title See also
53
+ part.sep :
54
+ claim.list-sep ,
55
+ claim.extra-sep ,
56
+ claim.undo.reason-prefix because
57
+ part.aliases.title Aliases
58
+ part.aliases.note older names of this command
59
+ part.start.title Start here
60
+ claim.effect.read-only it only reads; nothing outside your terminal changes
61
+ claim.effect.starts-process it starts a process
62
+ claim.effect.writes it writes
63
+ claim.effect.and-writes and it writes
64
+ claim.auth.none no extra authorization is needed
65
+ claim.auth.needs-yes it needs --yes
66
+ claim.auth.when only when the project sets
67
+ claim.undo.idempotent running it again changes nothing
68
+ claim.undo.undo-by `team {undo_cmd}` puts it back
69
+ claim.undo.not-reversible not reversible
70
+ claim.undo.reason because
71
+ face.state the state directory
72
+ face.docs the team ledger
73
+ face.config the project contract
74
+ face.worktree worktrees and branches
75
+ face.skills the skill copy under .pi/skills
76
+ face.meetings the shared meeting area
77
+ term.pm.def A PM is the agent that owns the project: it writes the briefs, dispatches the seats, verifies what comes back and merges it. There is exactly one PM per project.
78
+ term.seat.def A seat is one worker agent. It has its own tmux window, its own git worktree and its own session, so two seats never edit the same files.
79
+ term.worktree.def A worktree is a second checkout of the same repository on its own branch, so a seat can write files while the PM keeps working in the main checkout.
80
+ term.task-branch.def A task branch is the branch a seat's worktree is on. It is named after the task, and it is the evidence of which work belongs to which task.
81
+ term.brief.def A brief is the task file under the team's tasks directory. It is the single source of scope and acceptance commands for one task.
82
+ term.category.def The category of a brief is the word after `category:` in its header. The project maps each category to a model, so the category decides which model the seat gets.
83
+ term.change.def A change is a proposal under the project's spec directory that groups the specs a piece of work touches, with its own tasks and its own verification.
84
+ term.spec.def A spec is the written contract of one capability: what must hold, as requirements with scenarios. The gate validates the specs, so a spec that does not hold is red.
85
+ term.gate.def A gate is the project's own check suite. Green means the checks really ran on this tree; it is evidence only because the same gate fails when the work is broken.
86
+ term.ledger.def The ledger is the team's written record: the board, the briefs, the threads, the reports and the review records. Agents append to it; the PM owns it.
87
+ term.pulse.def The pulse is the patrol that wakes the PM on an interval, but only when there is pending work. It runs as a window in the same session.
88
+ term.knock.def A knock is the short notification that tells a window there is something to read. It never carries the work itself; the work is in a file.
89
+ term.yes.def `--yes` is the explicit authorization a command needs before it changes shared or remote state. Without it the command refuses and writes nothing.
90
+ cmd.help.title print the menu, a group page or one command's page
91
+ cmd.help.what Prints the help surface: the entry menu, a group's list of commands, or one command's own page. The text comes from one machine-readable command manifest, so the menu, the group pages and the command pages can never drift apart.
92
+ cmd.help.when Use it when you know the name of a group or a command and want to read what it does, what it reads and writes, and whether it needs authorization. The same page answers when you ask that command for help.
93
+ cmd.help.example team help dispatch
94
+ cmd.help.read the command manifest and the two language tables
95
+ cmd.help.write nothing
96
+ cmd.help.see `team version`, `team changelog`
97
+ cmd.bootstrap.title set up a whole project in one command
98
+ cmd.bootstrap.what Initialises the project and everything that makes it dispatchable: the contract, the document skeleton, the protocol section in the agents file, the skill copy under `.pi/skills`, one worktree per seat and the patrol window. It is idempotent, so running it again repairs what is missing instead of starting over.
99
+ cmd.bootstrap.when Use it once on a fresh checkout, before the first dispatch. Come back to it after a version upgrade, or when a seat's worktree, the protocol section or the patrol window went missing.
100
+ cmd.bootstrap.example team bootstrap --agents "dev verify" --task-models "code=provider/model" --pm-model "provider/strong"
101
+ cmd.bootstrap.read the repository, the template skill
102
+ cmd.bootstrap.write the contract, the document skeleton, the protocol section, the skill copy, the worktrees and the state directory
103
+ cmd.bootstrap.see `team init`, `team doctor`
104
+ cmd.bootstrap.arg.--agents the seats to register, as one space separated list.
105
+ cmd.bootstrap.arg.--task-models the category to model map; a fresh project has no model to guess from, so it is required.
106
+ cmd.bootstrap.arg.--pm-model the model the PM itself runs on; the PM never borrows a worker model.
107
+ cmd.bootstrap.arg.--print diagnose and print the plan without writing anything.
108
+ cmd.init.title write the contract and the document skeleton
109
+ cmd.init.what Writes the project contract and the document skeleton, and copies the skill into the project (under `.pi/skills`) so the project keeps working when the machine's skill is upgraded. It is the step of `team bootstrap` that does not touch worktrees or windows.
110
+ cmd.init.when Use it when you want a project that is initialised but has no seats running yet, or when you are repairing only the contract and the skeleton.
111
+ cmd.init.example team init --no-skills --agents "dev verify" --task-models "code=provider/model"
112
+ cmd.init.read the templates that ship with the skill
113
+ cmd.init.write the contract and the document skeleton
114
+ cmd.init.see `team bootstrap`, `team doctor`
115
+ cmd.init.arg.--copy copy the skill instead of linking it, so the project does not follow skill updates.
116
+ cmd.init.arg.--no-skills write the contract and the skeleton but leave the skill copy alone.
117
+ cmd.init.arg.--force overwrite entries that already exist instead of reporting the conflict.
118
+ cmd.init.arg.--agents the seats to register, as one space separated list.
119
+ cmd.init.arg.--task-models the category to model map; required for a fresh project.
120
+ cmd.init.arg.--pm-model the model the PM itself runs on.
121
+ cmd.doctor.title check that the machine and the project can carry the team
122
+ cmd.doctor.what Checks the things every dispatch depends on: git, tmux, the agent launcher, the gate, the forge and the free capacity, and then the project's own contract and skeleton. It reports what is missing and what to run next.
123
+ cmd.doctor.when Use it after installing the skill, after a machine change, and whenever a dispatch refuses for a reason that does not look like the task's own.
124
+ cmd.doctor.example team doctor
125
+ cmd.doctor.read the project contract, the document skeleton and the machine
126
+ cmd.doctor.write nothing
127
+ cmd.doctor.see `team paths`, `team ps`
128
+ cmd.roster.title list the seats and what they are doing
129
+ cmd.roster.what Lists every seat with its window state, its branch, its dirty files and how far it is ahead of the protected branch. It answers whether a seat is running, and on which branch.
130
+ cmd.roster.when Use it before dispatching, when a message does not seem to arrive, or when you want to know which worktree is on which branch.
131
+ cmd.roster.example team roster
132
+ cmd.roster.read the contract, the seat records and git
133
+ cmd.roster.write nothing
134
+ cmd.roster.see `team status`, `team ps`
135
+ cmd.status.title the roster plus the task and report state
136
+ cmd.status.what Shows the seats together with the state of each task: which stage it is in, which agent owns it and whether a report or a review record exists. Given an id it shows that task alone.
137
+ cmd.status.when Use it at the start of a session and whenever you want one screen that answers what the team is doing and what is waiting for the PM.
138
+ cmd.status.example team status P1
139
+ cmd.status.read the board, the briefs, the reports and the seat records
140
+ cmd.status.write its own bookkeeping under the state directory
141
+ cmd.status.see `team digest`, `team roster`
142
+ cmd.ps.title capacity: whether the machine can carry one more seat
143
+ cmd.ps.what Reports memory, swap and the model concurrency limits with the seats that currently occupy them. It answers whether one more dispatch fits before the machine starts swapping.
144
+ cmd.ps.when Use it before dispatching a seat, and when a dispatch is refused for capacity.
145
+ cmd.ps.example team ps
146
+ cmd.ps.read the machine and the contract's concurrency limits
147
+ cmd.ps.write nothing
148
+ cmd.ps.see `team doctor`, `team dispatch`
149
+ cmd.bg.title list or stop the background jobs this project recorded
150
+ cmd.bg.what Lists the long jobs the project started in the background, with their process id, their start fingerprint and their command, and stops one of them by its record. A job is stopped only when the recorded process id and start time still match, so a recycled process id is not killed by mistake.
151
+ cmd.bg.when Use it when a background job is still running and you want to see it or take it out of the way.
152
+ cmd.bg.example team bg list
153
+ cmd.bg.read the background job records under the state directory
154
+ cmd.bg.write the background job records
155
+ cmd.bg.see `team ps`, `team monitor`
156
+ cmd.reap.title remove this project's orphan seat processes, by pid and on purpose
157
+ cmd.reap.what Lists the seat processes of this project whose tmux window is gone while the process is still alive, and removes the ones you name. Without `--yes` it only prints the plan and signals nothing. With `--yes` every target is re-verified immediately before it is signalled — still a seat of this project, still without a live pane, and the same process start time the plan recorded — and only then does it send SIGTERM, wait a bounded five seconds and, if the target is still alive, SIGKILL. Another project's processes are never named and never signalled.
158
+ cmd.reap.when Use it after the reading in `team ps` or `team status` names an orphan, or when the machine is short of memory and you want to know what still holds it.
159
+ cmd.reap.example team reap --orphans
160
+ cmd.reap.read the process table and this project's seat records
161
+ cmd.reap.write one audit line per signal, in `state/reap.log`
162
+ cmd.reap.see `team ps`, `team status`, `team bg`
163
+ cmd.reap.arg.--orphans the plan: every orphan of this project the census finds.
164
+ cmd.reap.arg.--yes the only authorization to signal anything; without it the command is a plan that signals nothing.
165
+ cmd.reap.auth `--yes` on this command is the only authorization: no configuration key, environment variable or inherited value turns a signal on.
166
+ cmd.reap.undo the signal cannot be undone; the plan, the re-verification before each signal and the audit line are the guard.
167
+ cmd.interrupt.title end one seat's running turn, with a reason and an audit line
168
+ cmd.interrupt.what Ends the turn a seat is running right now: it sends SIGTERM to that seat's own agent process — the pid proved from the seat's assignment record, its window, the pane and the process's own identity and start time — waits a bounded five seconds and sends SIGKILL only if the process is still alive. The disk state stays: the uncommitted files, the session file and the assignment record are untouched, and `team resume --agent <seat>` re-enters the recorded session. The reason is written into the seat's own thread and inbox before any signal, so the seat meets it at the step of its reading order that already names its thread. Without `--yes` it only prints the plan; a seat whose newest disk evidence is younger than the freshness window is refused unless `--force` says otherwise, and that override is recorded in the audit line.
169
+ cmd.interrupt.when Use it when a seat sits in one very long turn that never ends: a message to a seat is read at a turn boundary, so a message alone cannot reach it. Read `team ps` or `team status` first — a seat whose window is gone while the process lives belongs to `team reap`, and a seat with no process at all belongs to `team resume`.
170
+ cmd.interrupt.example team interrupt dev --reason "18h without a commit; the root cause is in the thread"
171
+ cmd.interrupt.read the seat's assignment record, its window, the process's own identity and start time, its session file and its worktree status
172
+ cmd.interrupt.write one entry in the seat's thread, one line in its inbox, and exactly one audit line in `state/interrupt.log`
173
+ cmd.interrupt.see `team reap`, `team resume`, `team ps`, `team status`
174
+ cmd.interrupt.arg.--reason the one line the seat must find: why its turn is being ended. Required; newlines and control characters are folded into that single line.
175
+ cmd.interrupt.arg.--force override the freshness refusal only: the seat is writing and you still want the turn ended. The audit line records the override.
176
+ cmd.interrupt.arg.--yes the only authorization to signal anything; without it the command is a plan that signals nothing and writes nothing.
177
+ cmd.interrupt.auth `--yes` on this command is the only authorization: no configuration key, environment variable or inherited value turns a signal on. A seat that is writing is refused rather than signalled, unless `--force` stands on the same command line.
178
+ cmd.interrupt.undo this command does not put the ended turn back; the thread entry, the inbox line and the audit line are the record, and `team resume --agent <seat>` is the way back into the same session.
179
+ cmd.digest.title one screen of what needs the PM
180
+ cmd.digest.what Collects the unhandled inbox items, the reports waiting for verification, the blocked seats and the task states into one short list. It is the PM's worklist rather than a status report.
181
+ cmd.digest.when Use it at the start of a PM turn, or when the patrol woke you and you want to know why.
182
+ cmd.digest.example team digest
183
+ cmd.digest.read the inbox, the board, the reports and the seat records
184
+ cmd.digest.write its own bookkeeping under the state directory
185
+ cmd.digest.see `team inbox`, `team status`
186
+ cmd.inbox.title read what the seats sent the PM
187
+ cmd.inbox.what Prints the inbox: the short lines seats leave when they finish a turn, each pointing at the report or the file that carries the work. Given a seat it prints only that seat's lines.
188
+ cmd.inbox.when Use it when the patrol knocked, or when you want to see what arrived since you last looked.
189
+ cmd.inbox.example team inbox dev
190
+ cmd.inbox.read the inbox files
191
+ cmd.inbox.write nothing
192
+ cmd.inbox.see `team digest`, `team thread`
193
+ cmd.paths.title print the resolved paths and session as data
194
+ cmd.paths.what Prints the paths and identities this invocation resolved: the project root, the main root, the document directory, the session, the agent windows and the state directory, as JSON.
195
+ cmd.paths.when Use it when you need to hand a path to another tool, or when a command resolved a different project than you expected.
196
+ cmd.paths.example team paths
197
+ cmd.paths.read the contract and the environment
198
+ cmd.paths.write nothing
199
+ cmd.paths.see `team doctor`, `team config list`
200
+ cmd.config.title read and write the project contract
201
+ cmd.config.what Reads and writes the project contract with validation, a fingerprint check and an audit line, and upgrades a contract written by an older version. `set` is the only writer, so a value never changes without a record of who changed it.
202
+ cmd.config.when Use `list` to see every knob and its default, `set` to change one knob, and `upgrade-models` when an older project still carries the retired model keys.
203
+ cmd.config.example team config list
204
+ cmd.config.read the contract and the audit log
205
+ cmd.config.write the contract and the audit log
206
+ cmd.config.see `team doctor`, `team bootstrap`
207
+ cmd.config.arg.--task-models the whole category to model map, used by the model upgrade.
208
+ cmd.config.arg.--pm-model the model the PM itself runs on, used by the model upgrade.
209
+ cmd.task.title write a task brief and put it on the board
210
+ cmd.task.what Creates the brief for one task from the template and adds its row to the board. The brief carries the header the dispatch reads: its id, its title, the branch, the category and the anchor that names the spec this work belongs to.
211
+ cmd.task.when Use it as the first step of every task, before the dispatch, so the seat has a scope and a set of acceptance commands to work from.
212
+ cmd.task.example team task P1 --title "First task" --category code --agent dev
213
+ cmd.task.read the board and the templates
214
+ cmd.task.write the brief and the board row
215
+ cmd.task.see `team board`, `team dispatch`
216
+ cmd.task.arg.--title the task's title; the brief's file name is derived from it.
217
+ cmd.task.arg.--category which category of work this is; the category decides the model the seat gets.
218
+ cmd.task.arg.--agent the seat the brief is meant for; without it the first seat in the roster is used.
219
+ cmd.task.arg.--deps the ids this task depends on, space separated.
220
+ cmd.task.arg.--issue the forge issue number this task came from, when there is one.
221
+ cmd.board.title read and write the board rows
222
+ cmd.board.what Manages the board: add a row, assign it to a seat, set its status, print one row, or list the whole board. The board is the PM's summary of where every task stands.
223
+ cmd.board.when Use it when a task moves between stages, when you want to see the whole board at once, or when a row needs correcting.
224
+ cmd.board.example team board set P1 wip
225
+ cmd.board.read the board
226
+ cmd.board.write the board
227
+ cmd.board.see `team task`, `team close`
228
+ cmd.board.arg.--allow-dup allow a row whose id already exists, for the rare case where two rows really are wanted.
229
+ cmd.change.title a change's readiness view
230
+ cmd.change.what Reads the change directory and the board and reports what is still missing before the change can be archived: its tasks, their stages, the seats assigned, the delta writers and the open blockers. It exits with success only when every task mapped to the change is finished.
231
+ cmd.change.when Use it when you want to know whether a change can be archived, and which task is still standing in the way.
232
+ cmd.change.example team change status cli-help
233
+ cmd.change.read the change directory, the briefs and the board
234
+ cmd.change.write nothing
235
+ cmd.change.see `team board`, `team review`
236
+ cmd.change.arg.--json print the same view as one JSON object, for another program to read.
237
+ cmd.thread.title append to a seat's thread
238
+ cmd.thread.what Appends a message to the thread of one seat and prints it back. The thread is append-only: it is where a decision and its reason are recorded so the next session can read them.
239
+ cmd.thread.when Use it whenever you send a seat a correction or a decision that the seat's next session must still be able to find.
240
+ cmd.thread.example team thread dev "the second half is out of scope; do the layout first"
241
+ cmd.thread.read the thread file
242
+ cmd.thread.write the thread file
243
+ cmd.thread.see `team say`, `team report`
244
+ cmd.thread.arg.--from who the message is from, when the writer is not the PM.
245
+ cmd.thread.arg.--re the title of the message this one answers.
246
+ cmd.report.title write a report skeleton for a task
247
+ cmd.report.what Creates the report file a seat fills in when it delivers: its sections follow the delivery protocol, and a report already in the branch is protected unless you force the rewrite.
248
+ cmd.report.when Use it at the start of a delivery, so the seat writes its evidence into a file that the PM and the independent verification can both read.
249
+ cmd.report.example team report P1 dev
250
+ cmd.report.read the templates and the existing report
251
+ cmd.report.write the report file
252
+ cmd.report.see `team review`, `team close`
253
+ cmd.report.arg.--force overwrite a report that already exists.
254
+ cmd.add-agent.title create or register a seat
255
+ cmd.add-agent.what Creates a seat's long-lived worktree and branch and, when asked, records it in the roster. It prints the git command it would run rather than running it, so the PM keeps ownership of every git operation.
256
+ cmd.add-agent.when Use it when a new seat joins the project, or when a seat's worktree was lost and has to be created again.
257
+ cmd.add-agent.example team add-agent dev
258
+ cmd.add-agent.read the contract, the roster and git
259
+ cmd.add-agent.write the worktree, the branch and the seat record
260
+ cmd.add-agent.see `team roster`, `team teardown`
261
+ cmd.add-agent.arg.--register also record the seat in the roster, through the audited writer.
262
+ cmd.add-agent.arg.--create create the worktree as well, instead of only printing the plan.
263
+ cmd.add-agent.arg.--no-install skip the step that installs the skill into the new worktree.
264
+ cmd.add-agent.arg.--print print what would happen without doing it.
265
+ cmd.dispatch.title hand one brief to one seat
266
+ cmd.dispatch.what Creates the seat's task branch, records the assignment and starts or resumes that seat's session in its own worktree. A first dispatch picks the model from the brief's category; dispatching the same task again reopens the recorded model and session instead of choosing new ones.
267
+ cmd.dispatch.when Use it once the brief exists and the seat is chosen. Run it again with the same id to continue an unfinished task, and with a new model and the fresh flag when the model must change.
268
+ cmd.dispatch.example team dispatch dev P1 docs/team/tasks/P1-first-task.md --branch task/P1-first-task
269
+ cmd.dispatch.read the brief, the contract, the board and the roster
270
+ cmd.dispatch.write the board row, the seat record and the worktree
271
+ cmd.dispatch.see `team resume`, `team review`, `team task`
272
+ cmd.dispatch.arg.--model use this model instead of the one the brief's category maps to.
273
+ cmd.dispatch.arg.--branch declare the task branch this dispatch expects; the worktree must be on it.
274
+ cmd.dispatch.arg.--fresh start a new session instead of reopening the recorded one; required whenever the model changes.
275
+ cmd.dispatch.arg.--allow-overflow dispatch even when the model's concurrency limit is already reached.
276
+ cmd.dispatch.arg.--print print the launch command without starting anything.
277
+ cmd.say.title send a seat one line
278
+ cmd.say.what Puts one line in front of a seat. If the seat's input box already holds a draft, the message is queued and delivered when the box is clear, so a person's half-written line is never overwritten.
279
+ cmd.say.when Use it for a short instruction or a status note. For a decision the seat's next session must still find, write it in the thread as well.
280
+ cmd.say.example team say dev "the gate is green, please open the pull request"
281
+ cmd.say.read the seat's window and the outbox
282
+ cmd.say.write the seat's inbox and the outbox
283
+ cmd.say.see `team notify`, `team outbox`, `team thread`
284
+ cmd.say.arg.--now deliver immediately, skipping the draft guard; the skip is recorded.
285
+ cmd.notify.title one line from a seat to the PM
286
+ cmd.notify.what Writes one line into the PM's inbox and knocks on the PM's window. The sender is resolved from the directory the command runs in, so a seat cannot claim to be the PM by typing a name.
287
+ cmd.notify.when Use it at the end of a turn to say that something is ready or that something is blocked.
288
+ cmd.notify.example team notify pm "P1 delivered, please review"
289
+ cmd.notify.read the seat records and the inbox
290
+ cmd.notify.write the PM's inbox and the patrol's knock record
291
+ cmd.notify.see `team say`, `team inbox`, `team digest`
292
+ cmd.notify.arg.--from the sender's name, for the rare case where the directory does not say it.
293
+ cmd.draft.title put a person's text into the queue
294
+ cmd.draft.what Opens a scratch window to write a message in, or sends the contents of a file, and queues the text for delivery. Queued text is delivered when the target's input box is clear, so nothing is typed over a draft someone is writing.
295
+ cmd.draft.when Use it when the text comes from you rather than from an agent, and when it is long enough that a single line would lose it.
296
+ cmd.draft.example team draft send /tmp/note.md
297
+ cmd.draft.read the draft file and the queue
298
+ cmd.draft.write the queue
299
+ cmd.draft.see `team outbox`, `team say`
300
+ cmd.draft.arg.--now deliver immediately instead of waiting for a clear input box.
301
+ cmd.outbox.title the delayed-delivery queue
302
+ cmd.outbox.what Lists what is waiting to be delivered, flushes it early, or drops entries. An entry appears here when a message could not be typed into a busy window, so nothing is lost and nothing is typed over a person's draft.
303
+ cmd.outbox.when Use it when a message seems not to have arrived, or when you want to look at the queue before it is delivered.
304
+ cmd.outbox.example team outbox list
305
+ cmd.outbox.read the queue
306
+ cmd.outbox.write the queue
307
+ cmd.outbox.see `team say`, `team draft`
308
+ cmd.outbox.arg.--now flush the queue by typing at once, skipping the input-box guard.
309
+ cmd.reply.title publish and read key replies
310
+ cmd.reply.what Publishes a reply body as its own file before it is sent, and lists or shows the replies already published. The body is taken from standard input, so the published text is the text that was sent.
311
+ cmd.reply.when Use it for a decision or an answer that should stay readable after the line that carried it has scrolled away.
312
+ cmd.reply.example team reply post --from pm --title "the interface is frozen"
313
+ cmd.reply.read the reply files
314
+ cmd.reply.write the reply file, the inbox and the queue
315
+ cmd.reply.see `team thread`, `team inbox`
316
+ cmd.reply.arg.--from who the reply is from.
317
+ cmd.reply.arg.--title the title the published reply is filed under.
318
+ cmd.reply.arg.--stdin take the body from standard input instead of the command line.
319
+ cmd.pulse.title the patrol that wakes the PM
320
+ cmd.pulse.what Runs the patrol: on an interval it asks whether any work is waiting for the PM and wakes it only when the answer is yes. It runs as a window in the same session, and it can be started, stopped, restarted, inspected and read.
321
+ cmd.pulse.when Use it at the start of a session, so the PM is woken by work rather than by memory. Check it when the PM was not woken although work was waiting.
322
+ cmd.pulse.example team pulse status
323
+ cmd.pulse.read the state directory, the board and the inboxes
324
+ cmd.pulse.write the state directory and the session's windows
325
+ cmd.pulse.see `team watch`, `team monitor`, `team standby`
326
+ cmd.pulse.arg.--print print the plan and the command instead of starting or stopping anything.
327
+ cmd.monitor.title the status panel
328
+ cmd.monitor.what Draws the team's status screen: what every seat is doing, what needs the PM and what the machine still has room for. In a terminal it is an interactive screen; when its output is a pipe it prints text, and it can print a machine-readable object instead.
329
+ cmd.monitor.when Use it to watch a running team, and to see the same view the patrol uses when it decides whether to wake the PM.
330
+ cmd.monitor.example team monitor --print --once
331
+ cmd.monitor.read the state directory, the board and the seat records
332
+ cmd.monitor.write its own bookkeeping under the state directory
333
+ cmd.monitor.see `team pulse`, `team watch`, `team status`
334
+ cmd.monitor.arg.--once draw the screen once and exit, instead of refreshing it.
335
+ cmd.monitor.arg.--print print plain text instead of the interactive screen.
336
+ cmd.monitor.arg.--json print one machine-readable object.
337
+ cmd.monitor.arg.--width pretend the terminal is this many columns wide.
338
+ cmd.monitor.arg.--height pretend the terminal is this many rows tall.
339
+ cmd.monitor.arg.--interval refresh every this many seconds.
340
+ cmd.monitor.arg.--events keep this many recent activity lines in the panel.
341
+ cmd.monitor.arg.--no-pulse look only; do not run the patrol on the way.
342
+ cmd.watch.title run one patrol tick in the foreground
343
+ cmd.watch.what Runs the patrol once, in the foreground, and prints what it decided: whether there is pending work, and whether the PM was woken. It is the same decision the patrol window makes on its own interval.
344
+ cmd.watch.when Use it when you want to see the patrol's reasoning right now, without waiting for the next tick.
345
+ cmd.watch.example team watch --once
346
+ cmd.watch.read the state directory, the board and the inboxes
347
+ cmd.watch.write the state directory, the patrol log and the session's windows
348
+ cmd.watch.see `team pulse`, `team monitor`
349
+ cmd.watch.arg.--once run a single tick and exit.
350
+ cmd.watch.arg.--interval repeat every this many seconds instead of running once.
351
+ cmd.watch.arg.--ui show the interactive panel instead of the text output.
352
+ cmd.standby.title tell the patrol that no one is needed
353
+ cmd.standby.what Records that the PM stands down: the patrol stops waking it, while everything that arrives is still written to the patrol log. A human turns it back on, so an agent cannot silently wake itself up again.
354
+ cmd.standby.when Use it when the work is blocked on a person, or when the backlog should wait for a human rather than for the PM.
355
+ cmd.standby.example team standby on --reason "waiting for the user to pick an interface"
356
+ cmd.standby.read the state directory and the patrol log
357
+ cmd.standby.write the state directory
358
+ cmd.standby.see `team pulse`, `team digest`
359
+ cmd.standby.arg.--reason why the PM is standing down; it is written down so the next session knows.
360
+ cmd.up.title build the stage and start the PM
361
+ cmd.up.what Creates the project's session and windows if they are missing and starts the PM in its own window, continuing the project's previous conversation unless a fresh one is asked for. It starts the PM only; the seats are not touched.
362
+ cmd.up.when Use it after a restart, or when the session was lost and the team should keep working in the same project.
363
+ cmd.up.example team up
364
+ cmd.up.read the contract, the state directory and the session
365
+ cmd.up.write the session's windows and the state directory
366
+ cmd.up.see `team resume`, `team pulse`, `team doctor`
367
+ cmd.up.arg.--agents also resume the seats that have work but no window.
368
+ cmd.up.arg.--fresh-pm start a new PM conversation instead of continuing the previous one; the old record stays on disk.
369
+ cmd.up.arg.--print print the launch decision and the command without starting anything.
370
+ cmd.resume.title bring stopped seats back
371
+ cmd.resume.what Finds the seats that have an unfinished task but no live window and starts them again, with the same brief, the same branch and the same model and session they were dispatched with.
372
+ cmd.resume.when Use it after a restart or a crash, when a seat stopped in the middle of its task.
373
+ cmd.resume.example team resume --all
374
+ cmd.resume.read the seat records, the board and the briefs
375
+ cmd.resume.write the seat records and the session's windows
376
+ cmd.resume.see `team dispatch`, `team pulse`
377
+ cmd.resume.arg.--agent resume this one seat instead of every stopped seat.
378
+ cmd.resume.arg.--all resume every seat with unfinished work.
379
+ cmd.resume.arg.--dry-run print what would be resumed, without starting anything.
380
+ cmd.meeting.title talk to another project's PM
381
+ cmd.meeting.what Runs a meeting between this project and another: each side speaks into one shared transcript, and a proposal is only settled when both sides agree to it themselves. It never writes into the other project's repository, and it has no way to give an order: a human is the only one who can carry a decision across projects.
382
+ cmd.meeting.when Use it for an interface between two projects, for advice with evidence, or to report a problem that the other side has to know about. It is not a channel for commanding another team.
383
+ cmd.meeting.auth the project asks for confirmation on writes to shared state (`TEAM_CONFIRM_WRITES`), so without it the refusal is the tool own
384
+ cmd.meeting.example team meeting open rename --with other:pm --topic "rename the interface"
385
+ cmd.meeting.read the shared meeting area and this project's session
386
+ cmd.meeting.write the shared meeting area
387
+ cmd.meeting.see `team thread`, `team say`
388
+ cmd.meeting.arg.--with the other project, optionally as project:session, this meeting is with.
389
+ cmd.meeting.arg.--topic one line saying what the meeting is about.
390
+ cmd.meeting.arg.--ttl how many hours the meeting stays open; the default is {meeting_ttl} hours, and an expired meeting can still be read.
391
+ cmd.meeting.arg.--yes the explicit authorization this write to shared state needs.
392
+ cmd.meeting.arg.--intent what kind of speech this is: information, a question, a report, a proposal or a request.
393
+ cmd.meeting.arg.--knock also knock on the other side's window.
394
+ cmd.meeting.arg.--since read only what was said after this number.
395
+ cmd.meeting.arg.--peek read without marking the transcript as read.
396
+ cmd.meeting.arg.--all include the meetings that are already closed.
397
+ cmd.meeting.arg.--note one line recording what your side does with the agreement.
398
+ cmd.review.title verify a delivery on an independent checkout
399
+ cmd.review.what Checks the delivery out into its own detached worktree, runs the project's gate there and writes the record of what was run and what came out. It refuses a dirty tree, so the record always points at a commit.
400
+ cmd.review.when Use it after a seat delivers and before the branch is merged, so the decision rests on a run that did not happen in the author's own worktree.
401
+ cmd.review.example team review P1 --dir /tmp/P1-checkout
402
+ cmd.review.read the branch, the gate and the delivery report
403
+ cmd.review.write the review record and the independent worktree
404
+ cmd.review.see `team close`, `team report`
405
+ cmd.review.arg.--dir the independent checkout the branch is verified in.
406
+ cmd.review.arg.--no-gates skip the gate run and record only the checks that do not need it.
407
+ cmd.review.arg.--strong run the stricter gate as well.
408
+ cmd.review.arg.--allow-unresolved-branch proceed even though the branch name could not be resolved on the remote.
409
+ cmd.close.title close a task
410
+ cmd.close.what Finishes a task: it checks that the evidence is really there, updates the board and closes the seat's window, while the worktree and the branch stay where they are. The work itself is merged by a person or by the PM with git, not by this command.
411
+ cmd.close.when Use it after the verification passed and the branch is in the protected branch.
412
+ cmd.close.example team close P1
413
+ cmd.close.read the board, the review record and the branches
414
+ cmd.close.write the board, the state directory and the session's windows
415
+ cmd.close.see `team review`, `team teardown`
416
+ cmd.teardown.title take a seat's window and worktree away
417
+ cmd.teardown.what Closes a seat's window and, when asked, removes its worktree. The branch is kept unless the purge is asked for, so the work a seat did can still be found and merged afterwards.
418
+ cmd.teardown.when Use it when a seat is done with a project, when the roster shrinks, or when a worktree is corrupt and has to be built again.
419
+ cmd.teardown.example team teardown --agent dev
420
+ cmd.teardown.read the roster, the seat records and git
421
+ cmd.teardown.write the worktree, the seat record and the session's windows
422
+ cmd.teardown.see `team add-agent`, `team roster`
423
+ cmd.teardown.arg.--agent the seat to tear down.
424
+ cmd.teardown.arg.--all tear down every seat in the roster.
425
+ cmd.teardown.arg.--purge remove the worktree as well, not only the window.
426
+ cmd.teardown.arg.--force go ahead even when something about the seat looks unexpected.
427
+ cmd.teardown.arg.--register remove the seat from the roster as well, through the audited writer.
428
+ cmd.smoke.title run the tool's own correctness suite
429
+ cmd.smoke.what Runs the project's correctness suite for teamsmith itself, in throwaway repositories under the temporary directory: the suite never touches the project it is called from.
430
+ cmd.smoke.when Use it after changing the tool, and when a gate result needs to be reproduced by hand.
431
+ cmd.smoke.example team smoke --select 51
432
+ cmd.smoke.read the tool's own tests
433
+ cmd.smoke.write only throwaway directories under the temporary directory
434
+ cmd.smoke.see `team perf`, `team doctor`
435
+ cmd.smoke.arg.--select run only the named sections, as a comma separated list of section keys.
436
+ cmd.perf.title run the performance decision
437
+ cmd.perf.what Runs the performance suite and decides whether the interactive panel still meets its budgets. It prefers the pinned reference environment and says so plainly when it is measuring the host instead.
438
+ cmd.perf.when Use it before a release, and after a change that could slow the panel down.
439
+ cmd.perf.example team perf --host
440
+ cmd.perf.read the tool's own tests and the machine
441
+ cmd.perf.write only throwaway directories under the temporary directory
442
+ cmd.perf.see `team smoke`, `team monitor`
443
+ cmd.perf.arg.--host measure the host and mark the result as not coming from the reference environment.
444
+ cmd.merge.title the removed merge shortcut
445
+ cmd.merge.what This name used to wrap a git merge and a pull request. It is now refused with the real commands to run instead, because owning the merge means a person and the PM run git themselves.
446
+ cmd.merge.when Run it only to read the route it prints: which git command merges a branch, and in which order a pull request and the local branch are handled.
447
+ cmd.merge.example team merge
448
+ cmd.merge.read nothing
449
+ cmd.merge.write nothing
450
+ cmd.merge.see `team close`, `team pr`
451
+ cmd.pr.title the removed pull-request shortcut
452
+ cmd.pr.what This name used to open and merge a pull request. It is now refused with the real commands to run instead, so the forge is driven by its own tool rather than wrapped by the skill.
453
+ cmd.pr.when Run it only to read the route it prints.
454
+ cmd.pr.example team pr
455
+ cmd.pr.read nothing
456
+ cmd.pr.write nothing
457
+ cmd.pr.see `team merge`, `team gh`
458
+ cmd.gh.title the removed GitHub passthrough
459
+ cmd.gh.what This name used to pass arguments straight to the GitHub command line tool. It is now refused with the route to the real tool and to the token file the project uses.
460
+ cmd.gh.when Run it only to read the route it prints.
461
+ cmd.gh.example team gh
462
+ cmd.gh.read nothing
463
+ cmd.gh.write nothing
464
+ cmd.gh.see `team gl`, `team pr`
465
+ cmd.gl.title the removed GitLab passthrough
466
+ cmd.gl.what This name used to pass arguments straight to the GitLab command line tool. It is now refused with the route to the real tool and to the token file the project uses.
467
+ cmd.gl.when Run it only to read the route it prints.
468
+ cmd.gl.example team gl
469
+ cmd.gl.read nothing
470
+ cmd.gl.write nothing
471
+ cmd.gl.see `team gh`, `team pr`
472
+ cmd.mark-loaded.title record which skill version this session loaded
473
+ cmd.mark-loaded.what Writes down the skill version this session is working with, so the tool can tell a stale session from a fresh one.
474
+ cmd.mark-loaded.when Use it once at the start of a session, and after a reload.
475
+ cmd.mark-loaded.example team mark-loaded --version 0.2.0
476
+ cmd.mark-loaded.read the installed skill
477
+ cmd.mark-loaded.write the loaded-version record
478
+ cmd.mark-loaded.see `team version`, `team reload`
479
+ cmd.mark-loaded.arg.--version record this version instead of the one found on disk.
480
+ cmd.version.title which version is on disk, in the skill and in this session
481
+ cmd.version.what Prints the version of the installed skill, the version written in the skill file, the changelog's head and the version this session loaded. With the check argument it gives a verdict instead of a list.
482
+ cmd.version.when Use it when a command behaves differently from what this session's skill describes, or at the start of a long session.
483
+ cmd.version.example team version --check
484
+ cmd.version.read the installed skill, the changelog and the session record
485
+ cmd.version.write nothing
486
+ cmd.version.see `team changelog`, `team reload`, `team mark-loaded`
487
+ cmd.version.arg.--check answer whether this session's skill is current instead of printing every version.
488
+ cmd.changelog.title what changed in the skill
489
+ cmd.changelog.what Prints the skill's change history, newest first, optionally only what came after a given version.
490
+ cmd.changelog.when Use it after an upgrade, to see what behaviour changed since the version you know.
491
+ cmd.changelog.example team changelog
492
+ cmd.changelog.read the installed skill's changelog
493
+ cmd.changelog.write nothing
494
+ cmd.changelog.see `team version`, `team reload`
495
+ cmd.changelog.arg.--since print only the entries newer than this version.
496
+ cmd.reload.title ask the agent to reload the skill
497
+ cmd.reload.what Leaves a request that the running agent reloads this skill, so a long session stops using the files it read at its start. The reload itself happens in the agent, not here.
498
+ cmd.reload.when Use it after the skill was upgraded, when you want the current session to see the new files.
499
+ cmd.reload.example team reload
500
+ cmd.reload.read the reload request record
501
+ cmd.reload.write the reload request record
502
+ cmd.reload.see `team version`, `team mark-loaded`
503
+ cmd.reload.arg.--done mark the request as handled, after the reload really happened.