@moberg_hr/work-tree 2.1.0 → 2.2.1

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 (186) hide show
  1. package/README.md +232 -378
  2. package/dist/{answer-EGNJ2KYK.js → answer-OF2QNF4A.js} +6 -6
  3. package/dist/{attach-64ILZMTD.js → attach-PAFAZ2EH.js} +9 -9
  4. package/dist/bin.js +2 -2
  5. package/dist/{block-H74FYSLK.js → block-3LEG4LKJ.js} +6 -6
  6. package/dist/{broadcast-WRHZWOQN.js → broadcast-ZDIL7UBP.js} +3 -3
  7. package/dist/{catchup-7QBOC5JJ.js → catchup-ZZ5HZJIT.js} +8 -8
  8. package/dist/{chunk-E35NZVPX.js → chunk-2GX3IOSV.js} +15 -2
  9. package/dist/chunk-2GX3IOSV.js.map +1 -0
  10. package/dist/{chunk-A3M5WTVC.js → chunk-3GAYLP7W.js} +4 -4
  11. package/dist/{chunk-MXIFBNCV.js → chunk-453EGT2R.js} +11 -7
  12. package/dist/chunk-453EGT2R.js.map +1 -0
  13. package/dist/{chunk-NPVMYGT7.js → chunk-46VAWZZX.js} +2 -2
  14. package/dist/{chunk-3D7MELCW.js → chunk-4CVUV2SE.js} +2 -2
  15. package/dist/{chunk-3NPEMTQT.js → chunk-62C3CJ5M.js} +2 -2
  16. package/dist/chunk-6MLU6MNS.js +9 -0
  17. package/dist/{chunk-YEEDWV4H.js → chunk-77SVSNME.js} +4 -4
  18. package/dist/{chunk-723C3D5X.js → chunk-C7OK4XEZ.js} +58 -9
  19. package/dist/chunk-C7OK4XEZ.js.map +1 -0
  20. package/dist/{chunk-ATBH7QW3.js → chunk-DLSAAP3S.js} +2 -2
  21. package/dist/{chunk-SSVVCHJB.js → chunk-EDAOG56H.js} +3 -3
  22. package/dist/{chunk-2LIVAJLK.js → chunk-EXJYPF64.js} +3 -3
  23. package/dist/{chunk-37I2GFXK.js → chunk-INVFNKU7.js} +4 -4
  24. package/dist/{chunk-DXHZWRVE.js → chunk-ISZM5C22.js} +15 -9
  25. package/dist/chunk-ISZM5C22.js.map +1 -0
  26. package/dist/{chunk-S45H7N6X.js → chunk-KSVZVHTI.js} +6 -6
  27. package/dist/{chunk-S45H7N6X.js.map → chunk-KSVZVHTI.js.map} +1 -1
  28. package/dist/{chunk-RQE5UOIW.js → chunk-KTFDSJUD.js} +16 -1
  29. package/dist/chunk-KTFDSJUD.js.map +1 -0
  30. package/dist/{chunk-ONEXQW7Q.js → chunk-KWU35O5S.js} +3 -3
  31. package/dist/{chunk-U4UB4LG6.js → chunk-LBQR7KTC.js} +2 -2
  32. package/dist/{chunk-DXAIGNWF.js → chunk-LGDECE7V.js} +3 -3
  33. package/dist/{chunk-2QZ3RZOY.js → chunk-M4YXBQZN.js} +5 -5
  34. package/dist/{chunk-OOCMPS5L.js → chunk-MRXD2NSO.js} +2 -2
  35. package/dist/{chunk-6OG3W3PY.js → chunk-NBI2INQS.js} +3 -3
  36. package/dist/{chunk-MLTMXVLD.js → chunk-OE34YZFO.js} +2 -2
  37. package/dist/{chunk-POTGMLPV.js → chunk-OIQY4OKO.js} +2 -2
  38. package/dist/{chunk-OND6YRWZ.js → chunk-R4M5DDSN.js} +4 -4
  39. package/dist/{chunk-QXDBVVSC.js → chunk-RK6NHIL6.js} +2 -2
  40. package/dist/chunk-TN2TXRHS.js +249 -0
  41. package/dist/chunk-TN2TXRHS.js.map +1 -0
  42. package/dist/{chunk-4Y35ABCO.js → chunk-TROTIHD5.js} +3 -3
  43. package/dist/{chunk-XILMZRNS.js → chunk-U4YUMSJY.js} +3 -3
  44. package/dist/{chunk-KFSLF65S.js → chunk-U5V5J237.js} +6 -6
  45. package/dist/{chunk-LCSWFGIM.js → chunk-UDOXLAE7.js} +2 -2
  46. package/dist/{chunk-MI3PS2SH.js → chunk-UOSZFFNY.js} +2 -2
  47. package/dist/{chunk-6DWPIK7D.js → chunk-X6VBITXV.js} +4 -4
  48. package/dist/{chunk-PYOSW6X5.js → chunk-XIL4QZFW.js} +3 -3
  49. package/dist/{chunk-HY566NNR.js → chunk-XLP24AH5.js} +45 -45
  50. package/dist/{chunk-QX4LFFNS.js → chunk-ZR2KWY6V.js} +2 -2
  51. package/dist/{chunk-4MXWNDH7.js → chunk-ZVJEWMJN.js} +39 -1
  52. package/dist/chunk-ZVJEWMJN.js.map +1 -0
  53. package/dist/{cleanup-YSVZAGJF.js → cleanup-W5RGZ3Q6.js} +17 -15
  54. package/dist/{cleanup-YSVZAGJF.js.map → cleanup-W5RGZ3Q6.js.map} +1 -1
  55. package/dist/{cli-XT4AS3M2.js → cli-3BI62MNT.js} +3 -3
  56. package/dist/{config-GQRUETZ6.js → config-MR7UZCST.js} +4 -4
  57. package/dist/{diff-L3TWGBA4.js → diff-URDY6YMT.js} +7 -7
  58. package/dist/{digest-R52JZ3AK.js → digest-D4FEZNLU.js} +6 -6
  59. package/dist/{fork-MCPMOGS5.js → fork-7EUVNEB7.js} +15 -15
  60. package/dist/{hook-S64C4G2C.js → hook-6AD3FRKZ.js} +6 -6
  61. package/dist/{hydrate-G5AMKHRD.js → hydrate-ZJZPM6YW.js} +3 -3
  62. package/dist/{init-PCZCSRZI.js → init-LWL4WVSJ.js} +4 -4
  63. package/dist/{install-skills-Z76FLXOU.js → install-skills-TQVWZDUD.js} +3 -3
  64. package/dist/install-skills-bin.js +2 -2
  65. package/dist/{move-MMGOA7MV.js → move-URV7XIDT.js} +7 -7
  66. package/dist/{note-WVKK65IH.js → note-S6EGTEIL.js} +5 -5
  67. package/dist/{overlaps-REVVBZCX.js → overlaps-4T7NLTJH.js} +5 -5
  68. package/dist/{pin-NRSD2ZT7.js → pin-KKQZ3AR6.js} +5 -5
  69. package/dist/{pr-JYOI7LCK.js → pr-5ZILTVDM.js} +5 -5
  70. package/dist/{prune-AGZ24MPD.js → prune-OK23KLHG.js} +16 -14
  71. package/dist/{prune-AGZ24MPD.js.map → prune-OK23KLHG.js.map} +1 -1
  72. package/dist/{pty-host-AZ2ORVV2.js → pty-host-I5OJGWYA.js} +5 -5
  73. package/dist/{read-A7LFAPPZ.js → read-NHK26F22.js} +5 -5
  74. package/dist/{recent-H2LD5JOK.js → recent-DNSOJQVQ.js} +4 -4
  75. package/dist/{remove-3HQTJQWN.js → remove-TZQVN2EG.js} +15 -13
  76. package/dist/{remove-3HQTJQWN.js.map → remove-TZQVN2EG.js.map} +1 -1
  77. package/dist/{restart-BTUO4DTI.js → restart-WHJDPDQA.js} +6 -6
  78. package/dist/{resume-I7GXT2II.js → resume-BXIYEZM3.js} +4 -4
  79. package/dist/{run-TE2AFYA6.js → run-4MQLY3XF.js} +3 -3
  80. package/dist/{screen-XZPDSK65.js → screen-URKN7PU6.js} +6 -6
  81. package/dist/{search-MGTME3CE.js → search-MNBYJEL7.js} +3 -3
  82. package/dist/{section-YVBDU5MO.js → section-B3OQFADP.js} +5 -5
  83. package/dist/{send-WKIX3AT5.js → send-2QTMQQ6E.js} +7 -7
  84. package/dist/{sessions-2OWYXO55.js → sessions-4B22O45G.js} +12 -12
  85. package/dist/{snooze-WKY2T4VZ.js → snooze-LSCCM3QT.js} +5 -5
  86. package/dist/{start-ZCQT7G4C.js → start-KVNLZRF5.js} +6 -6
  87. package/dist/{status-INIBC7GA.js → status-UEMXFLZZ.js} +3 -3
  88. package/dist/{stop-H4PTRFNX.js → stop-NEQBEYEY.js} +6 -6
  89. package/dist/{sync-6SHCY6LZ.js → sync-BHEY6RXE.js} +16 -14
  90. package/dist/{sync-6SHCY6LZ.js.map → sync-BHEY6RXE.js.map} +1 -1
  91. package/dist/{time-XQ2R7Z33.js → time-ON27QFG4.js} +6 -6
  92. package/dist/{timesheet-DX2TLHIB.js → timesheet-HK5CHAA7.js} +8 -8
  93. package/dist/{tree-5AAHU4K5.js → tree-C5BEEKLO.js} +18 -11
  94. package/dist/tree-C5BEEKLO.js.map +1 -0
  95. package/dist/{update-6G2E5QXG.js → update-M4KS23HB.js} +7 -7
  96. package/dist/{wait-LFFXWBY7.js → wait-5QVWSCOL.js} +6 -6
  97. package/dist/wd-bin.js +2 -2
  98. package/dist/web/assets/{PtyView-l4za-VIj.js → PtyView-DIEUYCTu.js} +2 -2
  99. package/dist/web/assets/{PtyView-l4za-VIj.js.map → PtyView-DIEUYCTu.js.map} +1 -1
  100. package/dist/web/assets/index-Bi1IRGtb.js +119 -0
  101. package/dist/web/assets/index-Bi1IRGtb.js.map +1 -0
  102. package/dist/web/assets/index-YbJdcXjZ.css +1 -0
  103. package/dist/web/index.html +2 -2
  104. package/dist/{web-MWSFIUIJ.js → web-CT3EZNBL.js} +746 -147
  105. package/dist/web-CT3EZNBL.js.map +1 -0
  106. package/npm-shrinkwrap.json +2 -2
  107. package/package.json +1 -1
  108. package/dist/chunk-4MXWNDH7.js.map +0 -1
  109. package/dist/chunk-723C3D5X.js.map +0 -1
  110. package/dist/chunk-DXHZWRVE.js.map +0 -1
  111. package/dist/chunk-E35NZVPX.js.map +0 -1
  112. package/dist/chunk-MXIFBNCV.js.map +0 -1
  113. package/dist/chunk-RQE5UOIW.js.map +0 -1
  114. package/dist/chunk-UIZEMKED.js +0 -9
  115. package/dist/tree-5AAHU4K5.js.map +0 -1
  116. package/dist/web/assets/index-B4wFhe7U.css +0 -1
  117. package/dist/web/assets/index-DaCK_AAw.js +0 -118
  118. package/dist/web/assets/index-DaCK_AAw.js.map +0 -1
  119. package/dist/web-MWSFIUIJ.js.map +0 -1
  120. /package/dist/{answer-EGNJ2KYK.js.map → answer-OF2QNF4A.js.map} +0 -0
  121. /package/dist/{attach-64ILZMTD.js.map → attach-PAFAZ2EH.js.map} +0 -0
  122. /package/dist/{block-H74FYSLK.js.map → block-3LEG4LKJ.js.map} +0 -0
  123. /package/dist/{broadcast-WRHZWOQN.js.map → broadcast-ZDIL7UBP.js.map} +0 -0
  124. /package/dist/{catchup-7QBOC5JJ.js.map → catchup-ZZ5HZJIT.js.map} +0 -0
  125. /package/dist/{chunk-A3M5WTVC.js.map → chunk-3GAYLP7W.js.map} +0 -0
  126. /package/dist/{chunk-NPVMYGT7.js.map → chunk-46VAWZZX.js.map} +0 -0
  127. /package/dist/{chunk-3D7MELCW.js.map → chunk-4CVUV2SE.js.map} +0 -0
  128. /package/dist/{chunk-3NPEMTQT.js.map → chunk-62C3CJ5M.js.map} +0 -0
  129. /package/dist/{chunk-UIZEMKED.js.map → chunk-6MLU6MNS.js.map} +0 -0
  130. /package/dist/{chunk-YEEDWV4H.js.map → chunk-77SVSNME.js.map} +0 -0
  131. /package/dist/{chunk-ATBH7QW3.js.map → chunk-DLSAAP3S.js.map} +0 -0
  132. /package/dist/{chunk-SSVVCHJB.js.map → chunk-EDAOG56H.js.map} +0 -0
  133. /package/dist/{chunk-2LIVAJLK.js.map → chunk-EXJYPF64.js.map} +0 -0
  134. /package/dist/{chunk-37I2GFXK.js.map → chunk-INVFNKU7.js.map} +0 -0
  135. /package/dist/{chunk-ONEXQW7Q.js.map → chunk-KWU35O5S.js.map} +0 -0
  136. /package/dist/{chunk-U4UB4LG6.js.map → chunk-LBQR7KTC.js.map} +0 -0
  137. /package/dist/{chunk-DXAIGNWF.js.map → chunk-LGDECE7V.js.map} +0 -0
  138. /package/dist/{chunk-2QZ3RZOY.js.map → chunk-M4YXBQZN.js.map} +0 -0
  139. /package/dist/{chunk-OOCMPS5L.js.map → chunk-MRXD2NSO.js.map} +0 -0
  140. /package/dist/{chunk-6OG3W3PY.js.map → chunk-NBI2INQS.js.map} +0 -0
  141. /package/dist/{chunk-MLTMXVLD.js.map → chunk-OE34YZFO.js.map} +0 -0
  142. /package/dist/{chunk-POTGMLPV.js.map → chunk-OIQY4OKO.js.map} +0 -0
  143. /package/dist/{chunk-OND6YRWZ.js.map → chunk-R4M5DDSN.js.map} +0 -0
  144. /package/dist/{chunk-QXDBVVSC.js.map → chunk-RK6NHIL6.js.map} +0 -0
  145. /package/dist/{chunk-4Y35ABCO.js.map → chunk-TROTIHD5.js.map} +0 -0
  146. /package/dist/{chunk-XILMZRNS.js.map → chunk-U4YUMSJY.js.map} +0 -0
  147. /package/dist/{chunk-KFSLF65S.js.map → chunk-U5V5J237.js.map} +0 -0
  148. /package/dist/{chunk-LCSWFGIM.js.map → chunk-UDOXLAE7.js.map} +0 -0
  149. /package/dist/{chunk-MI3PS2SH.js.map → chunk-UOSZFFNY.js.map} +0 -0
  150. /package/dist/{chunk-6DWPIK7D.js.map → chunk-X6VBITXV.js.map} +0 -0
  151. /package/dist/{chunk-PYOSW6X5.js.map → chunk-XIL4QZFW.js.map} +0 -0
  152. /package/dist/{chunk-HY566NNR.js.map → chunk-XLP24AH5.js.map} +0 -0
  153. /package/dist/{chunk-QX4LFFNS.js.map → chunk-ZR2KWY6V.js.map} +0 -0
  154. /package/dist/{cli-XT4AS3M2.js.map → cli-3BI62MNT.js.map} +0 -0
  155. /package/dist/{config-GQRUETZ6.js.map → config-MR7UZCST.js.map} +0 -0
  156. /package/dist/{diff-L3TWGBA4.js.map → diff-URDY6YMT.js.map} +0 -0
  157. /package/dist/{digest-R52JZ3AK.js.map → digest-D4FEZNLU.js.map} +0 -0
  158. /package/dist/{fork-MCPMOGS5.js.map → fork-7EUVNEB7.js.map} +0 -0
  159. /package/dist/{hook-S64C4G2C.js.map → hook-6AD3FRKZ.js.map} +0 -0
  160. /package/dist/{hydrate-G5AMKHRD.js.map → hydrate-ZJZPM6YW.js.map} +0 -0
  161. /package/dist/{init-PCZCSRZI.js.map → init-LWL4WVSJ.js.map} +0 -0
  162. /package/dist/{install-skills-Z76FLXOU.js.map → install-skills-TQVWZDUD.js.map} +0 -0
  163. /package/dist/{move-MMGOA7MV.js.map → move-URV7XIDT.js.map} +0 -0
  164. /package/dist/{note-WVKK65IH.js.map → note-S6EGTEIL.js.map} +0 -0
  165. /package/dist/{overlaps-REVVBZCX.js.map → overlaps-4T7NLTJH.js.map} +0 -0
  166. /package/dist/{pin-NRSD2ZT7.js.map → pin-KKQZ3AR6.js.map} +0 -0
  167. /package/dist/{pr-JYOI7LCK.js.map → pr-5ZILTVDM.js.map} +0 -0
  168. /package/dist/{pty-host-AZ2ORVV2.js.map → pty-host-I5OJGWYA.js.map} +0 -0
  169. /package/dist/{read-A7LFAPPZ.js.map → read-NHK26F22.js.map} +0 -0
  170. /package/dist/{recent-H2LD5JOK.js.map → recent-DNSOJQVQ.js.map} +0 -0
  171. /package/dist/{restart-BTUO4DTI.js.map → restart-WHJDPDQA.js.map} +0 -0
  172. /package/dist/{resume-I7GXT2II.js.map → resume-BXIYEZM3.js.map} +0 -0
  173. /package/dist/{run-TE2AFYA6.js.map → run-4MQLY3XF.js.map} +0 -0
  174. /package/dist/{screen-XZPDSK65.js.map → screen-URKN7PU6.js.map} +0 -0
  175. /package/dist/{search-MGTME3CE.js.map → search-MNBYJEL7.js.map} +0 -0
  176. /package/dist/{section-YVBDU5MO.js.map → section-B3OQFADP.js.map} +0 -0
  177. /package/dist/{send-WKIX3AT5.js.map → send-2QTMQQ6E.js.map} +0 -0
  178. /package/dist/{sessions-2OWYXO55.js.map → sessions-4B22O45G.js.map} +0 -0
  179. /package/dist/{snooze-WKY2T4VZ.js.map → snooze-LSCCM3QT.js.map} +0 -0
  180. /package/dist/{start-ZCQT7G4C.js.map → start-KVNLZRF5.js.map} +0 -0
  181. /package/dist/{status-INIBC7GA.js.map → status-UEMXFLZZ.js.map} +0 -0
  182. /package/dist/{stop-H4PTRFNX.js.map → stop-NEQBEYEY.js.map} +0 -0
  183. /package/dist/{time-XQ2R7Z33.js.map → time-ON27QFG4.js.map} +0 -0
  184. /package/dist/{timesheet-DX2TLHIB.js.map → timesheet-HK5CHAA7.js.map} +0 -0
  185. /package/dist/{update-6G2E5QXG.js.map → update-M4KS23HB.js.map} +0 -0
  186. /package/dist/{wait-LFFXWBY7.js.map → wait-5QVWSCOL.js.map} +0 -0
