kiki-agent 0.4.2 → 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.
Files changed (238) hide show
  1. package/README.md +3 -3
  2. package/dist/cpu-worker.mjs +52744 -0
  3. package/dist/docs/en/configuration/config-files.md +121 -46
  4. package/dist/docs/en/configuration/data-locations.md +34 -7
  5. package/dist/docs/en/configuration/env-vars.md +37 -9
  6. package/dist/docs/en/configuration/overrides.md +20 -9
  7. package/dist/docs/en/configuration/providers.md +114 -9
  8. package/dist/docs/en/customization/agent-profiles.md +1 -1
  9. package/dist/docs/en/customization/agents-and-subagents.md +55 -12
  10. package/dist/docs/en/customization/hooks.md +3 -3
  11. package/dist/docs/en/customization/personas.md +36 -2
  12. package/dist/docs/en/customization/plugins.md +56 -3
  13. package/dist/docs/en/customization/prompt-fields.md +65 -5
  14. package/dist/docs/en/customization/recipes.md +77 -0
  15. package/dist/docs/en/customization/skins.md +2 -2
  16. package/dist/docs/en/customization/themes.md +1 -1
  17. package/dist/docs/en/features/agent-workflows.md +8 -8
  18. package/dist/docs/en/features/browser-and-computer.md +40 -0
  19. package/dist/docs/en/features/daily.md +13 -13
  20. package/dist/docs/en/features/ecosystem.md +6 -6
  21. package/dist/docs/en/features/extend.md +11 -10
  22. package/dist/docs/en/features/freedom.md +9 -9
  23. package/dist/docs/en/features/index.md +58 -28
  24. package/dist/docs/en/features/long-work.md +18 -14
  25. package/dist/docs/en/features/look.md +6 -6
  26. package/dist/docs/en/features/people.md +6 -6
  27. package/dist/docs/en/features/phone.md +13 -3
  28. package/dist/docs/en/features/spaces.md +12 -12
  29. package/dist/docs/en/features/workbench.md +8 -8
  30. package/dist/docs/en/getting-started/desktop-app.md +4 -8
  31. package/dist/docs/en/getting-started/first-launch.md +1 -1
  32. package/dist/docs/en/guides/goals.md +4 -2
  33. package/dist/docs/en/guides/interface.md +32 -10
  34. package/dist/docs/en/guides/memory.md +64 -10
  35. package/dist/docs/en/guides/sessions.md +21 -9
  36. package/dist/docs/en/guides/settings.md +64 -40
  37. package/dist/docs/en/index.md +3 -1
  38. package/dist/docs/en/reference/command.md +90 -31
  39. package/dist/docs/en/reference/model-vocabulary.md +2 -2
  40. package/dist/docs/en/reference/slash-commands.md +1 -1
  41. package/dist/docs/en/reference/tools.md +65 -20
  42. package/dist/docs/en/server/acp.md +9 -3
  43. package/dist/docs/en/server/local-server.md +19 -27
  44. package/dist/docs/en/server/mcp.md +9 -5
  45. package/dist/docs/en/server/rest-api.md +350 -22
  46. package/dist/docs/en/server/script-tools.md +268 -0
  47. package/dist/docs/zh/configuration/config-files.md +121 -46
  48. package/dist/docs/zh/configuration/data-locations.md +34 -7
  49. package/dist/docs/zh/configuration/env-vars.md +37 -9
  50. package/dist/docs/zh/configuration/overrides.md +20 -9
  51. package/dist/docs/zh/configuration/providers.md +114 -9
  52. package/dist/docs/zh/customization/agent-profiles.md +1 -1
  53. package/dist/docs/zh/customization/agents-and-subagents.md +55 -12
  54. package/dist/docs/zh/customization/hooks.md +3 -3
  55. package/dist/docs/zh/customization/personas.md +36 -2
  56. package/dist/docs/zh/customization/plugins.md +56 -3
  57. package/dist/docs/zh/customization/prompt-fields.md +65 -5
  58. package/dist/docs/zh/customization/recipes.md +77 -0
  59. package/dist/docs/zh/customization/skins.md +2 -2
  60. package/dist/docs/zh/customization/themes.md +1 -1
  61. package/dist/docs/zh/features/agent-workflows.md +10 -10
  62. package/dist/docs/zh/features/browser-and-computer.md +40 -0
  63. package/dist/docs/zh/features/daily.md +13 -13
  64. package/dist/docs/zh/features/ecosystem.md +6 -6
  65. package/dist/docs/zh/features/extend.md +10 -9
  66. package/dist/docs/zh/features/freedom.md +9 -9
  67. package/dist/docs/zh/features/index.md +58 -28
  68. package/dist/docs/zh/features/long-work.md +17 -13
  69. package/dist/docs/zh/features/look.md +6 -6
  70. package/dist/docs/zh/features/people.md +5 -5
  71. package/dist/docs/zh/features/phone.md +13 -3
  72. package/dist/docs/zh/features/spaces.md +12 -12
  73. package/dist/docs/zh/features/workbench.md +8 -8
  74. package/dist/docs/zh/getting-started/desktop-app.md +4 -8
  75. package/dist/docs/zh/getting-started/first-launch.md +1 -1
  76. package/dist/docs/zh/guides/goals.md +4 -2
  77. package/dist/docs/zh/guides/interface.md +32 -10
  78. package/dist/docs/zh/guides/memory.md +64 -10
  79. package/dist/docs/zh/guides/sessions.md +21 -9
  80. package/dist/docs/zh/guides/settings.md +64 -40
  81. package/dist/docs/zh/index.md +4 -2
  82. package/dist/docs/zh/reference/command.md +90 -31
  83. package/dist/docs/zh/reference/model-vocabulary.md +2 -2
  84. package/dist/docs/zh/reference/slash-commands.md +1 -1
  85. package/dist/docs/zh/reference/tools.md +65 -20
  86. package/dist/docs/zh/server/acp.md +9 -3
  87. package/dist/docs/zh/server/local-server.md +19 -27
  88. package/dist/docs/zh/server/mcp.md +9 -5
  89. package/dist/docs/zh/server/rest-api.md +338 -21
  90. package/dist/docs/zh/server/script-tools.md +268 -0
  91. package/dist/external-harness/agy-cli-acp.mjs +168 -162
  92. package/dist/external-harness/agy-hook-registration.mjs +69 -30
  93. package/dist/external-harness/agy-mcp-plugin.mjs +19 -0
  94. package/dist/external-harness/agy-permission-hook.mjs +29 -2
  95. package/dist/hostRunner.mjs +112 -3
  96. package/dist/mailbox-worker.mjs +403 -0
  97. package/dist/main.mjs +2 -2
  98. package/dist/memory-worker.mjs +1008 -0
  99. package/dist/native/windows-process-helper.exe +0 -0
  100. package/dist/query-store-worker.mjs +487 -0
  101. package/dist/sqlite-indexer.mjs +255 -403
  102. package/dist/sqlite-query-worker.mjs +261 -249
  103. package/dist/usage-parser-worker.mjs +3977 -9
  104. package/dist/usage-read-model-worker.mjs +761 -0
  105. package/dist/web/assets/AppErrorBoundary-B5Fc4f6-.js +1 -0
  106. package/dist/web/assets/NavScopeBoundary-C7MnGQio.js +1 -0
  107. package/dist/web/assets/{arc-DYDCMlOS.js → arc-DGB9OVgQ.js} +1 -1
  108. package/dist/web/assets/{architectureDiagram-3BPJPVTR-C9Y7T0O2.js → architectureDiagram-3BPJPVTR-glnQCMub.js} +1 -1
  109. package/dist/web/assets/{blockDiagram-GPEHLZMM-CdUrp-tD.js → blockDiagram-GPEHLZMM-bM0tnGby.js} +1 -1
  110. package/dist/web/assets/{c4Diagram-AAUBKEIU-PrwvB9IJ.js → c4Diagram-AAUBKEIU-DMf_rTtt.js} +1 -1
  111. package/dist/web/assets/channel-Cj8SKJ38.js +1 -0
  112. package/dist/web/assets/{chunk-2J33WTMH-BL56g_Es.js → chunk-2J33WTMH-mTccJ3tW.js} +1 -1
  113. package/dist/web/assets/{chunk-4BX2VUAB-DvJD5M9M.js → chunk-4BX2VUAB-DhqPYMjY.js} +1 -1
  114. package/dist/web/assets/{chunk-55IACEB6-C8f-nzvx.js → chunk-55IACEB6-BujrYRoO.js} +1 -1
  115. package/dist/web/assets/{chunk-727SXJPM-DOGkWKkV.js → chunk-727SXJPM-ciMmSI4G.js} +1 -1
  116. package/dist/web/assets/{chunk-AQP2D5EJ-fFOuz7g6.js → chunk-AQP2D5EJ-CZW9pKTc.js} +1 -1
  117. package/dist/web/assets/{chunk-FMBD7UC4-BpeXZ9LM.js → chunk-FMBD7UC4-hdALNnnU.js} +1 -1
  118. package/dist/web/assets/{chunk-ND2GUHAM-CRUh76fb.js → chunk-ND2GUHAM-CgKyqUdb.js} +1 -1
  119. package/dist/web/assets/{chunk-QZHKN3VN-uNfxaPk0.js → chunk-QZHKN3VN-B2mmUz_E.js} +1 -1
  120. package/dist/web/assets/classDiagram-4FO5ZUOK-f8V9p-dD.js +1 -0
  121. package/dist/web/assets/classDiagram-v2-Q7XG4LA2-f8V9p-dD.js +1 -0
  122. package/dist/web/assets/client-ClWQBErG.js +3 -0
  123. package/dist/web/assets/connection-C0J3BPgk.js +1 -0
  124. package/dist/web/assets/{cose-bilkent-S5V4N54A-BNkxG-qX.js → cose-bilkent-S5V4N54A-UV3uPjkK.js} +1 -1
  125. package/dist/web/assets/{dagre-BM42HDAG-BerioUei.js → dagre-BM42HDAG-Zjy-gQ6C.js} +1 -1
  126. package/dist/web/assets/{diagram-2AECGRRQ-Czv2SR07.js → diagram-2AECGRRQ-DL-kilIf.js} +1 -1
  127. package/dist/web/assets/{diagram-5GNKFQAL-Uzi1weGK.js → diagram-5GNKFQAL-CjB_xR5B.js} +1 -1
  128. package/dist/web/assets/{diagram-KO2AKTUF-W36h_ff3.js → diagram-KO2AKTUF-CjN4i3b9.js} +1 -1
  129. package/dist/web/assets/{diagram-LMA3HP47-FG4dDk52.js → diagram-LMA3HP47-CPCAMndo.js} +1 -1
  130. package/dist/web/assets/{diagram-OG6HWLK6-CQoEjIAY.js → diagram-OG6HWLK6-DVeBWBKd.js} +1 -1
  131. package/dist/web/assets/{erDiagram-TEJ5UH35-Ck06KVyZ.js → erDiagram-TEJ5UH35-CHKzBHrr.js} +1 -1
  132. package/dist/web/assets/export-CXoWon32.js +2 -0
  133. package/dist/web/assets/{flowDiagram-I6XJVG4X-C5hgxdFZ.js → flowDiagram-I6XJVG4X-C5rQa2pq.js} +1 -1
  134. package/dist/web/assets/{ganttDiagram-6RSMTGT7-BS52Pw5_.js → ganttDiagram-6RSMTGT7-BrLjEsNJ.js} +1 -1
  135. package/dist/web/assets/{gitGraphDiagram-PVQCEYII-DLlQKZHs.js → gitGraphDiagram-PVQCEYII-3DRR5VZj.js} +1 -1
  136. package/dist/web/assets/highlighted-body-OFNGDK62-Bdj5SJfv.js +1 -0
  137. package/dist/web/assets/index-2Vx5mHRn.js +1 -0
  138. package/dist/web/assets/index-B1UXw2C9.js +1 -0
  139. package/dist/web/assets/{index-CM-nNfuV.js → index-BJxtlf4P.js} +4 -4
  140. package/dist/web/assets/{index-DKIysLbI.js → index-BY7jPurv.js} +1 -1
  141. package/dist/web/assets/index-Bq79v-Sa.js +1 -0
  142. package/dist/web/assets/index-BqD3iTIl.js +1 -0
  143. package/dist/web/assets/index-Br3AlBrQ.js +1 -0
  144. package/dist/web/assets/{index-Ca607_hK.js → index-BvRBCpc6.js} +2 -2
  145. package/dist/web/assets/index-BxYCSNg_.js +3 -0
  146. package/dist/web/assets/{index-B2Pu0Iuu.js → index-C62wjCF_.js} +1 -1
  147. package/dist/web/assets/index-CBvwNH_H.js +1 -0
  148. package/dist/web/assets/{index-BNch_a4L.js → index-CG9e6lgq.js} +1 -1
  149. package/dist/web/assets/{index-ByiwExpV.js → index-CPSWYh_R.js} +2 -2
  150. package/dist/web/assets/index-CS4xJLZV.js +1 -0
  151. package/dist/web/assets/index-CjvqtF2I.js +1 -0
  152. package/dist/web/assets/index-CprdjRRk.js +13 -0
  153. package/dist/web/assets/{index-Bg99yVX_.js → index-CypTtrCB.js} +1 -1
  154. package/dist/web/assets/{index-BwcG86o3.js → index-DDJQGcUL.js} +1 -1
  155. package/dist/web/assets/index-DLWzxUOO.js +1 -0
  156. package/dist/web/assets/index-DQxkxZmn.js +7 -0
  157. package/dist/web/assets/index-DRo5Y_9p.js +1 -0
  158. package/dist/web/assets/index-De_LkTZx.js +1 -0
  159. package/dist/web/assets/{index-CZX3qUe2.js → index-DfUpwUTM.js} +2 -2
  160. package/dist/web/assets/{index-BLU8_Um7.js → index-Dkbz748K.js} +2 -2
  161. package/dist/web/assets/index-DmwFFSkV.js +1 -0
  162. package/dist/web/assets/index-DpcWEDhW.js +1 -0
  163. package/dist/web/assets/index-Dqq1RDP4.js +1 -0
  164. package/dist/web/assets/index-H1uMvIoa.css +1 -0
  165. package/dist/web/assets/index-ICHWJ2SM.js +1 -0
  166. package/dist/web/assets/index-O5fSd569.js +229 -0
  167. package/dist/web/assets/index-odjtqLLS.js +1 -0
  168. package/dist/web/assets/index-v_yAQ0Am.js +1 -0
  169. package/dist/web/assets/{infoDiagram-5YYISTIA-CD4XJGFm.js → infoDiagram-5YYISTIA-CCwV4Z0v.js} +1 -1
  170. package/dist/web/assets/{ishikawaDiagram-YF4QCWOH-fu5E3_CT.js → ishikawaDiagram-YF4QCWOH-BwwZcGyZ.js} +1 -1
  171. package/dist/web/assets/{journeyDiagram-JHISSGLW-CXcnKBfJ.js → journeyDiagram-JHISSGLW-Dc6WqniQ.js} +1 -1
  172. package/dist/web/assets/{kanban-definition-UN3LZRKU-BawKH6Pl.js → kanban-definition-UN3LZRKU-DVUqULOS.js} +1 -1
  173. package/dist/web/assets/{linear-BplJuXph.js → linear-d6rWsNOU.js} +1 -1
  174. package/dist/web/assets/memoryAdvisor-DBQXJB1o.js +1 -0
  175. package/dist/web/assets/mermaid-GHXKKRXX-Ik6SkVDT.js +642 -0
  176. package/dist/web/assets/{mindmap-definition-RKZ34NQL-DA1SE2uy.js → mindmap-definition-RKZ34NQL-_JHAkhHL.js} +1 -1
  177. package/dist/web/assets/navViewState-DaCMIYWA.js +1 -0
  178. package/dist/web/assets/{pieDiagram-4H26LBE5-6i021QeX.js → pieDiagram-4H26LBE5-BlhlygGy.js} +1 -1
  179. package/dist/web/assets/{quadrantDiagram-W4KKPZXB-CcKSZDMT.js → quadrantDiagram-W4KKPZXB-jn6R_C0S.js} +1 -1
  180. package/dist/web/assets/{requirementDiagram-4Y6WPE33-lYVuWRuD.js → requirementDiagram-4Y6WPE33-B9fXCHBr.js} +1 -1
  181. package/dist/web/assets/{sankeyDiagram-5OEKKPKP-4Zfb4_h4.js → sankeyDiagram-5OEKKPKP-fPJwIxkl.js} +1 -1
  182. package/dist/web/assets/{sequenceDiagram-3UESZ5HK-DqltKmlY.js → sequenceDiagram-3UESZ5HK-1v1DTNGt.js} +1 -1
  183. package/dist/web/assets/{spaces-CjuXbmxF.js → spaces-CvL2DRZM.js} +1 -1
  184. package/dist/web/assets/{stateDiagram-AJRCARHV-HFdhqxzx.js → stateDiagram-AJRCARHV-CEc_PLov.js} +1 -1
  185. package/dist/web/assets/stateDiagram-v2-BHNVJYJU-iAMctzaT.js +1 -0
  186. package/dist/web/assets/theme-LRSmy8mD.js +1 -0
  187. package/dist/web/assets/{timeline-definition-PNZ67QCA-HNRxaB3t.js → timeline-definition-PNZ67QCA-CEjhuitj.js} +1 -1
  188. package/dist/web/assets/{vennDiagram-CIIHVFJN-DwsCTyaD.js → vennDiagram-CIIHVFJN-CActt9h9.js} +1 -1
  189. package/dist/web/assets/{wardley-L42UT6IY-BWW2wtVO.js → wardley-L42UT6IY-Bp3q2izt.js} +1 -1
  190. package/dist/web/assets/{wardleyDiagram-YWT4CUSO-C-ktKm7v.js → wardleyDiagram-YWT4CUSO-C_zutiQ2.js} +1 -1
  191. package/dist/web/assets/{xychartDiagram-2RQKCTM6-48AxNW9k.js → xychartDiagram-2RQKCTM6-CRafvv33.js} +1 -1
  192. package/dist/web/icons/apple-touch-icon.png +0 -0
  193. package/dist/web/icons/icon-192.png +0 -0
  194. package/dist/web/icons/icon-512.png +0 -0
  195. package/dist/web/icons/maskable-512.png +0 -0
  196. package/dist/web/index.html +12 -2
  197. package/dist/web/manifest.webmanifest +16 -0
  198. package/native/auth-native/prebuilds/linux-arm64/auth-native.node +0 -0
  199. package/native/auth-native/prebuilds/linux-x64/auth-native.node +0 -0
  200. package/native/auth-native/prebuilds/win32-arm64/auth-native.node +0 -0
  201. package/native/auth-native/prebuilds/win32-x64/auth-native.node +0 -0
  202. package/package.json +23 -4
  203. package/dist/search-worker.mjs +0 -14177
  204. package/dist/web/assets/AppErrorBoundary-DiGMUg4r.js +0 -1
  205. package/dist/web/assets/LifeMark-CL6-HWDu.js +0 -1
  206. package/dist/web/assets/NavScopeBoundary-CFCnvZR0.js +0 -1
  207. package/dist/web/assets/channel-Bj_gZ_Lv.js +0 -1
  208. package/dist/web/assets/classDiagram-4FO5ZUOK-ssCwe2R4.js +0 -1
  209. package/dist/web/assets/classDiagram-v2-Q7XG4LA2-ssCwe2R4.js +0 -1
  210. package/dist/web/assets/client-DGj93bGT.js +0 -3
  211. package/dist/web/assets/connection-Bpf-EjrL.js +0 -1
  212. package/dist/web/assets/export-T_izwEkQ.js +0 -2
  213. package/dist/web/assets/highlighted-body-OFNGDK62-Btm6MuZ4.js +0 -1
  214. package/dist/web/assets/index-5_yzg61S.js +0 -1
  215. package/dist/web/assets/index-B-6LiYTY.js +0 -1
  216. package/dist/web/assets/index-B4iu4SJW.js +0 -1
  217. package/dist/web/assets/index-B9MlqF7J.js +0 -1
  218. package/dist/web/assets/index-BECSk4If.js +0 -1
  219. package/dist/web/assets/index-BFcyN2Zw.js +0 -1
  220. package/dist/web/assets/index-BIebkSEI.css +0 -1
  221. package/dist/web/assets/index-BMWid2q9.js +0 -1
  222. package/dist/web/assets/index-BeMvPEXs.js +0 -1
  223. package/dist/web/assets/index-Bezli3SF.js +0 -1
  224. package/dist/web/assets/index-BkPV0psm.js +0 -1
  225. package/dist/web/assets/index-CG8uIlD7.js +0 -1
  226. package/dist/web/assets/index-CJ92kLtO.js +0 -1
  227. package/dist/web/assets/index-CRDDqofN.js +0 -1
  228. package/dist/web/assets/index-Cd62y0wD.js +0 -1
  229. package/dist/web/assets/index-CgcJPsK6.js +0 -3
  230. package/dist/web/assets/index-Cy8C_eFR.js +0 -7
  231. package/dist/web/assets/index-D8z7lcQn.js +0 -166
  232. package/dist/web/assets/index-D_oPSlBL.js +0 -1
  233. package/dist/web/assets/index-Dceu0bqY.js +0 -1
  234. package/dist/web/assets/index-eUyF-8Sq.js +0 -1
  235. package/dist/web/assets/index-hG2s2Spn.js +0 -13
  236. package/dist/web/assets/mermaid-GHXKKRXX-BO9hkP3Z.js +0 -621
  237. package/dist/web/assets/stateDiagram-v2-BHNVJYJU-Dx28QuZF.js +0 -1
  238. package/dist/web/assets/theme-beWE_6f8.js +0 -1
