claude-code-session-manager 0.140.0 → 0.142.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 (204) hide show
  1. package/README.md +80 -70
  2. package/bin/cli.cjs +11 -0
  3. package/dist/assets/AppSettings-BcZgIvvY.js +2 -0
  4. package/dist/assets/{History--JwsFnbn.js → History-DpZuJXi1.js} +1 -1
  5. package/dist/assets/HomeClaudeConfig-D32ZJtU-.js +3 -0
  6. package/dist/assets/{Panel-CALyU0pe.js → Panel-BjdJjhqt.js} +1 -1
  7. package/dist/assets/{ProjectClaudeConfig-sdlA-fUb.js → ProjectClaudeConfig-BTClYV6i.js} +7 -7
  8. package/dist/assets/Scheduler-DPobKx1Z.js +16 -0
  9. package/dist/assets/{SkillReferenceGraph-CxAuwhNN.js → SkillReferenceGraph-Cqyu4mef.js} +1 -1
  10. package/dist/assets/{Skills-DtRzghn5.js → Skills-vv0noNVI.js} +5 -5
  11. package/dist/assets/{TiptapBody-DApeu7x8.js → TiptapBody-CXi8Pvut.js} +1 -1
  12. package/dist/assets/Toggle-CiYCWLjh.js +1 -0
  13. package/dist/assets/{VoiceButton-DtStfv1H.js → VoiceButton-4NKKd1sC.js} +1 -1
  14. package/dist/assets/{historyTotals-ydfnwepc.js → historyTotals-DDunb8Ch.js} +1 -1
  15. package/dist/assets/index-Cn5E9958.js +3133 -0
  16. package/dist/assets/{index-DKXdXfka.css → index-DVHIHoJf.css} +1 -1
  17. package/dist/index.html +2 -2
  18. package/dist-web/app.css +1 -1
  19. package/dist-web/app.js +496 -484
  20. package/package.json +4 -2
  21. package/plugins/AGENTS.md +4 -3
  22. package/plugins/session-manager-dev/hooks/hooks.json +15 -0
  23. package/plugins/session-manager-dev/hooks/residue-check.cjs +241 -0
  24. package/plugins/session-manager-dev/skills/builder/SKILL.md +4 -2
  25. package/plugins/session-manager-dev/skills/develop/SKILL.md +55 -18
  26. package/plugins/session-manager-dev/skills/develop/standards.md +3 -2
  27. package/scripts/README.md +1 -0
  28. package/scripts/hooks/guard-tool-risk.cjs +5 -1
  29. package/scripts/hooks/lib/guard-tool-risk-policy.cjs +158 -1
  30. package/scripts/scheduler-mcp-server.cjs +737 -110
  31. package/src/main/adminRouteRegistry.cjs +59 -0
  32. package/src/main/agentLibrary.cjs +72 -4
  33. package/src/main/agentsIpc.cjs +3 -2
  34. package/src/main/build-info.json +4 -4
  35. package/src/main/chatRunner.cjs +231 -16
  36. package/src/main/config.cjs +30 -0
  37. package/src/main/docEdit.cjs +4 -2
  38. package/src/main/health.cjs +91 -0
  39. package/src/main/index.cjs +98 -48
  40. package/src/main/ipcSchemas.cjs +171 -8
  41. package/src/main/lib/AGENTS.md +1 -1
  42. package/src/main/lib/chatBootRecovery.cjs +2 -0
  43. package/src/main/lib/claude/agentModelResolve.cjs +51 -25
  44. package/src/main/lib/claude/agentSnapshot.cjs +186 -0
  45. package/src/main/lib/claude/environmentProfiles.cjs +242 -0
  46. package/src/main/lib/claude/jobSandboxPolicy.cjs +241 -33
  47. package/src/main/lib/claude/personaToolScope.cjs +82 -31
  48. package/src/main/lib/claude/runClaudeP.cjs +4 -2
  49. package/src/main/lib/claude/toolRiskMarks.cjs +41 -1
  50. package/src/main/lib/claude/usageCircuit.cjs +49 -21
  51. package/src/main/lib/claude/vaultRefs.cjs +277 -0
  52. package/src/main/lib/demo-video-kit/capture.cjs +282 -12
  53. package/src/main/lib/demo-video-kit/cast.md +43 -0
  54. package/src/main/lib/demo-video-kit/character.cjs +722 -30
  55. package/src/main/lib/demo-video-kit/checks.cjs +120 -1
  56. package/src/main/lib/demo-video-kit/export.cjs +218 -0
  57. package/src/main/lib/demo-video-kit/frames.cjs +104 -9
  58. package/src/main/lib/demo-video-kit/kind-marketing.md +121 -0
  59. package/src/main/lib/demo-video-kit/kind-tiktok.md +99 -0
  60. package/src/main/lib/demo-video-kit/kokoroSay.cjs +205 -0
  61. package/src/main/lib/demo-video-kit/project-home-html.md +43 -0
  62. package/src/main/lib/demo-video-kit/resumableRun.cjs +298 -0
  63. package/src/main/lib/demo-video-kit/seedKit.cjs +3 -3
  64. package/src/main/lib/demo-video-kit/voiceLane.cjs +233 -0
  65. package/src/main/lib/demo-video-kit/voiceLibrary.cjs +312 -0
  66. package/src/main/lib/epic/artifactAdminRoutes.cjs +211 -0
  67. package/src/main/lib/epic/artifactIpc.cjs +153 -0
  68. package/src/main/lib/epic/artifactNotice.cjs +72 -0
  69. package/src/main/lib/epic/artifactRetention.cjs +310 -0
  70. package/src/main/lib/epic/artifactStore.cjs +392 -0
  71. package/src/main/lib/epic/delegationReadiness.cjs +76 -2
  72. package/src/main/lib/epic/epicAgentRefresh.cjs +97 -0
  73. package/src/main/lib/epic/epicEventLog.cjs +214 -0
  74. package/src/main/lib/epic/epicMint.cjs +43 -1
  75. package/src/main/lib/epic/epicOutsideRead.cjs +1 -0
  76. package/src/main/lib/epic/epicOutsideState.cjs +18 -4
  77. package/src/main/lib/epic/epicPurge.cjs +347 -0
  78. package/src/main/lib/epic/epicReopen.cjs +5 -2
  79. package/src/main/lib/epic/epicSettle.cjs +4 -13
  80. package/src/main/lib/epic/epicSpawnPlan.cjs +57 -4
  81. package/src/main/lib/epic/epicStatusMirror.cjs +34 -1
  82. package/src/main/lib/epic/epicTransitions.cjs +139 -0
  83. package/src/main/lib/epic/epicValidationHook.cjs +81 -2
  84. package/src/main/lib/epic/guardSpawnSettings.cjs +3 -2
  85. package/src/main/lib/externalContract.cjs +37 -4
  86. package/src/main/lib/feedback-remote/crossProjectReply.cjs +389 -126
  87. package/src/main/lib/feedback-remote/customerFeedbackAdminRoutes.cjs +16 -3
  88. package/src/main/lib/feedback-remote/customerFeedbackClient.cjs +11 -6
  89. package/src/main/lib/feedback-remote/customerFeedbackInbox.cjs +26 -1
  90. package/src/main/lib/feedback-remote/customerFeedbackIpc.cjs +5 -2
  91. package/src/main/lib/feedback-remote/feedbackBoxDrain.cjs +409 -0
  92. package/src/main/lib/feedback-remote/feedbackBoxKeys.cjs +218 -0
  93. package/src/main/lib/feedback-remote/feedbackEnvelope.cjs +163 -0
  94. package/src/main/lib/feedback-remote/feedbackRelayClient.cjs +164 -0
  95. package/src/main/lib/feedback-remote/feedbackReport.cjs +234 -0
  96. package/src/main/lib/feedback-remote/feedbackSeal.cjs +217 -0
  97. package/src/main/lib/feedback-remote/localAdminHttp.cjs +108 -2
  98. package/src/main/lib/feedback-remote/macroAdminRoutes.cjs +2 -1
  99. package/src/main/lib/feedback-remote/needsYouIpc.cjs +17 -0
  100. package/src/main/lib/feedback-remote/needsYouStore.cjs +177 -6
  101. package/src/main/lib/feedback-remote/pendingReplies.cjs +189 -0
  102. package/src/main/lib/feedback-remote/projectHomeAdminRoutes.cjs +188 -10
  103. package/src/main/lib/feedback-remote/serviceClient.cjs +429 -0
  104. package/src/main/lib/feedback-remote/serviceMcpSession.cjs +252 -0
  105. package/src/main/lib/feedback-remote/serviceMcpTools.cjs +284 -0
  106. package/src/main/lib/feedback-remote/servicePairings.cjs +313 -0
  107. package/src/main/lib/feedback-remote/serviceStdioBridge.cjs +290 -0
  108. package/src/main/lib/feedback-remote/siteFeedbackAdminRoutes.cjs +295 -0
  109. package/src/main/lib/feedback-remote/siteFeedbackInbox.cjs +598 -0
  110. package/src/main/lib/feedback-remote/siteFeedbackIpc.cjs +86 -0
  111. package/src/main/lib/feedback-remote/siteFeedbackService.cjs +477 -0
  112. package/src/main/lib/git/worktreeDeps.cjs +77 -2
  113. package/src/main/lib/mcpToolCatalog.cjs +315 -30
  114. package/src/main/lib/opsOwnership.cjs +29 -1
  115. package/src/main/lib/opsRetentionSettings.cjs +27 -5
  116. package/src/main/lib/persona-macro/builtinMacros.cjs +7 -2
  117. package/src/main/lib/persona-macro/macroJobDispatch.cjs +52 -8
  118. package/src/main/lib/persona-macro/macroJobIpc.cjs +16 -6
  119. package/src/main/lib/persona-macro/macroLibrary.cjs +49 -7
  120. package/src/main/lib/persona-macro/personaFrontmatterSchema.cjs +83 -0
  121. package/src/main/lib/persona-macro/projectVideoToolCheck.cjs +3 -0
  122. package/src/main/lib/persona-macro/shippedPersonaSeeds.cjs +263 -0
  123. package/src/main/lib/phaseProjection.cjs +103 -0
  124. package/src/main/lib/prd/depSlugResolve.cjs +4 -13
  125. package/src/main/lib/prd/prdBodyPatch.cjs +12 -17
  126. package/src/main/lib/prd/prdCreate.cjs +67 -5
  127. package/src/main/lib/prd/prdCriteria.cjs +225 -0
  128. package/src/main/lib/prd/prdFrontmatter.cjs +68 -3
  129. package/src/main/lib/prd/prdGateFiles.cjs +125 -49
  130. package/src/main/lib/prd/prdSizing.cjs +3 -1
  131. package/src/main/lib/process/cleanEnv.cjs +52 -1
  132. package/src/main/lib/process/leftoverRenice.cjs +178 -0
  133. package/src/main/lib/process/memoryScope.cjs +31 -3
  134. package/src/main/lib/project-pages/pagesLibrary.cjs +72 -6
  135. package/src/main/lib/project-pages/videoReviewIpc.cjs +3 -2
  136. package/src/main/lib/project-pages/voiceAdminRoutes.cjs +175 -0
  137. package/src/main/lib/project-pages/voicePreview.cjs +196 -0
  138. package/src/main/lib/project-pages/voicesIpc.cjs +186 -0
  139. package/src/main/lib/promptSessionSchema.cjs +6 -0
  140. package/src/main/lib/scheduler/cancelledRow.cjs +57 -0
  141. package/src/main/lib/scheduler/cpuSample.cjs +133 -42
  142. package/src/main/lib/scheduler/criteriaChecks.cjs +169 -0
  143. package/src/main/lib/scheduler/definitionOfDone.cjs +44 -5
  144. package/src/main/lib/scheduler/jobMemoryStats.cjs +313 -0
  145. package/src/main/lib/scheduler/loadGate.cjs +82 -4
  146. package/src/main/lib/scheduler/planRecordHarvest.cjs +32 -2
  147. package/src/main/lib/scheduler/prdOutcomeRecord.cjs +133 -0
  148. package/src/main/lib/scheduler/preflightCheck.cjs +97 -0
  149. package/src/main/lib/scheduler/reviewNotice.cjs +39 -0
  150. package/src/main/lib/scheduler/runLogRetention.cjs +42 -1
  151. package/src/main/lib/scheduler/scheduleJobSchema.cjs +5 -0
  152. package/src/main/lib/scheduler/scheduleJobTransitions.cjs +47 -0
  153. package/src/main/lib/scheduler/schedulerConfig.cjs +47 -0
  154. package/src/main/lib/scheduler/schedulerPaths.cjs +0 -3
  155. package/src/main/lib/scheduler/schedulerRuntimeState.cjs +50 -1
  156. package/src/main/lib/scheduler/sessionSlots.cjs +5 -1
  157. package/src/main/lib/scheduler/slotsRoute.cjs +237 -0
  158. package/src/main/lib/scheduler/toolClearance.cjs +258 -0
  159. package/src/main/lib/scheduler/validatorVerdictSchema.cjs +140 -10
  160. package/src/main/lib/tasks/memoryConsolidation.cjs +300 -0
  161. package/src/main/lib/tasks/mitigationReview.cjs +294 -0
  162. package/src/main/lib/tasks/taskAdminRoutes.cjs +312 -22
  163. package/src/main/lib/tasks/taskIpc.cjs +22 -18
  164. package/src/main/lib/tasks/taskLedger.cjs +147 -25
  165. package/src/main/lib/tasks/taskRun.cjs +186 -17
  166. package/src/main/lib/tasks/taskSwitch.cjs +85 -12
  167. package/src/main/lib/tasks/taskSwitchRoute.cjs +172 -0
  168. package/src/main/lib/telemetry/auditEvents.cjs +207 -6
  169. package/src/main/lib/telemetry/eventsAdminRoutes.cjs +198 -6
  170. package/src/main/lib/telemetry/webhookDelivery.cjs +205 -0
  171. package/src/main/lib/telemetry/webhookRegistry.cjs +281 -0
  172. package/src/main/lib/toolUseClassify.cjs +181 -0
  173. package/src/main/lib/util/smfileRange.cjs +77 -0
  174. package/src/main/projectPages.cjs +3 -1
  175. package/src/main/promptSessionEvents.cjs +5 -0
  176. package/src/main/pty.cjs +68 -0
  177. package/src/main/queueOps.cjs +32 -13
  178. package/src/main/runVerify.cjs +74 -9
  179. package/src/main/scheduler/AGENTS.md +1 -0
  180. package/src/main/scheduler/budget.cjs +6 -5
  181. package/src/main/scheduler/prdParser.cjs +62 -14
  182. package/src/main/scheduler/reviewLadder.cjs +45 -28
  183. package/src/main/scheduler/starvation.cjs +69 -0
  184. package/src/main/scheduler/utilizationHold.cjs +101 -0
  185. package/src/main/scheduler.cjs +1745 -210
  186. package/src/main/templates/PRD_AUTHORING.md +13 -2
  187. package/src/main/webRemote.cjs +463 -6
  188. package/src/preload/api.d.ts +529 -38
  189. package/src/preload/apiSurface.json +209 -7
  190. package/src/preload/index.cjs +46 -1
  191. package/src/seed/agents/architect.md +6 -1
  192. package/src/seed/agents/blender-artist.md +2 -1
  193. package/src/seed/agents/competitive-analyst.md +3 -1
  194. package/src/seed/agents/competitive-researcher.md +2 -1
  195. package/src/seed/agents/demo-video-builder.md +87 -83
  196. package/src/seed/agents/dev-lead.md +3 -3
  197. package/src/seed/agents/project-home-builder.md +9 -31
  198. package/src/seed/agents/validator.md +9 -10
  199. package/dist/assets/AppSettings-CMFEM68R.js +0 -2
  200. package/dist/assets/HomeClaudeConfig-ijEXs--3.js +0 -3
  201. package/dist/assets/Scheduler-YT3j8SUa.js +0 -16
  202. package/dist/assets/ViewTabs-B7qLXRAH.js +0 -1
  203. package/dist/assets/index-CtxruO1L.js +0 -3121
  204. package/src/main/lib/epic/epicStateWatcher.cjs +0 -157
