claude-code-session-manager 0.137.0 → 0.139.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 (101) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/README.md +339 -82
  3. package/dist/assets/{AppSettings-l7NTc0yu.js → AppSettings-CUfWY9vN.js} +2 -2
  4. package/dist/assets/History-DDnqaLyw.js +2 -0
  5. package/dist/assets/HomeClaudeConfig-CGD2Onjv.js +3 -0
  6. package/dist/assets/{Panel-BuInRmA0.js → Panel-Csyd9HbD.js} +1 -1
  7. package/dist/assets/ProjectClaudeConfig-C-jlYpC_.js +26 -0
  8. package/dist/assets/{Scheduler-B7sn2mUw.js → Scheduler-NLs08fx7.js} +9 -9
  9. package/dist/assets/{SkillReferenceGraph-DwV0Ueyc.js → SkillReferenceGraph-DcscPXAG.js} +1 -1
  10. package/dist/assets/Skills-BpGRKOcY.js +67 -0
  11. package/dist/assets/{TiptapBody-Bl8hDhhS.js → TiptapBody-DSU3769X.js} +60 -54
  12. package/dist/assets/ViewTabs-C0PRZx4_.js +1 -0
  13. package/dist/assets/{VoiceButton-DJx-jY4r.js → VoiceButton-D2rMurNg.js} +1 -1
  14. package/dist/assets/{historyTotals-Cgjm5q24.js → historyTotals-TcIQs2sh.js} +1 -1
  15. package/dist/assets/{index-62tyjEQB.css → index-BCySPdtU.css} +1 -1
  16. package/dist/assets/index-C-d0DCre.js +3124 -0
  17. package/dist/index.html +2 -2
  18. package/dist-web/app.css +1 -1
  19. package/dist-web/app.js +471 -452
  20. package/package.json +13 -5
  21. package/plugins/session-manager-dev/.claude-plugin/plugin.json +1 -1
  22. package/plugins/session-manager-dev/skills/builder/SKILL.md +12 -4
  23. package/plugins/session-manager-dev/skills/builder/scripts/publish-preflight.cjs +255 -0
  24. package/plugins/session-manager-dev/skills/develop/SKILL.md +12 -5
  25. package/scripts/README.md +1 -0
  26. package/scripts/scheduler-mcp-server.cjs +161 -18
  27. package/src/main/build-info.json +4 -4
  28. package/src/main/chatRunner.cjs +53 -2
  29. package/src/main/exchanges.cjs +70 -5
  30. package/src/main/historyAggregator.cjs +84 -58
  31. package/src/main/historyDashboard.cjs +18 -13
  32. package/src/main/index.cjs +35 -9
  33. package/src/main/ipcSchemas.cjs +133 -5
  34. package/src/main/lib/claude/effectiveModelInfo.cjs +2 -2
  35. package/src/main/lib/claude/modelPricing.cjs +148 -0
  36. package/src/main/lib/demo-video-kit/checks.cjs +16 -0
  37. package/src/main/lib/epic/epicAdminRoutes.cjs +101 -0
  38. package/src/main/lib/epic/epicAttachments.cjs +143 -0
  39. package/src/main/lib/epic/epicJobReceipt.cjs +87 -0
  40. package/src/main/lib/epic/epicMint.cjs +4 -0
  41. package/src/main/lib/epic/epicOutsideRead.cjs +306 -0
  42. package/src/main/lib/epic/epicOutsideState.cjs +233 -0
  43. package/src/main/lib/epic/epicSettle.cjs +1 -1
  44. package/src/main/lib/epic/epicStateWatcher.cjs +157 -0
  45. package/src/main/lib/epic/externalRef.cjs +37 -0
  46. package/src/main/lib/epic/externalRefIndex.cjs +136 -0
  47. package/src/main/lib/epic/restorableSessions.cjs +151 -17
  48. package/src/main/lib/epic/transcriptUsage.cjs +197 -0
  49. package/src/main/lib/externalContract.cjs +111 -0
  50. package/src/main/lib/feedback-remote/crossProjectFeedback.cjs +121 -4
  51. package/src/main/lib/feedback-remote/crossProjectReply.cjs +83 -1
  52. package/src/main/lib/feedback-remote/customerFeedbackAdminRoutes.cjs +16 -6
  53. package/src/main/lib/feedback-remote/customerFeedbackClient.cjs +50 -8
  54. package/src/main/lib/feedback-remote/customerFeedbackInbox.cjs +218 -4
  55. package/src/main/lib/feedback-remote/customerFeedbackIpc.cjs +19 -3
  56. package/src/main/lib/feedback-remote/feedbackImages.cjs +171 -0
  57. package/src/main/lib/feedback-remote/localAdminHttp.cjs +11 -10
  58. package/src/main/lib/feedback-remote/macroAdminRoutes.cjs +287 -1
  59. package/src/main/lib/feedback-remote/needsYouAdminRoutes.cjs +133 -0
  60. package/src/main/lib/feedback-remote/needsYouIpc.cjs +50 -0
  61. package/src/main/lib/feedback-remote/needsYouStore.cjs +281 -0
  62. package/src/main/lib/feedback-remote/remoteFrameAssembler.cjs +113 -0
  63. package/src/main/lib/historyRollup.cjs +32 -5
  64. package/src/main/lib/mcpToolCatalog.cjs +111 -14
  65. package/src/main/lib/persona-macro/agentAdminRoutes.cjs +121 -0
  66. package/src/main/lib/persona-macro/macroLibrary.cjs +7 -0
  67. package/src/main/lib/persona-macro/shippedPersonaSeeds.cjs +11 -0
  68. package/src/main/lib/process/bootStdioGuard.cjs +32 -0
  69. package/src/main/lib/process/stdioGuard.cjs +115 -0
  70. package/src/main/lib/promptSessionSchema.cjs +4 -0
  71. package/src/main/lib/remoteTranscriptTail.cjs +32 -1
  72. package/src/main/lib/scheduler/schedulerPaths.cjs +9 -0
  73. package/src/main/lib/telemetry/auditEvents.cjs +176 -0
  74. package/src/main/lib/telemetry/eventsAdminRoutes.cjs +45 -0
  75. package/src/main/loopEfficiencyHandlers.cjs +1 -1
  76. package/src/main/scheduler.cjs +29 -0
  77. package/src/main/templates/PRD_AUTHORING.md +1 -0
  78. package/src/main/transcripts.cjs +62 -7
  79. package/src/main/webRemote.cjs +122 -18
  80. package/src/preload/api.d.ts +98 -9
  81. package/src/preload/apiSurface.cjs +7 -0
  82. package/src/preload/apiSurface.json +415 -83
  83. package/src/preload/index.cjs +17 -3
  84. package/src/seed/agents/demo-video-builder.md +10 -7
  85. package/dist/assets/AgentLibrary-DV0DTZDC.js +0 -2
  86. package/dist/assets/Button-Cmfkgjfa.js +0 -1
  87. package/dist/assets/DocumentEditorPane-MTljV-Uw.js +0 -1
  88. package/dist/assets/Extensions-Cc1Q_8id.js +0 -2
  89. package/dist/assets/History-CFo-1DHo.js +0 -2
  90. package/dist/assets/Library-C_ibFiOx.js +0 -32
  91. package/dist/assets/ListDetail-ByULG209.js +0 -1
  92. package/dist/assets/ProjectClaudeConfig-yqqVtHY7.js +0 -25
  93. package/dist/assets/ProvenanceBadge-CJvnQReI.js +0 -1
  94. package/dist/assets/Settings-DRRSJksU.js +0 -2
  95. package/dist/assets/Skills-DVYHA9gV.js +0 -29
  96. package/dist/assets/SourceChip-DfJ5_5rV.js +0 -1
  97. package/dist/assets/SystemPrompt-f11wGllK.js +0 -1
  98. package/dist/assets/Toggle-DaxeFDFp.js +0 -1
  99. package/dist/assets/ViewTabs-DRtgFKRw.js +0 -1
  100. package/dist/assets/claude-settings-schema-COigsajx.js +0 -3
  101. package/dist/assets/index-iQ6pdyuS.js +0 -3116
