kiki-agent 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/cpu-worker.mjs +52744 -0
- package/dist/docs/en/configuration/config-files.md +92 -30
- package/dist/docs/en/configuration/data-locations.md +14 -9
- package/dist/docs/en/configuration/env-vars.md +32 -2
- package/dist/docs/en/configuration/overrides.md +1 -1
- package/dist/docs/en/configuration/providers.md +44 -10
- package/dist/docs/en/customization/agent-profiles.md +1 -1
- package/dist/docs/en/customization/agents-and-subagents.md +49 -10
- package/dist/docs/en/customization/hooks.md +3 -3
- package/dist/docs/en/customization/personas.md +1 -1
- package/dist/docs/en/customization/plugins.md +16 -3
- package/dist/docs/en/customization/prompt-fields.md +62 -6
- package/dist/docs/en/customization/recipes.md +77 -0
- package/dist/docs/en/customization/skins.md +2 -2
- package/dist/docs/en/customization/themes.md +1 -1
- package/dist/docs/en/features/browser-and-computer.md +5 -5
- package/dist/docs/en/features/daily.md +3 -3
- package/dist/docs/en/features/ecosystem.md +1 -1
- package/dist/docs/en/features/extend.md +2 -2
- package/dist/docs/en/features/freedom.md +1 -1
- package/dist/docs/en/features/index.md +15 -1
- package/dist/docs/en/features/long-work.md +9 -5
- package/dist/docs/en/features/look.md +1 -1
- package/dist/docs/en/features/phone.md +11 -3
- package/dist/docs/en/features/spaces.md +5 -5
- package/dist/docs/en/getting-started/desktop-app.md +4 -8
- package/dist/docs/en/getting-started/first-launch.md +1 -1
- package/dist/docs/en/guides/goals.md +4 -2
- package/dist/docs/en/guides/interface.md +18 -8
- package/dist/docs/en/guides/memory.md +64 -10
- package/dist/docs/en/guides/sessions.md +15 -7
- package/dist/docs/en/guides/settings.md +49 -38
- package/dist/docs/en/index.md +3 -1
- package/dist/docs/en/reference/command.md +35 -33
- package/dist/docs/en/reference/model-vocabulary.md +2 -2
- package/dist/docs/en/reference/slash-commands.md +1 -1
- package/dist/docs/en/reference/tools.md +40 -15
- package/dist/docs/en/server/acp.md +6 -2
- package/dist/docs/en/server/local-server.md +19 -27
- package/dist/docs/en/server/mcp.md +4 -4
- package/dist/docs/en/server/rest-api.md +240 -23
- package/dist/docs/en/server/script-tools.md +268 -0
- package/dist/docs/zh/configuration/config-files.md +92 -30
- package/dist/docs/zh/configuration/data-locations.md +14 -9
- package/dist/docs/zh/configuration/env-vars.md +32 -2
- package/dist/docs/zh/configuration/overrides.md +1 -1
- package/dist/docs/zh/configuration/providers.md +44 -10
- package/dist/docs/zh/customization/agent-profiles.md +1 -1
- package/dist/docs/zh/customization/agents-and-subagents.md +49 -10
- package/dist/docs/zh/customization/hooks.md +3 -3
- package/dist/docs/zh/customization/personas.md +1 -1
- package/dist/docs/zh/customization/plugins.md +16 -3
- package/dist/docs/zh/customization/prompt-fields.md +62 -6
- package/dist/docs/zh/customization/recipes.md +77 -0
- package/dist/docs/zh/customization/skins.md +2 -2
- package/dist/docs/zh/customization/themes.md +1 -1
- package/dist/docs/zh/features/browser-and-computer.md +5 -5
- package/dist/docs/zh/features/daily.md +3 -3
- package/dist/docs/zh/features/ecosystem.md +1 -1
- package/dist/docs/zh/features/extend.md +2 -2
- package/dist/docs/zh/features/freedom.md +1 -1
- package/dist/docs/zh/features/index.md +16 -2
- package/dist/docs/zh/features/long-work.md +9 -5
- package/dist/docs/zh/features/look.md +1 -1
- package/dist/docs/zh/features/phone.md +11 -3
- package/dist/docs/zh/features/spaces.md +5 -5
- package/dist/docs/zh/getting-started/desktop-app.md +4 -8
- package/dist/docs/zh/getting-started/first-launch.md +1 -1
- package/dist/docs/zh/guides/goals.md +4 -2
- package/dist/docs/zh/guides/interface.md +18 -8
- package/dist/docs/zh/guides/memory.md +64 -10
- package/dist/docs/zh/guides/sessions.md +15 -7
- package/dist/docs/zh/guides/settings.md +49 -38
- package/dist/docs/zh/index.md +4 -2
- package/dist/docs/zh/reference/command.md +35 -33
- package/dist/docs/zh/reference/model-vocabulary.md +2 -2
- package/dist/docs/zh/reference/slash-commands.md +1 -1
- package/dist/docs/zh/reference/tools.md +40 -15
- package/dist/docs/zh/server/acp.md +6 -2
- package/dist/docs/zh/server/local-server.md +19 -27
- package/dist/docs/zh/server/mcp.md +4 -4
- package/dist/docs/zh/server/rest-api.md +229 -23
- package/dist/docs/zh/server/script-tools.md +268 -0
- package/dist/external-harness/agy-cli-acp.mjs +168 -162
- package/dist/external-harness/agy-hook-registration.mjs +69 -30
- package/dist/external-harness/agy-mcp-plugin.mjs +19 -0
- package/dist/external-harness/agy-permission-hook.mjs +29 -2
- package/dist/hostRunner.mjs +24 -6
- package/dist/mailbox-worker.mjs +111 -5
- package/dist/main.mjs +2 -2
- package/dist/memory-worker.mjs +1008 -0
- package/dist/native/windows-process-helper.exe +0 -0
- package/dist/query-store-worker.mjs +52 -11
- package/dist/sqlite-indexer.mjs +32 -2
- package/dist/sqlite-query-worker.mjs +35 -0
- package/dist/usage-parser-worker.mjs +3953 -4
- package/dist/usage-read-model-worker.mjs +761 -0
- package/dist/web/assets/{AppErrorBoundary-BN6IDdP1.js → AppErrorBoundary-B5Fc4f6-.js} +1 -1
- package/dist/web/assets/NavScopeBoundary-C7MnGQio.js +1 -0
- package/dist/web/assets/{arc-C7IAvCCJ.js → arc-DGB9OVgQ.js} +1 -1
- package/dist/web/assets/{architectureDiagram-3BPJPVTR-CbwFBxn7.js → architectureDiagram-3BPJPVTR-glnQCMub.js} +1 -1
- package/dist/web/assets/{blockDiagram-GPEHLZMM-B20N4t8r.js → blockDiagram-GPEHLZMM-bM0tnGby.js} +1 -1
- package/dist/web/assets/{c4Diagram-AAUBKEIU-3BYtlcP-.js → c4Diagram-AAUBKEIU-DMf_rTtt.js} +1 -1
- package/dist/web/assets/channel-Cj8SKJ38.js +1 -0
- package/dist/web/assets/{chunk-2J33WTMH-CpjgczxM.js → chunk-2J33WTMH-mTccJ3tW.js} +1 -1
- package/dist/web/assets/{chunk-4BX2VUAB-BScxUF5G.js → chunk-4BX2VUAB-DhqPYMjY.js} +1 -1
- package/dist/web/assets/{chunk-55IACEB6-CrcLYJXd.js → chunk-55IACEB6-BujrYRoO.js} +1 -1
- package/dist/web/assets/{chunk-727SXJPM-BwlyIOjw.js → chunk-727SXJPM-ciMmSI4G.js} +1 -1
- package/dist/web/assets/{chunk-AQP2D5EJ-DKKIRkRv.js → chunk-AQP2D5EJ-CZW9pKTc.js} +1 -1
- package/dist/web/assets/{chunk-FMBD7UC4-CVDMj2kX.js → chunk-FMBD7UC4-hdALNnnU.js} +1 -1
- package/dist/web/assets/{chunk-ND2GUHAM-CL-PM6r8.js → chunk-ND2GUHAM-CgKyqUdb.js} +1 -1
- package/dist/web/assets/{chunk-QZHKN3VN-DPV2KbKZ.js → chunk-QZHKN3VN-B2mmUz_E.js} +1 -1
- package/dist/web/assets/classDiagram-4FO5ZUOK-f8V9p-dD.js +1 -0
- package/dist/web/assets/classDiagram-v2-Q7XG4LA2-f8V9p-dD.js +1 -0
- package/dist/web/assets/client-ClWQBErG.js +3 -0
- package/dist/web/assets/connection-C0J3BPgk.js +1 -0
- package/dist/web/assets/{cose-bilkent-S5V4N54A-D1CEiQM6.js → cose-bilkent-S5V4N54A-UV3uPjkK.js} +1 -1
- package/dist/web/assets/{dagre-BM42HDAG-BlFV941E.js → dagre-BM42HDAG-Zjy-gQ6C.js} +1 -1
- package/dist/web/assets/{diagram-2AECGRRQ-BC0ldkFY.js → diagram-2AECGRRQ-DL-kilIf.js} +1 -1
- package/dist/web/assets/{diagram-5GNKFQAL-B22Iej6G.js → diagram-5GNKFQAL-CjB_xR5B.js} +1 -1
- package/dist/web/assets/{diagram-KO2AKTUF-B75UNw6D.js → diagram-KO2AKTUF-CjN4i3b9.js} +1 -1
- package/dist/web/assets/{diagram-LMA3HP47-CypI7IJM.js → diagram-LMA3HP47-CPCAMndo.js} +1 -1
- package/dist/web/assets/{diagram-OG6HWLK6-OsXumvcD.js → diagram-OG6HWLK6-DVeBWBKd.js} +1 -1
- package/dist/web/assets/{erDiagram-TEJ5UH35-3756GOvS.js → erDiagram-TEJ5UH35-CHKzBHrr.js} +1 -1
- package/dist/web/assets/export-CXoWon32.js +2 -0
- package/dist/web/assets/{flowDiagram-I6XJVG4X-DB6Y_UDg.js → flowDiagram-I6XJVG4X-C5rQa2pq.js} +1 -1
- package/dist/web/assets/{ganttDiagram-6RSMTGT7-CHJeuoAY.js → ganttDiagram-6RSMTGT7-BrLjEsNJ.js} +1 -1
- package/dist/web/assets/{gitGraphDiagram-PVQCEYII-Dj85554Y.js → gitGraphDiagram-PVQCEYII-3DRR5VZj.js} +1 -1
- package/dist/web/assets/highlighted-body-OFNGDK62-Bdj5SJfv.js +1 -0
- package/dist/web/assets/index-2Vx5mHRn.js +1 -0
- package/dist/web/assets/index-B1UXw2C9.js +1 -0
- package/dist/web/assets/{index-C6qeLCPw.js → index-BJxtlf4P.js} +4 -4
- package/dist/web/assets/{index-DxUmR9aV.js → index-BY7jPurv.js} +1 -1
- package/dist/web/assets/index-Bq79v-Sa.js +1 -0
- package/dist/web/assets/index-BqD3iTIl.js +1 -0
- package/dist/web/assets/index-Br3AlBrQ.js +1 -0
- package/dist/web/assets/{index-DZMkZKhW.js → index-BvRBCpc6.js} +2 -2
- package/dist/web/assets/index-BxYCSNg_.js +3 -0
- package/dist/web/assets/{index-CJqIcuAl.js → index-C62wjCF_.js} +1 -1
- package/dist/web/assets/index-CBvwNH_H.js +1 -0
- package/dist/web/assets/{index-DRMjjql1.js → index-CG9e6lgq.js} +1 -1
- package/dist/web/assets/{index-C7mOS2T4.js → index-CPSWYh_R.js} +2 -2
- package/dist/web/assets/index-CS4xJLZV.js +1 -0
- package/dist/web/assets/index-CjvqtF2I.js +1 -0
- package/dist/web/assets/index-CprdjRRk.js +13 -0
- package/dist/web/assets/{index-bYtKyBMB.js → index-CypTtrCB.js} +1 -1
- package/dist/web/assets/{index-DqK8MfQN.js → index-DDJQGcUL.js} +1 -1
- package/dist/web/assets/index-DLWzxUOO.js +1 -0
- package/dist/web/assets/index-DQxkxZmn.js +7 -0
- package/dist/web/assets/index-DRo5Y_9p.js +1 -0
- package/dist/web/assets/index-De_LkTZx.js +1 -0
- package/dist/web/assets/{index-0tHq8zh2.js → index-DfUpwUTM.js} +2 -2
- package/dist/web/assets/{index-D--cw39y.js → index-Dkbz748K.js} +2 -2
- package/dist/web/assets/index-DmwFFSkV.js +1 -0
- package/dist/web/assets/index-DpcWEDhW.js +1 -0
- package/dist/web/assets/index-Dqq1RDP4.js +1 -0
- package/dist/web/assets/index-H1uMvIoa.css +1 -0
- package/dist/web/assets/index-ICHWJ2SM.js +1 -0
- package/dist/web/assets/index-O5fSd569.js +229 -0
- package/dist/web/assets/index-odjtqLLS.js +1 -0
- package/dist/web/assets/index-v_yAQ0Am.js +1 -0
- package/dist/web/assets/{infoDiagram-5YYISTIA-DeDPIdEH.js → infoDiagram-5YYISTIA-CCwV4Z0v.js} +1 -1
- package/dist/web/assets/{ishikawaDiagram-YF4QCWOH-ButuBiBW.js → ishikawaDiagram-YF4QCWOH-BwwZcGyZ.js} +1 -1
- package/dist/web/assets/{journeyDiagram-JHISSGLW-Dlbmqm-j.js → journeyDiagram-JHISSGLW-Dc6WqniQ.js} +1 -1
- package/dist/web/assets/{kanban-definition-UN3LZRKU-tlQK1cOz.js → kanban-definition-UN3LZRKU-DVUqULOS.js} +1 -1
- package/dist/web/assets/{linear-iXuNfUWp.js → linear-d6rWsNOU.js} +1 -1
- package/dist/web/assets/memoryAdvisor-DBQXJB1o.js +1 -0
- package/dist/web/assets/mermaid-GHXKKRXX-Ik6SkVDT.js +642 -0
- package/dist/web/assets/{mindmap-definition-RKZ34NQL-2qPv-mwT.js → mindmap-definition-RKZ34NQL-_JHAkhHL.js} +1 -1
- package/dist/web/assets/navViewState-DaCMIYWA.js +1 -0
- package/dist/web/assets/{pieDiagram-4H26LBE5-CrLe1C-O.js → pieDiagram-4H26LBE5-BlhlygGy.js} +1 -1
- package/dist/web/assets/{quadrantDiagram-W4KKPZXB-DfeIFxc0.js → quadrantDiagram-W4KKPZXB-jn6R_C0S.js} +1 -1
- package/dist/web/assets/{requirementDiagram-4Y6WPE33-BWtjdxie.js → requirementDiagram-4Y6WPE33-B9fXCHBr.js} +1 -1
- package/dist/web/assets/{sankeyDiagram-5OEKKPKP-B5TxJ6mb.js → sankeyDiagram-5OEKKPKP-fPJwIxkl.js} +1 -1
- package/dist/web/assets/{sequenceDiagram-3UESZ5HK-Cf92ZCl1.js → sequenceDiagram-3UESZ5HK-1v1DTNGt.js} +1 -1
- package/dist/web/assets/{spaces-DqMTtCXX.js → spaces-CvL2DRZM.js} +1 -1
- package/dist/web/assets/{stateDiagram-AJRCARHV-NR9I-Q4d.js → stateDiagram-AJRCARHV-CEc_PLov.js} +1 -1
- package/dist/web/assets/stateDiagram-v2-BHNVJYJU-iAMctzaT.js +1 -0
- package/dist/web/assets/theme-LRSmy8mD.js +1 -0
- package/dist/web/assets/{timeline-definition-PNZ67QCA-CBAOVMfm.js → timeline-definition-PNZ67QCA-CEjhuitj.js} +1 -1
- package/dist/web/assets/{vennDiagram-CIIHVFJN-C68x6TdS.js → vennDiagram-CIIHVFJN-CActt9h9.js} +1 -1
- package/dist/web/assets/{wardley-L42UT6IY-DuZZr5jm.js → wardley-L42UT6IY-Bp3q2izt.js} +1 -1
- package/dist/web/assets/{wardleyDiagram-YWT4CUSO-D6dVGtHd.js → wardleyDiagram-YWT4CUSO-C_zutiQ2.js} +1 -1
- package/dist/web/assets/{xychartDiagram-2RQKCTM6-DYLUhZX4.js → xychartDiagram-2RQKCTM6-CRafvv33.js} +1 -1
- package/dist/web/icons/apple-touch-icon.png +0 -0
- package/dist/web/icons/icon-192.png +0 -0
- package/dist/web/icons/icon-512.png +0 -0
- package/dist/web/icons/maskable-512.png +0 -0
- package/dist/web/index.html +12 -2
- package/dist/web/manifest.webmanifest +16 -0
- package/native/auth-native/prebuilds/linux-arm64/auth-native.node +0 -0
- package/native/auth-native/prebuilds/linux-x64/auth-native.node +0 -0
- package/native/auth-native/prebuilds/win32-arm64/auth-native.node +0 -0
- package/native/auth-native/prebuilds/win32-x64/auth-native.node +0 -0
- package/package.json +22 -3
- package/dist/web/assets/LifeMark-UBMVaTWr.js +0 -1
- package/dist/web/assets/NavScopeBoundary-BCryw-UG.js +0 -1
- package/dist/web/assets/channel-BJs5vJuh.js +0 -1
- package/dist/web/assets/classDiagram-4FO5ZUOK-BookeACB.js +0 -1
- package/dist/web/assets/classDiagram-v2-Q7XG4LA2-BookeACB.js +0 -1
- package/dist/web/assets/client-CXcrCawx.js +0 -3
- package/dist/web/assets/connection-C8nwzwXB.js +0 -1
- package/dist/web/assets/export-Bn8PqPg4.js +0 -2
- package/dist/web/assets/highlighted-body-OFNGDK62-DMgPHetp.js +0 -1
- package/dist/web/assets/index-7ySDqvaN.css +0 -1
- package/dist/web/assets/index-B0KPRi1U.js +0 -166
- package/dist/web/assets/index-B599VnpP.js +0 -1
- package/dist/web/assets/index-BFK-GypQ.js +0 -1
- package/dist/web/assets/index-BPX8gmpB.js +0 -1
- package/dist/web/assets/index-BSGYc1tb.js +0 -1
- package/dist/web/assets/index-BTt9Q5iv.js +0 -1
- package/dist/web/assets/index-BWzUsoY_.js +0 -1
- package/dist/web/assets/index-BYlSV3FO.js +0 -3
- package/dist/web/assets/index-BpXQ1q-u.js +0 -1
- package/dist/web/assets/index-BqPxpGUh.js +0 -1
- package/dist/web/assets/index-C8OFfbEs.js +0 -1
- package/dist/web/assets/index-CI7yuMGZ.js +0 -1
- package/dist/web/assets/index-CTRJmDep.js +0 -1
- package/dist/web/assets/index-CXGCKoId.js +0 -1
- package/dist/web/assets/index-CsY571EL.js +0 -13
- package/dist/web/assets/index-CwQG_9rB.js +0 -1
- package/dist/web/assets/index-D260jsUJ.js +0 -1
- package/dist/web/assets/index-DJjmEXx4.js +0 -1
- package/dist/web/assets/index-DUxOVxHS.js +0 -1
- package/dist/web/assets/index-GK8aa9pT.js +0 -7
- package/dist/web/assets/index-wxHFHTgD.js +0 -1
- package/dist/web/assets/mermaid-GHXKKRXX-sDJax95P.js +0 -624
- package/dist/web/assets/stateDiagram-v2-BHNVJYJU-BiegFWxE.js +0 -1
- package/dist/web/assets/theme-6OL1RXgY.js +0 -1
|
@@ -41,7 +41,7 @@ Some commands are only available in the idle state. Executing these commands whi
|
|
|
41
41
|
| `/export-debug-zip` | — | Export the current session as a debug ZIP archive (same behavior as [`kiki export`](./command.md#kiki-export)) | No |
|
|
42
42
|
| `/copy` | — | Copy the last assistant message to the clipboard | No |
|
|
43
43
|
| `/add-dir [<path>]` | — | Add an extra workspace directory to the current session. Run without a path (or with `list`) to list configured directories. When adding, choose whether to remember the directory for the project in `.kiki/local.toml` | No |
|
|
44
|
-
| `/web` | — |
|
|
44
|
+
| `/web` | — | Manage Web access on the shared daemon: `/web temporary\|persistent\|status\|off\|link\|revoke [id]`, with `--host`, `--port`, `--public-url`, `--insecure-no-tls`, and `--no-open`; with no argument it turns on temporary access and prints a single-use link while the TUI keeps running. See [`kiki web`](./command.md#kiki-web) | Yes |
|
|
45
45
|
|
|
46
46
|
## Modes & Run Control
|
|
47
47
|
|
|
@@ -6,16 +6,20 @@ Compared to MCP tools, built-in tools are managed directly by the runtime, their
|
|
|
6
6
|
|
|
7
7
|
When a result reports `Tool output formatting failed after execution`, use `Read` or `Grep` on its `output_path` before rerunning the tool. Execution has already happened; the saved text and attached media remain available. The result states whether it saved the complete text or only a retention-limited prefix.
|
|
8
8
|
|
|
9
|
+
History, thread, room, child-agent, task, memory, and working-note receipts use a compact model view: source text appears before paging details, timestamps use the runtime's local timezone with an explicit UTC offset, and partial coverage and truncation include continuation guidance. Copy the supplied call to read another page or segment. `HistoryRead` character ranges count UTF-16 units; task-log offsets count UTF-8 bytes. In compacted handoffs, repeated sources share a single numbered `HistoryRead` call; `t42.3` means turn 42, step 3.
|
|
10
|
+
|
|
11
|
+
For the full original receipt, add `raw: true` to `HistoryList`, `HistoryRead`, `HistorySearch`, `ThreadList`, `ThreadRead`, `ThreadWait`, `ThreadSend`, `RoomRead`, `AgentList`, `TaskList`, `TaskOutput`, `MemorySearch`, `MemoryRead`, or `TodoList`. It can accompany a continuation cursor without changing its query. Raw mode changes presentation only: it still performs the requested operation, so do not resend a message or rewrite notes just to inspect metadata. Structured results used by the GUI and SDK remain unchanged; field names below describe that original data.
|
|
12
|
+
|
|
9
13
|
## File Tools
|
|
10
14
|
|
|
11
|
-
File tools handle reading, writing, and searching
|
|
15
|
+
File tools handle reading, writing, and searching files — the foundation for code analysis and modification tasks. With native SSH enabled, `Read`, `Write`, `Edit`, `Grep`, `Glob`, and `ReadMediaFile` also accept `host` or an `ssh://host/path` address. Paths belong to the selected host; use native Windows paths such as `E:/project` on Windows SSH hosts. Results identify the host, platform, and execution shell.
|
|
12
16
|
|
|
13
17
|
| Tool | Default Approval | Description |
|
|
14
18
|
| --- | --- | --- |
|
|
15
19
|
| `Read` | Auto-allow | Read a text file's contents |
|
|
16
20
|
| `Write` | Auto-allow inside a trusted workspace; blocked or approval outside | Create or overwrite a file |
|
|
17
21
|
| `Edit` | Auto-allow inside a trusted workspace; blocked or approval outside | Precise string replacement |
|
|
18
|
-
| `Grep` | Auto-allow |
|
|
22
|
+
| `Grep` | Auto-allow | Search file contents |
|
|
19
23
|
| `Glob` | Auto-allow | Find files by glob pattern |
|
|
20
24
|
| `ReadMediaFile` | Auto-allow | Read an image or video file |
|
|
21
25
|
|
|
@@ -23,13 +27,15 @@ File tools handle reading, writing, and searching the local filesystem — the f
|
|
|
23
27
|
|
|
24
28
|
The result shows line numbers and reports the original line endings. A pure CRLF file appears as LF in `Read`, and `Edit` preserves CRLF when you edit that view; a file with mixed line endings needs the visible `\r` characters matched exactly.
|
|
25
29
|
|
|
26
|
-
|
|
30
|
+
UTF-8 line-window reads over SSH stream the requested lines. Tail reads may scan the file to count lines when remote counting is unavailable. Decoding errors are checked in the decoded window, including lookahead when needed. If a tail read reports that the file changed, retry it to obtain consistent line numbers.
|
|
31
|
+
|
|
32
|
+
An explicit absolute path can read outside the workspace, subject to sensitive-file approval. Registered user Skill and agent definition roots (including linked installations) are readable by default, while an ordinary workspace link to an external file requires approval. In the current Space's `<home>` (default `~/.kiki`), only `agents`, `skills`, `commands`, and `docs` count as definition or documentation roots. Inherited agent and registered Skill roots are also readable; generic `~/.agents` roots remain under the OS home. Other paths still need an explicit path and remain subject to the sensitive-file rules. Local home paths are not applied to SSH runtimes.
|
|
27
33
|
|
|
28
34
|
**`Write`** accepts `path`, `content`, and an optional `mode` (`overwrite` or `append`; defaults to overwrite). Missing parent directories are created automatically; `append` mode appends content to the end of the file without automatically adding a newline.
|
|
29
35
|
|
|
30
36
|
**`Edit`** accepts `path`, `old_string` (the exact text to replace), and `new_string` (the replacement text). By default it replaces only one unique match; if the same content appears multiple times in the file, the tool returns an error and suggests using `replace_all: true`. `old_string` and `new_string` must not be identical. `Write` and `Edit` resolve links before approval: a link in a skill directory does not grant permission to write its target. If a target changes between approval and execution, retry the call after reviewing the new target.
|
|
31
37
|
|
|
32
|
-
**`Grep`**
|
|
38
|
+
**`Grep`** searches file contents with ripgrep, or PowerShell on Windows SSH hosts. It supports regular expressions (`pattern`), a search path (`path`), file type filtering (`type`, e.g., `ts`, `py`), glob filtering (`glob`), and output mode (`output_mode`: `files_with_matches` / `content` / `count_matches`; defaults to `files_with_matches`). `content` mode supports context lines (`-A`, `-B`, `-C`), case-insensitive matching (`-i`), line numbers (`-n`, default true), and multiline matching (`multiline`). Windows SSH uses .NET regular expressions; an invalid expression or unsupported file type returns an error. Use `glob` if the requested type is unavailable. All modes support `offset` + `head_limit` pagination; `head_limit` defaults to 250 and `0` means unlimited. Sensitive files such as `.env` files and private keys are automatically filtered out; set `include_ignored=true` to search files ignored by `.gitignore`, though sensitive files remain filtered.
|
|
33
39
|
|
|
34
40
|
**`Glob`** matches files in a specified directory (`path`; defaults to the working directory) by glob pattern (`pattern`). Results are sorted by modification time in descending order, returning 100 entries by default. It respects `.gitignore`, `.ignore`, and `.rgignore` by default; set `include_ignored=true` to include ignored files such as build outputs, while sensitive files remain filtered. Brace patterns such as `*.{ts,tsx}` are supported, and broad wildcard patterns are allowed.
|
|
35
41
|
|
|
@@ -58,9 +64,9 @@ When a command is only a file read, search, or text-file write, `Bash` still run
|
|
|
58
64
|
|
|
59
65
|
A foreground command that hits its timeout is not killed by default: it keeps running as a background task, with a fresh copy of the 600s background budget. Set [`bash_auto_background_on_timeout`](../configuration/config-files.md#background) to `false` under `[background]` to kill timed-out foreground commands instead, and change the background budget itself with [`bash_task_timeout_s`](../configuration/config-files.md#background) (`0` = no timeout; print mode defaults to no timeout).
|
|
60
66
|
|
|
61
|
-
stdin is always closed, so an interactive command receives EOF immediately. A stopped or timed-out task is terminated with SIGTERM, then SIGKILL after the 5-second grace period.
|
|
67
|
+
stdin is always closed, so an interactive command receives EOF immediately. A stopped or timed-out task is terminated with SIGTERM, then SIGKILL after the 5-second grace period. Local Windows commands use Git Bash by default. With native SSH enabled, pass `host` to run on an SSH host; Windows SSH commands use PowerShell syntax and native Windows paths, without requiring Git Bash on that host. Results and joined-host announcements show the remote platform and shell after the first connection.
|
|
62
68
|
|
|
63
|
-
On Windows, a local `Bash` command can leave processes running after the command itself exits. Those processes belong to the Kiki backend that started them. They keep running
|
|
69
|
+
On Windows, a local `Bash` command can leave processes running after the command itself exits. Those processes belong to the Kiki backend that started them. They keep running when you [close the desktop window](../getting-started/desktop-app.md#windows-tray-and-opening-files); with **Hide to tray** enabled, closing the window only hides or minimizes it. Stopping that backend, or an unexpected exit, stops each of those command trees and leaves other programs on the machine alone.
|
|
64
70
|
|
|
65
71
|
`TaskStop`, or a foreground timeout that kills the command instead of moving it to the background, still ends the tree. A command on a remote SSH host is not tied to the local backend's lifetime; closing or stopping local Kiki does not use this cleanup for that remote command. If `Bash` reports that the Windows Bash process helper is missing, or that the Windows process helper does not support "owner lifetime" (keeping the command's processes with the Kiki backend), reinstall Kiki from the matching release so the helper and the app are the same build.
|
|
66
72
|
|
|
@@ -88,9 +94,9 @@ Normal appends during a transcript search do not require the writer to stop: the
|
|
|
88
94
|
|
|
89
95
|
If a session or workspace cannot be resolved, follow the structured error's `next_call`. A known session keeps its indexed workspace and the applicable access approval. An unknown session leads to discovery rather than reading the requested turn in another session. A stale cursor may first retry its original session without the cursor; if that session is still missing, use the returned discovery call instead of repeating the missing id.
|
|
90
96
|
|
|
91
|
-
Use `HistoryList` to browse short turn excerpts or archived agents when you lack search words. A turn entry's `ref` opens the whole turn as source blocks with `HistoryRead`; `turn` and `step_id` also select bounded turn/step blocks. A cursor already carries its original target and should be passed alone.
|
|
97
|
+
Use `HistoryList` to browse short turn excerpts or archived agents when you lack search words. A turn entry's `ref` opens the whole turn as source blocks with `HistoryRead`; `turn` and `step_id` also select bounded turn/step blocks. A cursor already carries its original target and should be passed alone. For a cold large session, the default newest-first list can return recent turns and readable refs before the older directory is prepared. This page remains `partial` and may contain fewer turns than `limit`; its cursor continues toward older turns at the same source watermark. Other directory preparation pages may be empty. Continue with their cursor rather than treating partial coverage as a complete list. Use `HistoryRead({"step_id":"t42.3"})` for a known step. For a Search hit on a text block, `HistoryRead({"ref":"<hit.ref>"})` starts near the match. Each block includes its own `ref` and UTF-16 `range`; continue with `cursor`, or reopen a block with its `ref` and `start_char` set to the previous `range.end` if the cursor expires. A stale or removed source returns a structured recovery error: discard the `ref` or cursor and follow `next_call` rather than repeating it. Existing v1 Read cursors continue their legacy JSON paging; restart with a ref, turn, or step_id for blocks.
|
|
92
98
|
|
|
93
|
-
`HistoryRead` reports a normal `partial` read with the blocks it scanned and a cursor to continue. `no_match` means the scan finished and the selector has nothing there. `source_pending` means the persisted transcript ends in an unfinished record, so the lookup cannot yet say whether the selector matches; retry it once the writer settles. When the navigation directory is
|
|
99
|
+
`HistoryRead` reports a normal `partial` read with the blocks it scanned and a cursor to continue. `no_match` means the scan finished and the selector has nothing there. `source_pending` means the persisted transcript ends in an unfinished record, so the lookup cannot yet say whether the selector matches; retry it once the writer settles. When the navigation directory is being prepared or a saved ref's navigation cache needs rebuilding, `partial` comes with a preparation cursor and progress. Continue with that cursor: it keeps the original ref, source watermark and read position, and an empty block list means preparation is unfinished rather than `no_match`. If the agent's persisted transcript is unavailable altogether, the error points you at `HistoryList` with `kind: "agents"` to check the agent id. A source that has changed returns an error rather than another turn's content.
|
|
94
100
|
|
|
95
101
|
To search only cross-thread messages, use `HistorySearch({"query":"handoff","scope":"peer"})`. It searches both directions within the current workspace, or the explicitly approved `workspace_id`; an optional `session_id` narrows to one session. Peer search reuses the lexical matching modes but is newest-first, so omit `sort` or use `"newest"`. It excludes subagents and ordinary user input, does not accept `source: "transcript"`, and accepts only `agent_id: "main"`.
|
|
96
102
|
|
|
@@ -110,6 +116,16 @@ Explicit `source: "platform"` uses the adapter's optional history API and requir
|
|
|
110
116
|
|
|
111
117
|
Quiet collection and automatic background follow the binding's [group policy](../server/rest-api.md#im-account-and-channel-bindings). Background consumption advances a separate watermark while retaining the received timeline. All results, sender names, mentions and quoted text remain untrusted external data, not instructions or permission grants.
|
|
112
118
|
|
|
119
|
+
## Message delivery
|
|
120
|
+
|
|
121
|
+
`SendMessage` delivers one complete user-visible message or an ordered `messages` batch to the thread's enabled bound outputs, a room, or another Bot. Use either the top-level `text` / `attachments` / `reply_to` fields or `messages`, never both; omit `channel` / `channels` for bound-output fan-out or name explicit output channel IDs. Attachments may be sent without text; set `kind` explicitly for image, audio, voice, or video delivery, and inspect channel receipts before deciding how to recover an uncertain send.
|
|
122
|
+
|
|
123
|
+
| Field | Type | Default | Description |
|
|
124
|
+
| --- | --- | --- | --- |
|
|
125
|
+
| Top-level `end_turn` | `boolean` | `false` | Set to `true` only for the final answer. Leave it unset for progress messages. The engine omits the tool continuation only when `end_turn: true`, every user-targeted delivery succeeds, and this step contains exactly one `SendMessage` tool call. Partial or failed delivery, an unapproved call, or any additional tool call keeps the continuation available. Existing `afterStep` handling for goals, queued input, steer input, and task notifications still applies. |
|
|
126
|
+
|
|
127
|
+
An ordinary final reply is delivered in full as a fallback; do not resend it. Do not split one message into sentences or repeat it as ordinary text. A progress message leaves `end_turn` unset so required tools and pending work can continue.
|
|
128
|
+
|
|
113
129
|
## Web Tools
|
|
114
130
|
|
|
115
131
|
Both web tools are backed by Kiki's built-in search and retrieval module, which ships with the product — there is nothing to install. General-web search and URL fetching work without configuration or an API key. See [`nb_search`](../configuration/config-files.md#nb-search) for configuration.
|
|
@@ -276,7 +292,7 @@ Failures come back as structured errors with a `code`, a message and recovery gu
|
|
|
276
292
|
|
|
277
293
|
### Searching and reading
|
|
278
294
|
|
|
279
|
-
`MemorySearch` takes `mode: "search"` (the default, requires `query`) or `mode: "list"` (no query, browses the inventory). `page_size` is 1–20 and defaults to 8 for search and 20 for list; continue with `cursor` alone, and changing any filter invalidates it. Each item carries the full title, type, status, revision, owning scope, a `target` whose fields can be copied straight into `MemoryWrite`, `basis_kind` and an `applicability` of `expired`, `recheck` or `unrecorded`. The response's `coverage` states which scopes and statuses were inspected and whether anything was skipped. Continue empty preparation pages while `exhausted` is false; scan budgets do not cut off the remaining source.
|
|
295
|
+
`MemorySearch` takes `mode: "search"` (the default, requires `query`) or `mode: "list"` (no query, browses the inventory). `page_size` is 1–20 and defaults to 8 for search and 20 for list; continue with `cursor` alone, and changing any filter invalidates it. Each item carries the full title, type, status, revision, owning scope, a `target` whose fields can be copied straight into `MemoryWrite`, `basis_kind` and an `applicability` of `expired`, `recheck` or `unrecorded`. The response's `coverage` states which scopes and statuses were inspected and whether anything was skipped. Continue empty preparation pages while `exhausted` is false; scan budgets do not cut off the remaining source. The file backend ranks each bounded source chunk. Search adds the full body, source, basis and validity with `complete: true` when the whole entry fits a serialized response budget of 24,000 UTF-16 units and 6,000 estimated tokens. Reuse that complete revision without another read. Otherwise the item has `complete: false` and an exact `read` target; expand it before relying on or changing the content. Complete search items carry `score`, with `score_details` when the backend provides them. If reference metadata alone exceeds the budget, restart with a smaller `page_size`. List returns references.
|
|
280
296
|
|
|
281
297
|
`MemoryRead` takes exactly one of `id` or `ids` (up to 10), reads active, archived and replaced entries by default, and includes pending proposals only with `include_pending: true`. The result is the complete entry — not a summary — with its owning scope, target fields and applicability, so a read can be the source for an `update`.
|
|
282
298
|
|
|
@@ -325,9 +341,12 @@ Collaboration tools handle inter-Agent coordination, user interaction, and Skill
|
|
|
325
341
|
| `background` | Omitted: background for a main-agent call, foreground for a subagent call. An explicit `false` waits synchronously |
|
|
326
342
|
| `name` | A session-unique handle of lowercase letters, digits, and underscores; `root` is reserved |
|
|
327
343
|
| `route` | A profile route to run instead of a named profile |
|
|
328
|
-
| `model_alias` | The model the child uses. See [model selection](./model-vocabulary.md#binding-rules) for the full resolution order |
|
|
344
|
+
| `model_alias` | The model the child uses. See [model selection](./model-vocabulary.md#binding-rules) for the full resolution order. The receipt's `actual_model` line reports the model actually bound |
|
|
329
345
|
| `effort` | Thinking effort for this child |
|
|
330
|
-
| `
|
|
346
|
+
| `resume` | Name or ID of an existing idle direct child; rejects new-agent target and workspace fields |
|
|
347
|
+
| `context_mode` | Resume-only: `direct` keeps context, `compact` summarizes with the current model first, `fresh` rebuilds from saved task state without calling the old model; also confirms an explicit model change |
|
|
348
|
+
| `allow_model_change` | Legacy model-change confirmation requiring `resume` and `model_alias`; mutually exclusive with `context_mode` |
|
|
349
|
+
| `new_window` | Legacy fresh-context continuation requiring `resume`; mutually exclusive with `context_mode` |
|
|
331
350
|
| `tools` | Replaces the resolved tool selection for this binding only. A lone `*`, or `["*", ThreadRead]`, keeps the ordinary tools and adds that opt-in; a finite list stays finite |
|
|
332
351
|
| `disallowed_tools` | Adds a call-level deny. `[]` clears only that layer, never a profile, ancestor, or route deny |
|
|
333
352
|
|
|
@@ -337,7 +356,9 @@ Omit both `tools` and `disallowed_tools` and a new child uses the configured def
|
|
|
337
356
|
|
|
338
357
|
`preferred_models`, `discouraged_models`, and `preferred_efforts` are recommendations, so a model outside them still runs. `allowed_models`, `deny_models`, and `allowed_efforts` are hard: binding, manual changes, and resume all reject a violation, as do machine-level deny rules and unavailable capabilities.
|
|
339
358
|
|
|
340
|
-
**Resume.** `resume` continues an
|
|
359
|
+
**Resume.** `resume` continues an idle direct child by name or agent id, and rejects `name`, `profile`, `profile_file`, `route`, `workDir` and `additionalDirs`. Omit `model_alias` and `effort` to keep the saved binding, or pass `effort` for the next idle run. An explicit `context_mode` chooses `direct`, `compact` or `fresh` and confirms a different canonical model when `model_alias` is also supplied. Without a context choice, ordinary resume remains direct. The same child ID, task notes, Todo, history and workspace remain available. `compact` and `fresh` require native Kiki execution; an external executor returns an error without recreating its thread.
|
|
360
|
+
|
|
361
|
+
Do not combine `context_mode` with either legacy parameter, even when false. Without `context_mode`, legacy `new_window: true` selects fresh context and takes precedence over `allow_model_change`; otherwise `allow_model_change: true` confirms a direct model change. `new_window: false` does not veto that confirmation. `model_alias: "inherit"` remains invalid. See [resume choices and recovery](../customization/agents-and-subagents.md#named-child-agents) for an example and commit-failure behavior.
|
|
341
362
|
|
|
342
363
|
**Timeouts and modes.** Agent tasks time out after 2 hours by default; set the global limit with `[subagent] timeout_ms` or `KIKI_SUBAGENT_TIMEOUT_MS` (`0` disables it), and print mode defaults to no timeout. There is no per-call timeout. In foreground mode the parent waits; in background mode a task ID returns immediately and the result arrives later as a synthetic User message. The TUI groups several foreground calls from one step and shows their status and elapsed time. See [Agents and Sub-Agents](../customization/agents-and-subagents.md) for the complete profile and lifecycle contract.
|
|
343
364
|
|
|
@@ -345,13 +366,17 @@ The `AgentRun` default follows the caller's runtime identity, not the target pro
|
|
|
345
366
|
|
|
346
367
|
A large foreground result comes back as a tail preview rather than in full. The receipt adds `output_size_bytes`, `preview_bytes`, `truncated`, `full_output_available`, and — when one exists — `output_path`. When `output_path` is present, read the complete result with `Read` on that file, or page through it with `TaskOutput` using `offset` and `max_bytes`. When no complete output file exists, `full_output_available` is `false` and only the preview can be read: run the work in smaller pieces, or re-run it with narrower instructions so the result fits. A small result keeps the plain summary text and needs none of this.
|
|
347
368
|
|
|
348
|
-
A completion still reaches you automatically while a [goal](../guides/goals.md) is blocked: the main agent wakes to process that
|
|
369
|
+
A completion still reaches you automatically while a [goal](../guides/goals.md) is blocked or paused: the main agent wakes to process that result without resuming the goal. A cancelled launching turn or an exhausted current goal budget holds the result until the next authorized turn. Restored `lost` receipts join an available turn or explicit resume without starting a competing turn; they do not confirm the external execution outcome.
|
|
349
370
|
|
|
350
|
-
**`AgentList`** lists direct children of the current agent. Optional `include_finished` defaults to false. A live child that is starting, running, or cancelling stays visible as `running`, even after its previous background task has completed or timed out. A
|
|
371
|
+
**`AgentList`** lists direct children of the current agent. Optional `include_finished` defaults to false. A live child that is starting, running, or cancelling stays visible as `running`, even after its previous background task has completed or timed out. A child whose execution ended but whose final save failed stays visible as `persistence_failed`; its `persistence_failure` includes the turn id, execution outcome, and storage error. When no execution is active, a saved completion, failure, or cancellation supplies the status if its tracking task is no longer retained or the same task still has a stale running record. An outcome from an older task never overrides a newer task. Otherwise status follows the latest background task or the executor's broken or closed state; an idle child with no saved outcome or task is `untracked`. Pass `true` to also include finished or errored children. At most 50 entries are returned, running first; `omitted` is the count that did not fit. Each entry includes `agent_id`, optional `name` and `profile`, and `status`. A `running` child does not necessarily have a tracked background task or a pending completion notification; use `TaskList` to inspect tracked work.
|
|
372
|
+
|
|
373
|
+
When a native agent's final save fails, the GUI shows a failed status and the save error while recovery remains pending. Restore writable storage rather than repeating its prompt or tool calls. After its initial backoff, the agent keeps retrying disk-full and temporary storage failures every five minutes, so recovery does not require another message or history read. A successful journal write can bring that retry forward; journal corruption stops low-frequency recovery and requires inspection. Recovery completes the original task and its notification without rerunning its work. Explicit resume or message delivery also tries the pending save first; a persistent failure returns the storage error instead of `already running` or waiting indefinitely. Stopping the task still takes effect, and recovery does not restart a stopped task.
|
|
351
374
|
|
|
352
375
|
**`AgentSend`** sends a non-empty `message` to a direct child identified by `target` (a `name` from `AgentRun`, or an agent id). A child that is running natively receives the message at the next step boundary, steered into its active turn. Codex and a steer-capable ACP child can receive it during the run. A child that has stopped, including one whose run ends before the message is in its context, continues with the same model, profile, tools, and context. Saved messages for an external child enter that same binding in arrival order, one run after another, without a separate resume. When dispatch capacity is full, that continuation waits until a running child finishes and does not open a run past the limit. If no run will free the capacity, or an external resume cannot open the existing session, the saved message remains under its `message_id`. The sender then receives the reason, the error code, the target, and that id. Resume that same child with AgentRun: set `resume` to the target agent id, set `prompt` to an empty string, and set `description` to a short label. Do not call AgentSend again, do not repeat the saved message in `prompt`, and do not set `new_window`. That failure does not open a new remote session. That continuation is an ordinary child task, and its completion notifies the parent. If more than one direct child matches, or none do, the call fails — use `AgentList` and retry with an unambiguous value. A full mailbox means the child has too many unread queued messages; wait until it consumes some, then retry.
|
|
353
376
|
|
|
354
|
-
The result includes a `message_id` and a `queued` or `delivered` status. `queued` means the mailbox accepted the message. It does not mean a run is in progress. Delivery can complete concurrently, so it does not say the message is definitely still unread. `delivered`
|
|
377
|
+
The result includes a `message_id` and a `queued` or `delivered` status. `queued` means the mailbox accepted the message. It does not mean a run is in progress. Delivery can complete concurrently, so it does not say the message is definitely still unread. `delivered` confirms that the message entered the recipient's persisted context or turn input; the child may still be working on it. `resumed: true` reports that a new run was actually observed starting; the field is omitted when no run start was observed, so its absence is not a negative answer. The sender's transcript records a delivery receipt and clears the GUI's pending-delivery label, even if the child's transcript is not open. This update runs independently of the recipient's next step. If the sender is unloaded, Kiki retains the receipt and records it when that sender is next loaded. The receipt survives reload and history replay without duplicating the message or starting another run.
|
|
378
|
+
|
|
379
|
+
After a restart, messages already received by a turn are acknowledged without appending their bodies again or starting another run. If disk-full, temporary storage errors, or mailbox transport failures prevent saving a receipt or acknowledgement, Kiki retries that save every 30 seconds while the agent remains loaded. Restore writable storage or allow the runtime to recover; the original message stays saved. Temporary mailbox transport failures receive up to eight bounded, cancellable recovery attempts at the same safe execution boundary, with increasing delays totaling about two minutes in addition to call time. Recovery preserves the request identity and delivery receipt rather than replaying external actions. If recovery still fails, the diagnostic identifies the retained messages and how to resume the same agent; permanent errors and cancellation are not retried.
|
|
355
380
|
|
|
356
381
|
**`AskUserQuestion`** asks the user a structured multiple-choice question — useful for disambiguation or option selection. The `questions` parameter accepts 1–4 questions; each question requires `question` (ending with `?`), `options` (2–4 choices, each with a `label` and `description`), and optional `header` (max 12 characters) and `multi_select` (defaults to false). An "Other" option is appended automatically. Setting `background` to true starts a background question task and returns a task ID immediately. When the host does not support interactive questioning, a failure message is returned and the Agent should ask the user directly in a text reply instead.
|
|
357
382
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
kiki acp
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Once started, the command prints no banner and immediately waits for the ACP client to send an `initialize` request on stdin. Logs are written to stderr (as well as the diagnostic log under `~/.kiki/logs/`), so the ACP channel itself stays clean.
|
|
9
|
+
Once started, the command prints no banner and immediately waits for the ACP client to send an `initialize` request on stdin. Logs are written to stderr (as well as the diagnostic log under `<home>/logs/`; default `~/.kiki/logs/`), so the ACP channel itself stays clean.
|
|
10
10
|
|
|
11
11
|
::: tip Who calls this?
|
|
12
12
|
You typically do not need to run `kiki acp` manually — this command is the subprocess entry point for IDEs. For IDE-side configuration, see [Using in IDEs](./ide.md).
|
|
@@ -83,9 +83,13 @@ The forwarding above is inbound: an IDE supplies MCP servers to `kiki acp`. When
|
|
|
83
83
|
|
|
84
84
|
The session's capability list shows authentication observations reported by its running adapter. ACP's explicit authentication-required error appears as **Authentication required** for that session. Codex's account updates appear as the engine-reported account status; unrecognized modes stay **Sign-in unknown**. The tooltip identifies the protocol source, working directory and observation time. These saved observations remain readable after the session closes and are cleared when its execution binding changes; they do not replace the connection check in Settings.
|
|
85
85
|
|
|
86
|
+
Native engine children keep the saved engine-session contract when Kiki resumes them. If an adapter cannot resume or verify that session, Kiki reports the engine error instead of silently opening a new one. Resume, load and control support remains engine-specific.
|
|
87
|
+
|
|
88
|
+
If a Codex prompt was submitted but its start could not be confirmed, Kiki reports `executor.session_failed` with `details.deliveryOutcome: "unknown"`. While the Kiki session remains loaded, retrying that same resume operation returns the original failure without resending the prompt. Inspect the external session before starting a new operation or reloading the Kiki session. A failure before submission can be retried with the same operation.
|
|
89
|
+
|
|
86
90
|
Set `inject_kiki_mcp` under `[agent_executor_overrides.<executor-id>.defaults]` to choose the engine default. A Profile's `inject_kiki_mcp` overrides it, and `execution.overrides.inject_kiki_mcp` overrides the Profile for a session. Set the session value to `null` to inherit again. These choices take effect on the next binding, including named external child profiles; cold restore keeps the saved choice. Once an agent binds `false`, existing bridge credentials can no longer list or call its tools.
|
|
87
91
|
|
|
88
|
-
When injection is omitted at every layer, existing behavior remains
|
|
92
|
+
When injection is omitted at every layer, existing behavior remains for ordinary compatible role-profile children: they receive only their allowed native tools, while a bare main agent gets a bridge only when context or delegation is requested. A child launched with `profile: engine:<executor-id>` is bare instead: Kiki sends no role, system prompt or profile body by default, and being a child does not create a Kiki bridge by itself. Explicit per-engine defaults still apply, and an explicit `inject_kiki_mcp = false` closes the bridge. Turning injection on does not open extra tool groups. Explicit `kiki_context: []` and `allow_kiki_subagents: false` keep those groups closed.
|
|
89
93
|
|
|
90
94
|
Opening the bridge does not grant a tool the binding already denies. When an external tool is checked under both its vendor name and the mapped native name, each allow list must include at least one of those names, and a deny of either name blocks the call.
|
|
91
95
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Local Server and API
|
|
2
2
|
|
|
3
|
-
Kiki
|
|
3
|
+
Kiki's local server is the shared daemon. Use `kiki serve` to start, reuse, or stop the daemon shared by the interactive TUI, the desktop GUI, and external callers; it mounts the Kiki GUI for your browser, a REST API (`/api`), and a WebSocket event stream (`/api/ws`). To let a browser on another device into this Kiki, use `kiki web` to turn on [Web access](#use-kiki-in-a-browser) on that same daemon. The Kiki GUI lets you use Kiki in a browser; the REST and WebSocket APIs are for scripts and third-party tools, letting you create sessions, submit prompts, and follow execution from code — all reading and writing the same session data as the TUI and the Kiki GUI.
|
|
4
4
|
|
|
5
5
|
> Make sure Kiki is installed and ready to use first — either logged in via `/login` (in the TUI, or `kiki login`), or with a provider configured in `config.toml`. The server shares the CLI's login state and configuration, so no separate credential is needed for it.
|
|
6
6
|
|
|
@@ -20,25 +20,17 @@ kiki serve --stop
|
|
|
20
20
|
|
|
21
21
|
With no mode, `serve` runs the daemon in the foreground. `--query --json` only inspects the current instance; `--ensure` attaches to an existing healthy instance or starts one; `--stop` shuts down the reachable instance for the selected home. If a live instance's identity cannot be verified, stop or upgrade it before Kiki will start another. `--idle-exit` defaults to `30m`; active client leases (periodically renewed indications that a client is still using the daemon) and running dispatches keep it alive. Explicit `--idle-exit 0ms` keeps a newly started daemon running until you stop it. The TUI attaches or starts the same way after workspace trust.
|
|
22
22
|
|
|
23
|
-
##
|
|
23
|
+
## Open it from a browser on another device
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
`kiki web` no longer runs a foreground server of its own. It finds this home's shared daemon (starting one first, kept running until you stop it, if none is reachable), turns on Web access there, prints a single-use entry link, and returns:
|
|
26
26
|
|
|
27
27
|
```sh
|
|
28
|
-
kiki web #
|
|
29
|
-
kiki web --no-open #
|
|
30
|
-
kiki web --
|
|
28
|
+
kiki web # turn on temporary Web access, print the link and open it here
|
|
29
|
+
kiki web --no-open # print the link only
|
|
30
|
+
kiki web --json # status and link as JSON for scripts
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
The
|
|
34
|
-
|
|
35
|
-
```text
|
|
36
|
-
Local: http://127.0.0.1:58627/#token=...
|
|
37
|
-
Token: ...
|
|
38
|
-
Stop: Ctrl+C
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
The server runs in the foreground; press `Ctrl-C` for a clean shutdown. For the full option list such as `--host` and `--log-level`, see the [kiki command reference](../reference/command.md#kiki-web).
|
|
33
|
+
The daemon itself listens only on `127.0.0.1`. Without `--port`, Web access reuses the daemon's local port; `--host`, `--port`, and `--public-url` open a separate listener for browsers only. The terminal output never contains `#token=` or the local-owner capability. See [Use Kiki in a browser](#use-kiki-in-a-browser) below for sessions, revocation, and network options, and the [kiki command reference](../reference/command.md#kiki-web) for every option.
|
|
42
34
|
|
|
43
35
|
## Authentication
|
|
44
36
|
|
|
@@ -49,42 +41,42 @@ Remote GUI access additionally requires the target's inbound gate to be enabled,
|
|
|
49
41
|
For a trusted local client, carry the local-owner capability as follows:
|
|
50
42
|
|
|
51
43
|
- **REST**: the `Authorization: Bearer <token>` request header.
|
|
52
|
-
- **Kiki GUI**: the
|
|
44
|
+
- **Kiki GUI**: the desktop GUI and local launchers connect directly with the local-owner capability; a `#token=` fragment in the address is also accepted and is never sent to the server. A browser on another device does not use this path; it signs in with a single-use [Web access](#use-kiki-in-a-browser) link.
|
|
53
45
|
- **WebSocket**: clients that can set headers use `Authorization: Bearer`; clients that cannot (such as browsers) pass the token in the handshake subprotocol as `kimi-code.bearer.<token>`.
|
|
54
46
|
|
|
55
47
|
If the remote owner token leaks, run `kiki web rotate-token`: it replaces `server.token`, invalidates the old remote credential and stops affected peer streams without a restart. It does not rotate `server.local-owner`, so treat exposure of that file as a compromise of local access.
|
|
56
48
|
|
|
57
|
-
The desktop GUI
|
|
49
|
+
The desktop GUI discovers local instances through its native launcher and authenticates with the local-owner capability. It verifies the service identity and connection protocol before attaching. Different desktop and service builds can connect when the protocol is compatible; status and diagnostics show the service's actual build. If an identified service has an incompatible protocol, Kiki reports the problem instead of starting a second service. When no instance is found, it starts its bundled backend.
|
|
50
|
+
|
|
51
|
+
After a backend restart or port/token change, the desktop automatically rediscovers the service and verifies the original home, current space, and authentication mode. Temporary failures retry with exponential backoff starting at 1 second and capped at 10 seconds. The draft, current session route, and reading position remain in place. A candidate from another home, space, or authentication mode is rejected while the original view stays open.
|
|
52
|
+
|
|
53
|
+
Supported local clients in the same home share the same sessions, regardless of which launcher started the server.
|
|
58
54
|
|
|
59
55
|
::: warning Note
|
|
60
56
|
Two independently provisioned runtimes that do not trust each other — separate services with their own host identity and authority domain — must not share a writable `KIKI_HOME`, must not copy session directories between their homes, and must not copy `device_id` to impersonate the same host. Session indexes, thread attribution, and permission boundaries all depend on a home having a unique identity. The shared daemon, TUI, desktop GUI, and coexisting server instances inside one home are supported and unaffected.
|
|
61
57
|
:::
|
|
62
58
|
|
|
63
|
-
Binding a non-loopback address (`--host`, including bare `--host`, which targets `0.0.0.0`) requires either
|
|
64
|
-
|
|
65
|
-
::: danger
|
|
66
|
-
`--dangerous-bypass-auth` still exposes legacy APIs without authentication: anyone who can reach the port can control your sessions, filesystem and shell. Connection management and forwarding remain local-owner-only, and this mode cannot accept peers, enable effective inbound access or issue new grants. Saved allow lists are retained but inactive. Only use it on trusted networks or behind your own authenticating proxy. See the [kiki command reference](../reference/command.md#kiki-web).
|
|
67
|
-
:::
|
|
59
|
+
Binding the Web access listener to a non-loopback address (`--host`, including bare `--host`, which targets `0.0.0.0`) requires either `--public-url` pointing at an HTTPS TLS-terminating reverse proxy or `--insecure-no-tls`; without one of those Web access refuses to turn on. You may set `KIKI_PASSWORD` as an additional owner credential; it does not replace the local-owner capability or the per-source grant. The server rate-limits authentication failures automatically.
|
|
68
60
|
|
|
69
61
|
## Use Kiki in a browser
|
|
70
62
|
|
|
71
63
|
Web access is a door into **this** Kiki from a browser on another device. Whoever holds a link can use the Kiki in full, with the same access you have — it is not a read-only share, and a temporary entry is temporary only in how long it stays open.
|
|
72
64
|
|
|
73
|
-
Turn it on from the GUI under **Settings →
|
|
65
|
+
Turn it on from the GUI under **Settings → Connection & remote → Access from elsewhere → Web access**, or from the terminal:
|
|
74
66
|
|
|
75
67
|
```sh
|
|
76
|
-
kiki web --temporary # open for eight hours, then close by itself
|
|
68
|
+
kiki web --temporary # the default: open for eight hours, then close by itself
|
|
77
69
|
kiki web --persistent # stay open until you turn it off
|
|
78
70
|
kiki web --status # is it on, and which browsers are signed in
|
|
79
71
|
kiki web --off # close it without stopping Kiki or its tasks
|
|
80
72
|
kiki web --revoke [session-id] # sign out one browser, or all of them
|
|
81
|
-
kiki web --host --
|
|
82
|
-
kiki web --insecure-no-tls
|
|
73
|
+
kiki web --host --public-url https://kiki.example.test # reachable from other devices through a TLS-terminating reverse proxy
|
|
74
|
+
kiki web --host --insecure-no-tls # allow plain LAN HTTP (see the warning below)
|
|
83
75
|
```
|
|
84
76
|
|
|
85
77
|
In the TUI the same operations are `/web temporary|persistent|status|off|link|revoke [id]`, with `--host`, `--port`, `--public-url`, `--insecure-no-tls`, and `--no-open`.
|
|
86
78
|
|
|
87
|
-
Each run prints a single-use link that signs
|
|
79
|
+
Each run prints a single-use link that is valid for ten minutes and signs in one browser; **New link for another device** in the GUI and `/web link` in the TUI each sign a fresh one. Kiki redeems it for a session cookie held by the browser itself (HttpOnly, `SameSite=Strict`, host-only, `Secure` over HTTPS); no session or root token is ever placed in JavaScript, `localStorage`, or a URL query string. The server keeps only a digest, so a lost, expired, or used link is replaced by a new one rather than looked up. In always-on mode an already-authorized browser keeps working across service restarts and expires after 30 days unused; in temporary mode browser sessions end with that opening. A new device needs a new link.
|
|
88
80
|
|
|
89
81
|
Turning Web access off revokes every link and every browser session, and closes the open streams. It does not stop the daemon, the desktop app, or the TUI, and it does not cancel work already started. `kiki serve` and the desktop app are unaffected either way.
|
|
90
82
|
|
|
@@ -8,9 +8,9 @@ MCP tool results can carry embedded media. When the current model cannot take an
|
|
|
8
8
|
|
|
9
9
|
Kiki can also serve its native tools to an explicitly authorized MCP client. The feature is available by default; it does not start a listener or authorize a client until you configure access.
|
|
10
10
|
|
|
11
|
-
1. In Settings → Connection & remote → Access from elsewhere, add an external client and choose its shared tools and permission ceiling. These are access settings, not a workspace or conversation.
|
|
11
|
+
1. In Settings → Connection & remote → Access from elsewhere → External clients, add an external client and choose its shared tools and permission ceiling. These are access settings, not a workspace or conversation.
|
|
12
12
|
2. Create a conversation in Kiki, choose that external client, and select the workspace, worktree, Profile, and permission mode there. Kiki binds the resolved workspace to the conversation; the client cannot supply an arbitrary working directory.
|
|
13
|
-
3. Configure the other application's MCP entry with the local command below, replacing `CONNECTION_ID` with the connection's ID. For remote access, enable the MCP listener
|
|
13
|
+
3. Configure the other application's MCP entry with the local command below, replacing `CONNECTION_ID` with the connection's ID. For remote access, enable the MCP listener on the same tab and use its displayed HTTPS URL; approve the client's authorization request in Kiki.
|
|
14
14
|
|
|
15
15
|
```sh
|
|
16
16
|
kiki mcp --client CONNECTION_ID --tools
|
|
@@ -129,9 +129,9 @@ In YOLO mode, MCP tool calls are automatically approved. Only use this mode when
|
|
|
129
129
|
|
|
130
130
|
## Let an external client use Kiki tools
|
|
131
131
|
|
|
132
|
-
External clients reverse the direction described above: an MCP-capable model calls Kiki's native file, media, agent, task, History and authorized Memory tools. Kiki keeps the tool activity in a normal session without binding a local model to its main agent. This does not automatically import the external chat, its thinking, or its usage.
|
|
132
|
+
External clients reverse the direction described above: an MCP-capable model calls Kiki's native file, media, agent, task, History and authorized Memory tools. Kiki keeps the tool activity in a normal session without binding a local model to its main agent. This does not automatically import the external chat, its thinking, or its usage. Local programs can use the same grants through [HTTP and the JSON tools CLI](./script-tools.md), without MCP.
|
|
133
133
|
|
|
134
|
-
Open **Settings → Connection & remote → Access from elsewhere** to create a named connection
|
|
134
|
+
Open **Settings → Connection & remote → Access from elsewhere → External clients** to create a named connection and choose its shared tools and permission ceiling. The workspace is chosen when you create a conversation for that client. The capability is available by default; setting `external_clients = false` under `[experimental]`, or `KIKI_EXPERIMENTAL_EXTERNAL_CLIENTS=0`, keeps it off, and changing that override requires a host restart. Leave local commands off unless the client needs them. A connection is a permission grant, not a chat: initialization and tool discovery do not create business sessions.
|
|
135
135
|
|
|
136
136
|
### Connect a local client
|
|
137
137
|
|