package/README.md CHANGED
@@ -1,35 +1,35 @@
1
1
  # claude-code-session-manager
2
2
 
3
- > A free desktop app for Claude Code. Each piece of work is a session with its own agent, its own mission and its own copy of the repo. Queued work runs on its own, within your plan's usage limits. It is checked before it counts as done. Agents drive the app through an MCP server with <!-- gen:mcp-tool-count -->36<!-- /gen:mcp-tool-count --> tools and a plugin with <!-- gen:skill-count -->4<!-- /gen:skill-count --> skills. It runs on your machine. MIT license.
3
+ > A free desktop app for Claude Code. Each piece of work is a session with its own agent, mission and copy of the repo. Queued work runs on its own, within your plan's usage limits. It is checked before it counts as done. Agents drive the app through an MCP server with <!-- gen:mcp-tool-count -->50<!-- /gen:mcp-tool-count --> tools and a plugin with <!-- gen:skill-count -->4<!-- /gen:skill-count --> skills. It runs on your machine. MIT license.
4
4
 
5
5
  ## Facts
6
6
 
7
7
  | Key | Value |
8
8
  | --- | --- |
9
- | Kind | Desktop app built on Electron. It is not a library. It has no JS API. |
9
+ | Kind | Desktop app built on Electron. It has no JS API. |
10
10
  | Run | `npx claude-code-session-manager@latest` |