@@ -14,7 +14,7 @@
14
14
  "name": "session-manager-dev",
15
15
  "source": "./plugins/session-manager-dev",
16
16
  "description": "Default end-to-end development skillset — pairs with the session-manager scheduler to form a develop → queue → validate → release loop.",
17
- "version": "0.4.3",
17
+ "version": "0.4.4",
18
18
  "category": "development",
19
19
  "strict": false
20
20
  }
package/README.md CHANGED
@@ -1,126 +1,383 @@
1
1
  # claude-code-session-manager
2
2
 
3
- Local cockpit for the Claude Code CLI (the default; sessions can also run Codex, Gemini CLI, Antigravity CLI, Cursor Agent or OpenCode) — multi-tab terminal, configuration surface, scheduler, voice dictation, and live observability, all in one Electron desktop app.
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 -->33<!-- /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
+
5
+ ## Facts
6
+
7
+ | Key | Value |
8
+ | --- | --- |
9
+ | Kind | Desktop app built on Electron. It is not a library. It has no JS API. |
10
+ | Run | `npx claude-code-session-manager@latest` |
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
+ | 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
+ | 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. |
15
+ | Plugin | `session-manager-dev@session-manager` |
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. |
18
+ | Telemetry | Anonymous and on by default. Turn it off with `SM_TELEMETRY=0`. |
19
+ | License | MIT |
20
+
21
+ ## Not
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.
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.
28
+ - It is not a library. You cannot `import` it.
29
+
30
+ ## Features
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.
33
+
34
+ ### Sessions
35
+
36
+ | Feature | What it does | Why it helps | Where |
37
+ | --- | --- | --- | --- |
38
+ | Sessions | Each session has an agent, a Mission and an agent CLI. | You pick who does the work, and what kind. | Sessions |
39
+ | Missions | There are seven: Feature, Bug, Discussion, Build, Project Home Builder, 3D Art, Portfolio Optimization. | Each Mission gives the agent a fitting start. | New session form |
40
+ | Life cycle | A session is `proposed`, then `active`, then `completed`. | You can see what is waiting, running and done. | Sessions |
41
+ | Human start | Only a person can create a session. Agents cannot. | No agent can make work for itself. | New session button |
42
+ | Own copy | An active session runs in its own worktree, on branch `sm-epic/<id>`. | Many sessions can work on one repo at once. | On disk |
43
+ | Chat and Terminal | These are two views of one CLI session. | Switch views and keep the same chat. | Session view |
44
+ | Idle tabs | A tab starts no process until you send the first message. | Many open tabs cost almost nothing. | Sessions |
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 |
47
+
48
+ ### Scheduler
49
+
50
+ | Feature | What it does | Why it helps | Where |
51
+ | --- | --- | --- | --- |
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 |
54
+ | Order | A PRD waits for the PRDs named in its `dependsOn`. | Steps run in the right order. | PRD fields |
55
+ | No clashes | Two PRDs that touch the same file never run at once. | Jobs do not break each other's edits. | Scheduler |
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 |
57
+ | Retry first | A job that stops in `needs_review` tries to fix itself first. | Fewer stuck jobs need a person. | Scheduler |
58
+
59
+ ### Checking the work
60
+
61
+ | Feature | What it does | Why it helps | Where |
62
+ | --- | --- | --- | --- |
63
+ | Gate | Each PRD lists commands that must pass. The job runs them last. | A job only passes when its checks pass. | PRD `# Gate` |
64
+ | Validator | A last job checks each PRD of a plan. It writes `VERIFIED` or `REFUTED` to a record file. | A second agent checks the first one's claims. | Scheduler |
65
+ | Guard hooks | Four hooks: `guard-destructive-git`, `guard-inline-implementation`, `guard-prd-writes`, `guard-self-schedule`. | They block risky git commands and stray work. | Project `.claude/settings.json` |
66
+
67
+ ### Agents, Missions and macros
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 |
74
+
75
+ ### Claude Code settings
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 |
84
+
85
+ ### Project Home
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 |
94
+
95
+ ### Across projects
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 |
101
+
102
+ ### See what is going on
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 |
110
+
111
+ ### Input and remote
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 |
4
120
 
