@tekmidian/pai 0.42.5 → 0.43.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/ARCHITECTURE.md +9 -9
- package/README.md +26 -8
- package/dist/{aibroker-client-BP74gGwD.mjs → aibroker-client-Bn9SnGMa.mjs} +3 -3
- package/dist/{aibroker-client-BP74gGwD.mjs.map → aibroker-client-Bn9SnGMa.mjs.map} +1 -1
- package/dist/{aibroker-client-C6m71p6O.mjs → aibroker-client-D5NT0S1N.mjs} +1 -1
- package/dist/{auto-route-_5zzJz5q.mjs → auto-route-CcD0OWWB.mjs} +4 -4
- package/dist/{auto-route-_5zzJz5q.mjs.map → auto-route-CcD0OWWB.mjs.map} +1 -1
- package/dist/{chain-DTII7xeL.mjs → chain-CEC1a5mX.mjs} +5 -4
- package/dist/{chain-DTII7xeL.mjs.map → chain-CEC1a5mX.mjs.map} +1 -1
- package/dist/cli/index.mjs +23 -21
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/program.d.mts.map +1 -1
- package/dist/cli/program.mjs +23 -21
- package/dist/{clusters-j0ZuNYp9.mjs → clusters-Cw_P6lO-.mjs} +2 -2
- package/dist/{clusters-j0ZuNYp9.mjs.map → clusters-Cw_P6lO-.mjs.map} +1 -1
- package/dist/{config-B64vFg14.mjs → config-DCu8THKi.mjs} +41 -9
- package/dist/{config-B64vFg14.mjs.map → config-DCu8THKi.mjs.map} +1 -1
- package/dist/config-DeqFqa1N.mjs +3 -0
- package/dist/config-DxMZjpvY.mjs +1289 -0
- package/dist/config-DxMZjpvY.mjs.map +1 -0
- package/dist/context-handover-cache-B9NKSjwR.mjs +3242 -0
- package/dist/context-handover-cache-B9NKSjwR.mjs.map +1 -0
- package/dist/daemon/index.mjs +23 -22
- package/dist/daemon/index.mjs.map +1 -1
- package/dist/{daemon-B8N1egl0.mjs → daemon-BhldpFvO.mjs} +52 -38
- package/dist/daemon-BhldpFvO.mjs.map +1 -0
- package/dist/daemon-QIvCXB5f.mjs +24 -0
- package/dist/daemon-mcp/index.mjs +144 -117
- package/dist/daemon-mcp/index.mjs.map +1 -1
- package/dist/db-BOBfewFH.mjs +3 -0
- package/dist/{db-a1ixZQjr.mjs → db-DJ8rk0VM.mjs} +15 -6
- package/dist/{db-a1ixZQjr.mjs.map → db-DJ8rk0VM.mjs.map} +1 -1
- package/dist/db-DbY2O8QO.mjs +3 -0
- package/dist/{db-Ca5qfsMC.mjs → db-Ddns80yf.mjs} +15 -6
- package/dist/{db-Ca5qfsMC.mjs.map → db-Ddns80yf.mjs.map} +1 -1
- package/dist/{detect-CdaA48EI.mjs → detect-Bf2z-oKB.mjs} +1 -1
- package/dist/{detect-CdaA48EI.mjs.map → detect-Bf2z-oKB.mjs.map} +1 -1
- package/dist/detector-CkwkXuGh.mjs +5 -0
- package/dist/{detector-C73Nxm94.mjs → detector-DWXkeTlk.mjs} +2 -2
- package/dist/{detector-C73Nxm94.mjs.map → detector-DWXkeTlk.mjs.map} +1 -1
- package/dist/{embeddings-CEBGrzwu.mjs → embeddings-ClqKtLZ8.mjs} +1 -1
- package/dist/{embeddings-DOLZnT1X.mjs → embeddings-DvRKcQyt.mjs} +1 -1
- package/dist/{embeddings-DOLZnT1X.mjs.map → embeddings-DvRKcQyt.mjs.map} +1 -1
- package/dist/factory-47Qf_df7.mjs +3 -0
- package/dist/{factory-DEb9NmHJ.mjs → factory-DNYAqjH0.mjs} +8 -8
- package/dist/{factory-DEb9NmHJ.mjs.map → factory-DNYAqjH0.mjs.map} +1 -1
- package/dist/{fallback-oJl3BaIN.mjs → fallback-BQJ8PbCK.mjs} +185 -123
- package/dist/fallback-BQJ8PbCK.mjs.map +1 -0
- package/dist/{helpers-IjZkXBhj.mjs → helpers-crDEr6S2.mjs} +1 -1
- package/dist/{helpers-IjZkXBhj.mjs.map → helpers-crDEr6S2.mjs.map} +1 -1
- package/dist/hooks/capture-all-events.mjs +117 -34
- package/dist/hooks/capture-all-events.mjs.map +4 -4
- package/dist/hooks/capture-session-summary.mjs +110 -33
- package/dist/hooks/capture-session-summary.mjs.map +4 -4
- package/dist/hooks/capture-tool-output.mjs +105 -28
- package/dist/hooks/capture-tool-output.mjs.map +4 -4
- package/dist/hooks/cleanup-session-files.mjs +54 -13
- package/dist/hooks/cleanup-session-files.mjs.map +2 -2
- package/dist/hooks/context-compression-hook.mjs +7565 -122
- package/dist/hooks/context-compression-hook.mjs.map +4 -4
- package/dist/hooks/initialize-session.mjs +55 -14
- package/dist/hooks/initialize-session.mjs.map +2 -2
- package/dist/hooks/inject-observations.mjs +79 -18
- package/dist/hooks/inject-observations.mjs.map +3 -3
- package/dist/hooks/load-core-context.mjs +55 -14
- package/dist/hooks/load-core-context.mjs.map +2 -2
- package/dist/hooks/load-project-context.mjs +207 -122
- package/dist/hooks/load-project-context.mjs.map +4 -4
- package/dist/hooks/mcp-deferred-gate.mjs +54 -13
- package/dist/hooks/mcp-deferred-gate.mjs.map +2 -2
- package/dist/hooks/mcp-deferred-reminder.mjs +9 -0
- package/dist/hooks/mcp-deferred-reminder.mjs.map +3 -3
- package/dist/hooks/observe.mjs +54 -13
- package/dist/hooks/observe.mjs.map +2 -2
- package/dist/hooks/post-compact-inject.mjs +7419 -16
- package/dist/hooks/post-compact-inject.mjs.map +4 -4
- package/dist/hooks/route-agents-to-worker.mjs +7778 -171
- package/dist/hooks/route-agents-to-worker.mjs.map +4 -4
- package/dist/hooks/route-edits-to-worker.mjs +90 -0
- package/dist/hooks/route-edits-to-worker.mjs.map +7 -0
- package/dist/hooks/security-validator.mjs +147 -6
- package/dist/hooks/security-validator.mjs.map +4 -4
- package/dist/hooks/session-commands.mjs +9 -0
- package/dist/hooks/session-commands.mjs.map +3 -3
- package/dist/hooks/stop-hook.mjs +182 -105
- package/dist/hooks/stop-hook.mjs.map +4 -4
- package/dist/hooks/subagent-stop-hook.mjs +3 -0
- package/dist/hooks/subagent-stop-hook.mjs.map +1 -1
- package/dist/hooks/sync-todo-to-md.mjs +54 -13
- package/dist/hooks/sync-todo-to-md.mjs.map +2 -2
- package/dist/hooks/update-tab-on-action.mjs +3 -0
- package/dist/hooks/update-tab-on-action.mjs.map +1 -1
- package/dist/hooks/update-tab-titles.mjs +3 -0
- package/dist/hooks/update-tab-titles.mjs.map +1 -1
- package/dist/hooks/whisper-reinject.mjs +11 -0
- package/dist/hooks/whisper-reinject.mjs.map +3 -3
- package/dist/hooks/whisper-rules.mjs +134 -29
- package/dist/hooks/whisper-rules.mjs.map +4 -4
- package/dist/hooks/worker-proxy.mjs +7737 -117
- package/dist/hooks/worker-proxy.mjs.map +4 -4
- package/dist/hooks/worker-status-line.mjs +7883 -169
- package/dist/hooks/worker-status-line.mjs.map +4 -4
- package/dist/hooks/worker-supervision.mjs +7721 -115
- package/dist/hooks/worker-supervision.mjs.map +4 -4
- package/dist/index.d.mts +4 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +10 -10
- package/dist/{indexer-backend-BPTzKFZU.mjs → indexer-backend-CdvCJCkD.mjs} +3 -3
- package/dist/{indexer-backend-BPTzKFZU.mjs.map → indexer-backend-CdvCJCkD.mjs.map} +1 -1
- package/dist/{ipc-client-BmypMNYk.mjs → ipc-client-C6NryMMb.mjs} +2 -2
- package/dist/{ipc-client-BmypMNYk.mjs.map → ipc-client-C6NryMMb.mjs.map} +1 -1
- package/dist/{kg-entity-r8duqhi9.mjs → kg-entity-BSjM5xZh.mjs} +1 -1
- package/dist/{kg-entity-r8duqhi9.mjs.map → kg-entity-BSjM5xZh.mjs.map} +1 -1
- package/dist/{latent-ideas-CtSca4qG.mjs → latent-ideas-BfL4nCQ3.mjs} +4 -4
- package/dist/{latent-ideas-CtSca4qG.mjs.map → latent-ideas-BfL4nCQ3.mjs.map} +1 -1
- package/dist/{link-boost-Bucnz3n8.mjs → link-boost-C5PaNdzm.mjs} +1 -1
- package/dist/{link-boost-Bucnz3n8.mjs.map → link-boost-C5PaNdzm.mjs.map} +1 -1
- package/dist/main-resolver-CnfnWa8C.mjs +7 -0
- package/dist/{main-resolver-DnkxPYkr.mjs → main-resolver-DvYu9jbl.mjs} +21 -11
- package/dist/main-resolver-DvYu9jbl.mjs.map +1 -0
- package/dist/{migrate-Cjzeefn9.mjs → migrate-CfERwXhY.mjs} +2 -2
- package/dist/{migrate-Cjzeefn9.mjs.map → migrate-CfERwXhY.mjs.map} +1 -1
- package/dist/{neighborhood-CM7Jgb51.mjs → neighborhood-CETR_P4y.mjs} +2 -2
- package/dist/{neighborhood-CM7Jgb51.mjs.map → neighborhood-CETR_P4y.mjs.map} +1 -1
- package/dist/{note-context-DCwE2A-M.mjs → note-context-DCcRWBoN.mjs} +1 -1
- package/dist/{note-context-DCwE2A-M.mjs.map → note-context-DCcRWBoN.mjs.map} +1 -1
- package/dist/pai-home-ChAOupZc.mjs +164 -0
- package/dist/pai-home-ChAOupZc.mjs.map +1 -0
- package/dist/{pai-marker-CHtbJMwJ.mjs → pai-marker-B20KqhA8.mjs} +1 -1
- package/dist/{pai-marker-CHtbJMwJ.mjs.map → pai-marker-B20KqhA8.mjs.map} +1 -1
- package/dist/{planner-D5Ui7DAm.mjs → planner-BlKGgpWI.mjs} +7 -6
- package/dist/{planner-D5Ui7DAm.mjs.map → planner-BlKGgpWI.mjs.map} +1 -1
- package/dist/{postgres-CtOzfoQU.mjs → postgres-CUSXWgTG.mjs} +2 -2
- package/dist/{postgres-CtOzfoQU.mjs.map → postgres-CUSXWgTG.mjs.map} +1 -1
- package/dist/{program-zpoYnJGz.mjs → program-C5jRQ1kg.mjs} +8880 -5913
- package/dist/program-C5jRQ1kg.mjs.map +1 -0
- package/dist/query-feedback-C7rSfiXU.mjs +3 -0
- package/dist/{query-feedback-Dqz-HC__.mjs → query-feedback-CYyOGi3y.mjs} +20 -6
- package/dist/query-feedback-CYyOGi3y.mjs.map +1 -0
- package/dist/{reranker-CwTCNsgA.mjs → reranker-B5qUTamW.mjs} +1 -1
- package/dist/{reranker-xPm04PXx.mjs → reranker-HHmhZk6v.mjs} +1 -1
- package/dist/{reranker-xPm04PXx.mjs.map → reranker-HHmhZk6v.mjs.map} +1 -1
- package/dist/router-CremHKTI.mjs +3 -0
- package/dist/{router-DD6D4j31.mjs → router-DBAZfE7X.mjs} +2 -2
- package/dist/{router-DD6D4j31.mjs.map → router-DBAZfE7X.mjs.map} +1 -1
- package/dist/{run-D7K5UALn.mjs → run-ByBKowN5.mjs} +980 -247
- package/dist/run-ByBKowN5.mjs.map +1 -0
- package/dist/{runtime-paths-rni52zHX.mjs → runtime-paths-B0P1TvUr.mjs} +1 -1
- package/dist/{runtime-paths-rni52zHX.mjs.map → runtime-paths-B0P1TvUr.mjs.map} +1 -1
- package/dist/{search-Rpk1cSBC.mjs → search-B69cQwDB.mjs} +3 -3
- package/dist/{search-Rpk1cSBC.mjs.map → search-B69cQwDB.mjs.map} +1 -1
- package/dist/{search-CfPpJAWQ.mjs → search-fb-5ovj4.mjs} +2 -2
- package/dist/{server-D4vAieF4.mjs → server-Ch99xt5K.mjs} +15 -14
- package/dist/server-Ch99xt5K.mjs.map +1 -0
- package/dist/skills/Advisor/SKILL.md +3 -3
- package/dist/skills/Providers/SKILL.md +30 -0
- package/dist/skills/Reconstruct/SKILL.md +1 -1
- package/dist/skills/VaultContext/SKILL.md +1 -1
- package/dist/skills/Whisper/SKILL.md +3 -3
- package/dist/skills/Worker/SKILL.md +1 -1
- package/dist/{sources-CS43CpuS.mjs → sources-KBGEA_E6.mjs} +2 -2
- package/dist/{sources-CS43CpuS.mjs.map → sources-KBGEA_E6.mjs.map} +1 -1
- package/dist/{sqlite-Cq3gJcq9.mjs → sqlite-By6r2YhZ.mjs} +3 -3
- package/dist/{sqlite-Cq3gJcq9.mjs.map → sqlite-By6r2YhZ.mjs.map} +1 -1
- package/dist/{state-CY6I-Hnc.mjs → state-DnYGRmS7.mjs} +1 -1
- package/dist/{state-BRdB-Bf1.mjs → state-PJrgfDLW.mjs} +1 -1
- package/dist/{state-BRdB-Bf1.mjs.map → state-PJrgfDLW.mjs.map} +1 -1
- package/dist/{stop-words-Hfu8u22w.mjs → stop-words-BaMEGVeY.mjs} +1 -1
- package/dist/{stop-words-Hfu8u22w.mjs.map → stop-words-BaMEGVeY.mjs.map} +1 -1
- package/dist/{sync-BWbe8JTg.mjs → sync-Btcb6xA4.mjs} +3 -3
- package/dist/{sync-BWbe8JTg.mjs.map → sync-Btcb6xA4.mjs.map} +1 -1
- package/dist/{themes-B7h9YDiy.mjs → themes-BVoAnLZj.mjs} +3 -3
- package/dist/{themes-B7h9YDiy.mjs.map → themes-BVoAnLZj.mjs.map} +1 -1
- package/dist/{tools-BW3NLMPk.mjs → tools-CAG2sUjf.mjs} +4 -3
- package/dist/{tools-LlzcV_eK.mjs → tools-DiRC5glA.mjs} +30 -233
- package/dist/tools-DiRC5glA.mjs.map +1 -0
- package/dist/{trace-u4hT-pLD.mjs → trace-Cy8quQTm.mjs} +1 -1
- package/dist/{trace-u4hT-pLD.mjs.map → trace-Cy8quQTm.mjs.map} +1 -1
- package/dist/{utils-DhMex3Ox.mjs → utils-BD8g8oSf.mjs} +1 -1
- package/dist/{utils-9Err2RBW.mjs → utils-CJymHkYm.mjs} +1 -1
- package/dist/{utils-9Err2RBW.mjs.map → utils-CJymHkYm.mjs.map} +1 -1
- package/dist/{vault-indexer-mata9S7b.mjs → vault-indexer-C5i-OAyr.mjs} +2 -2
- package/dist/{vault-indexer-mata9S7b.mjs.map → vault-indexer-C5i-OAyr.mjs.map} +1 -1
- package/dist/wakeup-BfElduEU.mjs +231 -0
- package/dist/wakeup-BfElduEU.mjs.map +1 -0
- package/dist/work-queue-worker-BA5IDBwQ.mjs +567 -0
- package/dist/work-queue-worker-BA5IDBwQ.mjs.map +1 -0
- package/dist/work-queue-worker-DLM2wlqM.mjs +14 -0
- package/dist/{zettelkasten-F0D_XfQ4.mjs → zettelkasten-BBjA7GcP.mjs} +4 -4
- package/dist/{zettelkasten-F0D_XfQ4.mjs.map → zettelkasten-BBjA7GcP.mjs.map} +1 -1
- package/docs/commands/README.md +32 -3
- package/docs/commands/audit.md +113 -0
- package/docs/commands/backup.md +2 -2
- package/docs/commands/clear-names.md +1 -1
- package/docs/commands/config.md +59 -0
- package/docs/commands/daemon.md +1 -1
- package/docs/commands/db.md +1 -1
- package/docs/commands/end.md +1 -1
- package/docs/commands/help.md +1 -1
- package/docs/commands/identity.md +1 -1
- package/docs/commands/kg.md +1 -1
- package/docs/commands/launch.md +45 -0
- package/docs/commands/mcp.md +1 -1
- package/docs/commands/memory.md +3 -3
- package/docs/commands/notify.md +1 -1
- package/docs/commands/observation.md +1 -1
- package/docs/commands/obsidian.md +1 -1
- package/docs/commands/pause.md +1 -1
- package/docs/commands/project.md +46 -1
- package/docs/commands/projects.md +46 -1
- package/docs/commands/registry.md +1 -1
- package/docs/commands/restore.md +1 -1
- package/docs/commands/session.md +1 -1
- package/docs/commands/sessions.md +1 -1
- package/docs/commands/setup.md +1 -1
- package/docs/commands/shell-init.md +1 -1
- package/docs/commands/skill.md +1 -1
- package/docs/commands/task.md +1 -1
- package/docs/commands/topic.md +1 -1
- package/docs/commands/update.md +1 -1
- package/docs/commands/worker.md +97 -6
- package/docs/commands/zettel.md +1 -1
- package/docs/provider-abstraction.md +1 -1
- package/docs/provider-independence-details.md +8 -5
- package/docs/task-bus.md +1 -1
- package/docs/worker.md +136 -83
- package/docs/workers-config.md +446 -0
- package/package.json +4 -2
- package/scripts/build-hooks.mjs +58 -3
- package/src/hooks/pre-compact.sh +5 -2
- package/src/hooks/session-stop.sh +29 -4
- package/src/hooks/ts/capture-all-events.ts +3 -3
- package/src/hooks/ts/lib/advisor-budget.test.ts +98 -0
- package/src/hooks/ts/lib/advisor-budget.ts +90 -0
- package/src/hooks/ts/lib/agent-gate.test.ts +101 -0
- package/src/hooks/ts/lib/agent-gate.ts +112 -0
- package/src/hooks/ts/lib/context-fill.ts +2 -2
- package/src/hooks/ts/lib/edit-gate.test.ts +52 -0
- package/src/hooks/ts/lib/edit-gate.ts +51 -0
- package/src/hooks/ts/lib/mcp-deferred-reminder.test.ts +8 -0
- package/src/hooks/ts/lib/pai-paths.test.ts +93 -0
- package/src/hooks/ts/lib/pai-paths.ts +168 -24
- package/src/hooks/ts/lib/project-utils/index.ts +1 -0
- package/src/hooks/ts/lib/project-utils/paths.ts +5 -4
- package/src/hooks/ts/lib/project-utils.ts +1 -0
- package/src/hooks/ts/post-tool-use/capture-tool-output.ts +2 -2
- package/src/hooks/ts/post-tool-use/whisper-reinject.test.ts +55 -0
- package/src/hooks/ts/post-tool-use/whisper-reinject.ts +3 -0
- package/src/hooks/ts/pre-compact/context-compression-hook.ts +1 -1
- package/src/hooks/ts/pre-tool-use/route-agents-to-worker.ts +46 -99
- package/src/hooks/ts/pre-tool-use/route-edits-to-worker.test.ts +47 -0
- package/src/hooks/ts/pre-tool-use/route-edits-to-worker.ts +96 -0
- package/src/hooks/ts/pre-tool-use/security-validator.ts +2 -1
- package/src/hooks/ts/session-end/capture-session-summary.ts +4 -4
- package/src/hooks/ts/session-start/initialize-session.ts +3 -3
- package/src/hooks/ts/session-start/inject-observations.test.ts +56 -0
- package/src/hooks/ts/session-start/inject-observations.ts +28 -8
- package/src/hooks/ts/session-start/load-core-context.ts +4 -4
- package/src/hooks/ts/session-start/load-project-context.ts +2 -2
- package/src/hooks/ts/session-start/mcp-deferred-reminder.ts +2 -0
- package/src/hooks/ts/session-start/session-commands.ts +4 -0
- package/src/hooks/ts/session-start/session-start-worker-guard.test.ts +36 -0
- package/src/hooks/ts/stop/stop-hook.ts +6 -11
- package/src/hooks/ts/user-prompt/whisper-rules.test.ts +49 -0
- package/src/hooks/ts/user-prompt/whisper-rules.ts +88 -47
- package/src/hooks/ztk-auto.sh +28 -0
- package/src/hooks/ztk-auto.test.ts +72 -0
- package/src/hooks/ztk-passthrough.mjs +71 -0
- package/statusline-command.sh +277 -116
- package/templates/agent-prefs.example.md +8 -8
- package/templates/claude-md.template.md +1 -1
- package/templates/voices.example.json +3 -3
- package/dist/config-C_ErGddD.mjs +0 -3
- package/dist/config-_lQI_W08.mjs +0 -640
- package/dist/config-_lQI_W08.mjs.map +0 -1
- package/dist/context-handover-cache-pNFdBNrU.mjs +0 -1548
- package/dist/context-handover-cache-pNFdBNrU.mjs.map +0 -1
- package/dist/daemon-B8N1egl0.mjs.map +0 -1
- package/dist/daemon-DHfyoTlk.mjs +0 -23
- package/dist/db-O-cyAPfS.mjs +0 -3
- package/dist/db-XEwJbuGO.mjs +0 -3
- package/dist/detector-C-7KRi42.mjs +0 -5
- package/dist/factory-Dbo8yNPi.mjs +0 -3
- package/dist/fallback-oJl3BaIN.mjs.map +0 -1
- package/dist/main-resolver-BAfOMppW.mjs +0 -7
- package/dist/main-resolver-DnkxPYkr.mjs.map +0 -1
- package/dist/program-zpoYnJGz.mjs.map +0 -1
- package/dist/query-feedback-DGoVRaWD.mjs +0 -3
- package/dist/query-feedback-Dqz-HC__.mjs.map +0 -1
- package/dist/router-BTIGZR2_.mjs +0 -3
- package/dist/run-D7K5UALn.mjs.map +0 -1
- package/dist/server-D4vAieF4.mjs.map +0 -1
- package/dist/tools-LlzcV_eK.mjs.map +0 -1
- package/dist/work-queue-worker-AEmfVE0F.mjs +0 -14
- package/dist/work-queue-worker-DIT-VLSh.mjs +0 -2136
- package/dist/work-queue-worker-DIT-VLSh.mjs.map +0 -1
- /package/dist/{indexer-D7MvSQPY.mjs → indexer-C5Le7XE7.mjs} +0 -0
package/docs/commands/README.md
CHANGED
|
@@ -8,14 +8,17 @@ Generated man pages for every `pai` command area. Read any page in the terminal
|
|
|
8
8
|
|
|
9
9
|
| Area | Description |
|
|
10
10
|
|------|-------------|
|
|
11
|
-
| [`pai
|
|
11
|
+
| [`pai audit`](audit.md) | Diagnostic audits: token-waste report and friends |
|
|
12
|
+
| [`pai backup`](backup.md) | Backup registry, config, and Postgres database to PAI_HOME/backups/ |
|
|
12
13
|
| [`pai clear-names`](clear-names.md) | Recovery: wipe corrupted iTerm2 session name state. |
|
|
14
|
+
| [`pai config`](config.md) | PAI_HOME namespace dir: path, migrate |
|
|
13
15
|
| [`pai daemon`](daemon.md) | PAI daemon management: serve, status, restart, install, uninstall, logs |
|
|
14
16
|
| [`pai db`](db.md) | Database inspection: query, tables, schema (sqlite or postgres) |
|
|
15
17
|
| [`pai end`](end.md) | Finalize a session: save state, mark note Completed, display safe-exit instructions. |
|
|
16
18
|
| [`pai help`](help.md) | Show the man page for a command area (pai help <area>), or list all areas |
|
|
17
19
|
| [`pai identity`](identity.md) | Declare who you are: self addresses and where mail is delivered |
|
|
18
20
|
| [`pai kg`](kg.md) | Temporal knowledge graph: backfill, query, list, stats |
|
|
21
|
+
| [`pai launch`](launch.md) | Start the Claude Code harness on any provider/model from workers.yaml. |
|
|
19
22
|
| [`pai mcp`](mcp.md) | MCP server management: install and status |
|
|
20
23
|
| [`pai memory`](memory.md) | Memory engine: index, search, and status |
|
|
21
24
|
| [`pai notify`](notify.md) | Notification config: status, get, set, test, send |
|
|
@@ -41,8 +44,22 @@ Generated man pages for every `pai` command area. Read any page in the terminal
|
|
|
41
44
|
|
|
42
45
|
| Command | Description |
|
|
43
46
|
|---------|-------------|
|
|
44
|
-
| `pai
|
|
47
|
+
| `pai audit` | Diagnostic audits: token-waste report and friends |
|
|
48
|
+
| `pai audit tokens` | Token-waste audit: memory files, hooks, session usage, spawn overhead, daemon, env, schedule, skill catalogue |
|
|
49
|
+
| `pai audit tokens daemon` | LLM spawns, KG-extraction parse failures, work-queue counts from the daemon log |
|
|
50
|
+
| `pai audit tokens env` | ANTHROPIC_BASE_URL / model-override env on every live claude process |
|
|
51
|
+
| `pai audit tokens files [paths...]` | Token count per memory file (CLAUDE.md chain, CORE skill, whisper rules, auto-memory) |
|
|
52
|
+
| `pai audit tokens hooks` | Token cost of every SessionStart / UserPromptSubmit hook |
|
|
53
|
+
| `pai audit tokens ladder` | LIVE: first-turn context at increasing headless-worker configuration (spawns real claude -p calls) |
|
|
54
|
+
| `pai audit tokens schedule` | Launchd agents / crontab entries that outpace the measured prompt-cache TTL |
|
|
55
|
+
| `pai audit tokens session [path]` | Cache/input/output token split for a session transcript (default: newest) |
|
|
56
|
+
| `pai audit tokens skills` | Token cost of the SKILL.md / command / plugin catalogue, top entries, duplicate names |
|
|
57
|
+
| `pai audit tokens spawn` | Spawn-overhead comparison: Agent-tool subagents vs. pai workers |
|
|
58
|
+
| `pai backup` | Backup registry, config, and Postgres database to PAI_HOME/backups/ |
|
|
45
59
|
| `pai clear-names` | Recovery: wipe corrupted iTerm2 session name state. |
|
|
60
|
+
| `pai config` | PAI_HOME namespace dir: path, migrate |
|
|
61
|
+
| `pai config migrate` | Move config.json, workers.yaml, whisper-rules.md, advisor-mode.json, session-state/, |
|
|
62
|
+
| `pai config path` | Print the PAI_HOME namespace dir and each resolved per-user file |
|
|
46
63
|
| `pai daemon` | PAI daemon management: serve, status, restart, install, uninstall, logs |
|
|
47
64
|
| `pai daemon install` | Install daemon as a launchd service and update ~/.claude.json to use the shim |
|
|
48
65
|
| `pai daemon logs` | Tail the daemon log (/tmp/pai-daemon.log) |
|
|
@@ -67,6 +84,7 @@ Generated man pages for every `pai` command area. Read any page in the terminal
|
|
|
67
84
|
| `pai kg list` | List currently-valid triples |
|
|
68
85
|
| `pai kg query` | Query KG triples by subject, predicate, object, time, or project |
|
|
69
86
|
| `pai kg stats` | Show triple counts and contradiction count |
|
|
87
|
+
| `pai launch` | Start the Claude Code harness on any provider/model from workers.yaml. |
|
|
70
88
|
| `pai mcp` | MCP server management: install and status |
|
|
71
89
|
| `pai mcp install` | Register the PAI MCP server (pai) in ~/.claude.json (restart Claude Code to activate) |
|
|
72
90
|
| `pai mcp status` | Show whether the PAI MCP server (pai) is registered and the binary exists |
|
|
@@ -74,7 +92,7 @@ Generated man pages for every `pai` command area. Read any page in the terminal
|
|
|
74
92
|
| `pai memory embed [project-slug]` | Generate embeddings for un-embedded chunks (Phase 2.5) |
|
|
75
93
|
| `pai memory index [project-slug]` | Index memory files for one project or all projects |
|
|
76
94
|
| `pai memory search <query>` | Search indexed memory (BM25 keyword, semantic, or hybrid) |
|
|
77
|
-
| `pai memory settings [key] [value]` | View or modify search settings in
|
|
95
|
+
| `pai memory settings [key] [value]` | View or modify search settings in the PAI config file (`pai config path`) |
|
|
78
96
|
| `pai memory sources` | Show what the indexer has taken in: composition by source, which roots |
|
|
79
97
|
| `pai memory status [project-slug]` | Show memory index statistics |
|
|
80
98
|
| `pai notify` | Notification config: status, get, set, test, send |
|
|
@@ -107,6 +125,7 @@ Generated man pages for every `pai` command area. Read any page in the terminal
|
|
|
107
125
|
| `pai project info <slug>` | Show full details for a project |
|
|
108
126
|
| `pai project list` | Show the unified deduped listing (same as `pai`). |
|
|
109
127
|
| `pai project list-raw` | Raw registry listing with slug, path, status, last_active columns |
|
|
128
|
+
| `pai project mcp [names...]` | View or set the MCP servers this project's interactive supervisor session |
|
|
110
129
|
| `pai project merge <from> <into>` | Fold a duplicate project into another: move its sessions (renumbered), repoint its tags, aliases, compaction records and links, keep the old slug as an alias, then delete the row. Preview unless --execute is given. |
|
|
111
130
|
| `pai project move <slug> <new-path>` | Update the root path for a project |
|
|
112
131
|
| `pai project name <identifier> <shortname>` | Give a project a short name for quick access |
|
|
@@ -114,6 +133,7 @@ Generated man pages for every `pai` command area. Read any page in the terminal
|
|
|
114
133
|
| `pai project promote` | Promote a session note into a new standalone project |
|
|
115
134
|
| `pai project rebind <slug> <new-path>` | Manually update the root_path for a project (for when auto-detect found multiple matches). |
|
|
116
135
|
| `pai project tag <slug> <tags...>` | Add one or more tags to a project |
|
|
136
|
+
| `pai project tools [names...]` | View or set the built-in tool schemas this project's interactive |
|
|
117
137
|
| `pai project unarchive <slug>` | Restore an archived project to active status |
|
|
118
138
|
| `pai project unname <shortname>` | Remove a project's short name |
|
|
119
139
|
| `pai project unregister <slug>` | Remove a project row entirely, for paths that should never have been registered (worktrees, temp dirs). Refuses when the row holds sessions — merge those first. Preview unless --execute is given. The directory itself is never touched. |
|
|
@@ -132,6 +152,7 @@ Generated man pages for every `pai` command area. Read any page in the terminal
|
|
|
132
152
|
| `pai projects info <slug>` | Show full details for a project |
|
|
133
153
|
| `pai projects list` | Show the unified deduped listing (same as `pai`). |
|
|
134
154
|
| `pai projects list-raw` | Raw registry listing with slug, path, status, last_active columns |
|
|
155
|
+
| `pai projects mcp [names...]` | View or set the MCP servers this project's interactive supervisor session |
|
|
135
156
|
| `pai projects merge <from> <into>` | Fold a duplicate project into another: move its sessions (renumbered), repoint its tags, aliases, compaction records and links, keep the old slug as an alias, then delete the row. Preview unless --execute is given. |
|
|
136
157
|
| `pai projects move <slug> <new-path>` | Update the root path for a project |
|
|
137
158
|
| `pai projects name <identifier> <shortname>` | Give a project a short name for quick access |
|
|
@@ -139,6 +160,7 @@ Generated man pages for every `pai` command area. Read any page in the terminal
|
|
|
139
160
|
| `pai projects promote` | Promote a session note into a new standalone project |
|
|
140
161
|
| `pai projects rebind <slug> <new-path>` | Manually update the root_path for a project (for when auto-detect found multiple matches). |
|
|
141
162
|
| `pai projects tag <slug> <tags...>` | Add one or more tags to a project |
|
|
163
|
+
| `pai projects tools [names...]` | View or set the built-in tool schemas this project's interactive |
|
|
142
164
|
| `pai projects unarchive <slug>` | Restore an archived project to active status |
|
|
143
165
|
| `pai projects unname <shortname>` | Remove a project's short name |
|
|
144
166
|
| `pai projects unregister <slug>` | Remove a project row entirely, for paths that should never have been registered (worktrees, temp dirs). Refuses when the row holds sessions — merge those first. Preview unless --execute is given. The directory itself is never touched. |
|
|
@@ -194,10 +216,17 @@ Generated man pages for every `pai` command area. Read any page in the terminal
|
|
|
194
216
|
| `pai worker classes list` | List classes and their targets (default action) |
|
|
195
217
|
| `pai worker classes set <class> [target]` | Point a class at a provider (or provider/fast), or give only constraints: |
|
|
196
218
|
| `pai worker classes unset <class>` | Remove a class (runs then use the active provider) |
|
|
219
|
+
| `pai worker config` | workers.yaml itself: path, init, migrate, check, inline-keys |
|
|
220
|
+
| `pai worker config check [path]` | Validate workers.yaml (or the file at [path]); exits non-zero with file:line on error |
|
|
221
|
+
| `pai worker config init` | Write the commented starter workers.yaml (refuses if one already exists) |
|
|
222
|
+
| `pai worker config inline-keys` | Move each provider's key_file contents inline as `key:` (quoted); key files are left on disk |
|
|
223
|
+
| `pai worker config migrate` | Two things this can mean, chosen from what is on disk: |
|
|
224
|
+
| `pai worker config path` | Print the resolved workers.yaml path |
|
|
197
225
|
| `pai worker controls <id> <who>` | Hand the desktop controls (clickr) to a worker or take them back. |
|
|
198
226
|
| `pai worker discard <id>` | Drop a worker's worktree and branch, keeping nothing |
|
|
199
227
|
| `pai worker fallback [action] [provider]` | Machine-wide fallback: every NEW Claude Code process runs on a worker |
|
|
200
228
|
| `pai worker follow [id]` | Live transcript of one worker, or of this session's running workers |
|
|
229
|
+
| `pai worker goal <id> <text>` | Relabel a running worker (its ps / pane goal) without sending it a message |
|
|
201
230
|
| `pai worker handoff <json>` | From inside a worker: append a handoff to the parent's inbox and (when it runs) say it to the parent. |
|
|
202
231
|
| `pai worker install` | Migrate: Agent hook in settings.json, ~/.local/bin glm* shims, old script cleanup |
|
|
203
232
|
| `pai worker kill <id>` | Send SIGTERM to a running worker process |
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
<!-- GENERATED by scripts/build-docs.mjs from the live Commander tree (src/cli/program.ts). Do not edit by hand. -->
|
|
2
|
+
|
|
3
|
+
# pai audit
|
|
4
|
+
|
|
5
|
+
> Diagnostic audits: token-waste report and friends
|
|
6
|
+
|
|
7
|
+
## Synopsis
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
pai audit <subcommand> [options]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Subcommands
|
|
14
|
+
|
|
15
|
+
| Command | Description |
|
|
16
|
+
|---------|-------------|
|
|
17
|
+
| [`pai audit tokens`](#pai-audit-tokens) | Token-waste audit: memory files, hooks, session usage, spawn overhead, daemon, env, schedule, skill catalogue |
|
|
18
|
+
|
|
19
|
+
### pai audit tokens
|
|
20
|
+
|
|
21
|
+
Token-waste audit: memory files, hooks, session usage, spawn overhead, daemon, env, schedule, skill catalogue
|
|
22
|
+
|
|
23
|
+
**Options**
|
|
24
|
+
|
|
25
|
+
| Option | Description | Default |
|
|
26
|
+
|--------|-------------|---------|
|
|
27
|
+
| `--json` | Print JSON instead of a table | |
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### pai audit tokens files [paths...]
|
|
31
|
+
|
|
32
|
+
Token count per memory file (CLAUDE.md chain, CORE skill, whisper rules, auto-memory)
|
|
33
|
+
|
|
34
|
+
**Arguments**
|
|
35
|
+
|
|
36
|
+
| Argument | Kind | Description |
|
|
37
|
+
|----------|------|-------------|
|
|
38
|
+
| `[paths...]` | variadic | Files to count (default: the standard memory set) |
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### pai audit tokens hooks
|
|
42
|
+
|
|
43
|
+
Token cost of every SessionStart / UserPromptSubmit hook
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### pai audit tokens session [path]
|
|
47
|
+
|
|
48
|
+
Cache/input/output token split for a session transcript (default: newest)
|
|
49
|
+
|
|
50
|
+
**Arguments**
|
|
51
|
+
|
|
52
|
+
| Argument | Kind | Description |
|
|
53
|
+
|----------|------|-------------|
|
|
54
|
+
| `[path]` | optional | Session JSONL path (default: newest under ~/.claude/projects) |
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### pai audit tokens spawn
|
|
58
|
+
|
|
59
|
+
Spawn-overhead comparison: Agent-tool subagents vs. pai workers
|
|
60
|
+
|
|
61
|
+
**Options**
|
|
62
|
+
|
|
63
|
+
| Option | Description | Default |
|
|
64
|
+
|--------|-------------|---------|
|
|
65
|
+
| `-n, --n <count>` | How many of the newest logs per group to read (default 10) | |
|
|
66
|
+
| `--detail` | Print one row per log (first-turn ctx, prompt tokens, overhead, model, path) | |
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
### pai audit tokens daemon
|
|
70
|
+
|
|
71
|
+
LLM spawns, KG-extraction parse failures, work-queue counts from the daemon log
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### pai audit tokens env
|
|
75
|
+
|
|
76
|
+
ANTHROPIC_BASE_URL / model-override env on every live claude process
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
### pai audit tokens schedule
|
|
80
|
+
|
|
81
|
+
Launchd agents / crontab entries that outpace the measured prompt-cache TTL
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
### pai audit tokens skills
|
|
85
|
+
|
|
86
|
+
Token cost of the SKILL.md / command / plugin catalogue, top entries, duplicate names
|
|
87
|
+
|
|
88
|
+
**Options**
|
|
89
|
+
|
|
90
|
+
| Option | Description | Default |
|
|
91
|
+
|--------|-------------|---------|
|
|
92
|
+
| `--top <n>` | How many top-by-tokens entries to show (default 15) | |
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
### pai audit tokens ladder
|
|
96
|
+
|
|
97
|
+
LIVE: first-turn context at increasing headless-worker configuration (spawns real claude -p calls)
|
|
98
|
+
|
|
99
|
+
**Options**
|
|
100
|
+
|
|
101
|
+
| Option | Description | Default |
|
|
102
|
+
|--------|-------------|---------|
|
|
103
|
+
| `--live` | Actually spawn claude -p (billed API traffic); refuses without this flag | |
|
|
104
|
+
| `--model <model>` | Model to probe with (default haiku) | |
|
|
105
|
+
| `--mcp-config <path>` | MCP config for the L2 rung (default: newest *.mcp.json in the workers log dir) | |
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
## See also
|
|
109
|
+
|
|
110
|
+
[`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai config`](config.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai launch`](launch.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
111
|
+
|
|
112
|
+
Run `pai help <area>` to read any of these in the terminal.
|
|
113
|
+
|
package/docs/commands/backup.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# pai backup
|
|
4
4
|
|
|
5
|
-
> Backup registry, config, and Postgres database to
|
|
5
|
+
> Backup registry, config, and Postgres database to PAI_HOME/backups/
|
|
6
6
|
|
|
7
7
|
## Synopsis
|
|
8
8
|
|
|
@@ -18,7 +18,7 @@ pai backup [options]
|
|
|
18
18
|
|
|
19
19
|
## See also
|
|
20
20
|
|
|
21
|
-
[`pai clear-names`](clear-names.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
21
|
+
[`pai audit`](audit.md) · [`pai clear-names`](clear-names.md) · [`pai config`](config.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai launch`](launch.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
22
22
|
|
|
23
23
|
Run `pai help <area>` to read any of these in the terminal.
|
|
24
24
|
|
|
@@ -21,7 +21,7 @@ pai clear-names [options]
|
|
|
21
21
|
|
|
22
22
|
## See also
|
|
23
23
|
|
|
24
|
-
[`pai backup`](backup.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
24
|
+
[`pai audit`](audit.md) · [`pai backup`](backup.md) · [`pai config`](config.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai launch`](launch.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
25
25
|
|
|
26
26
|
Run `pai help <area>` to read any of these in the terminal.
|
|
27
27
|
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
<!-- GENERATED by scripts/build-docs.mjs from the live Commander tree (src/cli/program.ts). Do not edit by hand. -->
|
|
2
|
+
|
|
3
|
+
# pai config
|
|
4
|
+
|
|
5
|
+
> PAI_HOME namespace dir: path, migrate
|
|
6
|
+
|
|
7
|
+
## Synopsis
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
pai config <subcommand> [options]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Subcommands
|
|
14
|
+
|
|
15
|
+
| Command | Description |
|
|
16
|
+
|---------|-------------|
|
|
17
|
+
| [`pai config path`](#pai-config-path) | Print the PAI_HOME namespace dir and each resolved per-user file |
|
|
18
|
+
| [`pai config migrate`](#pai-config-migrate) | Move config.json, workers.yaml, whisper-rules.md, advisor-mode.json, session-state/, |
|
|
19
|
+
|
|
20
|
+
### pai config path
|
|
21
|
+
|
|
22
|
+
Print the PAI_HOME namespace dir and each resolved per-user file
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### pai config migrate
|
|
26
|
+
|
|
27
|
+
Move config.json, workers.yaml, whisper-rules.md, advisor-mode.json, session-state/,
|
|
28
|
+
|
|
29
|
+
session-scan-cache.json, queries/, summary-cooldowns.json, work-queue.json,
|
|
30
|
+
kg-backfill-state.json, voices.json, the orphaned federation.db,
|
|
31
|
+
~/.pai/registry.db, ~/.pai/federation.db (live), ~/.pai/backups/,
|
|
32
|
+
~/.pai/obsidian-vault/, ~/.pai/scheduler-state.json, and ~/.claude/Agents/,
|
|
33
|
+
~/.claude/Commands/ into PAI_HOME.
|
|
34
|
+
registry.db and federation.db each get an extra WAL checkpoint and PRAGMA
|
|
35
|
+
integrity_check (sqlite3 CLI, if present) on top of the byte-identical copy.
|
|
36
|
+
backups/ is copied and sha256-verified file-by-file into
|
|
37
|
+
backups/legacy-pai-backups/ rather than merged in place. Agents/ and Commands/ each
|
|
38
|
+
get a symlink left at the old ~/.claude path once their content has moved, so
|
|
39
|
+
Claude Code still finds them at its fixed harness paths.
|
|
40
|
+
Each file is copied, verified byte-identical, then the old file is renamed to
|
|
41
|
+
<name>.migrated-<YYYYMMDD> (never deleted); directories move their contents, then
|
|
42
|
+
the emptied old directory is renamed the same way. Idempotent — entries already at
|
|
43
|
+
the new location, or with nothing old to migrate, are skipped.
|
|
44
|
+
|
|
45
|
+
**Options**
|
|
46
|
+
|
|
47
|
+
| Option | Description | Default |
|
|
48
|
+
|--------|-------------|---------|
|
|
49
|
+
| `--dry-run` | Print the plan without writing anything | |
|
|
50
|
+
| `--logs` | Also move ~/.claude/logs/workers into PAI_HOME (refuses while any worker other than the interactive session is RUNNING — see `pai worker ps`) | |
|
|
51
|
+
| `--history` | Also move ~/.claude/History/, agent-sessions.json, session-routing.json and history/security/security-events.jsonl into PAI_HOME. These are written by hooks on EVERY session's every turn, not just spawned workers — refuses while any worker other than the interactive session is RUNNING (see `pai worker ps`), but that guard cannot see OTHER interactive `claude` sessions on this machine. Confirm none are active (`ps aux \| grep claude`, `aibroker sessions list`) before passing this flag. | |
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## See also
|
|
55
|
+
|
|
56
|
+
[`pai audit`](audit.md) · [`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai launch`](launch.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
57
|
+
|
|
58
|
+
Run `pai help <area>` to read any of these in the terminal.
|
|
59
|
+
|
package/docs/commands/daemon.md
CHANGED
|
@@ -72,7 +72,7 @@ Tail the daemon log (/tmp/pai-daemon.log)
|
|
|
72
72
|
|
|
73
73
|
## See also
|
|
74
74
|
|
|
75
|
-
[`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
75
|
+
[`pai audit`](audit.md) · [`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai config`](config.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai launch`](launch.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
76
76
|
|
|
77
77
|
Run `pai help <area>` to read any of these in the terminal.
|
|
78
78
|
|
package/docs/commands/db.md
CHANGED
|
@@ -68,7 +68,7 @@ Show column schema for a table
|
|
|
68
68
|
|
|
69
69
|
## See also
|
|
70
70
|
|
|
71
|
-
[`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai daemon`](daemon.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
71
|
+
[`pai audit`](audit.md) · [`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai config`](config.md) · [`pai daemon`](daemon.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai launch`](launch.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
72
72
|
|
|
73
73
|
Run `pai help <area>` to read any of these in the terminal.
|
|
74
74
|
|
package/docs/commands/end.md
CHANGED
|
@@ -21,7 +21,7 @@ pai end [options]
|
|
|
21
21
|
|
|
22
22
|
## See also
|
|
23
23
|
|
|
24
|
-
[`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
24
|
+
[`pai audit`](audit.md) · [`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai config`](config.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai launch`](launch.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
25
25
|
|
|
26
26
|
Run `pai help <area>` to read any of these in the terminal.
|
|
27
27
|
|
package/docs/commands/help.md
CHANGED
|
@@ -24,7 +24,7 @@ pai help [area] [options]
|
|
|
24
24
|
|
|
25
25
|
## See also
|
|
26
26
|
|
|
27
|
-
[`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
27
|
+
[`pai audit`](audit.md) · [`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai config`](config.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai launch`](launch.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
28
28
|
|
|
29
29
|
Run `pai help <area>` to read any of these in the terminal.
|
|
30
30
|
|
|
@@ -59,7 +59,7 @@ Set where digests and 'mail me X' are delivered
|
|
|
59
59
|
|
|
60
60
|
## See also
|
|
61
61
|
|
|
62
|
-
[`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai kg`](kg.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
62
|
+
[`pai audit`](audit.md) · [`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai config`](config.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai kg`](kg.md) · [`pai launch`](launch.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
63
63
|
|
|
64
64
|
Run `pai help <area>` to read any of these in the terminal.
|
|
65
65
|
|
package/docs/commands/kg.md
CHANGED
|
@@ -83,7 +83,7 @@ pai kg stats
|
|
|
83
83
|
|
|
84
84
|
## See also
|
|
85
85
|
|
|
86
|
-
[`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
86
|
+
[`pai audit`](audit.md) · [`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai config`](config.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai launch`](launch.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
87
87
|
|
|
88
88
|
Run `pai help <area>` to read any of these in the terminal.
|
|
89
89
|
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<!-- GENERATED by scripts/build-docs.mjs from the live Commander tree (src/cli/program.ts). Do not edit by hand. -->
|
|
2
|
+
|
|
3
|
+
# pai launch
|
|
4
|
+
|
|
5
|
+
> Start the Claude Code harness on any provider/model from workers.yaml.
|
|
6
|
+
|
|
7
|
+
No args, in a terminal: pick from a numbered table. --list (or piped/non-
|
|
8
|
+
interactive output): print the table and exit.
|
|
9
|
+
--provider <name> [--model <model>]: start directly, no prompt.
|
|
10
|
+
A running claude process cannot switch provider — this always starts a NEW
|
|
11
|
+
session in the current terminal. Claude Code's own /model command only shows
|
|
12
|
+
the CURRENT endpoint's models; `pai launch --list` (or the /providers skill)
|
|
13
|
+
shows every provider configured here.
|
|
14
|
+
Extra arguments after the options are passed to claude verbatim, e.g.
|
|
15
|
+
`pai launch --provider glm -- --resume <id>`.
|
|
16
|
+
The `glm`/`kimi` shell shims are thin aliases of `pai launch --provider <name>`.
|
|
17
|
+
|
|
18
|
+
## Synopsis
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
pai launch [args...] [options]
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Arguments
|
|
25
|
+
|
|
26
|
+
| Argument | Kind | Description |
|
|
27
|
+
|----------|------|-------------|
|
|
28
|
+
| `[args...]` | variadic | extra claude arguments, e.g. --resume <id> |
|
|
29
|
+
|
|
30
|
+
## Options
|
|
31
|
+
|
|
32
|
+
| Option | Description | Default |
|
|
33
|
+
|--------|-------------|---------|
|
|
34
|
+
| `--provider <name>` | Provider to start on (default: prompt from the table) | |
|
|
35
|
+
| `--model <model>` | Model id for that provider (default: the provider's default model) | |
|
|
36
|
+
| `--list` | Print the provider/model table and exit | |
|
|
37
|
+
| `--current` | With --list, also detect and mark this session's own provider/model | |
|
|
38
|
+
| `--dry-run` | Print the resolved command and environment (key masked); do not exec | |
|
|
39
|
+
|
|
40
|
+
## See also
|
|
41
|
+
|
|
42
|
+
[`pai audit`](audit.md) · [`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai config`](config.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
43
|
+
|
|
44
|
+
Run `pai help <area>` to read any of these in the terminal.
|
|
45
|
+
|
package/docs/commands/mcp.md
CHANGED
|
@@ -29,7 +29,7 @@ Show whether the PAI MCP server (pai) is registered and the binary exists
|
|
|
29
29
|
|
|
30
30
|
## See also
|
|
31
31
|
|
|
32
|
-
[`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
32
|
+
[`pai audit`](audit.md) · [`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai config`](config.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai launch`](launch.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
33
33
|
|
|
34
34
|
Run `pai help <area>` to read any of these in the terminal.
|
|
35
35
|
|
package/docs/commands/memory.md
CHANGED
|
@@ -18,7 +18,7 @@ pai memory <subcommand> [options]
|
|
|
18
18
|
| [`pai memory embed [project-slug]`](#pai-memory-embed-project-slug) | Generate embeddings for un-embedded chunks (Phase 2.5) |
|
|
19
19
|
| [`pai memory search <query>`](#pai-memory-search-query) | Search indexed memory (BM25 keyword, semantic, or hybrid) |
|
|
20
20
|
| [`pai memory status [project-slug]`](#pai-memory-status-project-slug) | Show memory index statistics |
|
|
21
|
-
| [`pai memory settings [key] [value]`](#pai-memory-settings-key-value) | View or modify search settings in
|
|
21
|
+
| [`pai memory settings [key] [value]`](#pai-memory-settings-key-value) | View or modify search settings in the PAI config file (`pai config path`) |
|
|
22
22
|
| [`pai memory sources`](#pai-memory-sources) | Show what the indexer has taken in: composition by source, which roots |
|
|
23
23
|
|
|
24
24
|
### pai memory index [project-slug]
|
|
@@ -92,7 +92,7 @@ Show memory index statistics
|
|
|
92
92
|
|
|
93
93
|
### pai memory settings [key] [value]
|
|
94
94
|
|
|
95
|
-
View or modify search settings in
|
|
95
|
+
View or modify search settings in the PAI config file (`pai config path`)
|
|
96
96
|
|
|
97
97
|
**Arguments**
|
|
98
98
|
|
|
@@ -134,7 +134,7 @@ pai memory status
|
|
|
134
134
|
|
|
135
135
|
## See also
|
|
136
136
|
|
|
137
|
-
[`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai mcp`](mcp.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
137
|
+
[`pai audit`](audit.md) · [`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai config`](config.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai launch`](launch.md) · [`pai mcp`](mcp.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
138
138
|
|
|
139
139
|
Run `pai help <area>` to read any of these in the terminal.
|
|
140
140
|
|
package/docs/commands/notify.md
CHANGED
|
@@ -77,7 +77,7 @@ Send a notification with an explicit event type and message
|
|
|
77
77
|
|
|
78
78
|
## See also
|
|
79
79
|
|
|
80
|
-
[`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
80
|
+
[`pai audit`](audit.md) · [`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai config`](config.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai launch`](launch.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
81
81
|
|
|
82
82
|
Run `pai help <area>` to read any of these in the terminal.
|
|
83
83
|
|
|
@@ -74,7 +74,7 @@ pai observation stats
|
|
|
74
74
|
|
|
75
75
|
## See also
|
|
76
76
|
|
|
77
|
-
[`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
77
|
+
[`pai audit`](audit.md) · [`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai config`](config.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai launch`](launch.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
78
78
|
|
|
79
79
|
Run `pai help <area>` to read any of these in the terminal.
|
|
80
80
|
|
|
@@ -54,7 +54,7 @@ Open the vault in Obsidian (macOS)
|
|
|
54
54
|
|
|
55
55
|
## See also
|
|
56
56
|
|
|
57
|
-
[`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
57
|
+
[`pai audit`](audit.md) · [`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai config`](config.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai launch`](launch.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai pause`](pause.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
58
58
|
|
|
59
59
|
Run `pai help <area>` to read any of these in the terminal.
|
|
60
60
|
|
package/docs/commands/pause.md
CHANGED
|
@@ -33,7 +33,7 @@ pai pause [target] [options]
|
|
|
33
33
|
|
|
34
34
|
## See also
|
|
35
35
|
|
|
36
|
-
[`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
36
|
+
[`pai audit`](audit.md) · [`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai config`](config.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai launch`](launch.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai project`](project.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
37
37
|
|
|
38
38
|
Run `pai help <area>` to read any of these in the terminal.
|
|
39
39
|
|
package/docs/commands/project.md
CHANGED
|
@@ -38,6 +38,8 @@ pai project <subcommand> [options]
|
|
|
38
38
|
| [`pai project unname <shortname>`](#pai-project-unname-shortname) | Remove a project's short name |
|
|
39
39
|
| [`pai project names`](#pai-project-names) | List named projects (your curated shortlist) |
|
|
40
40
|
| [`pai project config [identifier]`](#pai-project-config-identifier) | View or modify session launch config for a project. |
|
|
41
|
+
| [`pai project mcp [names...]`](#pai-project-mcp-names) | View or set the MCP servers this project's interactive supervisor session |
|
|
42
|
+
| [`pai project tools [names...]`](#pai-project-tools-names) | View or set the built-in tool schemas this project's interactive |
|
|
41
43
|
|
|
42
44
|
### pai project list
|
|
43
45
|
|
|
@@ -398,9 +400,52 @@ Use --options to discover available keys and presets.
|
|
|
398
400
|
| `--reset` | Reset config to empty (inherit global defaults) | |
|
|
399
401
|
|
|
400
402
|
|
|
403
|
+
### pai project mcp [names...]
|
|
404
|
+
|
|
405
|
+
View or set the MCP servers this project's interactive supervisor session
|
|
406
|
+
|
|
407
|
+
loads (run from inside the project, like `pai projects here`).
|
|
408
|
+
No names: print the current value. Names (comma-separated or repeated
|
|
409
|
+
args): set it, validated against ~/.claude.json's mcpServers.
|
|
410
|
+
--clear: unset (all servers load — today's default).
|
|
411
|
+
|
|
412
|
+
**Arguments**
|
|
413
|
+
|
|
414
|
+
| Argument | Kind |
|
|
415
|
+
|----------|------|
|
|
416
|
+
| `[names...]` | variadic |
|
|
417
|
+
|
|
418
|
+
**Options**
|
|
419
|
+
|
|
420
|
+
| Option | Description | Default |
|
|
421
|
+
|--------|-------------|---------|
|
|
422
|
+
| `--clear` | Unset — all MCP servers load again | |
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
### pai project tools [names...]
|
|
426
|
+
|
|
427
|
+
View or set the built-in tool schemas this project's interactive
|
|
428
|
+
|
|
429
|
+
supervisor session loads (run from inside the project, like `pai projects
|
|
430
|
+
here`). No names: print the current value. Names (comma-separated or
|
|
431
|
+
repeated args): set it. --clear: unset (all tools load — today's default).
|
|
432
|
+
|
|
433
|
+
**Arguments**
|
|
434
|
+
|
|
435
|
+
| Argument | Kind |
|
|
436
|
+
|----------|------|
|
|
437
|
+
| `[names...]` | variadic |
|
|
438
|
+
|
|
439
|
+
**Options**
|
|
440
|
+
|
|
441
|
+
| Option | Description | Default |
|
|
442
|
+
|--------|-------------|---------|
|
|
443
|
+
| `--clear` | Unset — all built-in tools load again | |
|
|
444
|
+
|
|
445
|
+
|
|
401
446
|
## See also
|
|
402
447
|
|
|
403
|
-
[`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
448
|
+
[`pai audit`](audit.md) · [`pai backup`](backup.md) · [`pai clear-names`](clear-names.md) · [`pai config`](config.md) · [`pai daemon`](daemon.md) · [`pai db`](db.md) · [`pai end`](end.md) · [`pai help`](help.md) · [`pai identity`](identity.md) · [`pai kg`](kg.md) · [`pai launch`](launch.md) · [`pai mcp`](mcp.md) · [`pai memory`](memory.md) · [`pai notify`](notify.md) · [`pai observation`](observation.md) · [`pai obsidian`](obsidian.md) · [`pai pause`](pause.md) · [`pai projects`](projects.md) · [`pai registry`](registry.md) · [`pai restore`](restore.md) · [`pai session`](session.md) · [`pai sessions`](sessions.md) · [`pai setup`](setup.md) · [`pai shell-init`](shell-init.md) · [`pai skill`](skill.md) · [`pai task`](task.md) · [`pai topic`](topic.md) · [`pai update`](update.md) · [`pai worker`](worker.md) · [`pai zettel`](zettel.md)
|
|
404
449
|
|
|
405
450
|
Run `pai help <area>` to read any of these in the terminal.
|
|
406
451
|
|