@@ -1,8 +1,8 @@
1
1
  ---
2
- title: Roles you can talk to
2
+ title: Personas & Discussion Rooms
3
3
  ---
4
4
 
5
- # Roles you can talk to
5
+ # Personas & Discussion Rooms
6
6
 
7
7
  A persona is a long-term identity: a name, an avatar, a job description, the standing rules for how it should work, and its own memory. It is a Markdown file you can read and edit, it has a fixed daily conversation you can return to, and it can take part in a **room** where several of them discuss a topic. This page covers the persona card, the daily entry, the memory it keeps, and rooms.
8
8
 
@@ -40,7 +40,7 @@ The persona card: name, avatar, responsibility, and the standing rules it works
40
40
 
41
41
  One persona's settings: the profile it rides on, its model and effort, the working directory, how it is delivered, whether it is pinned or hidden from the sidebar, and which memory it can read\.
42
42
 
43
- ## A fixed daily conversation
43
+ ## Daily conversation
44
44
 
45
45
  Every persona has a stable address for its daily conversation — the same entry the sidebar row, the switcher, the header, and the persona page all point at. Clicking a persona's name lands you in that one conversation, so "ask Xiaolan" means the same thing every time. If it does not exist yet, the entry opens a fresh daily draft and adopts it once it exists.