5
- ## The 30-second pitch
121
+ ## Headless surface (for agents)
6
122
 
7
- You already use the `claude` CLI. This wraps it in a cockpit so you can run multiple sessions at once, edit every config file Claude Code reads, queue overnight work as PRDs, talk to it with your microphone, and watch transcripts in real time — without ever leaving the window. Claude Code is the default. A session can also run Codex, Gemini CLI, Antigravity CLI, Cursor Agent or OpenCode instead, in Chat and Terminal; macros, phone launches and scheduled PRDs stay on Claude Code.
123
+ ### MCP server
124
+
125
+ The MCP server is `session-manager-scheduler`. It lets an agent queue PRDs, read the queue, write Project Home pages and more.
8
126
 
9
- New tabs open as a lightweight **chat box** and stay dormant — no PTY, no `claude` process — until you actually send a message, so a window full of tabs costs almost nothing. Prefer a single bare terminal? Launch with `--simple`.
10
-
11
- Single-author hobby project. Linux and macOS only. Free, MIT, anonymous opt-out telemetry (see [Privacy](#privacy)).
12
-
13
- ## Features tour
14
-
15
- - **Dormant tabs + chat box** — every new tab opens as a chat box and stays dormant (no PTY, no `claude` process) until you send the first message. The headless chat-run engine drives it through `claude -p` with `stream-json`, session resume, and a stop signal, so a tab is a real conversation without holding a live terminal open. Hydrate into a full terminal whenever you need one.
16
- - **Simple mode** — `npx claude-code-session-manager@latest --simple` boots a chrome-free, single-terminal cockpit: no nav, no tabs, no config surface, just one `claude` session in the launch directory.
17
- - **Cmd-K command palette** — commands organised into bands (session, voice, scheduler, config, nav). Fuzzy filter, emit-only dispatch so commands stay decoupled from views.
18
- - **Sidebar groups** — the left nav is organised into three groups: Workspace (where you do the work), Configure (how Claude behaves), and Tools (one-off utilities).
19
- - **Scheduler / PRD queue** — PRDs live under `<cwd>/session-manager-operations/scheduler/epics/<epic-id>/prds/` and the scheduler picks them up as headless `claude -p` jobs. Author them through the `scheduler_create_prd` MCP tool. Multi-select bulk archive and reset. Queue-health linter catches unbounded poll loops and post-AC overrun patterns before they burn tokens.
20
- - **Memory tab** — workspace-scoped memory entries that the `memory_20250818` tool can read and write, surfaced as a real UI rather than a JSON blob.
21
- - **Hooks** — all 29 documented events with inline tooltips explaining what each event fires on. Definitions editor plus a test-fire runner so you can verify a hook without rebuilding state.
22
- - **Plugins** — manifest inspector for installed plugins plus a Discover panel that lists first-party plugins with one-click install (pty-wrapped `claude plugin install`).
23
- - **MCP servers** — five transports (stdio, http, streamable-http, ws, sse) with a reserved-name linter so you don't waste a launch on a server Claude refuses to load.
24
- - **Voice** — local Moonshine ASR (English) plus Silero VAD running in a Web Worker. Push-to-talk hotkey, continuous listening, auto-submit, and barge-in that ducks TTS playback. Nothing leaves the machine.
25
- - **Toast notifications + 4-scope drift surfacing** — non-fatal errors land in a corner toast instead of being swallowed. Settings show drift across the default / user / project / local scopes so you always know which value actually wins.
26
- ## Install
127
+ The app adds it at user scope in `~/.claude.json` on first launch. To add it by hand, run:
27
128
 
28
129
  ```bash
29
- npx claude-code-session-manager@latest
130
+ claude mcp add session-manager-scheduler --scope user -- node <app>/scripts/scheduler-mcp-server.cjs
30
131
  ```
31
132
 
32
- ### Installers
33
-
34
- Prefer a double-click install? Download from [GitHub Releases](https://github.com/StanislavBG/claude-code-session-manager/releases/latest):
133
+ In an installed build, the command is the app's own binary, with `-e ELECTRON_RUN_AS_NODE=1`.
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`.
136
+
137
+ Two ways it can fail:
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`:
143
+
144
+ - No args: it lists every tool.
145
+ - `tool`: it explains one tool, with example args.
146
+ - `topic`: it shows one recipe.
147
+
148
+ Recipes:
149
+
150
+ <!-- gen:mcp-recipes -->
151
+ - `queue-work-via-develop` — Queue work into an already-approved Epic (/develop)
152
+ - `unstick-needs-review-job` — Unstick a job stuck in needs_review
153
+ - `hand-finding-to-another-project` — Hand a finding to another project
154
+ - `reply-to-the-project-that-asked` — Reply to the project that asked
155
+ <!-- /gen:mcp-recipes -->
156
+
157
+ Tools:
158
+
159
+ <!-- gen:mcp-tools -->
160
+ | Tool | Group | Required args | What it does |
161
+ | --- | --- | --- | --- |
162
+ | `scheduler_reset_job` | scheduler | `slug` | Reset a stuck job so the scheduler runs it again. |
163
+ | `scheduler_pause` | scheduler | — | Pause new job starts for every project on this machine. |
164
+ | `scheduler_resume` | scheduler | — | Lift a scheduler pause so jobs start again. |
165
+ | `scheduler_list_jobs` | scheduler | — | List queued, running and finished jobs on this machine. |
166
+ | `scheduler_create_prd` | scheduler | `title`, `goal`, `acceptanceCriteria`, `implementationNotes`, `gate`, `files` | Queue one PRD (a written work order) in an Epic a human approved. |
167
+ | `scheduler_create_prds` | scheduler | `prds` | Queue a whole plan of PRDs in one all-or-nothing call. |
168
+ | `scheduler_list_prds` | scheduler | — | List PRDs and their job status, by project, Epic or status. |
169
+ | `scheduler_get_prd` | scheduler | `slug` | Read one PRD in full, with its frontmatter. |
170
+ | `scheduler_update_prd` | scheduler | `slug` | Edit a PRD that has not run yet or has stopped. |
171
+ | `scheduler_archive_prd` | scheduler | `slugs` | Archive PRDs that are done or no longer needed. |
172
+ | `scheduler_cancel_job` | scheduler | `slug` | Cancel a job that has not finished. |
173
+ | `scheduler_retag_prd` | scheduler | `items` | Change a PRD's group number or time estimate. |
174
+ | `chat_send_prompt` | chat | `tabId`, `prompt` | Send a prompt to a session tab that is already open. |
175
+ | `feedback_list_projects` | feedback | — | List the other projects on this machine that can take feedback. |
176
+ | `feedback_open_session` | feedback | `toCwd`, `fromCwd`, `title`, `motivation`, `acceptanceCriteria`, `body` | Hand a finding to another project as a proposed session there. |
177
+ | `feedback_reply` | feedback | `message`, `outcome` | Answer the project that sent this session its feedback. |
178
+ | `project_home_write` | project-home | `html` | Write the Overview page of Project Home (same as project_page_write). |
179
+ | `project_page_write` | project-home | `pageId`, `title`, one of `html` / `htmlPath` | Write one HTML knowledge page for Project Home. |
180
+ | `project_matrix_read` | project-home | — | Read the saved competitor feature matrix and its schema. |
181
+ | `project_matrix_write` | project-home | one of `matrix` / `matrixPath` | Save the competitor feature matrix as one JSON object. |
182
+ | `project_video_write` | project-home | `videoId`, `title`, `kind`, `lengthS`, `meta`, one of `html` / `htmlPath` | Save one self-contained HTML video for Project Home. |
183
+ | `project_demo_video_write` | project-home | one of `html` / `htmlPath` | Save a 30-second or 1-minute demo video (same as project_video_write). |
184
+ | `project_character_write` | project-home | `json`, one of `js` / `jsPath` | Save the reusable character used in this project's videos. |
185
+ | `customer_feedback_list` | customer-feedback | — | List feedback that users sent to the owner's inbox. |
186
+ | `customer_feedback_set_status` | customer-feedback | `id`, `status` | Set the status of one feedback item, with an optional note. |
187
+ | `customer_feedback_submit` | customer-feedback | `goal`, `description`, `tag` | Send feedback about Session Manager to its maintainers. |
188
+ | `macro_list` | macros | — | List this project's saved one-click macros. |
189
+ | `macro_save` | macros | `label`, `agentName`, `tag`, `prompt` | Create or change a saved one-click macro (agent, mission, prompt). |
190
+ | `macro_delete` | macros | `id` | Delete one saved macro. |
191
+ | `epic_list` | epics | `cwd` | List the open sessions of one project and what state each is in. |
192
+ | `epic_get` | epics | `cwd`, one of `id` / `externalRef` | Read one session by its id or by the outside reference it was opened with. |
193
+ | `agent_list` | agents | — | List the agents you can launch and the model each one runs on. |
194
+ | `session_manager_help` | help | — | Start here: list every tool, or explain one tool or recipe. |
195
+ <!-- /gen:mcp-tools -->
196
+
197
+ Rules the server enforces:
198
+
199
+ - A new PRD must join a session that a person already approved. The server never creates a session.
200
+ - A new PRD must have a `gate` and a `files` list.
201
+ - A headless job cannot queue PRDs, unless it runs as `architect`. A session a person is in can queue PRDs.
202
+ - A job with `SM_SCHEDULER_JOB_MCP_TOOLS` set can call only the tools in that list.
203
+ - A pause set by an agent ends after 30 minutes. A pause set by a person stays until `scheduler_resume`.
204
+
205
+ ### Headless jobs
206
+
207
+ Each PRD runs as one `claude -p` job with a pinned `--model`. It runs as the persona named in the PRD. The default is `dev-lead`. The job works in its own worktree. It runs the PRD's gate, then commits. Its last line is a verdict such as `SCHEDULER_VERDICT: PASS`.
208
+
209
+ ### Scripts
210
+
211
+ A script can start a macro with `POST /admin/macros/run`. This only works for a macro that a person marked "Can be started by a script".
212
+
213
+ ## Skills
214
+
215
+ ### Plugin session-manager-dev
216
+
217
+ 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:
35
218
 
36
- - **Mac** — `.dmg` (Apple Silicon and Intel)
37
- - **Windows** — `.exe`
38
- - **Linux** — `AppImage`
219
+ ```bash
220
+ claude plugin marketplace add StanislavBG/claude-code-session-manager
221
+ claude plugin install session-manager-dev@session-manager
222
+ ```
39
223
 
40
- The installer needs no Node.js, compiler or Electron download. git and the Claude Code CLI are detected on first launch and installed from the in-app Setup checklist using their official installers.
224
+ `/develop` and `/send-feedback` call the MCP server. So the app must be running for them.
225
+
226
+ <!-- list:skills -->
227
+ | Skill | Use it to |
228
+ | --- | --- |
229
+ | `/develop` | Split work into PRDs, queue them, and track them until they are checked. |
230
+ | `/builder` | Publish the project's npm package and keep its Field Manual in step. |
231
+ | `/send-feedback` | Send a finding to a different project on this machine. |
232
+ | `/maintaining-md-network` | Review a project's `CLAUDE.md` and docs so each fact lives in one place. |
233
+ <!-- /list:skills -->
234
+
235
+ ### Context packs
236
+
237
+ You pick packs for each session. A pack adds its skills and rules to that session only.
238
+
239
+ <!-- list:packs -->
240
+ | Pack | What it adds | Skills |
241
+ | --- | --- | --- |
242
+ | `apple-design` | Apple design rules for iOS app screens. | `hig-layout-and-accessibility`, `liquid-glass-adoption` |
243
+ | `apple-swift-core` | Swift 6 and SwiftUI rules for iOS apps. | `swift-concurrency`, `swiftui-state-and-navigation` |
244
+ <!-- /list:packs -->
245
+
246
+ ### Agent personas
247
+
248
+ The app copies these into `~/.claude/agents/` on first launch.
249
+
250
+ <!-- list:personas -->
251
+ | Persona | Role |
252
+ | --- | --- |
253
+ | `architect` | Talks with you, plans the work, and splits it into PRDs. |
254
+ | `dev-lead` | Runs one PRD, start to finish, with no one watching. |
255
+ | `validator` | Checks a finished plan, one PRD at a time. |
256
+ | `project-home-builder` | Writes one page for Project Home. |
257
+ | `demo-video-builder` | Makes a short demo video for Project Home. |
258
+ | `competitive-analyst` | Builds the competitor matrix. |
259
+ | `competitive-researcher` | Looks up one rival product for the matrix. |
260
+ | `blender-artist` | Makes 3D game art in Blender. |
261
+ <!-- /list:personas -->
41
262
 
42
- ### npx
263
+ ## Install
43
264
 
44
- Linux and macOS only. Needs Node.js 22.12+ (Electron 42's installer needs it) and Claude Code installed and signed in — Claude Code's native installer does not bring Node with it. The first launch downloads Electron (~200 MB) and uses node-pty's prebuilt terminal binary (no compiler needed on supported platforms). Subsequent launches are instant from the npx cache.
265
+ ### Pick a path
45
266
 
46
- Only on platforms without a node-pty prebuild: macOS needs Xcode Command Line Tools (`xcode-select --install`).
47
- Linux needs `build-essential` and `python3` in that case.
267
+ | Path | How | Needs | Platforms |
268
+ | --- | --- | --- | --- |
269
+ | 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 |
270
+ | npx | `npx claude-code-session-manager@latest` | The Node version in [Facts](#facts), `git`, Claude Code | Linux, macOS |
271
+ | From source | `git clone`, `npm install`, `npm run dev` | Node, `git`, Claude Code | Linux, macOS |
48
272
 
49
- ## Quick start
273
+ ### What the first launch changes
50
274
 
51
- 1. Run the install command above.
52
- 2. The app opens on the Overview tab — you should see a fresh session ready to go.
53
- 3. Hit Cmd-K (Ctrl-K on Linux) and try `terminal new`, `voice start`, or `scheduler open`.
54
- 4. Create a PRD with the `scheduler_create_prd` MCP tool and watch the Scheduler pick it up.
55
- 5. On first run the microphone setup wizard opens automatically; then use the push-to-talk hotkey (see Voice setup) to dictate.
275
+ | What | Where | Turn off |
276
+ | --- | --- | --- |
277
+ | MCP server entry | `~/.claude.json` | `SM_SEED_SCHEDULER_MCP_DISABLE=1` |
278
+ | Plugin | `~/.claude/plugins/` | `SM_SEED_DEV_PLUGIN_DISABLE=1` |
279
+ | Personas | `~/.claude/agents/`. Old copies are backed up to `~/.claude/session-manager/persona-backups/`. Files you edited are left alone. | `SM_SEED_AGENT_PERSONAS_DISABLE=1` |
280
+ | Demo video kit | `~/.claude/session-manager/demo-video-kit/` | `SM_SEED_DEMO_VIDEO_KIT_DISABLE=1` |
281
+ | Guard hook shims | `~/.claude/session-manager/hooks/`. A project uses them once you accept its setup banner. | Do not accept the banner. |
282
+ | App state | `~/.claude/session-manager/` | None |
283
+ | Project folder | `<repo>/session-manager-operations/` | None |
284
+ | Session worktrees | `~/.local/state/session-manager/`, or `$XDG_STATE_HOME/session-manager/` when `XDG_STATE_HOME` is set | None |
285
+ | Telemetry | Sent to bilko.run | `SM_TELEMETRY=0` |
56
286
 
57
- ## Privacy
287
+ ### Check it worked
58
288
 
59
- **Anonymous product telemetry is on by default.** It posts event, log, error, and crash records to bilko.run. Opt out with `SM_TELEMETRY=0` or Settings → Telemetry. Details: [telemetry.md](session-manager-operations/architecture/telemetry.md).
289
+ ```bash
290
+ claude mcp get session-manager-scheduler
291
+ claude plugin list
292
+ ```
60
293
 
61
- - The Content-Security-Policy restricts `connect-src` to four hosts: `api.anthropic.com` (so the in-app `/usage` panel can read the billing endpoint), `registry.npmjs.org`, `json.schemastore.org`, and `www.schemastore.org`.
62
- - All settings, skills, hooks, scheduler PRDs, transcripts, and voice configuration stay on disk under `~/.claude/`. The agent CLI you choose (`claude` by default) is the only network egress for AI work — the cockpit never proxies your prompts.
63
- - The recording-status pill is always mounted at the top of the window whenever the microphone is hot, above every other UI layer. There is no way to record without seeing the indicator.
294
+ Then have an agent call `session_manager_help` with no args.
64
295
 
65
- ## Voice setup
296
+ ### If it fails
66
297
 
67
- - The mic setup wizard auto-opens on first run. It enumerates your input devices, lets you pick one, records a sample utterance, and persists the choice in `voice.json`.
68
- - Push-to-talk defaults to Cmd+Option+V on macOS and Ctrl+Shift+Space elsewhere. Hold or toggle, configurable in the Voice tab.
69
- - Models download once on first use, then run entirely locally via onnxruntime-web.
70
- - Auto-submit fires Enter at a configurable countdown (default 6 s); the mic stays open across turns until silence (default 30 s) or an explicit stop.
298
+ | Problem | Fix |
299
+ | --- | --- |
300
+ | Node is too old | Install the Node version in [Facts](#facts) or newer. Or use the installer. |
301
+ | The Electron download failed | Try again. Or set `ELECTRON_MIRROR` to a mirror you can reach. |
302
+ | No `node-pty` build for your platform | macOS: run `xcode-select --install`. Linux: install `build-essential` and `python3`. |
303
+ | Anything else | Read the logs. Linux: `~/.config/claude-code-session-manager/logs`. macOS: `~/Library/Application Support/claude-code-session-manager/logs`. Windows: `%APPDATA%\claude-code-session-manager\logs`. |
71
304
 
72
- ## Scheduler / PRD workflow
305
+ ## Reference
73
306
 
74
- A PRD is a self-contained markdown file with frontmatter (`title`, absolute `cwd`, `estimateMinutes`) and a body that `claude -p` runs without conversation context. They live under `<cwd>/session-manager-operations/scheduler/epics/<epic-id>/prds/` and are authored through the `scheduler_create_prd` MCP tool.
307
+ ### Flags
75
308
 
76
- Three run modes:
309
+ | Flag | What it does |
310
+ | --- | --- |
311
+ | `--simple` | Opens one plain terminal with no other screens. |
312
+ | `--ozone-platform=x11` or `--ozone-platform=wayland` | Linux only. Picks the display system. On Wayland with `DISPLAY` set, the app picks `x11` for you. |
77
313
 
78
- - `manual` — only fires when you click Run.
79
- - `on-reset` — fires at the next 5-hour usage reset.
80
- - `when-available` — the default. Polls the billing usage endpoint every ten minutes and fires when tokens fall below the configured threshold. Auto-pauses if a job hits a rate limit, auto-resumes at the next reset.
314
+ ### Env vars
81
315
 
82
- The queue-health linter scans every queued PRD for two patterns that have caused real stuck jobs in this project: unbounded poll loops with unsatisfiable conditions, and post-AC fixture generators that overrun the acceptance criteria. Both incidents are documented in [`src/main/templates/PRD_AUTHORING.md`](src/main/templates/PRD_AUTHORING.md).
316
+ | Var | What it does |
317
+ | --- | --- |
318
+ | `SM_TELEMETRY=0` | Turns off telemetry. |
319
+ | `SM_SEED_SCHEDULER_MCP_DISABLE=1` | Do not add the MCP server. |
320
+ | `SM_SEED_DEV_PLUGIN_DISABLE=1` | Do not install the plugin. |
321
+ | `SM_SEED_AGENT_PERSONAS_DISABLE=1` | Do not copy personas. |
322
+ | `SM_SEED_DEMO_VIDEO_KIT_DISABLE=1` | Do not copy the demo video kit. |
323
+ | `SM_WORKTREE_ROOT` | Moves where session and job worktrees are made. |
324
+ | `SM_SCHEDULER_HOME` | Moves app state away from `~/.claude/session-manager/`. Use it for tests. |
325
+ | `ELECTRON_MIRROR` | Where `npx` gets Electron from. |
83
326
 
84
- ## Keyboard cheatsheet
327
+ ### Network
85
328
 
86
- | Key | Action |
87
- |---|---|
88
- | Cmd-K / Ctrl-K | Open command palette |
89
- | Alt-1 … Alt-5 | Activate tab 1–5 |
90
- | Cmd/Ctrl-N | Open / Start Project |
91
- | Cmd/Ctrl-Shift-R | Restart the app |
92
- | Cmd/Ctrl-Shift-S | Restart terminal in active tab |
93
- | Cmd/Ctrl-R | Reload app window |
94
- | F12 | Toggle developer tools |
95
- | Cmd/Ctrl-Q | Quit |
329
+ Your prompts go only to the agent CLI you chose. The app never sends them anywhere else. The app itself talks to:
96
330
 
97
- ## Architecture
331
+ | Host | Why |
332
+ | --- | --- |
333
+ | `api.anthropic.com` | Reads your usage, for the meters and the scheduler. |
334
+ | `registry.npmjs.org` | Checks for a new app version. |
335
+ | `json.schemastore.org`, `www.schemastore.org` | Checks JSON files as you edit them. |
336
+ | bilko.run | Telemetry and the phone remote relay. |
98
337
 
99
- Electron 42 with a CommonJS main process and a Vite-built React 18 renderer. xterm and node-pty drive the terminals. zustand owns renderer state. Moonshine via `@huggingface/transformers` plus Silero VAD via `@ricky0123/vad-web` runs voice on-device through onnxruntime-web. Tailwind for styling. Single-author project, no backwards-compat shims — when something needs renaming, it gets renamed.
338
+ ### Keyboard
100
339
 
101
- ## Contributing / development
340
+ | Key | What it does |
341
+ | --- | --- |
342
+ | `Cmd-K` / `Ctrl-K` | Open the command palette |
343
+ | `Alt-1` to `Alt-5` | Go to tab 1 to 5 |
344
+ | `Cmd/Ctrl-N` | Open or start a project |
345
+ | `Cmd/Ctrl-Shift-R` | Restart the app |
346
+ | `Cmd/Ctrl-Shift-S` | Restart the terminal in this tab |
347
+ | `Cmd/Ctrl-R` | Reload the window |
348
+ | `F12` | Show or hide dev tools |
349
+ | `Cmd/Ctrl-Q` | Quit |
350
+ | `Cmd+Option+V` (macOS), `Ctrl+Shift+Space` (others) | Push to talk. You can change it in App Settings. |
102
351
 
103
- See [CONTRIBUTING.md](CONTRIBUTING.md) for setup, pre-PR checks, and how to open an issue/PR,
104
- and [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) for community standards. Report security issues
105
- via [SECURITY.md](SECURITY.md), not a public issue.
352
+ ## Development
106
353
 
107
354
  ```bash
108
355
  git clone https://github.com/StanislavBG/claude-code-session-manager
109
356
  cd claude-code-session-manager
110
357
  npm install
111
- npm run dev # Vite + Electron with HMR (SM_DEV=1)
112
- npm run typecheck # tsc --noEmit, must pass before commits
113
- npm run lint # unstable selectors, conditional hooks, unregistered tests
114
- npm run test:unit # vitest run
115
- npm run test:e2e # Playwright Electron under xvfb-run (Linux)
358
+ npm run dev
359
+ npm run typecheck
360
+ npm run lint
361
+ npm run test:unit
362
+ npm run test:e2e
116
363
  ```
117
364
 
118
- PRs welcome. Before authoring a scheduler PRD, read [`src/main/templates/PRD_AUTHORING.md`](src/main/templates/PRD_AUTHORING.md) — the two stuck-job postmortems in there will save you tokens.
365
+ 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.
366
+
367
+ 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.
119
368
 
120
- Enjoying Session Manager? [☕ Buy me a coffee](https://bilko.run/coffee) — the app stays free either way.
369
+ ## Links
121
370
 
122
- Building something with agents? [Talk to Bilko for a free hour](https://bilko.run/book?utm_source=session-manager&utm_medium=readme).
371
+ | Link | URL |
372
+ | --- | --- |
373
+ | Field Manual | https://bilko.run/manual |
374
+ | Product page | https://bilko.run/projects/session-manager/ |
375
+ | Source | https://github.com/StanislavBG/claude-code-session-manager |
376
+ | Releases | https://github.com/StanislavBG/claude-code-session-manager/releases |
377
+ | Issues | https://github.com/StanislavBG/claude-code-session-manager/issues |
378
+ | Buy me a coffee | https://bilko.run/coffee |
379
+ | Talk to Bilko | https://bilko.run/book?utm_source=session-manager&utm_medium=readme |
123
380
 
124
381
  ## License
125
382
 
126
- MIT. Built by one person on evenings and weekends.
383
+ MIT. The app and the Field Manual are free. There is no paid tier.