11
11
  | Installers | Mac `.dmg` and `.zip` (`arm64`, `x64`). Windows `.exe` (`x64`, `arm64`). Linux `AppImage` (`x64`). Get them from [GitHub Releases](https://github.com/StanislavBG/claude-code-session-manager/releases/latest). |
12
12
  | Needs | The Claude Code CLI, installed and signed in with your own account. `git`. Node <!-- gen:node-floor -->22.12.0<!-- /gen:node-floor --> or newer, for `npx` only. |
13
13
  | npx platforms | Linux and macOS. On Windows, use the installer. |
14
- | MCP server | `session-manager-scheduler`. It uses stdio. The app adds it for you. It needs the app to be running. |
14
+ | MCP server | `session-manager-scheduler`. It uses stdio. The app adds it for you. It needs the app running. |
15
15
  | Plugin | `session-manager-dev@session-manager` |
16
16
  | Agent CLIs | Claude Code is the default. Codex, Gemini CLI, Antigravity CLI, Cursor Agent and OpenCode work in Chat and Terminal only. |
17
- | Where state lives | App state: `~/.claude/session-manager/`. Per project: `<repo>/session-manager-operations/`. Session copies: `~/.local/state/session-manager/`, or `$XDG_STATE_HOME/session-manager/` when `XDG_STATE_HOME` is set. |
17
+ | Where state lives | App state: `~/.claude/session-manager/`. Per project: `<repo>/session-manager-operations/`. Session copies: `${XDG_STATE_HOME:-~/.local/state}/session-manager/`. |
18
18
  | Telemetry | Anonymous and on by default. Turn it off with `SM_TELEMETRY=0`. |
19
19
  | License | MIT |
20
20
 
21
21
  ## Not
22
22
 
23
- - It is not a hosted or cloud service. It is a desktop app. Your sessions and files stay on your machine.
24
- - It is not made, backed or supported by Anthropic. One person builds it as an open-source project.
25
- - It does not give you Claude access or replace a Claude plan. You need Claude Code, signed in with your own account.
23
+ - It is not a hosted or cloud service. Your sessions and files stay on your machine.
24
+ - It is not made or backed by Anthropic. One person builds it as open source.
25
+ - It does not replace a Claude plan. You need Claude Code, signed in with your own account.
26
26
  - It has no paid, pro or trial tier. The app and the Field Manual are both free.
27
- - It is not a team or business product. It has no support deal and no uptime promise.
27
+ - It is not a team product. It has no support deal or uptime promise.
28
28
  - It is not a library. You cannot `import` it.
29
29
 
30
30
  ## Features
31
31
 
32
- A few words first. A **session** (in code: an Epic) is one unit of work. A **Mission** is the kind of work. A **persona** is an agent's role file. A **worktree** is a separate copy of the repo on its own git branch. A **PRD** is a written work order that the scheduler runs.
32
+ A **session** (in code: an Epic) is one unit of work. A **Mission** is the kind of work. A **persona** is an agent's role file. A **worktree** is a copy of the repo on its own git branch. A **PRD** is a written work order that the scheduler runs.
33
33
 
34
34
  ### Sessions
35
35
 
@@ -43,14 +43,14 @@ A few words first. A **session** (in code: an Epic) is one unit of work. A **Mis
43
43
  | Chat and Terminal | These are two views of one CLI session. | Switch views and keep the same chat. | Session view |
44
44
  | Idle tabs | A tab starts no process until you send the first message. | Many open tabs cost almost nothing. | Sessions |
45
45
  | Changes | Shows what the session changed. | You can review the work before you merge it. | Session, Changes tab |
46
- | App preview | Runs one `npm` script per session on a free port. It opens the first local URL in your browser. | You can see the app from that session's copy. | Session view |
46
+ | App preview | Runs one `npm` script per session on a free port. It opens its first local URL. | You can see the app from that session's copy. | Session view |
47
47
 
48
48
  ### Scheduler
49
49
 
50
50
  | Feature | What it does | Why it helps | Where |
51
51
  | --- | --- | --- | --- |
52
52
  | Headless jobs | Runs each PRD as a `claude -p` job with a pinned `--model`. | Work goes on while you do other things. | Scheduler |
53
- | Run modes | `when-available` runs jobs while usage is under a set limit. `manual` runs a job only when you press Run. | Work fits inside your plan's limits. | Scheduler |
53
+ | Run modes | `when-available` runs jobs while usage is under a set limit. `manual` runs a job when you press Run. | Work fits inside your plan's limits. | Scheduler |
54
54
  | Order | A PRD waits for the PRDs named in its `dependsOn`. | Steps run in the right order. | PRD fields |
55
55
  | No clashes | Two PRDs that touch the same file never run at once. | Jobs do not break each other's edits. | Scheduler |
56
56
  | One slot pool | One pool of slots for the whole machine, plus a free-memory check. | The machine does not run out of memory. | Scheduler |
@@ -66,57 +66,57 @@ A few words first. A **session** (in code: an Epic) is one unit of work. A **Mis
66
66
 
67
67
  ### Agents, Missions and macros
68
68
 
69
- | Feature | What it does | Why it helps | Where |
70
- | --- | --- | --- | --- |
71
- | Agents library | Lists the personas on this machine. You can edit them. | You see each agent's role in one place. | Agents |
72
- | Macros | A macro saves an agent, a Mission and a prompt. One press starts one new session. | You can repeat common work fast. | Sessions |
73
- | Context packs | A pack adds a plugin and rules to one session. | A session gets extra skills only when it needs them. | New session form |
69
+ | Feature | What it does | Where |
70
+ | --- | --- | --- |
71
+ | Agents library | Lists the personas on this machine. You can edit them. | Agents |
72
+ | Macros | A macro saves an agent, a Mission and a prompt. One press starts one new session. | Sessions |
73
+ | Context packs | A pack adds a plugin and rules to one session. | New session form |
74
74
 
75
75
  ### Claude Code settings
76
76
 
77
- | Feature | What it does | Why it helps | Where |
78
- | --- | --- | --- | --- |
79
- | CLAUDE.md | Edits your `~/.claude/CLAUDE.md`. | You set rules for every session. | CLAUDE.md |
80
- | Claude config | Shows one project's `CLAUDE.md`, `.claude/settings.json`, `.mcp.json`, skills and memory folder. | You see what Claude loads for that repo. | Claude config |
81
- | Settings | Edits `settings.json` for each scope. It shows which scope wins. | You know which value is live. | Settings |
82
- | Hooks | Edits hooks. You can test-fire one. | You can check a hook before you rely on it. | Settings |
83
- | Extensions | Lists skills, MCP servers and plugins. | You see what is installed. | Extensions |
77
+ | Feature | What it does | Where |
78
+ | --- | --- | --- |
79
+ | CLAUDE.md | Edits your `~/.claude/CLAUDE.md`. | CLAUDE.md |
80
+ | Claude config | Shows one project's `CLAUDE.md`, `.claude/settings.json`, `.mcp.json`, skills and memory folder. | Claude config |
81
+ | Settings | Edits `settings.json` for each scope. It shows which scope wins. | Settings |
82
+ | Hooks | Edits hooks. You can test-fire one. | Settings |
83
+ | Extensions | Lists skills, MCP servers and plugins. | Extensions |
84
84
 
85
85
  ### Project Home
86
86
 
87
- | Feature | What it does | Why it helps | Where |
88
- | --- | --- | --- | --- |
89
- | Pages | Shows pages about the project. | New people learn the project fast. | Project Home |
90
- | Videos | Shows short demo videos. | You can show what the project does. | Project Home |
91
- | Competitor matrix | Compares the project with others, feature by feature. | You see where you lead and where you lag. | Project Home |
92
- | Video character | A saved look for the people in demo videos. | Videos look the same over time. | Project Home |
93
- | Written by agents | Agents write all of these through MCP tools. | You do not have to write them by hand. | MCP tools |
87
+ | Feature | What it does | Where |
88
+ | --- | --- | --- |
89
+ | Pages | Shows pages about the project. | Project Home |
90
+ | Videos | Shows short demo videos. | Project Home |
91
+ | Competitor matrix | Compares the project with others, feature by feature. | Project Home |
92
+ | Video character | A saved look for the people in demo videos. | Project Home |
93
+ | Written by agents | Agents write all of these through MCP tools. | MCP tools |
94
94
 
95
95
  ### Across projects
96
96
 
97
- | Feature | What it does | Why it helps | Where |
98
- | --- | --- | --- | --- |
99
- | Cross-project feedback | An agent sends a finding to another repo on this machine. It lands there as a `proposed` session. | A bug gets fixed in the repo that owns it. | `/send-feedback` |
100
- | Feedback to the maker | You send feedback about the app. | The maker hears what is wrong. | Feedback panel |
97
+ | Feature | What it does | Where |
98
+ | --- | --- | --- |
99
+ | Cross-project feedback | An agent sends a finding to another repo on this machine. It lands there as a `proposed` session. | `/send-feedback` |
100
+ | Feedback to the maker | You send feedback about the app. | Feedback panel |
101
101
 
102
102
  ### See what is going on
103
103
 
104
- | Feature | What it does | Why it helps | Where |
105
- | --- | --- | --- | --- |
106
- | Dashboard | Shows every project and every active session on this machine. | You see all work in one place. | Dashboard |
107
- | Usage meters | Show how much of your plan's limits you used. | You know when work will slow down. | Dashboard |
108
- | History | Shows spend, tokens and time across all projects. | You see where your usage goes. | History |
109
- | File Explorer | Browse and edit files. | You can fix a file without a second app. | File Explorer |
104
+ | Feature | What it does | Where |
105
+ | --- | --- | --- |
106
+ | Dashboard | Shows every project and every active session on this machine. | Dashboard |
107
+ | Usage meters | Show how much of your plan's limits you used. | Dashboard |
108
+ | History | Shows spend, tokens and time across all projects. | History |
109
+ | File Explorer | Browse and edit files. | File Explorer |
110
110
 
111
111
  ### Input and remote
112
112
 
113
- | Feature | What it does | Why it helps | Where |
114
- | --- | --- | --- | --- |
115
- | Voice input | Turns speech into text on your machine. Nothing leaves it. | You can talk instead of type. | App Settings |
116
- | Recording light | A light shows on top of every screen while the mic is on. | You always know when the mic is on. | Top of window |
117
- | Phone remote | Drive the app from your phone through the bilko.run relay. | You can check work when you are away. | App Settings |
118
- | Simple mode | `--simple` opens one plain terminal. | Use it when you want just a terminal. | Launch flag |
119
- | Command palette | `Cmd-K` or `Ctrl-K` opens a list of commands. | You can run any command from the keys. | Anywhere |
113
+ | Feature | What it does | Where |
114
+ | --- | --- | --- |
115
+ | Voice input | Turns speech into text on your machine. Nothing leaves it. | App Settings |
116
+ | Recording light | A light shows on top of every screen while the mic is on. | Top of window |
117
+ | Web remote | Drive the app from your phone, or let a paired service send work, through the bilko.run relay. | App Settings |
118
+ | Simple mode | `--simple` opens one plain terminal. | Launch flag |
119
+ | Command palette | `Cmd-K` or `Ctrl-K` opens a list of commands. | Anywhere |
120
120
 
121
121
  ## Headless surface (for agents)
122
122
 
@@ -130,20 +130,16 @@ The app adds it at user scope in `~/.claude.json` on first launch. To add it by
130
130
  claude mcp add session-manager-scheduler --scope user -- node <app>/scripts/scheduler-mcp-server.cjs
131
131
  ```
132
132
 
133
- In an installed build, the command is the app's own binary, with `-e ELECTRON_RUN_AS_NODE=1`.
133
+ An installed build uses the app's own binary, with `-e ELECTRON_RUN_AS_NODE=1`.
134
134
 
135
- The server needs the app to be running. Each call goes to the app's local HTTP API. The token for it is in `~/.claude/session-manager/admin-api.json`.
135
+ Each call goes to the running app's local HTTP API. Its token is in `~/.claude/session-manager/admin-api.json`.
136
136
 
137
137
  Two ways it can fail:
138
138
 
139
- - A tool returns an error that says the app is not running. Start the app, then try again.
140
- - The tools are not in your tool list. The server is not added. Delete `~/.claude/session-manager/.scheduler-mcp-seeded` and restart the app.
141
-
142
- Start with `session_manager_help`:
139
+ - A tool says the app is not running. Start the app and try again.
140
+ - The tools are missing: the server is not added. Delete `~/.claude/session-manager/.scheduler-mcp-seeded` and restart the app.
143
141
 
144
- - No args: it lists every tool.
145
- - `tool`: it explains one tool, with example args.
146
- - `topic`: it shows one recipe.
142
+ Start with `session_manager_help`. No args lists every tool. `tool` explains one tool. `topic` shows one recipe.
147
143
 
148
144
  Recipes:
149
145
 
@@ -184,9 +180,18 @@ Tools:
184
180
  | `project_demo_video_write` | project-home | one of `html` / `htmlPath` | Save a 30-second or 1-minute demo video (same as project_video_write). |
185
181
  | `project_character_write` | project-home | `json`, one of `js` / `jsPath` | Save the reusable character used in this project's videos. |
186
182
  | `project_video_review_write` | project-home | `videoId`, `text`, `imagePaths` | Save a script and images for a human to review a video. |
183
+ | `project_video_outcome_write` | project-home | `videoId`, `outcome`, `text` | Record that a video run ended with no video on purpose. |
184
+ | `voice_list` | project-home | — | List the voices this project can use for speech. |
185
+ | `voice_preview` | project-home | `voiceId`, `text` | Hear one voice say a short line and get the clip path. |
187
186
  | `customer_feedback_list` | customer-feedback | — | List feedback that users sent to the owner's inbox. |
188
187
  | `customer_feedback_set_status` | customer-feedback | `id`, `status` | Set the status of one feedback item, with an optional note. |
188
+ | `customer_feedback_get` | customer-feedback | `id`, `source` | Read one website feedback report in full, with its image paths. |
189
189
  | `customer_feedback_submit` | customer-feedback | `goal`, `description`, `tag` | Send feedback about Session Manager to its maintainers. |
190
+ | `feedback_widget_create` | feedback-widget | `label`, `allowedOrigins` | Make a feedback widget for a website and get its snippet. |
191
+ | `feedback_widget_list` | feedback-widget | — | List this project's website feedback widgets. |
192
+ | `feedback_widget_update` | feedback-widget | `boxId` | Change a feedback widget label, sites, or pause it. |
193
+ | `feedback_widget_delete` | feedback-widget | `boxId` | Delete a website feedback widget for good. |
194
+ | `feedback_widget_snippet` | feedback-widget | `boxId` | Get the one-line snippet for a feedback widget. |
190
195
  | `macro_list` | macros | — | List this project's saved one-click macros. |
191
196
  | `macro_save` | macros | `label`, `agentName`, `tag`, `prompt` | Create or change a saved one-click macro (agent, mission, prompt). |
192
197
  | `macro_delete` | macros | `id` | Delete one saved macro. |
@@ -195,14 +200,19 @@ Tools:
195
200
  | `agent_list` | agents | — | List the agents you can launch and the model each one runs on. |
196
201
  | `task_list` | tasks | `cwd` | List a project's Tasks with their status, model and cost. |
197
202
  | `task_get` | tasks | `cwd`, `id` | Read one Task in full, with its prompt and output. |
203
+ | `task_switch_set` | tasks | `enabled`, `humanRequestQuote` | Turn Scripts may run Tasks on or off when the human asks. |
204
+ | `scheduler_slots_get` | scheduler | — | See how many sessions may run at once and how many are busy. |
205
+ | `scheduler_slots_set` | scheduler | `cap`, `quote` | Raise or lower the session limit when the human asks. |
198
206
  | `session_manager_help` | help | — | Start here: list every tool, or explain one tool or recipe. |
207
+ | `artifact_publish` | artifacts | `path` | Publish a file for review. |
208
+ | `artifact_list` | artifacts | — | List stored artifacts. |
199
209
  <!-- /gen:mcp-tools -->
200
210
 
201
211
  Rules the server enforces:
202
212
 
203
- - A new PRD must join a session that a person already approved. The server never creates a session.
213
+ - A new PRD must join a session a person approved. The server never creates one.
204
214
  - A new PRD must have a `gate` and a `files` list.
205
- - A headless job cannot queue PRDs, unless it runs as `architect`. A session a person is in can queue PRDs.
215
+ - Only a session a person is in, or a job run as `architect`, can queue PRDs.
206
216
  - A job with `SM_SCHEDULER_JOB_MCP_TOOLS` set can call only the tools in that list.
207
217
  - A pause set by an agent ends after 30 minutes. A pause set by a person stays until `scheduler_resume`.
208
218
 
@@ -212,20 +222,20 @@ Each PRD job runs as the PRD's persona, `dev-lead` by default, in its own worktr
212
222
 
213
223
  ### Scripts
214
224
 
215
- A script can start a macro with `POST /admin/macros/run`. It works only for a macro a person marked "Can be started by a script".
225
+ A script can start a macro with `POST /admin/macros/run`, if a person marked it "Can be started by a script".
216
226
 
217
227
  ## Skills
218
228
 
219
229
  ### Plugin session-manager-dev
220
230
 
221
- On first launch, the app installs this plugin with no network. It comes from the bundled `session-manager` marketplace. The app keeps it up to date. To skip it, set `SM_SEED_DEV_PLUGIN_DISABLE=1`. To install it outside the app, run:
231
+ On first launch, the app installs and updates this plugin offline from the bundled `session-manager` marketplace. To skip it, set `SM_SEED_DEV_PLUGIN_DISABLE=1`. To install it outside the app, run:
222
232
 
223
233
  ```bash
224
234
  claude plugin marketplace add StanislavBG/claude-code-session-manager
225
235
  claude plugin install session-manager-dev@session-manager
226
236
  ```
227
237
 
228
- `/develop` and `/send-feedback` call the MCP server. So the app must be running for them.
238
+ `/develop` and `/send-feedback` call the MCP server, so the app must run.
229
239
 
230
240
  <!-- list:skills -->
231
241
  | Skill | Use it to |
@@ -238,7 +248,7 @@ claude plugin install session-manager-dev@session-manager
238
248
 
239
249
  ### Context packs
240
250
 
241
- You pick packs for each session. A pack adds its skills and rules to that session only.
251
+ A pack adds its skills and rules to one session only.
242
252
 
243
253
  <!-- list:packs -->
244
254
  | Pack | What it adds | Skills |
@@ -271,7 +281,7 @@ The app copies these into `~/.claude/agents/` on first launch.
271
281
  | Path | How | Needs | Platforms |
272
282
  | --- | --- | --- | --- |
273
283
  | Installer | Download from [GitHub Releases](https://github.com/StanislavBG/claude-code-session-manager/releases/latest). | Nothing else. The app helps you set up `git` and Claude Code. | macOS, Windows, Linux |
274
- | npx | `npx claude-code-session-manager@latest` | The Node version in [Facts](#facts), `git`, Claude Code | Linux, macOS |
284
+ | npx | `npx claude-code-session-manager@latest` | Node per [Facts](#facts), `git`, Claude Code | Linux, macOS |
275
285
  | From source | `git clone`, `npm install`, `npm run dev` | Node, `git`, Claude Code | Linux, macOS |
276
286
 
277
287
  ### What the first launch changes
@@ -292,11 +302,11 @@ The app copies these into `~/.claude/agents/` on first launch.
292
302
 
293
303
  Off by default. Turn it on in App Settings, Startup.
294
304
 
295
- An npx install starts through `npx claude-code-session-manager@latest`, so each login fetches the newest release; if that fails within two minutes, it retries with the cached copy. The script is `~/.claude/session-manager/start-at-login.sh`, run by a desktop entry in `~/.config/autostart/` (Linux) or a launch agent in `~/Library/LaunchAgents/` (macOS).
305
+ An npx install runs `npx claude-code-session-manager@latest` at each login, or the cached copy if that fails within two minutes. The script is `~/.claude/session-manager/start-at-login.sh`, run by a desktop entry in `~/.config/autostart/` (Linux) or a launch agent in `~/Library/LaunchAgents/` (macOS).
296
306
 
297
- A packaged build starts the installed app: a login item on macOS and Windows, the autostart folder for a Linux AppImage.
307
+ A packaged build uses a login item (macOS, Windows) or the autostart folder (Linux AppImage).
298
308
 
299
- To remove it, turn the switch off, or delete the script and `claude-code-session-manager.desktop` (Linux) or `run.bilko.session-manager.login.plist` (macOS). For a packaged macOS or Windows build, remove it from login items.
309
+ To remove it, turn the switch off, or delete the script and `claude-code-session-manager.desktop` (Linux) or `run.bilko.session-manager.login.plist` (macOS). On a packaged macOS or Windows build, use login items.
300
310
 
301
311
  It is not offered for an npx install on Windows, or in a dev run.
302
312
 
@@ -342,14 +352,14 @@ Then have an agent call `session_manager_help` with no args.
342
352
 
343
353
  ### Network
344
354
 
345
- Your prompts go only to the agent CLI you chose. The app never sends them anywhere else. The app itself talks to:
355
+ Your prompts go only to the agent CLI you chose. The app itself talks to:
346
356
 
347
357
  | Host | Why |
348
358
  | --- | --- |
349
359
  | `api.anthropic.com` | Reads your usage, for the meters and the scheduler. |
350
360
  | `registry.npmjs.org` | Checks for a new app version. |
351
361
  | `json.schemastore.org`, `www.schemastore.org` | Checks JSON files as you edit them. |
352
- | bilko.run | Telemetry and the phone remote relay. |
362
+ | bilko.run | Telemetry and the Web remote relay. |
353
363
 
354
364
  ### Keyboard
355
365
 
@@ -378,7 +388,7 @@ npm run test:unit
378
388
  npm run test:e2e
379
389
  ```
380
390
 
381
- Read [CONTRIBUTING.md](https://github.com/StanislavBG/claude-code-session-manager/blob/main/CONTRIBUTING.md) before you open a PR. Report security bugs as told in [SECURITY.md](https://github.com/StanislavBG/claude-code-session-manager/blob/main/SECURITY.md), not in a public issue. See also [CODE_OF_CONDUCT.md](https://github.com/StanislavBG/claude-code-session-manager/blob/main/CODE_OF_CONDUCT.md). Read [PRD_AUTHORING.md](https://github.com/StanislavBG/claude-code-session-manager/blob/main/src/main/templates/PRD_AUTHORING.md) before you write a PRD.
391
+ Read [CONTRIBUTING.md](https://github.com/StanislavBG/claude-code-session-manager/blob/main/CONTRIBUTING.md) before you open a PR. Report security bugs as told in [SECURITY.md](https://github.com/StanislavBG/claude-code-session-manager/blob/main/SECURITY.md), not in a public issue. Read [PRD_AUTHORING.md](https://github.com/StanislavBG/claude-code-session-manager/blob/main/src/main/templates/PRD_AUTHORING.md) before you write a PRD.
382
392
 
383
393
  Run `npm run readme:build` after you change MCP tools, skills, packs, personas or `engines`. `npm run lint` fails if this page is out of date.
384
394
 
@@ -396,4 +406,4 @@ Run `npm run readme:build` after you change MCP tools, skills, packs, personas o
396
406
 
397
407
  ## License
398
408
 
399
- MIT. The app and the Field Manual are free. There is no paid tier.
409
+ MIT. The app and the Field Manual are free.
package/bin/cli.cjs CHANGED
@@ -3,6 +3,17 @@
3
3
  * npx launcher for claude-code-session-manager.
4
4
  * Spawns the Electron binary on the package root so main: src/main/index.cjs boots.
5
5
  */
6
+ // `service ...` is the headless service CLI (pair / stdio MCP bridge): route it before any
7
+ // Electron code loads — it must run on a machine with no Electron binary.
8
+ if (process.argv[2] === 'service') {
9
+ const { runServiceCli } = require('../src/main/lib/feedback-remote/serviceStdioBridge.cjs');
10
+ runServiceCli(process.argv.slice(3)).then(
11
+ (code) => process.exit(code),
12
+ (err) => { console.error(`service: ${err && err.message ? err.message : String(err)}`); process.exit(1); },
13
+ );
14
+ return;
15
+ }
16
+
6
17
  const { spawn } = require('node:child_process');
7
18
  const path = require('node:path');
8
19
  const { nodeFloor, isBelow } = require('./node-floor.cjs');