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.
- package/README.md +80 -70
- package/bin/cli.cjs +11 -0
- package/dist/assets/AppSettings-BcZgIvvY.js +2 -0
- package/dist/assets/{History--JwsFnbn.js → History-DpZuJXi1.js} +1 -1
- package/dist/assets/HomeClaudeConfig-D32ZJtU-.js +3 -0
- package/dist/assets/{Panel-CALyU0pe.js → Panel-BjdJjhqt.js} +1 -1
- package/dist/assets/{ProjectClaudeConfig-sdlA-fUb.js → ProjectClaudeConfig-BTClYV6i.js} +7 -7
- package/dist/assets/Scheduler-DPobKx1Z.js +16 -0
- package/dist/assets/{SkillReferenceGraph-CxAuwhNN.js → SkillReferenceGraph-Cqyu4mef.js} +1 -1
- package/dist/assets/{Skills-DtRzghn5.js → Skills-vv0noNVI.js} +5 -5
- package/dist/assets/{TiptapBody-DApeu7x8.js → TiptapBody-CXi8Pvut.js} +1 -1
- package/dist/assets/Toggle-CiYCWLjh.js +1 -0
- package/dist/assets/{VoiceButton-DtStfv1H.js → VoiceButton-4NKKd1sC.js} +1 -1
- package/dist/assets/{historyTotals-ydfnwepc.js → historyTotals-DDunb8Ch.js} +1 -1
- package/dist/assets/index-Cn5E9958.js +3133 -0
- package/dist/assets/{index-DKXdXfka.css → index-DVHIHoJf.css} +1 -1
- package/dist/index.html +2 -2
- package/dist-web/app.css +1 -1
- package/dist-web/app.js +496 -484
- package/package.json +4 -2
- package/plugins/AGENTS.md +4 -3
- package/plugins/session-manager-dev/hooks/hooks.json +15 -0
- package/plugins/session-manager-dev/hooks/residue-check.cjs +241 -0
- package/plugins/session-manager-dev/skills/builder/SKILL.md +4 -2
- package/plugins/session-manager-dev/skills/develop/SKILL.md +55 -18
- package/plugins/session-manager-dev/skills/develop/standards.md +3 -2
- package/scripts/README.md +1 -0
- package/scripts/hooks/guard-tool-risk.cjs +5 -1
- package/scripts/hooks/lib/guard-tool-risk-policy.cjs +158 -1
- package/scripts/scheduler-mcp-server.cjs +737 -110
- package/src/main/adminRouteRegistry.cjs +59 -0
- package/src/main/agentLibrary.cjs +72 -4
- package/src/main/agentsIpc.cjs +3 -2
- package/src/main/build-info.json +4 -4
- package/src/main/chatRunner.cjs +231 -16
- package/src/main/config.cjs +30 -0
- package/src/main/docEdit.cjs +4 -2
- package/src/main/health.cjs +91 -0
- package/src/main/index.cjs +98 -48
- package/src/main/ipcSchemas.cjs +171 -8
- package/src/main/lib/AGENTS.md +1 -1
- package/src/main/lib/chatBootRecovery.cjs +2 -0
- package/src/main/lib/claude/agentModelResolve.cjs +51 -25
- package/src/main/lib/claude/agentSnapshot.cjs +186 -0
- package/src/main/lib/claude/environmentProfiles.cjs +242 -0
- package/src/main/lib/claude/jobSandboxPolicy.cjs +241 -33
- package/src/main/lib/claude/personaToolScope.cjs +82 -31
- package/src/main/lib/claude/runClaudeP.cjs +4 -2
- package/src/main/lib/claude/toolRiskMarks.cjs +41 -1
- package/src/main/lib/claude/usageCircuit.cjs +49 -21
- package/src/main/lib/claude/vaultRefs.cjs +277 -0
- package/src/main/lib/demo-video-kit/capture.cjs +282 -12
- package/src/main/lib/demo-video-kit/cast.md +43 -0
- package/src/main/lib/demo-video-kit/character.cjs +722 -30
- package/src/main/lib/demo-video-kit/checks.cjs +120 -1
- package/src/main/lib/demo-video-kit/export.cjs +218 -0
- package/src/main/lib/demo-video-kit/frames.cjs +104 -9
- package/src/main/lib/demo-video-kit/kind-marketing.md +121 -0
- package/src/main/lib/demo-video-kit/kind-tiktok.md +99 -0
- package/src/main/lib/demo-video-kit/kokoroSay.cjs +205 -0
- package/src/main/lib/demo-video-kit/project-home-html.md +43 -0
- package/src/main/lib/demo-video-kit/resumableRun.cjs +298 -0
- package/src/main/lib/demo-video-kit/seedKit.cjs +3 -3
- package/src/main/lib/demo-video-kit/voiceLane.cjs +233 -0
- package/src/main/lib/demo-video-kit/voiceLibrary.cjs +312 -0
- package/src/main/lib/epic/artifactAdminRoutes.cjs +211 -0
- package/src/main/lib/epic/artifactIpc.cjs +153 -0
- package/src/main/lib/epic/artifactNotice.cjs +72 -0
- package/src/main/lib/epic/artifactRetention.cjs +310 -0
- package/src/main/lib/epic/artifactStore.cjs +392 -0
- package/src/main/lib/epic/delegationReadiness.cjs +76 -2
- package/src/main/lib/epic/epicAgentRefresh.cjs +97 -0
- package/src/main/lib/epic/epicEventLog.cjs +214 -0
- package/src/main/lib/epic/epicMint.cjs +43 -1
- package/src/main/lib/epic/epicOutsideRead.cjs +1 -0
- package/src/main/lib/epic/epicOutsideState.cjs +18 -4
- package/src/main/lib/epic/epicPurge.cjs +347 -0
- package/src/main/lib/epic/epicReopen.cjs +5 -2
- package/src/main/lib/epic/epicSettle.cjs +4 -13
- package/src/main/lib/epic/epicSpawnPlan.cjs +57 -4
- package/src/main/lib/epic/epicStatusMirror.cjs +34 -1
- package/src/main/lib/epic/epicTransitions.cjs +139 -0
- package/src/main/lib/epic/epicValidationHook.cjs +81 -2
- package/src/main/lib/epic/guardSpawnSettings.cjs +3 -2
- package/src/main/lib/externalContract.cjs +37 -4
- package/src/main/lib/feedback-remote/crossProjectReply.cjs +389 -126
- package/src/main/lib/feedback-remote/customerFeedbackAdminRoutes.cjs +16 -3
- package/src/main/lib/feedback-remote/customerFeedbackClient.cjs +11 -6
- package/src/main/lib/feedback-remote/customerFeedbackInbox.cjs +26 -1
- package/src/main/lib/feedback-remote/customerFeedbackIpc.cjs +5 -2
- package/src/main/lib/feedback-remote/feedbackBoxDrain.cjs +409 -0
- package/src/main/lib/feedback-remote/feedbackBoxKeys.cjs +218 -0
- package/src/main/lib/feedback-remote/feedbackEnvelope.cjs +163 -0
- package/src/main/lib/feedback-remote/feedbackRelayClient.cjs +164 -0
- package/src/main/lib/feedback-remote/feedbackReport.cjs +234 -0
- package/src/main/lib/feedback-remote/feedbackSeal.cjs +217 -0
- package/src/main/lib/feedback-remote/localAdminHttp.cjs +108 -2
- package/src/main/lib/feedback-remote/macroAdminRoutes.cjs +2 -1
- package/src/main/lib/feedback-remote/needsYouIpc.cjs +17 -0
- package/src/main/lib/feedback-remote/needsYouStore.cjs +177 -6
- package/src/main/lib/feedback-remote/pendingReplies.cjs +189 -0
- package/src/main/lib/feedback-remote/projectHomeAdminRoutes.cjs +188 -10
- package/src/main/lib/feedback-remote/serviceClient.cjs +429 -0
- package/src/main/lib/feedback-remote/serviceMcpSession.cjs +252 -0
- package/src/main/lib/feedback-remote/serviceMcpTools.cjs +284 -0
- package/src/main/lib/feedback-remote/servicePairings.cjs +313 -0
- package/src/main/lib/feedback-remote/serviceStdioBridge.cjs +290 -0
- package/src/main/lib/feedback-remote/siteFeedbackAdminRoutes.cjs +295 -0
- package/src/main/lib/feedback-remote/siteFeedbackInbox.cjs +598 -0
- package/src/main/lib/feedback-remote/siteFeedbackIpc.cjs +86 -0
- package/src/main/lib/feedback-remote/siteFeedbackService.cjs +477 -0
- package/src/main/lib/git/worktreeDeps.cjs +77 -2
- package/src/main/lib/mcpToolCatalog.cjs +315 -30
- package/src/main/lib/opsOwnership.cjs +29 -1
- package/src/main/lib/opsRetentionSettings.cjs +27 -5
- package/src/main/lib/persona-macro/builtinMacros.cjs +7 -2
- package/src/main/lib/persona-macro/macroJobDispatch.cjs +52 -8
- package/src/main/lib/persona-macro/macroJobIpc.cjs +16 -6
- package/src/main/lib/persona-macro/macroLibrary.cjs +49 -7
- package/src/main/lib/persona-macro/personaFrontmatterSchema.cjs +83 -0
- package/src/main/lib/persona-macro/projectVideoToolCheck.cjs +3 -0
- package/src/main/lib/persona-macro/shippedPersonaSeeds.cjs +263 -0
- package/src/main/lib/phaseProjection.cjs +103 -0
- package/src/main/lib/prd/depSlugResolve.cjs +4 -13
- package/src/main/lib/prd/prdBodyPatch.cjs +12 -17
- package/src/main/lib/prd/prdCreate.cjs +67 -5
- package/src/main/lib/prd/prdCriteria.cjs +225 -0
- package/src/main/lib/prd/prdFrontmatter.cjs +68 -3
- package/src/main/lib/prd/prdGateFiles.cjs +125 -49
- package/src/main/lib/prd/prdSizing.cjs +3 -1
- package/src/main/lib/process/cleanEnv.cjs +52 -1
- package/src/main/lib/process/leftoverRenice.cjs +178 -0
- package/src/main/lib/process/memoryScope.cjs +31 -3
- package/src/main/lib/project-pages/pagesLibrary.cjs +72 -6
- package/src/main/lib/project-pages/videoReviewIpc.cjs +3 -2
- package/src/main/lib/project-pages/voiceAdminRoutes.cjs +175 -0
- package/src/main/lib/project-pages/voicePreview.cjs +196 -0
- package/src/main/lib/project-pages/voicesIpc.cjs +186 -0
- package/src/main/lib/promptSessionSchema.cjs +6 -0
- package/src/main/lib/scheduler/cancelledRow.cjs +57 -0
- package/src/main/lib/scheduler/cpuSample.cjs +133 -42
- package/src/main/lib/scheduler/criteriaChecks.cjs +169 -0
- package/src/main/lib/scheduler/definitionOfDone.cjs +44 -5
- package/src/main/lib/scheduler/jobMemoryStats.cjs +313 -0
- package/src/main/lib/scheduler/loadGate.cjs +82 -4
- package/src/main/lib/scheduler/planRecordHarvest.cjs +32 -2
- package/src/main/lib/scheduler/prdOutcomeRecord.cjs +133 -0
- package/src/main/lib/scheduler/preflightCheck.cjs +97 -0
- package/src/main/lib/scheduler/reviewNotice.cjs +39 -0
- package/src/main/lib/scheduler/runLogRetention.cjs +42 -1
- package/src/main/lib/scheduler/scheduleJobSchema.cjs +5 -0
- package/src/main/lib/scheduler/scheduleJobTransitions.cjs +47 -0
- package/src/main/lib/scheduler/schedulerConfig.cjs +47 -0
- package/src/main/lib/scheduler/schedulerPaths.cjs +0 -3
- package/src/main/lib/scheduler/schedulerRuntimeState.cjs +50 -1
- package/src/main/lib/scheduler/sessionSlots.cjs +5 -1
- package/src/main/lib/scheduler/slotsRoute.cjs +237 -0
- package/src/main/lib/scheduler/toolClearance.cjs +258 -0
- package/src/main/lib/scheduler/validatorVerdictSchema.cjs +140 -10
- package/src/main/lib/tasks/memoryConsolidation.cjs +300 -0
- package/src/main/lib/tasks/mitigationReview.cjs +294 -0
- package/src/main/lib/tasks/taskAdminRoutes.cjs +312 -22
- package/src/main/lib/tasks/taskIpc.cjs +22 -18
- package/src/main/lib/tasks/taskLedger.cjs +147 -25
- package/src/main/lib/tasks/taskRun.cjs +186 -17
- package/src/main/lib/tasks/taskSwitch.cjs +85 -12
- package/src/main/lib/tasks/taskSwitchRoute.cjs +172 -0
- package/src/main/lib/telemetry/auditEvents.cjs +207 -6
- package/src/main/lib/telemetry/eventsAdminRoutes.cjs +198 -6
- package/src/main/lib/telemetry/webhookDelivery.cjs +205 -0
- package/src/main/lib/telemetry/webhookRegistry.cjs +281 -0
- package/src/main/lib/toolUseClassify.cjs +181 -0
- package/src/main/lib/util/smfileRange.cjs +77 -0
- package/src/main/projectPages.cjs +3 -1
- package/src/main/promptSessionEvents.cjs +5 -0
- package/src/main/pty.cjs +68 -0
- package/src/main/queueOps.cjs +32 -13
- package/src/main/runVerify.cjs +74 -9
- package/src/main/scheduler/AGENTS.md +1 -0
- package/src/main/scheduler/budget.cjs +6 -5
- package/src/main/scheduler/prdParser.cjs +62 -14
- package/src/main/scheduler/reviewLadder.cjs +45 -28
- package/src/main/scheduler/starvation.cjs +69 -0
- package/src/main/scheduler/utilizationHold.cjs +101 -0
- package/src/main/scheduler.cjs +1745 -210
- package/src/main/templates/PRD_AUTHORING.md +13 -2
- package/src/main/webRemote.cjs +463 -6
- package/src/preload/api.d.ts +529 -38
- package/src/preload/apiSurface.json +209 -7
- package/src/preload/index.cjs +46 -1
- package/src/seed/agents/architect.md +6 -1
- package/src/seed/agents/blender-artist.md +2 -1
- package/src/seed/agents/competitive-analyst.md +3 -1
- package/src/seed/agents/competitive-researcher.md +2 -1
- package/src/seed/agents/demo-video-builder.md +87 -83
- package/src/seed/agents/dev-lead.md +3 -3
- package/src/seed/agents/project-home-builder.md +9 -31
- package/src/seed/agents/validator.md +9 -10
- package/dist/assets/AppSettings-CMFEM68R.js +0 -2
- package/dist/assets/HomeClaudeConfig-ijEXs--3.js +0 -3
- package/dist/assets/Scheduler-YT3j8SUa.js +0 -16
- package/dist/assets/ViewTabs-B7qLXRAH.js +0 -1
- package/dist/assets/index-CtxruO1L.js +0 -3121
- 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,
|
|
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
|
|
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
|
|
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:
|
|
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.
|
|
24
|
-
- It is not made
|
|
25
|
-
- It does not
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 |
|
|
70
|
-
| --- | --- | --- |
|
|
71
|
-
| Agents library | Lists the personas on this machine. You can edit them. |
|
|
72
|
-
| Macros | A macro saves an agent, a Mission and a prompt. One press starts one new session. |
|
|
73
|
-
| Context packs | A pack adds a plugin and rules to one session. |
|
|
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 |
|
|
78
|
-
| --- | --- | --- |
|
|
79
|
-
| CLAUDE.md | Edits your `~/.claude/CLAUDE.md`. |
|
|
80
|
-
| Claude config | Shows one project's `CLAUDE.md`, `.claude/settings.json`, `.mcp.json`, skills and memory folder. |
|
|
81
|
-
| Settings | Edits `settings.json` for each scope. It shows which scope wins. |
|
|
82
|
-
| Hooks | Edits hooks. You can test-fire one. |
|
|
83
|
-
| Extensions | Lists skills, MCP servers and plugins. |
|
|
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 |
|
|
88
|
-
| --- | --- | --- |
|
|
89
|
-
| Pages | Shows pages about the project. |
|
|
90
|
-
| Videos | Shows short demo videos. |
|
|
91
|
-
| Competitor matrix | Compares the project with others, feature by feature. |
|
|
92
|
-
| Video character | A saved look for the people in demo videos. |
|
|
93
|
-
| Written by agents | Agents write all of these through 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 |
|
|
98
|
-
| --- | --- | --- |
|
|
99
|
-
| Cross-project feedback | An agent sends a finding to another repo on this machine. It lands there as a `proposed` session. |
|
|
100
|
-
| Feedback to the maker | You send feedback about the app. |
|
|
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 |
|
|
105
|
-
| --- | --- | --- |
|
|
106
|
-
| Dashboard | Shows every project and every active session on this machine. |
|
|
107
|
-
| Usage meters | Show how much of your plan's limits you used. |
|
|
108
|
-
| History | Shows spend, tokens and time across all projects. |
|
|
109
|
-
| File Explorer | Browse and edit files. |
|
|
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 |
|
|
114
|
-
| --- | --- | --- |
|
|
115
|
-
| Voice input | Turns speech into text on your machine. Nothing leaves it. |
|
|
116
|
-
| Recording light | A light shows on top of every screen while the mic is on. |
|
|
117
|
-
|
|
|
118
|
-
| Simple mode | `--simple` opens one plain terminal. |
|
|
119
|
-
| Command palette | `Cmd-K` or `Ctrl-K` opens a list of commands. |
|
|
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
|
-
|
|
133
|
+
An installed build uses the app's own binary, with `-e ELECTRON_RUN_AS_NODE=1`.
|
|
134
134
|
|
|
135
|
-
|
|
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
|
|
140
|
-
- The tools are
|
|
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
|
-
|
|
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
|
|
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
|
-
-
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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` |
|
|
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
|
|
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
|
|
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).
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
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');
|