46
46
 
@@ -50,13 +50,13 @@ This same conversation is where a persona is reachable without you typing to it.
50
50
 
51
51
  One persona and the several conversations it holds, listed under its name\.
52
52
 
53
- ## Its own memory
53
+ ## Persona memory
54
54
 
55
55
  Persona memory follows the persona, across profiles and models — switching the model does not lose what it knows. Persona-specific entries stay isolated from other personas. By default the persona can also read the shared global and workspace memory; set `memory.shared: []` to exclude those. Deleting a persona also removes its persona memory namespaces, and if that cleanup fails the deletion reports the error and keeps the card so you can retry.
56
56
 
57
57
  The **/memory** page exposes the persona scope alongside global and workspace, including the namespaces its persistent conversation uses. See [Memory](/en/guides/memory#personas) and [Personas, Bots, and rooms](/en/customization/personas#memory-and-character-cards).
58
58
 
59
- ## Rooms: several of them, one topic
59
+ ## Discussion rooms
60
60
 
61
61
  A room gives two to six members a shared conversation with a host, a budget, and pause and continue. Persona members get their own message-mode sessions inside the room; existing threads can join as themselves, keeping their own sessions, workspaces, and permissions. In the GUI, Ctrl/⌘-click threads in the sidebar and choose **Pull into a new room**, use **Add to room…** on a thread, add them from the **Threads** tab under **Add member**, or pick **Open a room with these threads** on a thread link.
62
62
 
@@ -82,6 +82,6 @@ A room that also holds threads, listed under their own tab when you go to add a
82
82
 
83
83
  - [Personas, Bots, and rooms](/en/customization/personas) — the full reference for personas, home conversations, and rooms
84
84
  - [Agent profiles: concepts and design](/en/customization/agent-profiles) — the execution side: tools, permissions, model, prompt
85
- - [Work that runs long](/en/features/long-work) — what personas remember across sessions
85
+ - [Goals, Queues, Cron & Memory](/en/features/long-work) — what personas remember across sessions
86
86
 
87
87
  [Online version with images](https://x-t-e-r.github.io/kiki/en/features/people.html)
@@ -4,11 +4,21 @@ title: Phone session
4
4
 
5
5
  # Phone session
6
6
 
7
- A phone session lets one paired chat talk with a persona's daily conversation, or with a session you pick. Open **Settings → Notifications & messages**, where **Two-way chat**, **Push channels**, and **System alerts** are organized into separate tabs with **Two-way chat** open by default.
7
+ Connect an IM account and bind each of its channels to a persona's daily conversation or a thread you pick. Different contacts, chats or supported group topics can use different targets under the same account. Open **Settings → Notifications & messages → Channels & accounts** (`/settings/notifications?tab=accounts`) to manage chat accounts and their channels.
8
8
 
9
- Paste a setup and check it, or scan a WeChat code from this page. WeChat does not ask for a token or a numeric id here. Once an account is connected, open **Bind persona or thread**, pick a persona or an existing thread, start listening, and send one message from your phone. Kiki shows who wrote, the chat, and a short preview so you can confirm the binding without re-scanning a code or pasting the setup again. A chat id inside the paste is not a binding. While that connection is listening, a new phone message shows up on this page.
9
+ Chat accounts and one-way push channels share the **My channels** card. Choose **Add channel**, then pick a platform in the side panel: WeChat connects by scanning a code with your phone and does not ask for a token or a numeric id; QQ offers the **Official QQ bot** (connected through the QQ plugin; install it, then scan here) or **Personal QQ (OneBot)** (run OneBot locally and sign in to your QQ); other platforms ask for their credentials, or you can paste a setup under **Paste / other**. When one platform can both talk and deliver alerts, the panel first asks which: **Talk with Kiki** or **Alerts only**.
10
10
 
11
- A bound row can switch to another persona or session, and its options drawer lets you adjust busy behavior, phone text mode, phone actions, or follow the default for new bindings again. While a turn is busy, the next phone message can wait in the queue or steer into the current turn. The phone can show the full visible text when the turn settles, or the text already written. Several questions stay together until each one has an answer. Approvals and questions can be answered from the phone, including after Kiki restarts, as long as they are still open. On QQ and WeChat, each number answers the next open question, and words that are not one of the choices stay with that question. A sign-in that asks for a password stays on the desktop SSH screen. If Kiki restarts before the phone has the whole visible text, the rest of that text still arrives. The turn is not started again.
11
+ Once an account is connected, turn on listening in its row and send a message from the contact, group or topic you want to add. Before any conversation exists, you can preselect a target under **Bind new conversations to**. A new message appears as an **A message arrived** card with the sender, channel and a short preview. Choose a **Persona** or **Thread** for it (for a persona you can tick **Also set as the daily session**), then **Bind**, or **Dismiss** it. Each discovery has its own target. Adding another channel needs no new scan or setup paste, and a chat id inside the paste is not a binding. The current WeChat connection supports direct messages only: contacts can have separate bindings, while group discoveries remain visible but cannot be bound.
12
+
13
+ If authorization expires, choose **Authorize again** for that account. If its connection stops, choose **Retry connection**. A reconnecting account shows the reported failure when available; expand it for numeric details.
14
+
15
+ Each bound row has its own target, **IM conversation** switch and **Options**. Change the target, busy behavior, message text mode, approvals and questions, or restore the binding default there. Editing or confirming a paused binding does not turn it back on; enable it explicitly and check its conversation switch. The row's **⋯** menu offers **Test binding** (sends a fixed test message) and **Unbind**.
16
+
17
+ A group binding applies to the original sender by default; set **Group scope** to **Topic** or **Whole chat** to widen it. Topic and whole-chat bindings also have a **Group wake policy**: by default they wake on **@ or reply**, or you can choose **All messages**, **Manual only**, or set **Wake prefixes**. Field details are in [IM account and channel bindings](../server/rest-api.md#im-account-and-channel-bindings).
18
+
19
+ New bindings default to **Immediate**: while a turn is busy, Kiki attempts to insert the message at the next safe step boundary. In **Options**, choose **Queue** to wait, or **Steer** to retain the earlier insertion preference; saved choices are not reset. When the current turn cannot accept a message, it remains queued or starts its own turn, and Kiki reports a queued message as queued. Send `/help` in the bound chat for available commands: `/status` reads session activity, `/abort` stops the current turn, and `/target` lists binding targets (confirm a change in Kiki). Unknown slash commands return guidance instead of becoming agent prompts.
20
+
21
+ The phone can show the full visible text when the turn settles, or the text already written. Several questions stay together until each one has an answer. Approvals and questions can be answered from the phone, including after Kiki restarts, as long as they are still open. On QQ and WeChat, each number answers the next open question, and words that are not one of the choices stay with that question. A sign-in that asks for a password stays on the desktop SSH screen. If Kiki restarts before the phone has the whole visible text, the rest of that text still arrives. The turn is not started again.
12
22
 
13
23
  QQ and WeChat use full-text replies without message editing or buttons; answer questions with the numbered choices. QQ cannot take a file, and the generic OneBot bridge has no identifiable message-too-long error category. A rejected QQ reply is not marked as delivered, and the complete reply remains available on the desktop. Kiki does not treat an unknown failure as a length rejection and automatically resend it in pieces. When WeChat rejects a message as too long, the full text goes out as one file. A voice the platform cannot send as voice is sent as the original file, and that difference is counted on its own.
14
24
 
@@ -1,20 +1,20 @@
1
1
  ---
2
- title: Your data, your machines
2
+ title: Spaces, Remote Links & SSH
3
3
  ---
4
4
 
5
- # Your data, your machines
5
+ # Spaces, Remote Links & SSH
6
6
 
7
7
  Kiki runs where you run it, and the things it can reach are yours to decide. This page covers the four places that reach: **spaces**, which model the Kikis you open; **remote connections**, which point one Kiki at another with an approval on each side; **thread bridges**, which let one Kiki send messages into another without being able to browse it; and **Web access**, which opens this Kiki in a browser. It ends with in-session SSH, the one reach that is just a session's own resource.
8
8
 
9
9
  Nothing here is a relay through someone else's server. Sessions live under your Kiki home on the machine the server runs on; a remote connection or a web link is a door you open, with a credential you can revoke.
10
10
 
11
- ## Spaces: the Kikis you open
11
+ ## Spaces & work modes {#spaces-the-kikis-you-open}
12
12
 
13
13
  A **space** is one Kiki you work in. The main space manages the list; the spaces themselves are what you open. Each one can have its own shortcuts, its own window behavior, and its own credential scope, so a work Kiki and a personal Kiki can sit side by side without sharing what they can sign in to.
14
14
 
15
15
  Credentials are the decision each subspace makes. **Shared** means the subspace reuses the main space's credentials; **isolated** means it keeps its own, so signing into a personal account in one subspace does not change the other. The space settings detail also shows, per item, what the space follows and what it fixes, so you can see whether a value is inherited or pinned. You can copy SSH profiles from one space into another, or copy one here, without moving anything by hand.
16
16
 
17
- Change the credential scope on the subspace's own card in **Settings → Spaces**. See [Settings pages](/en/guides/settings) for the other sections of that dialog, and [Every layer is yours](/en/features/freedom) for what those credentials reach.
17
+ Change the credential scope on the subspace's own card in **Settings → Spaces**. See [Settings pages](/en/guides/settings) for the other sections of that dialog, and [Models, Prompts & Permissions](/en/features/freedom) for what those credentials reach.
18
18
 
19
19
  A **work mode** is a working surface inside a space, not another data boundary. The mode picker offers Kiki and Work by default; explicitly setting `KIKI_EXPERIMENTAL_WORK_PRESETS=false` or `[experimental] work_presets = false` keeps it off. Each space has its own Work setup, name and preferred task. Selecting Work offers Office, writing, extraction and table-check starters; its setup shows the packages that are actually installed and asks before installing missing packages or OfficeCLI. A failed setup retains the packages that succeeded so you can retry the rest. Switching modes does not change an existing session's model, profile or permissions, and removing a mode keeps its documents, sessions and shared plugins.
20
20
 
@@ -26,13 +26,13 @@ One space's own settings sheet, where each row says whether it follows the main
26
26
 
27
27
  Choosing a space's credential scope: share the main space's accounts and keys, or keep this space's separate\.
28
28
 
29
- ## Remote connections: one Kiki, pointed at another
29
+ ## Remote connections
30
30
 
31
- A remote connection is a directed link from this Kiki's home to another Kiki home on another machine. It is not a shared login: the target has its own identity, and it must approve the source before anything flows.
31
+ A remote connection is a directed link from this Kiki's home to another Kiki home on another machine. It is not a shared login: the target has its own identity, and it must approve the source before anything flows. Both directions live under **Settings → Connection & remote → Access from elsewhere → Other Kiki**: **Kikis allowed to connect to me** on top, **Kikis I connect to** below.
32
32
 
33
33
  Receiving is off by default. Enabling the gate on the target does not approve anyone by itself — you then create an invitation, hand it to the source, and the source registers a connection against it. Every connection is one row with its own state, its last-known measurements, and actions that affect only that link: enable, disable, retry, or remove. `inbound revoke <grantId>` stops one source's reads and streams without touching the others, and `inbound disable` closes all peer access while keeping the allow list. Removing a connection releases local credentials and owned tunnels; it does not stop the target daemon or undo work already started there. An offline target keeps its last-known measurements and their timestamp rather than reporting invented zeros.
34
34
 
35
- The command side plans before it acts. `kiki connections ... ssh plan` only queries; `ssh execute PLAN_ID` attaches; only an explicit `--ensure` may start a remote daemon, and that daemon keeps running until you stop it. Neither opens inbound access on its own. The GUI also rechecks an already-running target before attaching, without starting it or asking for another confirmation. Both hosts need a compatible connection protocol and working SSH authentication with known-host verification; their Kiki version strings do not have to match. Kiki does not install remote software for you.
35
+ The command side plans before it acts. `kiki connections ... ssh plan` only queries; `ssh execute PLAN_ID` attaches; only an explicit `--ensure` may start a remote daemon, and that daemon keeps running until you stop it. Neither opens inbound access on its own. The GUI also rechecks an already-running target before attaching, without starting it or asking for another confirmation. Over SSH, both hosts need a Kiki server of the same version and release channel, plus working SSH authentication with known-host verification; a version or channel mismatch is reported before any request is forwarded. Kiki does not install remote software for you.
36
36
 
37
37
  If the target temporarily closes inbound access, wait for its owner to reopen it, then try your operation again. A refusal for one operation does not sign you out of the connection, and Kiki never automatically repeats a refused write. An invalid token or revoked grant still rejects access; replace the connection's credentials or authorization before trying again.
38
38
 
@@ -42,7 +42,7 @@ The remote connections list: one row per peer Kiki, each with its own state and
42
42
 
43
43
  This Kiki's identity string, and the gate deciding which other Kikis may connect to it — off by default, with each allowed one listed and revocable\.
44
44
 
45
- ## Thread bridges: talk without browsing
45
+ ## Thread bridges
46
46
 
47
47
  A thread bridge is a one-way channel for thread messages between two homes. It is deliberately narrower than a remote connection: the target home approves the exact source and target scopes, the operations — `read`, `send`, `wait`, and `wake` only if you ask for it — and an expiry, and the bridge carries nothing else. Without `wake`, sends stay pending rather than starting a model turn on the other side.
48
48
 
@@ -50,11 +50,11 @@ A bridge never grants GUI browsing access, and GUI tokens and SSH logins do not
50
50
 
51
51
  See [`kiki bridges`](/en/reference/command#kiki-bridges).
52
52
 
53
- ## Web access: this Kiki, in a browser
53
+ ## Web access
54
54
 
55
55
  Web access opens **this** Kiki from a browser on another device. Whoever holds the link can use it 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.
56
56
 
57
- Turn it on under **Settings → Spaces → Web access**, or from the command line with `kiki web --temporary` (open for eight hours, then close by itself) or `kiki web --persistent` (stay open until you turn it off). Each run prints a single-use link that signs a browser in; Kiki redeems it for a session cookie held by the browser itself, keeps only a digest, and shows the link once — a lost link is replaced by a new one rather than looked up. `kiki web --revoke [session-id]` signs out one browser or all of them. Turning Web access off revokes every link and every browser session; it does not stop the daemon, the desktop app, or the TUI, and it does not cancel work already started.
57
+ Turn it on under **Settings → Connection & remote → Access from elsewhere → Web access**, or from the terminal with `kiki web --temporary` (the default: open for eight hours, then close by itself) or `kiki web --persistent` (stay open until you turn it off). `kiki web` opens the door on the shared daemon, starting the daemon first if needed, and the command returns at once instead of holding the terminal. Each run prints a single-use link that is valid for ten minutes and signs one browser in; Kiki redeems it for a session cookie held by the browser itself, keeps only a digest, and shows the link once — a lost or used link is replaced by a new one rather than looked up. Every new device needs a new link; in the GUI that is **New link for another device**. `kiki web --revoke [session-id]` signs out one browser or all of them. Turning Web access off revokes every link and every browser session; it does not stop the daemon, the desktop app, or the TUI, and it does not cancel work already started.
58
58
 
59
59
  Plain LAN HTTP (`--insecure-no-tls`) is not encrypted: anyone on the same network can read what is sent. For anything beyond a network you trust, put a TLS-terminating reverse proxy in front and pass `--public-url <https://…>`.
60
60
 
@@ -66,7 +66,7 @@ Web access turned on for this Kiki, with the browsers already signed in listed b
66
66
 
67
67
  ## In-session SSH
68
68
 
69
- A session can hold SSH hosts. Use the input box's **+** menu to add one, and the **SSH** control above the input box lists the joined hosts, takes a host away on **X**, and reopens the same list to add more. A joined host is a resource of that session, not something each message carries — so the timeline does not fill with host bubbles, and removing a host removes it from the session rather than from your machine.
69
+ A session can hold SSH hosts. Use the input box's **+** menu to add one. The **SSH** control above the input box shows how many hosts are joined, lists them, and takes one away on **X**; clicking **SSH** itself opens the session's host panel, one row per host with an **Enabled / Off** switch and that host's own connection state, where you can add or remove hosts. With more than three joined, the row folds by default and **Show all (n)** lists them, so the hosts never crowd the input box. A joined host is a resource of that session, not something each message carries — so the timeline does not fill with host bubbles, and removing a host removes it from the session rather than from your machine.
70
70
 
71
71
  The control appears only once the session holds a host. A session that has joined none has no SSH line above its input box, and the **+** menu is still the way to add the first one. It stays on screen for as long as the host is joined, including between turns, because "joined" is the session's own state rather than whether a request happens to be running.
72
72
 
@@ -74,7 +74,7 @@ Adding a host puts it in the session's context; it does not connect to it. In a
74
74
 
75
75
  An agent can also name a configured host directly in a tool call, without adding it first. Main agents and subagents use the same connection-approval flow; hiding a host, rejecting a request, host-key verification and file permission rules still apply. Removing a host from the context does not revoke an already approved connection.
76
76
 
77
- File paths belong to the selected host. On a Windows SSH host, use an absolute path such as `E:/work/result.log`; `Read`, `Write` and `Edit` use SFTP (SSH file transfer), independently of whether Git Bash is installed. `Bash` requires Git Bash on that remote Windows host.
77
+ File paths belong to the selected host. On a Windows SSH host, use an absolute path such as `E:/work/result.log`; `Read`, `Write` and `Edit` use SFTP (SSH file transfer), while `Bash`, `Glob` and `Grep` use that host's PowerShell, so commands take PowerShell syntax and Git Bash is not needed on the remote host. A failing remote command reports its error instead of returning an empty result.
78
78
 
79
79
  The SSH panel above the input box, listing the hosts joined to this session and the ones still available to add\.
80
80
 
@@ -1,12 +1,12 @@
1
1
  ---
2
- title: One workbench, many lines
2
+ title: Subagents & Multi-Model
3
3
  ---
4
4
 
5
- # One workbench, many lines
5
+ # Subagents & Multi-Model
6
6
 
7
7
  Every Kiki session has one **main agent**. When the job is bigger than a single turn, the main agent splits it and dispatches **subagents** — each with its own isolated context — and you can watch all of it in one window. This page covers what the workbench does with one task: how the main session fans out, how each role can run a different model, where a subagent's own work lives, and what happens in the background while you talk to the lead.
8
8
 
9
- ## Three surfaces, one local daemon
9
+ ## One local daemon
10
10
 
11
11
  The desktop app, the terminal UI (`kiki`), and the browser UI (`kiki web`) are three front ends to the same local daemon. They read and write the same session data, so a session you start in the terminal is the session you open in the browser, and vice versa. That is the "one workbench" part: pick whichever surface fits the moment.
12
12
 
@@ -14,7 +14,7 @@ The desktop app, the terminal UI (`kiki`), and the browser UI (`kiki web`) are t
14
14
  - [First launch](/en/getting-started/first-launch) for the terminal path
15
15
  - [Local server and API](/en/server/local-server) for the browser path
16
16
 
17
- ## The main session dispatches the work
17
+ ## Subagent dispatch
18
18
 
19
19
  You hand the main agent a task — a coding change, a research question, a bug to track down. It plans, calls tools, and when the work divides cleanly it dispatches subagents to handle the focused pieces: exploring an unfamiliar codebase, reviewing several implementations in parallel, or planning a large refactor without touching the main context.
20
20
 
@@ -24,7 +24,7 @@ Fresh installs ship two subagent profiles: `general`, a general-purpose assistan
24
24
 
25
25
  See [Agents and Sub-Agents](/en/customization/agents-and-subagents) for the full dispatch contract, context isolation, and permission inheritance.
26
26
 
27
- ## Each role can run a different model
27
+ ## Per-role models
28
28
 
29
29
  Different lines of work do not have to share a model. Bind the main agent, each subagent, and the reviewer to different models — or different vendors — and one session runs all of them at once. A strong reasoning model can plan while cheaper models do the routine work, and a reviewer running on a different model family brings an outside perspective to the decision the implementer already made.
30
30
 
@@ -36,7 +36,7 @@ The dispatch tree of one session, with each role bound to its own model\.
36
36
 
37
37
  One session running several roles at once: the right rail lists the main agent's state, its todos, and each child agent with the model it is bound to\.
38
38
 
39
- ## A subagent keeps its own record
39
+ ## Subagent transcripts {#a-subagent-keeps-its-own-record}
40
40
 
41
41
  Open any dispatched subagent to read its own transcript: what it was asked, what it did, and what it concluded — next to the main session, without loading the main agent's conversation. The same right rail follows you into the subagent, so you can inspect its context and cost the same way.
42
42
 
@@ -46,7 +46,7 @@ A subagent's own session: its separate transcript, its own composer, and a compo
46
46
 
47
47
  The right rail of a subagent, showing the same state, todos, working notes, and session overview the main agent gets\.
48
48
 
49
- ## Background tasks report back on their own
49
+ ## Background tasks
50
50
 
51
51
  Long shell commands and subagents do not have to hold the foreground. Send them to the background and Kiki notifies the main agent automatically when they finish, with the result inline and the full-output path retained — so neither you nor the agent has to keep checking. You can inspect a running task's status and output, and stop one at any time. Stopping an agent task also reports any direct subagents still running under it.
52
52
 
@@ -58,7 +58,7 @@ The tasks page filtered to all tasks, one running, one completed, and one failed
58
58
 
59
59
  ## Next steps
60
60
 
61
- - [Work that runs long](/en/features/long-work) — goals, the queue, scheduled tasks, the board, and memory
61
+ - [Goals, Queues, Cron & Memory](/en/features/long-work) — goals, the queue, scheduled tasks, the board, and memory
62
62
  - [Agents and Sub-Agents](/en/customization/agents-and-subagents) — the full dispatch and model-binding reference
63
63
  - [Interface overview](/en/guides/interface) — how the workbench window is arranged
64
64
 
@@ -78,17 +78,13 @@ When SmartScreen appears, check the URL and the hash before you go any further:
78
78
 
79
79
  ## Windows, tray, and opening files
80
80
 
81
- On Windows and macOS, closing the window hides it to the tray. On Linux with a tray available, the same close minimizes the window so your window manager can bring it back. **Quit** in the tray menu is how you leave the app. Closing the window asks the same question when no tray is available, or when **Settings → General → Desktop behaviour** is set to **Quit Kiki** instead of **Hide to tray**.
81
+ On Windows and macOS, closing the window hides it to the tray. On Linux with a tray available, the same close minimizes the window so your window manager can bring it back. **Settings → General → Desktop behaviour** offers **Hide to tray** and **Close desktop**. With **Hide to tray**, closing the window only hides or minimizes it; with **Close desktop**, it exits the desktop only. Neither choice stops a backend. When no tray is available, closing the window always exits the desktop and leaves the backend running. Use **Quit** in the tray menu to stop eligible local services and exit the app.
82
82
 
83
- **Quit** offers three buttons:
83
+ The tray **Quit** action stops the identity-verified, desktop-managed local shared services for the spaces this window is connected to, including a shared service started by another Kiki window, and then exits. The impact confirmation offers **Stop services and quit** and **Cancel**. Choosing **Cancel** leaves the desktop open without stopping the service.
84
84
 
85
- - **Stop services and quit** — exit, and stop the desktop-managed local shared services for the spaces this window is connected to.
86
- - **Close desktop only** — exit this desktop and leave a service that is already running. Background work, other windows, the CLI, and external clients stay connected to it. A service that has not finished starting can still be stopped by the exit; wait until it is ready if you need it to stay.
87
- - **Cancel** — stay in the app.
85
+ Stopping a service disconnects other windows, the CLI, and external clients using that space, and cancels unfinished work. A different build SHA does not by itself block a same-home service when the protocol is compatible; diagnostics report the service's actual build. Services you started yourself, remote or external services, and services for spaces this window is not connected to are not stopped. The tray action never force-stops a process.
88
86
 
89
- **Stop services and quit** stops only desktop-managed services from the same build as this app, including a shared service started by another Kiki window. Stopping it disconnects every other window, CLI, and external client using that space, cancels unfinished work, and waits for that service to close its MCP servers and finish `Bash` cleanup. [Shell](../reference/tools.md#shell) describes which Windows `Bash` processes keep running after a command exits. A service you started yourself keeps running, and so does any space this window is not connected to. Processes that belong to another Kiki service stay with that service, and programs you did not start through Kiki stay as they are.
90
-
91
- If the connected service belongs to another build, its identity changed after you confirmed, a connection is still starting, or the service is still draining after about 90 seconds, Kiki keeps this window open under **Kiki · Service shutdown not confirmed** and shows the reason. On Windows, a backend that exits with a nonzero code is reported the same way. Nothing is force-stopped. Let the work settle, then choose **Quit** again.
87
+ If the service identity or protocol compatibility cannot be confirmed, the service state cannot be read, or shutdown fails, Kiki records a diagnostic in `logs/desktop-backend.log` and exits without asking for confirmation again. Reopen the desktop to inspect the diagnostic and retry the shutdown.
92
88
 
93
89
  Opening a file from the file menu hands it to the app your system associates with that file type. The menu does not launch these types, because starting them would run code outside the app: `.app` and `.command` on macOS, `.desktop` on Linux, and executables and scripts on Windows. A shortcut pointing at one of those is refused too. Other files, including ordinary text files, open normally, and **Reveal in file manager** is unaffected.
94
90
 
@@ -52,7 +52,7 @@ Instead of the terminal, the desktop app and the browser UI open a welcome on fi
52
52
 
53
53
  The first step only has **Next**. On the agreement step, **Next** or **Set up later** saves an explicit permission choice before continuing; notification and reply-style choices save when selected. A failed save stays visible, and a reply-style failure does not prevent you from continuing. **Close setup** ends the run without starting a tour. **Replay setup wizard** in Settings opens it again with your saved preferences.
54
54
 
55
- The wizard hands off model setup rather than writing provider credentials itself. With no usable model, the new session page also offers **Sign in with an account** (Kimi Code, GitHub Copilot, or ChatGPT (Codex)) and **Use an API key or local server**. Each opens its own lane in **Settings → Models & providers**, where templates are grouped by vendor, gateway, and local server. **Test connection** checks the form without saving it. Star a model under **Available models** to use it in new sessions.
55
+ The wizard hands off model setup rather than writing provider credentials itself. With no usable model, the new session page also offers **Sign in with an account** (Kimi Code, GitHub Copilot, or ChatGPT (Codex)) and **Use an API key or local server**. Each opens its own lane in **Settings → Models & providers**, where templates are grouped by vendor, gateway, and local server. **Test connection** checks the form without saving it. Under **Providers & accounts**, expand a connection and star a model in its **Models** list to use it in new sessions.
56
56
 
57
57
  The welcome message uses the model and thinking effort you select when you send it. If none is configured, use the composer's model selector to choose one or connect a provider; your draft stays in place. Then resend the same welcome request. Neither a tour nor closing setup sends a prompt, and starter chips only prepare a draft.
58
58
 
@@ -80,9 +80,11 @@ A goal can stop in three ways:
80
80
 
81
81
  Describe completion conditions in the objective. Goals have no hard budget by default. To cap a goal's turns, output tokens, or active time, set a budget manually in the web goal editor; limits written in chat do not configure a budget.
82
82
 
83
- Pausing a goal stops its current goal-driven turn and automatic follow-up turns without deleting the objective. Background tasks already launched continue; their results wait for your next message. You can send ordinary messages while the goal is paused. Reopening a session after a restart pauses an active goal; a goal you already paused or cancelled stays stopped until you explicitly resume or create one.
83
+ Pausing a goal yourself stops its current goal-driven turn and automatic follow-up turns without deleting the objective. Background tasks already launched for that goal continue, and their results can wake an idle main agent to process the receipt. Receiving a result leaves the goal paused. You can send ordinary messages while the goal is paused. Reopening a session after a restart pauses an active goal; a goal you already paused or cancelled stays stopped until you explicitly resume or create one.
84
84
 
85
- A blocked goal does not cancel work it already started. When a task launched for it finishes, the result wakes the main agent to process that one completion; the goal itself stays blocked until you resume it. If you cancel the goal or its budget runs out, that result waits for your next message.
85
+ A blocked goal does not cancel work it already started. Unless its budget is exhausted, a finished task wakes the idle main agent to process that completion. A goal paused by a runtime error can receive results the same way; receiving them leaves the goal blocked or paused. Completing, removing, or replacing a goal does not stop later task completions from waking the main agent.
86
+
87
+ Cancelling a turn prevents tasks launched by that turn from waking the idle main agent; tasks started after the cancellation can still wake it. An exhausted current goal budget also prevents completion results from waking it. Held results are delivered when the main agent next runs, such as when you send another message.
86
88
 
87
89
  While a goal is active, each finished background task is delivered when the main agent is idle, including when another task is still running. That delivery does not wait for the other tasks, and it is not the goal's follow-up turn. The goal follows up on its own timing.
88
90
 
@@ -6,9 +6,11 @@ The desktop app and the browser UI are the same interface, and a session in eith
6
6
 
7
7
  This is the session timeline: assistant messages, tool calls, approvals, questions, and background-task notices.
8
8
 
9
- Messages from another agent or conversation state their source above the body. Copying or quoting one uses the body without repeating that source label; editing keeps the original source prefix. A source label you type yourself stays literal. Context injected after a user message stays after that message when you reopen or continue loading the conversation.
9
+ If a turn ends without a reply, its footer says whether background work is still running, no work is executing, or the activity is unknown. If **Send again** is available, it restores the original message text to the input box without sending it.
10
10
 
11
- Anything that has been resolved — a question you answered, an approval you granted, a marker — collapses into a compact one-line entry that stays where it happened. Several in a row fold into an **Activity history** row you can expand. Expanding or collapsing a conversation row keeps your reading position; scrolling takes over again. Failed and cancelled entries always stay visible on their own. Repeating markers such as goal updates show the latest one with a count ("Goal updated ×12") when nothing else separates them.
11
+ Messages from another agent or conversation show the source title above the body, falling back to its task name or short ID when no title is available. Hover over the label to see its full identity; select it to open the source agent or a conversation available in the current connection. Copying or quoting uses the body without repeating the label; editing keeps the original source prefix. A source label you type yourself stays literal. Context injected after a user message stays after that message when you reopen or continue loading the conversation.
12
+
13
+ Anything that has been resolved — a question you answered, an approval you granted, a marker — collapses into a compact one-line entry that stays where it happened. A question keeps that position while awaiting your answer and as the conversation continues; expand its entry to read the saved question and answer. Several in a row fold into an **Activity history** row you can expand. Expanding or collapsing a conversation row keeps your reading position; scrolling takes over again. Failed and cancelled entries always stay visible on their own. Repeating markers such as goal updates show the latest one with a count ("Goal updated ×12") when nothing else separates them.
12
14
 
13
15
  A subagent dispatch card expands children created during that particular run. Children from other runs, or whose creation time cannot be placed, stay under **Other subagents**, with their count and running or failed status. Open the group to see the same child cards. Resuming an older child does not make it newly created, and later status changes do not override your choice to open or close the group.
14
16
 
@@ -16,33 +18,47 @@ File references can be previewed, opened, or revealed in their folder. Reopening
16
18
 
17
19
  Click an image to open one viewer. Use the previous/next controls or `←` / `→` to browse images from that agent's loaded conversation. Long images fit the width and scroll vertically; click the image or use the size control to switch to actual size, where you can drag to pan.
18
20
 
19
- Choose **Annotate image** below the image to enter **Annotation mode**. The bottom toolbar offers arrows, rectangles, freehand marks, selection and undo; **Done** keeps the marks in the viewer, while **Cancel** discards the current edits. Right-click, or press `Shift-F10`, to copy or save the image; annotations can be saved separately as a PNG without changing the original. Link and path actions appear only when the source has them, and local open/reveal actions are available only for local files on a host that supports them. If an image fails to load, retry it or continue to another image.
21
+ Choose **Annotate image** below the image to enter **Annotation mode**. The bottom toolbar offers arrows, rectangles, freehand marks, selection and undo; **Done** keeps the marks in the viewer, while **Cancel** discards the current edits. Right-click, or press `Shift-F10`, to copy or download the image; annotations can be downloaded separately as a PNG without changing the original. Link and path actions appear only when the source has them, and local open/reveal actions are available only for local files on a host that supports them. If an image fails to load, retry it or continue to another image.
20
22
 
21
23
  Long tool output and other large fields arrive in stages. **Continue loading** pulls in the rest of a truncated field, and the row tells you how much is loaded so far. If that fails on a field that has an original behind it — a tool's input or output, a background task's own output — the same row offers **Download original**, which writes the complete content to your machine and reports its own saving, saved, and retry states. Retrying stays available, and not every field can be downloaded.
22
24
 
23
25
  ## Input box
24
26
 
25
- The input box accepts free-form text. `Enter` sends; `Shift-Enter` / `Ctrl-J` insert a newline. You can paste images and video from the clipboard, as long as the current model accepts them — [Interaction and input](/en/guides/interaction) covers the details.
27
+ The input box accepts free-form text. `Enter` sends; `Shift-Enter` / `Ctrl-J` insert a newline. You can paste images and video from the clipboard, as long as the current model accepts them — [Interaction and input](/en/guides/interaction) covers the details. Click an attached image to preview it before sending, including in a new conversation or while editing a message. Right-click images in the draft, Markdown, conversation or file preview to copy the image itself or download it.
28
+
29
+ In an existing conversation, changing **Approvals**, switching between **Normal** and **Plan**, or changing the Plan gate saves immediately, without sending a message. With native execution, the next tool approval uses the new permission mode, Plan mode's restrictions apply to subsequent tool calls in the running turn, and the gate controls the next plan submission. A request already waiting for approval still needs your decision. If saving fails, the control returns to the session's reported setting and shows the error.
30
+
31
+ Changing thinking effort or choosing **Direct** for a native model needs no message and adds no queue row. While idle, the model-and-effort label updates as the setting applies. During a turn, **Applies from the next step** means the current request finishes unchanged and the new setting applies before the next model request. Repeated picks keep only the latest choice until a queued message needs their order preserved. External engines without step-boundary switching show **Applies from the next message** instead.
32
+
33
+ **Summarize first**, **Fresh context**, and changes ordered after queued messages remain queue items, with **Change** and **Cancel** available before preparation starts. A failed setting shows its error and **Retry** beside the model label. **Default** clears the manual effort and restores the persona's pinned effort, then the selected model's profile default, then the model default. A profile or engine change remains attached to your next message.
26
34
 
27
35
  `↑` and `↓` move the caret inside the draft, including on a wrapped line. They browse earlier prompts only from the start of the text (`↑`) or the end (`↓`): this conversation keeps its own list, and the new-session page keeps one for that workspace. A text selection, `Shift`, an IME composition, or an open `/` or `@` menu keeps the key. `Esc`, or `↓` past the newest entry, restores the draft from before that browse.
28
36
 
29
- Select a passage in the conversation and choose **Quote** to add it above the input box. You can add several passages and remove each one separately. Sending includes those passages; references added while a send is awaiting confirmation stay in the draft. Type `@` to find workspace files, then choose **Load more** or scroll to the end of the matches to load another page.
37
+ Select a passage in the conversation and choose **Annotate** to add an item immediately and open its comment box. Comments are optional: `Enter`, `Esc`, or a click outside closes the box while keeping the item and any comment you wrote. You can select several passages, then edit their comments or remove individual items from the notes list above the input box. Sending includes those items; items added while a send is awaiting confirmation stay in the draft. Type `@` to find workspace files, then choose **Load more** or scroll to the end of the matches to load another page.
30
38
 
31
39
  The **+** menu in the input box adds SSH hosts to the session. A joined host belongs to the session rather than to each message, so **Session SSH** stays above the input box for as long as one is joined: it lists them, removes one on **X**, and reopens the host list from its own row. Adding a host makes it available to the session; it does not connect to it. In a brand-new session the control reads **SSH to join**, and the hosts you pick are joined before the first message goes out.
32
40
 
33
41
  The same menu's **Session** group carries **MCP servers ▸**, which lists every MCP server this conversation can see: the engine's own state for each one (connected, still connecting, waiting for sign-in, or the error it reported), the file or plugin it came from, and **Reconnect** where this conversation can retry it. Reading the list sends nothing and leaves your draft alone. The switch beside a row adds that server to this conversation or removes it from this conversation alone — the configuration and your other conversations are untouched, and the choice survives closing the panel. Before the first message, server choices stay in the draft and apply before that message starts. A server a plugin switches off for itself, or one whose runtime name another source owns, is shown without a switch, because the engine would refuse the write. Servers are configured for the workspace on the [MCP page](../server/mcp.md#configuration). **Rebuild context**, in the same group, reloads the agent's prompt sources without starting a new conversation — see [Rebuilding a session context](../customization/agents-and-subagents.md#rebuilding-a-session-context).
34
42
 
35
- While the agent is busy, a message you submit joins the queue above the input box instead of interrupting. Each queued message carries its own timing — **when idle**, **after subagents**, or **after tasks** — and you can change it, edit the text, reorder, or send it right away from its row in the queue. Editing restores the message's selected passages and original image previews, including after a restart. **Cancel** returns to your previous draft and selections; if an original image is unavailable, the edit reports the problem and leaves the queued message intact.
43
+ While the agent is busy, a message you submit joins the queue above the input box instead of interrupting. Each queued message carries its own timing — **after this turn**, **after subagents**, or **after tasks** — and you can change it, edit the text, reorder, or send it right away from its row in the queue. Editing restores the message's selected passages and original image previews, including after a restart. **Cancel** returns to your previous draft and selections; if an original image is unavailable, the edit reports the problem and leaves the queued message intact.
36
44
 
37
45
  Scheduled prompts in the same queue have a **Scheduled job** label and a text preview. Select the preview to expand the full prompt text. Their text is read-only in the queue; messages you submit remain editable. A scheduled task set to **Queue** on the scheduled tasks page keeps the same reorder and send-now controls.
38
46
 
39
47
  Waiting prompts set to **Insert when idle** share one group at the front of the queue, with each job's text and **Remove** action inside it. A prompt set to **Insert immediately** shows its timing on its own row. Both modes stay outside the ordinary send order, so they are not counted among messages waiting to send and have no reorder or send-now controls. **Remove** cancels only that pending occurrence; a recurring job stays scheduled and can fire again at its next scheduled time.
40
48
 
41
- To pick the timing for a message you submit, hover the send button or focus it and press `↓`. Besides the default, you can send the message into the current turn so the agent reads it at its next safe step (the same as `Ctrl-Enter`), start it after the running subagents finish, or start it after all background tasks finish. When the main agent is blocked waiting on a foreground `AgentRun`, **Send now** moves that wait to the background without stopping the child, which still reports back when it completes; plain queueing does not. The timing you choose applies to that one message. The menu only appears while the agent is busy.
49
+ To pick the timing for a message you submit, hover the send button or focus it and press `↓`. Besides the default, you can send the message into the current turn so the agent reads it at its next safe step (`Ctrl-Enter` with the default send shortcut), start it after the running subagents finish, or start it after all background tasks finish. The timing you choose applies to that one message. The menu only appears while the agent is busy.
50
+
51
+ Ordinary queued messages run one at a time in queue order, each in its own turn. The next message starts only after the preceding turn finishes. With the native executor, messages you explicitly send into the current turn at the same safe step can still share one model input. Steering and submit hooks run once for that batch; each original message keeps its own history entry and result.
52
+
53
+ A profile or engine change needs a separate turn even with **Send now**. Steered messages with different execution settings are not batched together. For external engines, the handshake determines whether sending into the current turn is available. AGY CLI delivers the message at its next model call in the same turn; if the turn ends first, Kiki keeps the message queued for the next turn. For any external engine, Kiki waits up to 60 seconds for a running tool call to finish before sending; otherwise the message stays queued. If delivery is unconfirmed, the queue pauses: check the timeline before deciding whether to resume it.
54
+
55
+ When the main agent is blocked waiting on a foreground `AgentRun`, **Send now** moves that wait to the background without stopping the child, which still reports back when it completes; plain queueing does not.
42
56
 
43
57
  Stop the main agent before it has replied or called a tool and the interrupted prompt goes back into the session draft with its attachments, next to any edits you had not sent. A prompt the agent already answered or was steered by is not restored, and recovered attachments need the full prompt in the loaded transcript and stay in memory until you restart the app.
44
58
 
45
- After a restart, queued messages come back held until you decide. **Send now** on one message sends only that one; **Resume queue** releases the rest. **Later** just hides the explanation — the resume button remains, and anything you submit meanwhile keeps queuing until you resume.
59
+ After a restart, queued messages come back held until you decide. **Send now** on one message sends only that one; **Resume queue** releases the rest. **Later** just hides the explanation — the resume button remains, and anything you submit meanwhile keeps queuing until you resume. A turn that was running at the restart is marked **Interrupted when Kiki restarted**; choose **Resume** beside it to run that message again.
60
+
61
+ A native subagent's **Approvals** and **Plan** controls apply immediately to that agent alone; its permission ceiling still applies. External subagents show an explanation instead of these controls because their executor owns those modes.
46
62
 
47
63
  In a subagent's input box the stop button is disabled while the stop request is in flight. If it fails, the notice says why and the button comes back so you can retry. Stopping one run leaves the subagent's other queued messages alone.
48
64
 
@@ -52,11 +68,17 @@ An approval appears in the timeline before a protected operation runs, with the
52
68
 
53
69
  ## Right rail
54
70
 
55
- The rail describes one agent at a time — whichever you last clicked into or focused. The main agent and every subagent get the same page, and the rail follows you into a subagent's transcript. It shows what that agent is doing now, the items waiting on you as rows you can decide from, the activity feed, and a folded capabilities block.
71
+ The rail describes one agent at a time — whichever you last clicked into or focused. The main agent and every subagent get the same page, and the rail follows you into a subagent's transcript. It shows what that agent is doing now, items waiting on you, the activity feed, and two independently folded capability sections.
72
+
73
+ For the native executor, the context overview uses the selected agent's current effective model limit, including its bound profile and recipe constraints. Changing that model's configured limit refreshes the window, percentage and automatic-compaction point in open main and subagent views. An unavailable limit leaves the token count visible without a percentage; recorded usage for earlier turns stays unchanged.
56
74
 
57
75
  The agent tree labels external executors beside each agent's name. An **off** thinking effort is shown only when it was explicitly selected.
58
76
 
59
- The folded **Capabilities** block includes **Subagents**. Each row names the profile and route, and whether that child can be launched now. Who this agent may start is set on the profile under **Child agents** — see [Dispatch capabilities](./settings.md#dispatch-capabilities).
77
+ **Capability inventory** has **Tools**, **Skills**, and **Subagents** tabs. The tools list includes plugin and MCP tools. Each subagent row names the profile and route, and whether that child can be launched now. Who this agent may start is set on the profile under **Child agents** — see [Dispatch capabilities](./settings.md#dispatch-capabilities).
78
+
79
+ **Capability controls** holds plugin usage, system-capability switches, and MCP server choices for this conversation. These controls stay separate from the inventory. Enabling **Browser** allows browser tools within the current tool policy; browser settings show the available connections and any connection failures. Ego Lite uses the native `browser__ego_run` tool rather than a separate list of typed page tools.
80
+
81
+ **IM conversation** lists the channels bound to this conversation, with a separate switch for each binding. Channels from one account, including Telegram topics, can belong to different conversations. An unrelated account's reconnecting state does not appear here. When an incoming channel is awaiting confirmation, **Bind here** explicitly links it to this conversation.
60
82
 
61
83
  On desktop-width screens the rail is open by default. **Standard / Cockpit** in its header widens it over the preview space while the conversation and composer stay in the main column; **Standard** or **Exit cockpit** puts the previous preview content, tabs, draft and width back.
62
84
 
@@ -1,8 +1,8 @@
1
1
  # Memory
2
2
 
3
- Kiki remembers the things you would otherwise re-explain every session: how you like your code reviewed, which project fact you confirmed last week, where a reference lives. It is on by default, everything stays on the machine running Kiki, and every write shows up as one line in the conversation.
3
+ Kiki remembers the things you would otherwise re-explain every session: how you like your code reviewed, which project fact you confirmed last week, where a reference lives. Memory is on by default, entries are stored on the machine running Kiki, and every write shows up as one line in the conversation. The optional [Memory Advisor](#memory-advisor) uses a decision service or chat model you choose to pick the relevant saved entries for each turn.
4
4
 
5
- This page covers the scope choices on the **/memory** page, the review inbox that can sit between an agent and a write, and how to turn memory off. For what the agent does inside one session — compression, the message queue, the task board — see [Work that runs long](/en/features/long-work).
5
+ This page covers the scope choices on the **/memory** page, reviewed Markdown edits, the review inbox, model-assisted recommendations, and how to turn memory off. For what the agent does inside one session — compression, the message queue, the task board — see [Work that runs long](/en/features/long-work).
6
6
 
7
7
  ::: warning Shared memory homes
8
8
  A Kiki older than 0.3.2 does not know the **Basis** and **Validity** fields below, and a write from that version can drop them from an entry. If two Kiki installations share one memory home — a desktop app and a CLI on the same `KIKI_HOME`, or a rollback to an earlier build — upgrade each of them to 0.3.2 or later. A field that has already been dropped is not restored for you: an entry that has lost one reads **Not recorded**, and putting it back means recording the basis or the check again from the original instruction or source material.
@@ -16,19 +16,25 @@ Agents write with `MemoryWrite` and read back with `MemorySearch` and `MemoryRea
16
16
 
17
17
  Open a memory-tool row in the conversation to read its recorded **Input** and **Output** together. Large fields continue loading from that original record, and their copy controls retrieve the complete field rather than just the visible preview. A write's receipt keeps the scope, revision and operation from that write; **View** opens the entry's current state on the memory page, while **Undo** targets the recorded operation. Neither replaces the historical output with today's entry. If reading a field or receipt fails, use its **Retry** action.
18
18
 
19
- Search comes in two modes. The default searches for a subject, title or alias and returns a ranked page of 8; `mode: "list"` browses the inventory a page at a time, 20 entries per page, with no query. Both report which scopes and statuses were actually inspected, whether the result set is complete, and whether anything was skipped or unreadable. A cursor continues beyond each scan budget; even an empty preparation page must be continued while `exhausted` is false. Ranking is local to each bounded source chunk, not a global relevance ranking across all remaining entries. A search snippet is at most 200 characters and **omits the conditions** — before relying on an entry, merging it, or replacing it, the agent reads it in full, and a search that finds nothing only means no entry uses those words.
19
+ In a running conversation, memory changes arrive as new updates rather than rewriting earlier model input. Kiki tells the agent which revision is current and when an entry is archived, replaced or expired; earlier text remains a historical observation. The agent can reuse a complete entry already in context only at its current active revision, with its checks intact. Repeated reads can point back to that complete entry. Compaction and fresh model switches rebuild memory from governed references. Turning memory off, losing access to a scope or permanently forgetting an entry removes its saved-memory payloads from subsequent model requests; it does not erase the conversation's original records.
20
20
 
21
- In the main agent's `TodoList` notes, `directives` and `decided` can point at an entry by id, like `[m_id]`. At compaction the handoff carries each referenced entry's current title, follows replacements, and marks archived entries as withdrawn.
21
+ Search comes in two modes. The default searches for a subject, title or alias and returns a ranked page of 8; `mode: "list"` browses the inventory a page at a time, 20 entries per page, with no query. Both report which scopes and statuses were inspected, whether the result set is complete, and whether anything was skipped or unreadable. Continue with the cursor while `exhausted` is false, even after an empty preparation page. The file backend ranks each bounded source chunk; an empty search means no match for those words, not proof that no related guidance exists.
22
+
23
+ Search returns the complete body, evidence, check and revision when the whole entry fits its response budget: 24,000 UTF-16 units and 6,000 estimated tokens, including metadata. The agent can reuse an item marked `complete: true` without another read. An item marked `complete: false` is a reference with an exact `MemoryRead` target. If it identifies a complete current unit already in context, the agent reuses that unit; otherwise it reads the target before using or changing the content. Bodies are never cut short to fit. If reference metadata alone exceeds the budget, restart with a smaller `page_size`. List mode returns references.
24
+
25
+ Each agent can keep explicit entry IDs such as `[m_id]` in any section of its current `TodoList` notes. Kiki deduplicates these links for automatic recall; only entries visible to that agent, active, unexpired and within the complete-entry budget can enter its working set.
26
+
27
+ Compaction handles links in `directives` and `decided` separately. With SQLite, the handoff keeps references for a fresh `MemoryRead`; the file-backed path includes current titles, follows replacements and marks archived entries as inactive.
22
28
 
23
29
  ## Where an entry came from, and when to check it
24
30
 
25
31
  An entry can record two things about itself, and both change how you should read it.
26
32
 
27
- **Basis** is the content's evidence: `human` (something you asked for or accepted), `observed` (checkable material or an observation), `derived` (Kiki's own inference or a relay of what someone else said), or `unknown`. The detail view spells each one out and shows the note and any source locators behind it. An older entry that has no basis recorded reads **Not recorded** — a gap in the record, not a judgment about the content. Once you have material you can check it against, ask Kiki to record the basis and the check for that entry; the fields are written through the memory tools, not by the editor on the **/memory** page. Kiki will not invent one, and it does not treat a line as yours just because the write happened in your turn.
33
+ **Basis** is the content's evidence: `human` (something you asked for or accepted), `observed` (checkable material or an observation), `derived` (Kiki's own inference or a relay of what someone else said), or `unknown`. The detail view spells each one out and shows the note and any source locators behind it. An older entry that has no basis recorded reads **Not recorded** — a gap in the record, not a judgment about the content. Once you have material you can check it against, record the basis and check through the memory tools or a [reviewed Markdown import](#edit-a-markdown-export). Kiki will not invent one, and it does not treat a line as yours just because the write happened in your turn.
28
34
 
29
35
  **Validity** is the check to run before trusting a changing fact. It carries a `check` describing what must be verified, and optionally an `until` timestamp. An entry with a check reads **Before relying on it: Check again**; one past its `until` reads **Past its endpoint** and stays on disk as a historical lead rather than a current premise; one with no recorded validity reads **No check was recorded**. Passing `until` never deletes or archives anything on its own.
30
36
 
31
- Changing an entry's title, type or content on the page keeps its recorded basis and check. When the basis or the check needs to change, ask Kiki to update them at the same time. See [Built-in Tools](/en/reference/tools#memory-tools) for the tool-level contract.
37
+ Changing an entry's title, type or content on the page keeps its recorded basis and check. When those attributes need to change, update them along with the content through the tools or the Markdown import. See [Built-in Tools](/en/reference/tools#memory-tools) for the tool-level contract.
32
38
 
33
39
  ## What the page lets you choose
34
40
 
@@ -64,21 +70,69 @@ The list and Inbox show available entries as they arrive and keep reading automa
64
70
 
65
71
  ### Change history and undo
66
72
 
67
- Every change to an entry is recorded. Each history row shows the before and after and offers **Undo** for that one operation, deletes included — which is why the delete confirmation says you can undo it.
73
+ Every change to an entry is recorded. Each history row shows the before and after and offers **Undo** for that one operation, deletes included: **Delete** runs at once, the notice it shows carries **Undo**, and the entry's history keeps that undo available afterwards.
74
+
75
+ **Forget permanently** is different, and it is the one memory action that cannot be undone. It removes every entry that shares this entry's source, with their revisions and sources, and leaves a barrier so the content cannot be imported back. So it always previews the exact set first and runs only after you tick "I understand this cannot be undone". If the set changed after the preview, nothing is forgotten; preview again.
68
76
 
69
77
  If the entry changed while you had it open, saving is refused and you are asked to reload first, so your edit cannot overwrite the newer version. Reload and re-apply what you meant to change.
70
78
 
71
79
  Saving an entry that changes nothing — the same title, content, pin state and recorded attributes — produces no new version and nothing to undo, and the page says **No change**. Re-submitting an edit you already saved is the normal way to land here. Changing only the basis or the check is still a change, and does get its own version.
72
80
 
81
+ ## Edit a Markdown export
82
+
83
+ For a home already using SQLite, **/memory** lets you export one complete entry, edit its Markdown file and review the changes before saving. The same workflow is available through the authenticated [Memory API](/en/server/rest-api#markdown-export-and-import), including when agent memory access is off.
84
+
85
+ 1. Open an entry and choose **Export Markdown**, then edit the saved file. Keep its scope, ID, revision, origin and source coordinates intact; update the complete content, basis and check together when they change.
86
+ 2. Next to **New memory**, choose **Import** and select the edited file. Check **Source**, enter your reason and choose **Preview import**. Compare **Stored now** with **From the file**. An unchanged document needs no write; an already admitted source points to its current corrected entry instead of replaying old content.
87
+ 3. Choose **Apply update** or **Create memory** only when the preview offers that action. A preview lasts ten minutes and expires on a server restart or authority change. If it expires, choose **Preview again** with the same file. After a revision conflict, re-export the entry if it still exists, reconcile your changes and preview again. If it was forgotten, stop importing this old source.
88
+
89
+ A genuinely new document uses `id: new`, `revision: null` and `origin: null`. Renaming an old file or changing its ID does not restore a forgotten source. Import does not approve pending proposals, revive retired entries or move entries to another scope; use their review or restoration actions first. In read-only recovery mode you can export, but must [resume editing](#backend-migration-and-recovery) before previewing or applying an import.
90
+
91
+ ## Backend migration and recovery
92
+
93
+ Starting the upgraded Kiki automatically migrates existing memory through the SQLite import and validation pipeline. New homes use SQLite too. No migration button, old-writer confirmation or experimental switch is required. The same tools and editor wait for the upgrade, then use SQLite; original files remain unchanged, and subsequent starts reuse the completed database. Entries with different IDs stay separate even when their source and body match, preserving their archive status and replacement links.
94
+
95
+ Storage migration preserves **Allow memory**: if it is off, agents still receive no saved memory and the advisor sends none out.
96
+
97
+ If the upgrade stops, the [Memory API](/en/server/rest-api#backend-migration-and-recovery) reports its saved operation ID, last committed page and source issues. Normal memory access stays blocked instead of reading an older copy. Repair the reported source and retry that operation, or restart to continue from its saved progress; scopes with earlier issues are checked again. Only forgotten objects and their own history are skipped; other entries keep their history and Undo. Stored corrections are kept instead of applying the source files. These entry-level source notes do not block the upgrade; review their details on **/memory** after it finishes. An unreadable or wholly rejected journal still stops the upgrade.
98
+
99
+ Upgrade other installations sharing the home as well; the backend marker governs compatible writers, not binaries released before that protocol.
100
+
101
+ The upgrade keeps the database compatible with the previous schema-3 SQLite reader. Rolling back to that build keeps post-upgrade edits and history; no older snapshot or file directory needs to be restored. Returning to the current build checks changes made by the old writer against forgotten-source barriers and fills missing source evidence. Completed checks are saved, so subsequent starts do not scan the full history again.
102
+
103
+ The API can also save a governed recovery package and switch SQLite to read-only mode. Current entries stay readable, including corrections made after migration; editing resumes only with the current recovery ID and epoch returned by the API. Keep the full database backup: Markdown exports current entries and pending proposals, while the database also retains immutable revisions, correction records and forget barriers. Do not restore an old file directory over newer governed memory.
104
+
73
105
  ## The review inbox
74
106
 
75
- Memory approval has three settings. The default, **auto**, applies a write the agent proposes right away. Set it to **review** and a proposed update or archive waits for you. With `auto` there is nothing pending, so no **Inbox** tab appears at all.
107
+ **New memory entries** in **Settings → Memory** decides when an agent's write takes effect. It has three settings (`[memory] approval` in `config.toml`):
108
+
109
+ - **Save automatically** (`auto`, the default): the agent's writes apply right away.
110
+ - **Review in Inbox** (`review`): every create, update or archive the agent makes becomes a proposal that waits for you in the **Inbox** tab on **/memory**.
111
+ - **Do not save automatically** (`off`): the agent no longer gets `MemoryWrite`, so it adds and changes nothing; saved memory stays readable and searchable.
112
+
113
+ Only `review` produces pending proposals, so the **Inbox** tab appears only under that setting.
114
+
115
+ While a proposal waits, the original entry keeps its current content and stays in effect. **Keep** applies the proposal: a new entry becomes active, an update replaces the text of the entry it supersedes, an archive archives that entry. **Discard** drops only the proposal and leaves the original untouched. A proposal is not active guidance: it is not used as a premise, and an agent's own write cannot approve it, only you can.
116
+
117
+ ## Memory Advisor
118
+
119
+ Memory Advisor uses a source you choose to recommend saved entries for the current request. Choose its source in **Settings → Models & providers → Defaults → Who decides** (`/settings/ai?tab=defaults#st-card-decision-judges`); **Settings → Memory** keeps its switch, budgets and runtime status. Choose a source and enable the advisor to start using it.
120
+
121
+ 1. Choose a [decision connection](../configuration/providers.md#decision-connections) or an existing chat model for **Memory Advisor**. A connection owns its protocol, endpoint and existing Kiki credentials; an optional model name on this row overrides its remote default. **System One** uses a compatible decision service, **Pair score** uses a reranker, and chat models return structured answers. Saving the source preserves an existing off switch and does not change the permission reviewer's source. Existing `selector` configurations remain usable until you replace or clear the source.
122
+ 2. In **Settings → Memory**, turn on **Memory Advisor**. It sends the current request, task notes, relevant tool-error context, memory titles, short excerpts and selected complete entries to that source. Common secret patterns are masked before sending.
123
+ 3. Optionally choose **Test with sample data**. It tests the saved source with made-up content, including while the advisor is off. Your saved entries are not read for this test. A failure names the issue; use the source's connection or model settings to correct its address, protocol or credentials, then try again.
124
+
125
+ The **Advisor** switch in the memory-page header and the command in `Ctrl-K` change the same global setting. Turning it off preserves the configuration, cancels unfinished recommendations, and restores the previous memory selection and text. Turning it back on uses **Rank**. The separate **Allow memory** switch controls all agent memory access.
126
+
127
+ In **Advanced**, **Rank** places recommendations before keyword matches within the existing complete-entry budget. **Select** also leaves out entries explicitly judged unsuitable; exact ID references, pinned entries and entries not yet judged remain eligible. **Pair score** supports **Rank** only. A recommendation does not replace an entry's evidence or required validity check. Children use the advisor only within their effective memory and model permissions, and can be excluded with **Advise subagents**.
128
+
129
+ In the same fold, **In a running session** lets you choose an existing session and agent, then **Read status** for the latest runtime outcome, calls and recommendations. Reads happen only when requested. A cold or absent agent reports **No running status yet** and stays unloaded.
76
130
 
77
- While a proposal waits, the original entry keeps its current content and stays in effect. **Keep** applies the proposal — an update replaces the text of the entry it supersedes, an archive archives that entry. **Discard** drops only the proposal and leaves the original untouched. A proposal is not active guidance: it is not used as a premise, and an agent's own write cannot approve it, only you can.
131
+ The wait, request deadline, calls per turn, directory pages, full-entry count and input budget are adjustable in the same fold. Only the first step waits, up to the configured limit. Without your own value it waits up to 3000 ms for a System One or Pair score connection and 1500 ms for a chat model, and follows the source when you switch it. A value you enter always wins; **Reset to default** returns to the source default. Later results join at a subsequent step. On a timeout or invalid answer, Kiki uses the existing selection path. If the current storage backend lacks committed snapshots, the advisor reports that it is unsupported and memory continues as before.
78
132
 
79
133
  ## Turning memory off
80
134
 
81
- The **/memory** page has a single **Use memory** switch, and the same setting lives in the desktop app's settings. Turning it off stops agents from reading or writing memory.
135
+ **Allow memory** on the **/memory** page and in Settings stops agents from reading or writing memory. To keep memory available and stop only model-assisted recommendations, turn off **Advisor** instead.
82
136
 
83
137
  The periodic long-term-memory reminders are separate. To stop just those while keeping the new-instruction and pre-compaction checks, set `memory_maintenance = false` in `config.toml` — the memory tools, approval and task notes stay available. See [Continuity reminder settings](/en/configuration/config-files#continuity-reminder-settings).
84
138