package/README.md CHANGED
@@ -1,504 +1,358 @@
1
1
  <div align="center">
2
2
 
3
- # Work — Git Worktree Manager for AI-Assisted Development
3
+ # work
4
4
 
5
- ### One terminal. Every branch. Every repo. Every Claude session.
5
+ ### Run ten Claude Code sessions at once, and always know which one needs you.
6
6
 
7
- **A cross-platform TypeScript CLI that turns git worktrees into a parallel-development cockpit. Spin up isolated workspaces per branch across one or many repos, auto-launch Claude Code (or any AI CLI), and orchestrate everything — PRs, Jira issues, local tasks, diffs, and reviews — from a single browser tab, with a real terminal attached whenever you want one.**
7
+ **work is a desktop app (and a browser dashboard) for working with AI coding agents on many branches at the same time. Every task gets its own git worktree and its own Claude Code session. One window shows all of them: who is waiting for your answer, what each one changed, where its pull request stands, and the terminal it runs in.**
8
8
 
9
9
  [![npm](https://img.shields.io/npm/v/@moberg_hr/work-tree?color=cb3837&logo=npm&label=npm)](https://www.npmjs.com/package/@moberg_hr/work-tree)
10
+ [![Release](https://img.shields.io/github/v/release/moberghr/cli-work-tree-manager?label=desktop%20app)](https://github.com/moberghr/cli-work-tree-manager/releases/latest)
10
11
  [![Website](https://img.shields.io/badge/website-moberghr.github.io-6d28d9.svg)](https://moberghr.github.io/cli-work-tree-manager/)
11
- [![Node](https://img.shields.io/badge/node-%E2%89%A518-339933.svg)](https://nodejs.org/)
12
+ [![Node](https://img.shields.io/badge/node-%E2%89%A522.13-339933.svg)](https://nodejs.org/)
12
13
  [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
13
14
 
14
- **[moberghr.github.io/cli-work-tree-manager](https://moberghr.github.io/cli-work-tree-manager/)** — the Work website.
15
+ [Install](#install) · [A day with work](#a-day-with-work) · [Every feature](#every-feature-and-what-it-does-for-you) · [Keyboard](#keyboard) · [The CLI](#the-cli) · [Configuration](#configuration) · [FAQ](#faq)
15
16
 
16
- [Quick Start](#quick-start) · [Why Work](#why-work) · [Commands](#commands) · [Dashboard (`work web`)](#browser-dashboard-work-web) · [Fleet](#fleet-commands-run--broadcast) · [Groups](#groups-multi-repo-worktrees) · [Diff review (`wd`)](#diff-review-wd) · [Architecture](#architecture) · [FAQ](#faq)
17
+ <img src="docs/assets/screens/hero-dark.png" alt="The work app: the sessions on the left, one session's diff on the right" width="900">
17
18
 
18
19
  </div>
19
20
 
20
21
  ---
21
22
 
22
- ## Why Work
23
+ ## Why work
23
24
 
24
- Working on three branches in three repos with three Claude Code instances is a productivity superpower — *if* you can keep the cognitive overhead under control. Without tooling, you end up juggling terminals, losing track of which session is in which directory, and rebuilding mental context every time you switch.
25
+ An AI agent makes one branch go fast. Several agents on several branches should make you several times faster, but in practice you end up with a terminal per agent, no idea which one finished or is stuck on a permission prompt, diffs you never looked at, and worktrees nobody cleans up.
25
26
 
26
- Work is the missing layer between `git worktree` and your AI assistant. Every branch gets a real, isolated checkout. Every checkout gets its own Claude Code session, persisted across resumes. Every session is visible — alongside its PR status, assigned Jira issues, and pending tasks — in a single dashboard.
27
+ work takes care of all of that:
27
28
 
28
- | Without Work | With Work |
29
- |:---|:---|
30
- | `cd ../some/path && git checkout -b feature/x && cp .env.local .` every time | `work tree api feature/x` — worktree created, dev settings copied, Claude launched |
31
- | Three terminals, three editors, three lost contexts | One browser tab: sessions, PRs, Jira, tasks, an attention inbox — and `work attach` for a real terminal on any session |
32
- | "Which directory was that branch in again?" | `work resume` — recent sessions sorted by last access, one keystroke to re-enter |
33
- | Multi-repo features = multiple `git worktree add` invocations and a hand-merged CLAUDE.md | `work tree mygroup feature/x` — every repo cloned in lockstep, combined CLAUDE.md generated automatically |
34
- | Stale worktrees pile up after PRs merge | `work prune` (interactive) / `work sync` (one-shot) — remove worktrees whose branches landed on main |
35
- | Jira ticket → branch name → worktree → Claude prompt = manual every time | Pick a Jira issue in `work web` → worktree created with a branch for it |
36
- | Same chore (`npm test`, rebase) in five worktrees, one terminal at a time | `work run --all npm test` / `work broadcast --all "rebase onto main"` — fan out across the fleet |
37
- | Diffs and reviews scattered across terminals and editor tabs | `wd` / `work web` — every diff and review in one browser, comments routed back to the live AI session |
38
-
39
- ---
29
+ - **One task, one worktree, one agent.** "New worktree" makes the branch, the checkout and the Claude session in one step, and starts Claude on what you asked.
30
+ - **One window for all of them.** The Inbox shows the sessions that want you: waiting on a permission prompt, finished and not looked at, a pull request ready to merge or failing.
31
+ - **Review what the agent did, turn by turn.** Every Claude turn is recorded, so you see exactly what the last instruction changed, or everything since you last looked.
32
+ - **Pull requests handled where you work.** Failing checks and review comments are handed to the session's Claude; replies go to GitHub only when you say so.
33
+ - **Nothing lost, nothing left behind.** Sessions survive restarts and reboots. Merged work archives itself and can be restored exactly as it was, and Clean up removes what's no longer needed.
40
34
 
41
- ## Quick Start
35
+ Claude Code is the default agent. work also starts any other CLI agent, with fewer features (see [FAQ](#faq)).
42
36
 
43
- ```bash
44
- # 1. Install (Node 22.13+, Git required)
45
-
46
- # Option A — Homebrew (macOS / Linux)
47
- brew install moberghr/work-tree/work # provides `work` and `wd`
37
+ ---
48
38
 
49
- # Or the desktop app (macOS, Apple silicon): the dashboard in its own window,
50
- # with `work` and `wd` inside it; it updates itself
51
- brew install --cask moberghr/work-tree/work-desktop
39
+ ## Install
52
40
 
53
- # Option B — from source
54
- git clone https://github.com/moberghr/cli-work-tree-manager work
55
- cd work
56
- npm install
57
- npm run build
58
- npm link
41
+ **The desktop app** (recommended): the dashboard in its own window, with the `work` and `wd` commands included. It updates itself.
59
42
 
60
- # 2. First-time setup — interactive
61
- work init
43
+ | Platform | Download |
44
+ |:---|:---|
45
+ | Windows | [WorkDesktop-win-Setup.exe](https://github.com/moberghr/cli-work-tree-manager/releases/latest/download/WorkDesktop-win-Setup.exe) |
46
+ | macOS (Apple silicon) | [WorkDesktop-osx-Setup.pkg](https://github.com/moberghr/cli-work-tree-manager/releases/latest/download/WorkDesktop-osx-Setup.pkg), or `brew install --cask moberghr/work-tree/work-desktop` |
47
+ | Linux | [WorkDesktop.AppImage](https://github.com/moberghr/cli-work-tree-manager/releases/latest/download/WorkDesktop.AppImage) |
62
48
 
63
- # 3. Create a worktree and launch your AI tool
64
- work tree api feature/login
49
+ **Or just the command line**, with the same dashboard in your browser (`work web`):
65
50
 
66
- # 4. Open the dashboard in your browser
67
- work web
51
+ ```bash
52
+ npm install -g @moberg_hr/work-tree # or: brew install moberghr/work-tree/work
53
+ work web # opens the dashboard
68
54
  ```
69
55
 
70
- `work init` walks you through the worktrees root, your repo aliases, your AI command, and tab-completion installation. Everything else is one keystroke away from the dashboard.
71
-
72
- ### Prerequisites
56
+ On first start, the app's **Welcome** page asks where your repos are and where worktrees should go, lists the repos it finds so you can tick them, and checks your tools:
73
57
 
74
- | Tool | Required | Used for |
58
+ | Tool | | What for |
75
59
  |:---|:---|:---|
76
- | **Node.js 22.13+** | yes | Runtime |
77
- | **Git** | yes | Worktree operations |
78
- | **[Claude Code CLI](https://claude.ai/code)** | recommended | Default AI tool auto-launched on `work tree`; group CLAUDE.md generation. Any other CLI works too — set `aiCommand` in config. |
79
- | **[GitHub CLI (`gh`)](https://cli.github.com/)** | optional | PR pane in the dashboard / `work web` |
80
- | **[Atlassian CLI (`acli`)](https://developer.atlassian.com/cloud/acli/)** | optional | Jira pane in the dashboard / `work web` |
60
+ | Git | needed | Worktrees |
61
+ | [Claude Code](https://claude.ai/code) | needed | The agent in each session |
62
+ | [GitHub CLI](https://cli.github.com/) (`gh`) | optional | Pull requests: their status, checks, review comments, Ship |
63
+ | [Atlassian CLI](https://developer.atlassian.com/cloud/acli/) (`acli`) | optional | Jira: your issues, starting work on one, the Time tab |
64
+
65
+ Want to look around first? `work web --demo` opens the real app on a made-up world (repos, agents, PRs, Jira) and touches nothing of yours.
81
66
 
82
67
  ---
83
68
 
84
- ## Commands
69
+ ## A day with work
85
70
 
86
- ```
87
- work init # Interactive first-time setup
88
- work tree|t <target> <branch> [flags] # Create or switch to a worktree
89
- work tree|t <target> # Work on the base repo (no worktree) — pulls + continues the last conversation
90
- work tree --here # Infer target+branch from the current worktree
91
- work remove <target> <branch> [--force] # Remove a worktree
92
- work list [target] # List worktrees
93
- work status [target] [branch] [--prune] # Show worktree merge/dirty status
94
- work recent [count] # List recent sessions
95
- work resume [--unsafe] # Resume a recent session
96
- work attach [target] [branch] # Attach this terminal to a session's Claude (Ctrl+] detaches)
97
- work web [--stop] [--no-open] # Browser dashboard (singleton; all sessions in one tab)
98
- work prune [--force] # Remove merged worktrees (interactive)
99
- work sync [--dry-run] [--force] [--include-squash] # Fetch all repos + prune merged worktrees (non-interactive)
100
- work completion [--install] # Shell completions
101
-
102
- work run <cmd...> [--target <a>] [--all] [--parallel] # Run a shell command across worktrees
103
- work broadcast <prompt> [--target <a>] [--all] # Queue a prompt to every live AI session
104
-
105
- work todo # List open tasks
106
- work todo add|done|undo|edit|rm <args> # Manage tasks
107
- work todo --all # Include completed tasks
108
-
109
- work config add|remove|list|show|edit # Manage repos
110
- work config group add|remove|regen <args> # Manage multi-repo groups
111
-
112
- wd # PR-style diff in your browser (live server)
113
- wd --branch # Open the "Since branch" tab by default
114
- wd --static # Self-contained HTML file (no server)
115
- wd --stop # Stop the background server for this scope
116
- wd -c # Interactive review with streaming comments
117
- ```
71
+ <img src="docs/assets/screens/inbox.png" alt="The Inbox: sessions that need your input, finished work, pull requests that want you" width="900">
118
72
 
119
- `work tree` flags: `--here` (infer target+branch from cwd), `--base <branch>` (branch from a specific base), `--open` (open the configured editor), `--unsafe` (skip AI-tool permission checks), `--no-pull` (skip the pull when switching into an existing checkout), `--fresh` (start a new AI conversation instead of continuing the last one), `--prompt "..."` / `--prompt-file <path>` (send an initial prompt), `--jira-key <KEY>` (link a Jira issue to the session), `--setup-only` (create the worktree without launching the AI tool).
73
+ **Morning.** The Inbox lists what needs you: a session blocked on `npm test` (Allow / Deny right there), one that finished overnight, a PR that's approved and green. **Sessions → Today** gives you a standup note of what every session did yesterday.
120
74
 
121
- ### Switching back into a worktree
75
+ **Starting something.** Press `c`, pick the project and write what Claude should do: `PAY-31 Export invoices as PDF`. work names the branch (`feat/PAY-31`), creates the worktree, copies your local settings into it and starts Claude with your prompt. Or start from a Jira issue, from one of your pull requests, or from a PR someone asked you to review.
122
76
 
123
- Creating a worktree and *returning* to one are the same command, and the second case is the common one. When the checkout already exists — an existing worktree, or the base repo when you run `work tree <target>` with no branch — `work tree`:
77
+ <img src="docs/assets/screens/new-worktree.png" alt="New worktree: a project, what Claude should do, and the branch named from it" width="900">
124
78
 
125
- 1. **Pulls latest** for the checked-out branch, when it tracks a remote. Best-effort: a purely local branch is skipped silently, and a pull blocked by uncommitted changes or conflicts warns and carries on rather than stopping you from getting in. `--no-pull` skips it.
126
- 2. **Continues the previous AI conversation** for that directory, by passing the tool's resume flag (`--continue` for Claude Code). This is gated on a transcript actually existing for that exact path, so a first visit starts fresh instead of erroring out. `--fresh` forces a new conversation.
79
+ **While they work.** Each session has a **Terminal** (Claude itself, live), a **Diff**, a **PR** tab and a **Code** tab. When a session wants you, the Inbox count and the taskbar badge go up, and you get a notification unless you're already looking at it. `n` jumps to the next session that wants you.
127
80
 
128
- A freshly created worktree does neither: it is already at its branch tip and has no conversation to resume.
81
+ **Reviewing.** The Diff opens on what changed since you last looked. Leave comments on lines, and Claude gets them on its next turn. Look at one turn, one commit, or any span of them.
129
82
 
130
- ### Branch resolution order
83
+ <img src="docs/assets/screens/diff.png" alt="The Diff tab: the changes, with a list of commits and Claude's turns to pick from" width="900">
131
84
 
132
- When you run `work tree api feature/login`:
85
+ **Pull requests.** **Ship…** pushes, opens the PR and merges it when it's ready. When checks fail or a reviewer comments, the session's Claude is told, plans a fix and drafts replies for you to post.
133
86
 
134
- 1. **Local branch exists** → checked out into the worktree
135
- 2. **Remote branch exists** → fetched and checked out as a tracking branch
136
- 3. **Neither** → a new branch is created from the configured base (or `--base`)
87
+ <img src="docs/assets/screens/pr.png" alt="The PR tab: failing checks with Ask Claude to fix, and a drafted reply to a review comment" width="900">
137
88
 
138
- Branch directories normalize `/` → `-`, so `feature/login` lives at `<worktreesRoot>/<repo>/feature-login/`.
89
+ **Done.** When the PR merges, the session archives itself: Claude stopped, worktree removed, the conversation and any uncommitted files kept. Restore brings it back exactly as it was.
139
90
 
140
91
  ---
141
92
 
142
- > **`work dash` was removed in 2.0** — use `work web` (the browser dashboard) and `work attach` (a real terminal on any session; the same Claude the browser shows).
93
+ ## Every feature, and what it does for you
143
94
 
144
- ## Browser Dashboard (`work web`)
95
+ ### Knowing who needs you
145
96
 
146
- Prefer a browser to the terminal? `work web` brings the dashboard — every session, its diff, its review comments, and a live terminal — into a single tab.
97
+ | Feature | What it does for you |
98
+ |:---|:---|
99
+ | **Inbox** | One list of the sessions that want you, most urgent first: *needs your input* (a permission prompt or a question), *done* (finished, not looked at), *pull requests* (ready to merge, conflict, failing checks), *review comments* (unanswered threads on its PR). Everything else is summed up in one line. |
100
+ | **Allow / Deny from the Inbox** | Answer a permission prompt (`Bash npm test`) without opening the terminal, for the sessions the app runs. work types the answer only after checking the screen still shows that exact request. |
101
+ | **Notifications** | A browser or desktop notification when a session needs you or finishes, but not for the session you're looking at. Optional `statusHooks` run your own command (a sound, a Slack ping). |
102
+ | **Taskbar badge** | The desktop app shows the Inbox count on its taskbar / Dock icon and flashes when a session starts waiting on you. |
103
+ | **`n`: next that wants you** | One key takes you to the next session that needs attention. |
104
+ | **Review all** | Walks the finished sessions one by one, each opened on its last turn's diff. |
105
+ | **Snooze** | "Not now": 2 hours, until tomorrow, until a time you pick, or until something changes. The session leaves the Inbox until then. |
106
+ | **Blocked by** | Mark a session as waiting on another session or a PR. It stays out of the Inbox until that's done, then you're told. |
107
+ | **Status icons** | Every session shows one icon for where it stands: working, needs you, done, in review, PR wants you, idle, stale. |
147
108
 
148
- ```bash
149
- work web # start (or re-attach to) the dashboard, opens the browser
150
- work web --no-open # start without opening a browser
151
- work web --stop # shut the dashboard down
152
- ```
109
+ ### All sessions in one place
153
110
 
154
- - **Singleton** — one process per user, tracked by `~/.work/web.pid` + `~/.work/web.url`. A second `work web` re-uses the running one instead of spawning a duplicate; the port is chosen deterministically from the configured `portRange` (default `3000–3099`) with a liveness probe so it survives restarts and avoids collisions.
155
- - **Every session in one place** — the sidebar lists all worktree sessions with activity badges (active / idle / stale) and per-session comment/draft counts, reactive to `work tree` / `work remove` anywhere on the machine.
156
- - **Per-session tabs** — a **Diff** tab (Uncommitted vs HEAD, "Since branch", and **Last turn** — only what Claude's most recent instruction changed, with a picker for earlier turns). On the Uncommitted diff, **↶ Revert** on a file or hunk undoes it back to HEAD and leaves Claude a note not to reintroduce it; **Start review** batches comments as drafts and **Submit review** sends them to Claude as one message (pushed straight into an idle Claude in the Terminal tab); **]** / **[** jump between comment threads, a **Comments** review tab, and a live **Terminal** tab (the session's Claude in the PTY host — `work attach` opens the same one in a real terminal).
157
- - **Top panes** — PRs (via `gh`), Jira (via `acli`), and Tasks — with create / sync / rebase / open-in-editor actions wired to `POST /api/worktrees` and friends.
158
- - **One server, every `wd` scope** — every `wd` and `wd -c` invocation registers as a *scope* on this server (addressable at `/diff/<hash>` and `/review/<hash>`) instead of spawning its own port. A dozen reviews share one process and one set of tabs.
159
- - **Hook bridge to live Claude** — on startup `work web` installs `UserPromptSubmit` and `Stop` command hooks in `~/.claude/settings.json` (removed on shutdown). Drop a comment on a line and any Claude running in that worktree picks it up on its next turn — no copy-paste.
111
+ <img src="docs/assets/screens/sessions.png" alt="The Sessions table: status, session, project, summary, changes, last active" width="900">
160
112
 
161
- ---
113
+ | Feature | What it does for you |
114
+ |:---|:---|
115
+ | **Session list (the rail)** | Every session on the left, on every page, with its status, project and PR pills. Pin sessions to the top, put them under your own headings, drag them into your order. |
116
+ | **Sessions table** | Status, summary, changes and last activity for every session, with filters and grouping. Switch between **Live · Archived · All**, with **Restore** on archived rows. |
117
+ | **Select several** | Archive, restore, snooze, prompt or delete many sessions at once. |
118
+ | **Today** | What each session did today, yesterday or this week: your prompts, its finished turns, its PRs. **Copy as Markdown** gives you a standup note. |
119
+ | **Quick switcher (Ctrl+P)** | Type a few letters of any session, archived ones included. Works from inside a terminal too. |
120
+ | **Alt+1…9, j / k** | Jump to the first nine sessions, or walk the list. |
121
+ | **Search past conversations** | "What did we do about X?": every word in any session's conversation, live or archived, kept beyond Claude Code's own 30 days. |
122
+ | **Overlap warning** | "⚠ Same files as chore/deps-update": two live sessions changing the same files will conflict when the second one merges. |
123
+ | **Context fill** | "84% full" when a conversation is getting long, so you start fresh before Claude loses the thread. |
124
+ | **Notes** | Your own scratchpad per session (what you decided, what to tell the reviewer), with **Send to Claude** when you want it to know. |
125
+ | **Catch me up** | A few sentences on where a session stands, for one you haven't touched in days. |
126
+
127
+ ### A real terminal for every agent
128
+
129
+ <img src="docs/assets/screens/terminal.png" alt="The Terminal tab: Claude Code running in the session, asking for permission" width="900">
130
+
131
+ | Feature | What it does for you |
132
+ |:---|:---|
133
+ | **Terminal tab** | Claude Code itself, live, in the app. Type to it as in any terminal. |
134
+ | **Sessions survive restarts** | Claude runs in a background host, not in the app: closing the window or restarting or updating the app doesn't end it. After a reboot it comes back with its conversation. |
135
+ | **`work attach`** | The same session in your own terminal (Windows Terminal, iTerm…), at the same time as the app. Ctrl+] detaches. |
136
+ | **Open in editor / terminal** | One key opens the session's folder in VS Code (`o`), or the session in a new Windows Terminal tab (`⇧T`, Windows). |
137
+ | **Idle sleep** | A Claude nobody has used for hours is stopped to free memory. Opening the session resumes it where it was. |
138
+ | **Restart outdated agents** | After Claude Code updates itself, the app tells you which sessions still run the old version and restarts them in place, each when its turn ends. |
139
+ | **Send a prompt** | Saved instructions ("Review your changes", "Add tests", "Open a pull request") sent to a session's Claude from its ⋯ menu, or to many at once. |
140
+ | **Ask (Ctrl+K)** | An assistant that knows what's on your screen: "which of these is safe to archive?", "what's blocking this one?". It asks before it changes anything. |
141
+
142
+ ### Reviewing what the agent did
143
+
144
+ | Feature | What it does for you |
145
+ |:---|:---|
146
+ | **Diff tab** | Uncommitted changes, or everything on the branch since it left its base, side by side or unified, with syntax highlighting. |
147
+ | **Turns and commits** | Every Claude turn is recorded. **Changes ▾** lists them with the branch's commits: show one, or Shift+click for a span. **Last turn** is one click. |
148
+ | **Since you looked** | The diff opens on what changed since you last reviewed this session, not everything again. **Your looks** keeps the diffs you reviewed before. |
149
+ | **Comments to Claude** | Comment on a line, a file or the whole change; Claude gets the comments on its next turn, and they're marked resolved once it's addressed them. |
150
+ | **Revert file** | Undo an uncommitted file back to its last commit, and tell Claude not to bring it back. |
151
+ | **Viewed** | Tick files as you review them. A file Claude changes again is unticked. |
152
+ | **Groups by repo** | In a multi-repo session, a switch at the top picks the repo, with each one's file count. |
153
+ | **Full screen, Open in browser** | The diff over the whole window, or on its own page in your browser. |
154
+ | **`wd`** | The same diff page for any folder, from the command line, with or without a session. |
162
155
 
163
- ### Demo mode
156
+ ### Reading the code
164
157
 
165
- ```bash
166
- work web --demo # or: npm run demo
167
- ```
158
+ <img src="docs/assets/screens/code-search.png" alt="Code search: types and members by name, and lines with the text" width="900">
168
159
 
169
- Opens the real dashboard against a simulated world — example repos, agents that finish and ask for permission while you watch, PRs, Jira and tasks — with nothing real behind it: no repos, agents or `~/.work` are touched, and it runs beside your real `work web`. Use it for screenshots, UI work and showing the tool to someone. Everything you do has a simulated effect: answer a blocked agent in its terminal, leave a review comment (Claude replies), ship a group in parts.
160
+ | Feature | What it does for you |
161
+ |:---|:---|
162
+ | **Code tab** | The session's files as they are now, read only: a tree, a filter, highlighting. Files changed on the branch carry a dot and link to their diff. |
163
+ | **Search the code (Ctrl+T)** | As in Visual Studio: types and members by name (`GPJ` finds `GetPendingJobs`), files by path, and lines containing the text, across all of a group's repos. Enter opens the place at its line. |
164
+ | **Open in editor** | The open file in VS Code at the line you're reading, in the worktree's window (JetBrains IDEs and Sublime too). |
170
165
 
171
- ### Attention inbox
166
+ ### Pull requests
172
167
 
173
- With ten agents running, the question is which one needs you next. The **Inbox** tab (`g i`) answers it, using Claude Code's own hooks — `work web` installs them, so it covers every Claude in any terminal:
168
+ | Feature | What it does for you |
169
+ |:---|:---|
170
+ | **PR tab** | Every pull request of the session with its stage (waiting for review, approved, ready to merge, conflict, checks failing), its checks and its review threads. |
171
+ | **Ask Claude to fix** | Failing checks are sent to the session's Claude, once per pushed commit, with which checks and why. |
172
+ | **Review comments to Claude** | New review comments from people with write access (and Copilot) go to the session's Claude. It plans what to change and drafts a reply to each thread. |
173
+ | **Replies only on your yes** | Drafts show under each comment, editable. **Post & resolve** sends them, or tell Claude "yes" in the conversation. Nothing is posted on GitHub without you. |
174
+ | **Ship…** | Push, open the PR (ready or draft), and merge, checking first that the PR still has the commits you reviewed. A group ships repo by repo. |
175
+ | **Merged → archived** | When every PR of a session has merged, it archives itself. |
176
+ | **PR pills** | Each session's PRs on its row, coloured by stage; a click opens it on GitHub. |
174
177
 
175
- - **Needs your input** — blocked on a permission prompt, longest-waiting first. Opens on the terminal so you can answer.
176
- - **Done — not looked at yet** — finished a turn since you last opened it. Opens on the diff to review.
177
- - **Working** — mid-turn, with the prompt it's working on.
178
+ ### Starting work
178
179
 
179
- Each row carries one line of context (the permission request, Claude's last message, or your prompt). The sidebar sorts the same way, the Inbox tab shows a count, and so does the browser tab title (`(3) work`). Press **`n`** anywhere to jump to the next session that wants you. With `notifications: true`, you also get a desktop notification when a session blocks or finishes — and your `statusHooks` run.
180
+ <img src="docs/assets/screens/start.png" alt="Start: your pull requests and the ones waiting for your review" width="900">
180
181
 
181
- ## Fleet Commands (`run` / `broadcast`)
182
+ | Feature | What it does for you |
183
+ |:---|:---|
184
+ | **New worktree (`c`)** | A project and what Claude should do. The branch is named from your words (`PAY-31 …` → `feat/PAY-31`, a stack trace → `fix/…`, a question → `tmp/…`), checked against branches that already exist. |
185
+ | **Start from a PR** | Paste a PR link or number to work on that branch, someone else's included. |
186
+ | **Review someone's PR** | From **Start**: a worktree on their branch and a Claude asked to read it, try it and tell you what it would comment, without posting anything. |
187
+ | **Jira** | Your assigned issues, each with **Start**. Optionally, newly assigned issues start themselves: Claude picks the right project, or asks you when it isn't sure. |
188
+ | **Fork** | A new branch and worktree from where a session is, with a new Claude that gets a summary of the conversation so far. |
189
+ | **Stacked sessions** | A session made from another session's branch follows it: it takes in the parent's new commits when clean, and moves onto main when the parent merges. |
190
+ | **Groups (multi-repo)** | One worktree folder spanning several repos (backend + frontend), one Claude seeing all of them, with a combined `CLAUDE.md` written for the group. |
191
+ | **Local settings copied** | Git-ignored files you need to run the app (`appsettings.Development.json`, `.env.local`) are copied into every new worktree. |
192
+ | **Dev server and preview** | Each worktree gets its own port; start its dev server from the session and open the preview. |
193
+ | **Repos & groups page** | Every git repo in your folders, to add with one click, and groups to make from them. |
194
+
195
+ ### Keeping branches healthy
196
+
197
+ | Feature | What it does for you |
198
+ |:---|:---|
199
+ | **Behind main** | "↓ 34 behind origin/main" and whether merging would conflict, with **Update from main** (a rebase or a merge, aborted cleanly on a conflict, and then **Ask Claude to resolve**). |
200
+ | **Pull on return** | Going back into a worktree pulls its branch and continues the last conversation. |
182
201
 
183
- Once you have several worktrees open, you often want to do *one thing* to *all of them*. Two commands fan out across the fleet.
202
+ ### Finishing and cleaning up
184
203
 
185
- ### `work run` — a command in every worktree
204
+ | Feature | What it does for you |
205
+ |:---|:---|
206
+ | **Archive** | Stops the session's Claude and whatever still runs from its folder, keeps the conversation, a written summary, uncommitted files and local settings, and removes the worktree when nothing would be lost. Each archived session shows who archived it and when. |
207
+ | **Restore** | Brings an archived session back as if it had never left: branch, worktree, uncommitted files, local settings, its turns and its conversation. |
208
+ | **Clean up** | What can go and why: merged worktrees, build output in worktrees idle for a week (`node_modules`, `bin/obj`, `.next`…), and local branches already in main. Nothing with unpushed work. |
209
+ | **Move to another computer** | `work move export` / `import` takes your sessions, conversations and settings to a new machine; worktrees come back from origin. |
186
210
 
187
- ```bash
188
- work run npm test # run in EVERY worktree (requires --all)
189
- work run --all npm test # explicit confirmation for the whole fleet
190
- work run --target api npm run build # only worktrees for the `api` alias
191
- work run --target api --branch feat/x … # narrow to a single branch
192
- work run --all --parallel --jobs 6 … # run concurrently, up to 6 at a time
193
- work run --all --halt-on-error npm test # sequential: stop after the first failure
194
- ```
211
+ ### Time
195
212
 
196
- - **Blast-radius guardrail** — a bare `work run <cmd>` with no `--target` refuses to run until you pass `--all`. Narrow with `--target <alias>` (and optionally `--branch`).
197
- - **Sequential by default** — output streams through transparently. With `--parallel`, output is captured and re-emitted line-by-line with a `[target/branch]` prefix so concurrent logs stay attributable; `--jobs` (default 4) caps concurrency with a worker pool.
198
- - **Ctrl-C tears the whole fleet down** — in-flight children are killed and the pool stops dequeuing rather than orphaning subprocesses. Exit code is non-zero if any worktree failed.
199
- - The command runs through `sh -c` (POSIX) / `cmd.exe /c` (Windows); your command string is the intentional payload — Work never interpolates paths or branch names into a shell string itself.
213
+ <img src="docs/assets/screens/time.png" alt="The Time tab: hours per Jira ticket for a day, suggested from the day's work" width="900">
200
214
 
201
- ### `work broadcast` — a prompt to every live AI session
215
+ | Feature | What it does for you |
216
+ |:---|:---|
217
+ | **Time tab** | Each workday's hours per Jira ticket, suggested from what you did: Claude's working time per session, your commits, the issues you moved, and (if you connect Outlook and Teams) your meetings and chats. Change what you like. |
218
+ | **Post to Tempo** | One click writes the day to Tempo, and never touches worklogs you made by hand. |
219
+ | **Work time** | How long each session's Claude worked, per day, on its Timeline. |
202
220
 
203
- ```bash
204
- work broadcast --all "rebase onto main and resolve conflicts"
205
- work broadcast --target api "run the test suite and fix failures"
206
- echo "long prompt…" | work broadcast --all - # read the prompt from stdin
207
- ```
221
+ ### The app itself
208
222
 
209
- `broadcast` queues your prompt to each matching session and the session picks it up on its **next turn** via the same `UserPromptSubmit` hook `work web` uses — so it works even when you're not looking at that terminal. The same `--all` guardrail applies: broadcasting to every session requires an explicit `--all` or a narrowing `--target`. Delivery is lazy and crash-safe — the prompt is written to each session's comment store under a file lock, so a concurrent `work web` write can't clobber it.
223
+ | Feature | What it does for you |
224
+ |:---|:---|
225
+ | **Desktop app** | Windows, macOS and Linux. Updates itself (Restart when it's downloaded); your Claudes keep running through the update. |
226
+ | **Activity** | What work does in the background (checking PRs, cleaning up, archiving) and why, in one panel. A dot turns amber when something needs you. |
227
+ | **Light and dark** | Follows your system, or pick one. |
228
+ | **Demo** | `work web --demo`: the real app on a simulated world, for trying it out or showing it to someone. |
210
229
 
211
230
  ---
212
231
 
213
- ## Groups (Multi-Repo Worktrees)
232
+ ## Keyboard
214
233
 
215
- When a feature spans several repositories — say a backend API change that ships with a frontend update — Work treats them as a single unit.
234
+ `?` shows them all in the app.
216
235
 
217
- ```bash
218
- # Define a group
219
- work config group add fullstack api web shared-lib
220
-
221
- # Create one worktree workspace covering all three repos
222
- work tree fullstack feature/new-checkout
223
-
224
- # Combined directory layout
225
- <worktreesRoot>/
226
- fullstack/
227
- feature-new-checkout/
228
- api/ # worktree for api repo
229
- web/ # worktree for web repo
230
- shared-lib/ # worktree for shared-lib repo
231
- CLAUDE.md # auto-generated combined instructions
232
-
233
- # Tear it all down at once
234
- work remove fullstack feature/new-checkout
235
- ```
236
-
237
- The combined `CLAUDE.md` is produced by invoking the Claude CLI to merge each repo's individual `CLAUDE.md` into a coherent multi-repo brief — so the Claude session that gets launched understands every codebase it can see. Regenerate any time with `work config group regen <name>`.
236
+ | Anywhere | | On a session | |
237
+ |:---|:---|:---|:---|
238
+ | `c` | New worktree | `1` `2` `3` `4` | Terminal, Diff, PR, Code |
239
+ | `n` | Next that wants you | `e` | Archive / Restore |
240
+ | `j` / `k` | Next / previous session | `z` | Snooze |
241
+ | `Alt+1…9` | Session 1–9 | `p` | Send a prompt |
242
+ | `Ctrl+P` | Quick switcher | `r` | Catch me up |
243
+ | `Ctrl+K` | Ask | `o` / `⇧T` | Open in editor / terminal (Windows) |
244
+ | `Ctrl+T` | Search the code (desktop app) | `f` | Fork |
245
+ | `/` | Search sessions | `⇧S` | Ship |
246
+ | `g i`, `g s`, `g d` | Inbox, Sessions, Today | `F2` | Rename |
238
247
 
239
248
  ---
240
249
 
241
- ## Diff Review (`wd`)
250
+ ## The CLI
242
251
 
243
- A second binary, **`wd`**, ships alongside `work` and gives you a GitHub-PR-style diff view in your browser — for the current worktree, or for every repo in a group.
252
+ Everything the app does is also a command, for scripts, for your terminal, and for Claude itself (a skill tells every session how to read other sessions with `work … --json`).
244
253
 
245
254
  ```bash
246
- wd # live diff server: renders the current diff, refresh to see edits
247
- wd --branch # open the "Since branch" tab by default (PR-style vs the parent branch)
248
- wd main # diff vs an explicit ref
249
- wd --static # write a self-contained HTML file (no server, survives the CLI)
250
- wd --stop # stop the background server for this scope
251
- wd -c # interactive review: leave comments inline, stream to stdout
252
- ```
253
-
254
- `wd` resolves the scope from your `cwd`: inside a single-repo worktree it diffs that repo; inside a group worktree (root or any sub-repo) it diffs every repo in the group and renders one tab per repo. Untracked files are included as synthesized "new file" diffs without touching your git index.
255
-
256
- **One server, every scope.** `wd` and `wd -c` register as a *scope* on the singleton `work web` and open `/diff/<hash>` or `/review/<hash>` — no new process, no extra port. When no `work web` is running, `wd` auto-starts a lean one in the background (`work web --lean --no-open`) and registers on that. Either way the live page reloads itself over SSE when files change.
257
-
258
- ### Modes
259
-
260
- | Mode | What it does |
261
- |:---|:---|
262
- | `wd` (default) | **Live server.** Registers on a running `work web`, or auto-starts a lean one in the background. Refresh the browser to pick up saved-file changes (chokidar + SSE, per-repo dirty tracking). De-register this scope with `wd --stop`. `--server` / `--watch` are kept as back-compat aliases. |
263
- | `wd --static` | Renders a fully self-contained HTML file to `~/.work/diffs/<scope-hash>.html` (bundle + diff JSON inlined), opens via `file://`, and exits. No server, no live reload — survives the CLI. |
264
- | `wd -c` | **Interactive review.** Click any line number to drop an inline comment; each comment streams to stdout as a markdown marker as it's saved. Blocks until you click "Done & Send" (or Ctrl+C). |
265
-
266
- ### Reading the diff
267
-
268
- - **Uncommitted vs Since branch** — toggle between the working-tree diff and the full PR-style diff against the branch this worktree was forked from.
269
- - **Checkpoints + range diff** — `wd` snapshots each repo's working tree (including untracked files) and holds the snapshots alive behind `refs/wd/<scope>/<n>` refs. Snapshots are taken **per Claude turn** (via the Stop hook) and when edits settle, so each one is a meaningful unit of work rather than one-per-save. A **Range** picker — a single `From → To` dropdown with a pinned *All changes* reset — lets you diff any two points: the full diff, a single checkpoint's own changes (click it), or any span (shift-click to widen the start). Each checkpoint is labelled with a one-line **Claude-generated summary** of what it changed (generated lazily, cached in the manifest), so you pick by meaning, not by number.
270
- - **Coverage badges** — if a `coverage/lcov.info` (or `lcov.info`) is present, each file shows its line-coverage percentage. The badge is de-emphasized and flagged when the source has been edited since the coverage report was written, so you don't trust stale numbers.
271
- - **Reviewed-hunk checkboxes** — tick individual hunks as you review them. The state is keyed on a content hash of the hunk (not line numbers), so it survives live reloads and unrelated edits elsewhere in the file, and persists per-scope in `localStorage`.
272
- - **Expand context** — each hunk separator is a GitHub-style bar showing the `@@ … @@` heading; where lines are collapsed, converging `↓` / `↑` controls on it reveal the hidden lines a chunk at a time (or all the way to the top/bottom of the file). When a gap is fully expanded — or two hunks are already adjacent — the lines become contiguous and the separator drops away.
273
- - **Open whole file** — each file header has an *"Open file ↗"* link that opens the full working-tree file, syntax-highlighted and read-only, in a new tab. (Hidden for deleted/binary files and in `--static` mode, which has no server to read from.)
274
- - **Word-level intra-line diff**, npm-bundled syntax highlighting, auto-collapsed large/migration files, and a file-tree sidebar with per-file viewed checkboxes.
275
-
276
- ### Interactive review (`wd -c`)
277
-
278
- Designed to be driven by an AI assistant (or any process that wants to react to comments as they happen). When you save a comment in the browser it lands on stdout as a markdown chunk like:
279
-
255
+ work tree api feat/login --prompt "Add rate limiting to login" # new worktree + Claude, your terminal attached
256
+ work tree api # the repo's own checkout: pull, continue the last conversation
257
+ work attach # this terminal on the session for this folder (Ctrl+] detaches)
258
+ work sessions [--json] [--changes] # every session and its status, as the app shows it
259
+ work digest --since yesterday # what each session did, as Markdown
260
+ work search "rate limit" # every conversation, live and archived
261
+ work read / screen / send -m "…" / wait # another session's messages, screen; message it; wait for its turn
262
+ work fork feat/login-v2 # fork the session for this folder
263
+ work update # bring the branch up to date from main (or its parent)
264
+ work snooze --for 2h | pin | note | block # the same as the app's menu
265
+ work pr reply / post # drafts and posting review replies (Claude uses these)
266
+ work cleanup [--apply] [--build-folders] [--branches]
267
+ work run --all npm test # a command in every worktree
268
+ work broadcast --all "rebase onto main" # a prompt to every live session
269
+ work time | timesheet show | todo # time, the Time tab's day, your task list
270
+ work move export <dir> / import <dir> # to another computer
271
+ work config add|remove|list|group … # repos and groups
272
+ wd [-c] [--static] # the diff page for this folder (-c: review with comments)
280
273
  ```
281
- --- comment ---
282
- **api/src/users.ts** : line 42 (right)
283
- id: 1df977d4...
284
- > use the new helper here
285
- ```
286
-
287
- Other features in review mode:
288
-
289
- - **Markdown comments** — both your comments and Claude's replies render as formatted markdown (code blocks, lists, links), not raw text.
290
- - **Live reload** via SSE — the page refreshes itself when files change; reloads are deferred while you're composing so your draft isn't lost.
291
- - **Threaded replies** — a wrapping process posts replies with `parentId` and `author: 'claude'`. In the normal (work-web) flow that's `POST <web>/api/scopes/<hash>/comments`, where `<hash>` is the segment from the `/review/<hash>` URL; the standalone fallback is `POST <url>/api/comments`. Replies render inline under the original with distinct styling.
292
- - **Resolve / mark done** — mark a comment thread resolved: it collapses to a one-line bar in the diff (click to reopen), and stays listed but dimmed + struck-through in the comments panel, so you can fold away what's handled without losing the record.
293
- - **Whole-file comments** — a *Comment on file* button in each file header attaches a comment to the file as a whole (GitHub-style), not a specific line.
294
- - **Drafts & submit** — stage multiple comments as drafts, then submit them in one batch (GitHub-style).
295
- - **Outdated detection** — the line's raw content is captured at compose time; if the file changes underneath, the comment is dimmed with an "outdated" badge.
296
- - **General comments** — a top-of-page composer for review notes that aren't tied to any line.
297
- - **Stable scope hash** — keep one tab open across repeated `wd` / `wd -c` invocations for the same worktree.
298
274
 
299
- When running standalone (no `work web`), the live URL is published to `~/.work/diffs/latest-review.url` so any local tool can find it without scraping stdout. A ready-made Claude Code skill ships as the `work-tree` plugin (`plugins/work-tree/skills/wd-review/SKILL.md`) — installing the npm package auto-registers the plugin marketplace and installs the plugin when the `claude` CLI is present. To add it manually from the Moberg plugin marketplace:
300
-
301
- ```bash
302
- /plugin marketplace add moberghr/moberg-plugins
303
- /plugin install work-tree@moberg-plugins
304
- ```
305
-
306
- Then say *"review my changes with wd"* in any Claude session to drive the loop.
275
+ `work --help` and `work <command> --help` list every flag. [CLAUDE.md](CLAUDE.md) has the full reference.
307
276
 
308
277
  ---
309
278
 
310
279
  ## Configuration
311
280
 
312
- Stored at `~/.work/config.json`:
281
+ Most of it is set in the app (Welcome, Repos & groups). Everything lives in `~/.work/config.json`:
313
282
 
314
283
  ```json
315
284
  {
316
- "worktreesRoot": "/Users/you/worktrees",
317
- "repos": {
318
- "api": "/Users/you/repos/api",
319
- "web": "/Users/you/repos/web"
320
- },
321
- "groups": {
322
- "fullstack": ["api", "web"]
323
- },
324
- "copyFiles": [
325
- "*.Development.json",
326
- "*.Local.json",
327
- ".claude/settings.local.json"
328
- ],
329
- "aiCommand": "claude",
285
+ "worktreesRoot": "C:/Users/you/source/worktrees",
286
+ "repos": { "api": "C:/Users/you/source/repos/api", "web": "C:/Users/you/source/repos/web" },
287
+ "groups": { "shop": ["api", "web"] },
288
+ "copyFiles": ["*.Development.json", ".env.local", ".claude/settings.local.json"],
330
289
  "editor": "code",
331
- "portRange": { "start": 3000, "end": 3099 },
332
290
  "devCommands": { "web": "npm run dev -- --port $PORT" },
333
- "notifications": false,
334
- "statusHooks": [
335
- { "on": "needs_input", "command": "afplay /System/Library/Sounds/Glass.aiff" }
336
- ]
291
+ "statusHooks": [{ "on": "needs_input", "command": "afplay /System/Library/Sounds/Glass.aiff" }]
337
292
  }
338
293
  ```
339
294
 
340
295
  | Key | Purpose |
341
296
  |:---|:---|
342
- | `worktreesRoot` | Parent directory for every worktree. |
343
- | `repos` | Alias → repo path. |
344
- | `groups` | Group name → list of repo aliases. |
345
- | `copyFiles` | Glob patterns copied into every new worktree — the canonical use is local dev settings (`appsettings.Development.json`, `.env.local`, `.claude/settings.local.json`) that are gitignored but needed to run the app. |
346
- | `aiCommand` | The AI CLI to auto-launch (default `claude`). Set it to any other tool; per-tool flag names live under `aiCommandFlags`. |
347
- | `editor` | Editor command for `--open` / "open in editor" (default `code`). |
348
- | `portRange` | Port window `work web` allocates from (default `3000`–`3099`). |
349
- | `prWatch` | `{ "autoArchive": true, "fixCi": true, "reviewComments": true }` (all default on). **Review comments:** new feedback on an open PR (unresolved review threads, reviews and comments by others — never your own) is handed to that session's Claude to address; threads still open when watching starts count too, old conversation doesn't. Claude doesn't post on GitHub; if a comment needs your call it starts its reply with `DECISION NEEDED:` and the session lands in the Inbox as *needs input* with a notification. The header shows the number of open review threads. `work web` checks recent sessions' PRs every 3 minutes: a session whose PRs have all merged (with nothing since) archives itself — in a group only once every repo is done — and when a PR's checks fail, that session's Claude is told which ones (once per pushed commit) and asked to fix them, or to ask you if it needs a decision. The session header shows failing checks with **Ask Claude to fix**. |
350
- | `devCommands` | Dev-server command per repo alias, e.g. `{ "web": "npm run dev -- --port $PORT" }`. The session header shows the worktree's `$PORT`, whether anything serves on it (with a **Preview ↗** link), and **▶ Start dev** / **■ Stop** / **Log** for this command. In a group, the first repo with a command gets the port. |
351
- | `notifications` | Opt-in desktop notification when a session goes idle or needs input. |
352
- | `statusHooks` | Run your own shell command on a session status change — see below. |
353
- | `launchViaHost` | Default `true`: `work tree` runs the AI session in the background PTY host and attaches your terminal to it, so it survives closing the tab, `work web` shows the very same screen, and it comes back after a reboot. Detach with Ctrl+]; `work attach` reconnects. Set `false` to launch directly in the terminal (invisible to the dashboard); per call: `--host` / `--no-host`. |
354
-
355
- Edit via `work config edit`, or manage repos/groups via the `work config …` subcommands.
356
-
357
- ### Notifications & status hooks
358
-
359
- When a background AI session finishes its turn (`idle`) or blocks waiting on you (`needs_input`), Work can let you know — `work web` does it via its Claude hooks, for any Claude on the machine:
360
-
361
- - **Only when you're not looking.** Nothing fires for a session a focused dashboard tab is showing. Click **Enable notifications** on the Inbox tab and the dashboard raises browser notifications instead — clicking one jumps to that session (the terminal if it's asking you something, the diff if it finished). The desktop toast below is the fallback for when no dashboard tab can notify.
362
- - **`notifications: true`** — fires a native desktop notification (macOS `osascript`, Linux `notify-send`, Windows BurntToast/balloon best-effort). Repeated alerts within one idle period are de-duplicated; submitting a new prompt re-arms it.
363
- - **`statusHooks`** — the general form. Each entry is `{ "on": "idle" | "needs_input", "command": "..." }`. The command runs (with the session directory as cwd) on that transition, with `WORK_SESSION` and `WORK_STATUS` in its environment — use it for sounds, Slack pings, or anything scriptable.
364
-
365
- ### Session tracking
366
-
367
- Every `work tree` invocation upserts a row into `~/.work/state.db` (SQLite) keyed by `target + branch`. This powers:
368
-
369
- - **`work status`** — joins history with live `git status` to show merge state, dirty trees, unpushed commits, and last-access timestamps.
370
- - **`work recent`** — sessions sorted by last touched.
371
- - **`work resume`** — interactive picker; one keystroke to re-enter the worktree and continue the prior AI conversation.
372
- - **`work prune` / `work sync`** — `prune` interactively removes worktrees whose branches landed on `main`/`master`; `work sync` does the same non-interactively after fetching every repo in parallel (`--dry-run` to preview, `--force` to include dirty/unpushed trees, `--include-squash` to also catch squash-merged branches).
373
- - **Dashboard reactivity** — every write bumps a change counter the running `work web` polls, so a `work tree` in another terminal shows up in the dashboard within a second.
374
-
375
- All session state (history, status, review comments, restore list, tasks) lives in that one database, so the CLI, Claude's hooks, `work web` and the PTY host can all write at once without losing updates. Upgrading from a version with JSON files imports them on first run and keeps the originals as `*.migrated`. `work state` shows what's stored; `work state --export <dir>` writes it back out as the old JSON files.
376
-
377
- ---
378
-
379
- ## Architecture
380
-
381
- Three kinds of process: the `work` CLI, the `work web` dashboard server (one
382
- per user), and the PTY host that owns every agent's terminal, so agents
383
- survive dashboard restarts and reboots. All logic lives in `src/core/`,
384
- grouped by feature; the CLI (`src/commands/`) and the HTTP server
385
- (`src/server/`) are thin front-ends over it. Session state is one SQLite
386
- database, `~/.work/state.db`.
387
-
388
- **[docs/ARCHITECTURE.md](docs/ARCHITECTURE.md)** has the overview: processes,
389
- source layout, state, the agent interface, one turn end to end, the security
390
- model. The decisions behind it are in [docs/adr/](docs/adr/README.md).
391
-
392
- ### Design principles
393
-
394
- | Principle | What it means |
395
- |:---|:---|
396
- | **Atomic worktree operations** | `setupWorktree()` and `teardownWorktree()` are the high-level entry points used by both the CLI and `work web`. Low-level `createSingleWorktree()` rolls back on partial failure. |
397
- | **Resolver pattern** | One name (`api`, `fullstack`) is dispatched through `resolveProjectTarget()` to either a group or a single repo. Commands branch on `isGroup` once and delegate. |
398
- | **Branch resolution priority** | Local exists → remote exists (tracking branch) → neither (new branch from base). |
399
- | **Path normalisation** | `feature/login` → `feature-login` directory. Always. |
400
- | **External binaries are external** | tsup bundles `src/bin.ts` as ESM with all dependencies marked `external` — they're resolved from `node_modules` at runtime. Adding a dep means `npm install` *and* rebuild. |
401
- | **Color forcing for Windows** | `bin.ts` raises `chalk.level` to 1 when chalk detects 0 — Windows `.cmd` shims don't preserve TTY detection. `NO_COLOR` is respected. |
402
-
403
- ---
404
-
405
- ## Tab Completion
406
-
407
- Auto-installed during `work init`. Available standalone:
408
-
409
- ```bash
410
- work completion --install
411
- ```
412
-
413
- Detects PowerShell 7 / 5.1 on Windows (via `[Environment]::GetFolderPath('MyDocuments')`) and bash / zsh on Unix (via `$SHELL`). Idempotent — uses a `# work tab completions` marker to skip if already present. Manual fallback:
414
-
415
- | Shell | Add to profile |
416
- |:---|:---|
417
- | **PowerShell** (`$PROFILE`) | `work completion --shell powershell \| Out-String \| Invoke-Expression` |
418
- | **Bash** (`~/.bashrc`) | `eval "$(work completion)"` |
419
- | **Zsh** (`~/.zshrc`) | `eval "$(work completion)"` |
420
-
421
- Completions are dynamic — branch names come from the worktree directory listing for groups, and from each repo's worktree list for single repos.
422
-
423
- ---
424
-
425
- ## Development
426
-
427
- ```bash
428
- npm ci && npm run build && npm link # `work` and `wd` from this checkout
429
- npm run typecheck && npm run lint && npm test
430
- ```
431
-
432
- See **[CONTRIBUTING.md](CONTRIBUTING.md)** for the checks, where code goes, and
433
- how releases work; [CHANGELOG.md](CHANGELOG.md) for what changed;
434
- [SECURITY.md](SECURITY.md) to report a vulnerability.
435
-
436
- ---
437
-
438
- ## Unsafe Mode & Debug Logging
439
-
440
- `--unsafe` on `work tree` or `work resume` passes the AI tool's skip-permissions flag (`--dangerously-skip-permissions` for Claude Code; configurable per tool via `aiCommandFlags`) — useful in trusted, sandboxed worktrees, dangerous everywhere else. Use deliberately.
441
-
442
- All CLI output and internal debug messages stream to `~/.work/debug.log` with timestamps. Auto-rotates at 5 MB. The first place to look when worktree creation, group CLAUDE.md generation, or hook delivery misbehaves.
297
+ | `worktreesRoot` | Where worktrees go. |
298
+ | `repos`, `groups` | Your repos by alias, and groups of them. |
299
+ | `copyFiles` | Git-ignored files copied into each new worktree. |
300
+ | `editor` | What **Open in editor** runs (default `code`). |
301
+ | `devCommands` | Each repo's dev-server command; `$PORT` is the worktree's own port. |
302
+ | `statusHooks` | Your command on `needs_input` / `idle`, with `WORK_SESSION` and `WORK_STATUS` set. |
303
+ | `notifications` | `true` for a desktop toast when no dashboard can notify you. |
304
+ | `prompts` | Your own saved prompts for **Send a prompt** (replacing the defaults; each can be limited to some repos). |
305
+ | `prWatch` | `trustedBots` (whose review comments reach Claude), `wakeClaude` (start a stopped Claude for a PR note). |
306
+ | `sleepIdleAfterMinutes` | When an unused Claude is stopped to free memory (default 120; 0 = never). |
307
+ | `time` | The Time tab: hours a day, tickets for gaps and days off, Tempo and Outlook settings. |
308
+ | `aiCommand`, `aiCommandFlags` | The agent new sessions run (default Claude Code). |
443
309
 
444
310
  ---
445
311
 
446
312
  ## FAQ
447
313
 
448
314
  <details>
449
- <summary><b>Why git worktrees instead of branches in one checkout?</b></summary>
450
-
451
- Branches share a working directory. Worktrees give every branch its own isolated checkout — separate `node_modules`, separate `bin/obj`, separate dev-server processes, separate Claude Code sessions. You can run all of them concurrently without `git stash` gymnastics or losing your build cache.
452
- </details>
453
-
454
- <details>
455
- <summary><b>Do I have to use Claude Code?</b></summary>
315
+ <summary><b>Why worktrees?</b></summary>
456
316
 
457
- No — `work tree`, `work list`, `work status`, `work prune`, and the dashboard's session pane all work without Claude Code installed. You just lose auto-launch, group CLAUDE.md generation, and the embedded terminal in the dashboard. The CLI degrades gracefully when `claude` isn't on PATH.
317
+ Each branch gets its own folder: its own `node_modules`, build output, dev server and Claude session. Several agents can work at once without stepping on each other, and you never stash to switch.
458
318
  </details>
459
319
 
460
320
  <details>
461
- <summary><b>Does the dashboard work on Windows?</b></summary>
321
+ <summary><b>Does closing the app stop my agents?</b></summary>
462
322
 
463
- Yes. Ink and node-pty support Windows; PowerShell completions are installed automatically. Mouse and keyboard handling work in Windows Terminal, ConEmu, and the new VS Code integrated terminal.
323
+ No. Claude sessions run in a background host: closing or updating the app doesn't end them. After a reboot they come back with their conversation.
464
324
  </details>
465
325
 
466
326
  <details>
467
- <summary><b>What happens when a worktree's branch is merged?</b></summary>
327
+ <summary><b>Can it post on GitHub without me?</b></summary>
468
328
 
469
- `work prune` lists every worktree whose branch is merged into `main` / `master` and offers to remove them interactively. `--force` skips the prompt. For groups, every sub-repo's branch must be merged before the group is offered.
329
+ No. Claude drafts replies to review comments; they're posted only when you click **Post** or tell Claude yes in its conversation, and Claude Code asks you before running that command. work merges a pull request only when you click Merge in **Ship…**.
470
330
  </details>
471
331
 
472
332
  <details>
473
- <summary><b>Can I customize which files get copied into new worktrees?</b></summary>
333
+ <summary><b>What does Archive delete?</b></summary>
474
334
 
475
- Yes — edit `copyFiles` in `~/.work/config.json` (or run `work config edit`). Any glob pattern works. The default set covers `*.Development.json`, `*.Local.json`, and `.claude/settings.local.json` — the typical "gitignored but required to run" trio.
335
+ Only what can be recreated. The worktree folder is removed when everything in it is pushed or saved; uncommitted files and local settings are saved first, and **Restore** puts everything back. A worktree with commits not yet in main is kept.
476
336
  </details>
477
337
 
478
338
  <details>
479
- <summary><b>How does the Jira → branch flow work?</b></summary>
339
+ <summary><b>Do I need Claude Code?</b></summary>
480
340
 
481
- Pick a Jira issue in the dash, choose the target project, and Work invokes Claude Haiku with the issue title to generate a branch slug. It then runs `work tree <project> <slug>` in a PTY and pipes a structured planning prompt to Claude via `--prompt-file`. End result: a fresh worktree with Claude already thinking about your ticket.
341
+ It's the default and gets every feature. Another CLI agent (`aiCommand`, e.g. `opencode`) runs in the terminal tab and is managed the same way, with a simpler status (working or idle, from its output) and without the features that read Claude's conversation or hooks (its questions in the Inbox, turns, catch-up, context fill).
482
342
  </details>
483
343
 
484
344
  <details>
485
- <summary><b>Can I use my own AI assistant instead of Claude Code?</b></summary>
345
+ <summary><b>Windows, macOS, Linux?</b></summary>
486
346
 
487
- Yes. Set `aiCommand` in `~/.work/config.json` to any CLI (and adjust `aiCommandFlags` for that tool's unsafe / resume / prompt-file flag names). Work will launch it on `work tree` and embed it in the dashboard terminal the same way. Claude Code remains the default and the only tool with first-class group `CLAUDE.md` generation and the review hook bridge.
347
+ All three, for both the app and the CLI. It's built and used daily on Windows.
488
348
  </details>
489
349
 
490
350
  ---
491
351
 
492
- ## License
493
-
494
- MIT — see [LICENSE](LICENSE).
495
-
496
- ---
497
-
498
- <div align="center">
499
-
500
- **Work — Git Worktree Manager** · [Moberg d.o.o.](https://www.moberg.hr)
352
+ ## More
501
353
 
502
- Built for engineers who run more than one branch at a time.
354
+ - [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md): how it's put together (processes, state, the agent interface, security), and [docs/adr/](docs/adr/README.md) for the decisions behind it.
355
+ - [CONTRIBUTING.md](CONTRIBUTING.md): building, testing, releasing. [CHANGELOG.md](CHANGELOG.md), [SECURITY.md](SECURITY.md).
356
+ - `~/.work/debug.log`: the first place to look when something misbehaves.
503
357
 
504
- </div>
358
+ MIT licensed · [Moberg d.o.o.](https://www.moberg.hr)