@askdkc/kiokuko 0.1.17 → 0.1.19

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 (534) hide show
  1. package/README.ja.md +91 -112
  2. package/README.ko.md +90 -102
  3. package/README.md +103 -262
  4. package/README.zh-CN.md +88 -102
  5. package/dist/agent-file/atomic-write.d.ts +90 -3
  6. package/dist/agent-file/atomic-write.d.ts.map +1 -1
  7. package/dist/agent-file/atomic-write.js +990 -14
  8. package/dist/agent-file/atomic-write.js.map +1 -1
  9. package/dist/agent-file/managed-block.d.ts +12 -1
  10. package/dist/agent-file/managed-block.d.ts.map +1 -1
  11. package/dist/agent-file/managed-block.js +49 -4
  12. package/dist/agent-file/managed-block.js.map +1 -1
  13. package/dist/agent-file/render.d.ts +1 -1
  14. package/dist/agent-file/render.d.ts.map +1 -1
  15. package/dist/agent-file/render.js +10 -7
  16. package/dist/agent-file/render.js.map +1 -1
  17. package/dist/akinator/agent-task.d.ts +11 -22
  18. package/dist/akinator/agent-task.d.ts.map +1 -1
  19. package/dist/akinator/agent-task.js +454 -99
  20. package/dist/akinator/agent-task.js.map +1 -1
  21. package/dist/akinator/capabilities.d.ts +18 -6
  22. package/dist/akinator/capabilities.d.ts.map +1 -1
  23. package/dist/akinator/capabilities.js +72 -35
  24. package/dist/akinator/capabilities.js.map +1 -1
  25. package/dist/akinator/capability-binding.d.ts +11 -0
  26. package/dist/akinator/capability-binding.d.ts.map +1 -0
  27. package/dist/akinator/capability-binding.js +56 -0
  28. package/dist/akinator/capability-binding.js.map +1 -0
  29. package/dist/akinator/domain.js +2 -2
  30. package/dist/akinator/domain.js.map +1 -1
  31. package/dist/akinator/knowledge-path.d.ts.map +1 -1
  32. package/dist/akinator/knowledge-path.js +409 -39
  33. package/dist/akinator/knowledge-path.js.map +1 -1
  34. package/dist/akinator/orchestrator.d.ts +3 -4
  35. package/dist/akinator/orchestrator.d.ts.map +1 -1
  36. package/dist/akinator/orchestrator.js +1 -4
  37. package/dist/akinator/orchestrator.js.map +1 -1
  38. package/dist/akinator/service.d.ts +0 -4
  39. package/dist/akinator/service.d.ts.map +1 -1
  40. package/dist/akinator/service.js +19 -35
  41. package/dist/akinator/service.js.map +1 -1
  42. package/dist/akinator/skill-discovery-attempt.d.ts +20 -0
  43. package/dist/akinator/skill-discovery-attempt.d.ts.map +1 -0
  44. package/dist/akinator/skill-discovery-attempt.js +390 -0
  45. package/dist/akinator/skill-discovery-attempt.js.map +1 -0
  46. package/dist/akinator/store.d.ts.map +1 -1
  47. package/dist/akinator/store.js +107 -52
  48. package/dist/akinator/store.js.map +1 -1
  49. package/dist/akinator/types.d.ts +0 -12
  50. package/dist/akinator/types.d.ts.map +1 -1
  51. package/dist/bin/kiokuko.js +0 -0
  52. package/dist/cli.d.ts +2 -0
  53. package/dist/cli.d.ts.map +1 -1
  54. package/dist/cli.js +534 -148
  55. package/dist/cli.js.map +1 -1
  56. package/dist/client/server-client.d.ts +5 -3
  57. package/dist/client/server-client.d.ts.map +1 -1
  58. package/dist/client/server-client.js +486 -181
  59. package/dist/client/server-client.js.map +1 -1
  60. package/dist/commands/agent.d.ts +2 -0
  61. package/dist/commands/agent.d.ts.map +1 -1
  62. package/dist/commands/agent.js +861 -86
  63. package/dist/commands/agent.js.map +1 -1
  64. package/dist/commands/backup.d.ts +2 -1
  65. package/dist/commands/backup.d.ts.map +1 -1
  66. package/dist/commands/backup.js +64 -8
  67. package/dist/commands/backup.js.map +1 -1
  68. package/dist/commands/doctor.d.ts +5 -1
  69. package/dist/commands/doctor.d.ts.map +1 -1
  70. package/dist/commands/doctor.js +70 -26
  71. package/dist/commands/doctor.js.map +1 -1
  72. package/dist/commands/export.d.ts +0 -4
  73. package/dist/commands/export.d.ts.map +1 -1
  74. package/dist/commands/export.js +191 -32
  75. package/dist/commands/export.js.map +1 -1
  76. package/dist/commands/import.d.ts +10 -1
  77. package/dist/commands/import.d.ts.map +1 -1
  78. package/dist/commands/import.js +592 -113
  79. package/dist/commands/import.js.map +1 -1
  80. package/dist/commands/init.d.ts +19 -1
  81. package/dist/commands/init.d.ts.map +1 -1
  82. package/dist/commands/init.js +569 -22
  83. package/dist/commands/init.js.map +1 -1
  84. package/dist/commands/purge.d.ts.map +1 -1
  85. package/dist/commands/purge.js +3 -0
  86. package/dist/commands/purge.js.map +1 -1
  87. package/dist/commands/setup.d.ts +34 -8
  88. package/dist/commands/setup.d.ts.map +1 -1
  89. package/dist/commands/setup.js +418 -86
  90. package/dist/commands/setup.js.map +1 -1
  91. package/dist/commands/skills.d.ts +9 -0
  92. package/dist/commands/skills.d.ts.map +1 -0
  93. package/dist/commands/skills.js +317 -0
  94. package/dist/commands/skills.js.map +1 -0
  95. package/dist/commands/use.d.ts +10 -2
  96. package/dist/commands/use.d.ts.map +1 -1
  97. package/dist/commands/use.js +851 -73
  98. package/dist/commands/use.js.map +1 -1
  99. package/dist/config/paths.d.ts +11 -1
  100. package/dist/config/paths.d.ts.map +1 -1
  101. package/dist/config/paths.js +64 -29
  102. package/dist/config/paths.js.map +1 -1
  103. package/dist/config/project-config.d.ts +1 -0
  104. package/dist/config/project-config.d.ts.map +1 -1
  105. package/dist/config/project-config.js +70 -32
  106. package/dist/config/project-config.js.map +1 -1
  107. package/dist/context/broker.d.ts +28 -14
  108. package/dist/context/broker.d.ts.map +1 -1
  109. package/dist/context/broker.js +604 -145
  110. package/dist/context/broker.js.map +1 -1
  111. package/dist/context/delivery.d.ts +6 -21
  112. package/dist/context/delivery.d.ts.map +1 -1
  113. package/dist/context/delivery.js +196 -147
  114. package/dist/context/delivery.js.map +1 -1
  115. package/dist/context/feedback.d.ts +11 -12
  116. package/dist/context/feedback.d.ts.map +1 -1
  117. package/dist/context/feedback.js +229 -261
  118. package/dist/context/feedback.js.map +1 -1
  119. package/dist/context/ranking.d.ts +1 -12
  120. package/dist/context/ranking.d.ts.map +1 -1
  121. package/dist/context/ranking.js +13 -4
  122. package/dist/context/ranking.js.map +1 -1
  123. package/dist/context/recommendations.d.ts +0 -5
  124. package/dist/context/recommendations.d.ts.map +1 -1
  125. package/dist/context/recommendations.js +0 -1
  126. package/dist/context/recommendations.js.map +1 -1
  127. package/dist/context/run-state.d.ts +26 -0
  128. package/dist/context/run-state.d.ts.map +1 -0
  129. package/dist/context/run-state.js +399 -0
  130. package/dist/context/run-state.js.map +1 -0
  131. package/dist/context/scoped-broker.d.ts +17 -5
  132. package/dist/context/scoped-broker.d.ts.map +1 -1
  133. package/dist/context/scoped-broker.js +512 -106
  134. package/dist/context/scoped-broker.js.map +1 -1
  135. package/dist/context/selection-state.d.ts +19 -0
  136. package/dist/context/selection-state.d.ts.map +1 -0
  137. package/dist/context/selection-state.js +250 -0
  138. package/dist/context/selection-state.js.map +1 -0
  139. package/dist/db/adapter.d.ts +5 -3
  140. package/dist/db/adapter.d.ts.map +1 -1
  141. package/dist/db/adapter.js +6 -3
  142. package/dist/db/adapter.js.map +1 -1
  143. package/dist/db/capabilities.d.ts.map +1 -1
  144. package/dist/db/capabilities.js +34 -16
  145. package/dist/db/capabilities.js.map +1 -1
  146. package/dist/db/connection.d.ts +8 -0
  147. package/dist/db/connection.d.ts.map +1 -1
  148. package/dist/db/connection.js +55 -26
  149. package/dist/db/connection.js.map +1 -1
  150. package/dist/db/migrate.d.ts +28 -7
  151. package/dist/db/migrate.d.ts.map +1 -1
  152. package/dist/db/migrate.js +106 -78
  153. package/dist/db/migrate.js.map +1 -1
  154. package/dist/db/sqlite-retry.d.ts +11 -0
  155. package/dist/db/sqlite-retry.d.ts.map +1 -0
  156. package/dist/db/sqlite-retry.js +66 -0
  157. package/dist/db/sqlite-retry.js.map +1 -0
  158. package/dist/db/transaction.d.ts +13 -0
  159. package/dist/db/transaction.d.ts.map +1 -1
  160. package/dist/db/transaction.js +53 -24
  161. package/dist/db/transaction.js.map +1 -1
  162. package/dist/db/upgrade-backup.d.ts +58 -2
  163. package/dist/db/upgrade-backup.d.ts.map +1 -1
  164. package/dist/db/upgrade-backup.js +757 -28
  165. package/dist/db/upgrade-backup.js.map +1 -1
  166. package/dist/errors.js +1 -1
  167. package/dist/errors.js.map +1 -1
  168. package/dist/gateway/agent-service.d.ts +4 -1
  169. package/dist/gateway/agent-service.d.ts.map +1 -1
  170. package/dist/gateway/agent-service.js +71 -58
  171. package/dist/gateway/agent-service.js.map +1 -1
  172. package/dist/gateway/checkpoint-service.d.ts +1 -0
  173. package/dist/gateway/checkpoint-service.d.ts.map +1 -1
  174. package/dist/gateway/checkpoint-service.js +47 -24
  175. package/dist/gateway/checkpoint-service.js.map +1 -1
  176. package/dist/ledger/archive.d.ts +1 -4
  177. package/dist/ledger/archive.d.ts.map +1 -1
  178. package/dist/ledger/archive.js +77 -39
  179. package/dist/ledger/archive.js.map +1 -1
  180. package/dist/ledger/maintenance.d.ts +0 -11
  181. package/dist/ledger/maintenance.d.ts.map +1 -1
  182. package/dist/ledger/maintenance.js +24 -40
  183. package/dist/ledger/maintenance.js.map +1 -1
  184. package/dist/ledger/projection.d.ts +0 -1
  185. package/dist/ledger/projection.d.ts.map +1 -1
  186. package/dist/ledger/projection.js.map +1 -1
  187. package/dist/ledger/promotion.d.ts +0 -9
  188. package/dist/ledger/promotion.d.ts.map +1 -1
  189. package/dist/ledger/promotion.js.map +1 -1
  190. package/dist/ledger/query.d.ts +1 -15
  191. package/dist/ledger/query.d.ts.map +1 -1
  192. package/dist/ledger/query.js.map +1 -1
  193. package/dist/ledger/store.d.ts +0 -1
  194. package/dist/ledger/store.d.ts.map +1 -1
  195. package/dist/ledger/store.js +11 -8
  196. package/dist/ledger/store.js.map +1 -1
  197. package/dist/ledger/types.d.ts +0 -4
  198. package/dist/ledger/types.d.ts.map +1 -1
  199. package/dist/ledger/types.js.map +1 -1
  200. package/dist/ledger/validate.d.ts.map +1 -1
  201. package/dist/ledger/validate.js +0 -5
  202. package/dist/ledger/validate.js.map +1 -1
  203. package/dist/mcp/server.d.ts +4 -0
  204. package/dist/mcp/server.d.ts.map +1 -1
  205. package/dist/mcp/server.js +105 -54
  206. package/dist/mcp/server.js.map +1 -1
  207. package/dist/memory/audit.d.ts +0 -1
  208. package/dist/memory/audit.d.ts.map +1 -1
  209. package/dist/memory/audit.js +0 -1
  210. package/dist/memory/audit.js.map +1 -1
  211. package/dist/memory/curator.d.ts.map +1 -1
  212. package/dist/memory/curator.js +172 -96
  213. package/dist/memory/curator.js.map +1 -1
  214. package/dist/memory/entries.d.ts +12 -2
  215. package/dist/memory/entries.d.ts.map +1 -1
  216. package/dist/memory/entries.js +198 -114
  217. package/dist/memory/entries.js.map +1 -1
  218. package/dist/memory/federated-retrieval.d.ts +12 -1
  219. package/dist/memory/federated-retrieval.d.ts.map +1 -1
  220. package/dist/memory/federated-retrieval.js +183 -70
  221. package/dist/memory/federated-retrieval.js.map +1 -1
  222. package/dist/memory/hybrid-retrieval.d.ts +5 -11
  223. package/dist/memory/hybrid-retrieval.d.ts.map +1 -1
  224. package/dist/memory/hybrid-retrieval.js +78 -58
  225. package/dist/memory/hybrid-retrieval.js.map +1 -1
  226. package/dist/memory/lifecycle.d.ts.map +1 -1
  227. package/dist/memory/lifecycle.js +17 -13
  228. package/dist/memory/lifecycle.js.map +1 -1
  229. package/dist/memory/rebuild-search.d.ts +5 -0
  230. package/dist/memory/rebuild-search.d.ts.map +1 -1
  231. package/dist/memory/rebuild-search.js +101 -76
  232. package/dist/memory/rebuild-search.js.map +1 -1
  233. package/dist/memory/retrieval-query.d.ts +0 -5
  234. package/dist/memory/retrieval-query.d.ts.map +1 -1
  235. package/dist/memory/retrieval-query.js +0 -5
  236. package/dist/memory/retrieval-query.js.map +1 -1
  237. package/dist/memory/retrieval.d.ts.map +1 -1
  238. package/dist/memory/retrieval.js +25 -131
  239. package/dist/memory/retrieval.js.map +1 -1
  240. package/dist/memory/revisions.d.ts +76 -1
  241. package/dist/memory/revisions.d.ts.map +1 -1
  242. package/dist/memory/revisions.js +539 -35
  243. package/dist/memory/revisions.js.map +1 -1
  244. package/dist/memory/scoped-memory.d.ts +16 -1
  245. package/dist/memory/scoped-memory.d.ts.map +1 -1
  246. package/dist/memory/scoped-memory.js +240 -107
  247. package/dist/memory/scoped-memory.js.map +1 -1
  248. package/dist/memory/secrets.d.ts +2 -0
  249. package/dist/memory/secrets.d.ts.map +1 -1
  250. package/dist/memory/secrets.js +36 -0
  251. package/dist/memory/secrets.js.map +1 -1
  252. package/dist/memory/structured-memory.d.ts +3 -2
  253. package/dist/memory/structured-memory.d.ts.map +1 -1
  254. package/dist/memory/structured-memory.js +54 -22
  255. package/dist/memory/structured-memory.js.map +1 -1
  256. package/dist/memory/workspaces.d.ts +9 -0
  257. package/dist/memory/workspaces.d.ts.map +1 -1
  258. package/dist/memory/workspaces.js +67 -0
  259. package/dist/memory/workspaces.js.map +1 -1
  260. package/dist/package-version.d.ts +2 -0
  261. package/dist/package-version.d.ts.map +1 -0
  262. package/dist/package-version.js +7 -0
  263. package/dist/package-version.js.map +1 -0
  264. package/dist/repository/binding.d.ts +5 -0
  265. package/dist/repository/binding.d.ts.map +1 -1
  266. package/dist/repository/binding.js +117 -17
  267. package/dist/repository/binding.js.map +1 -1
  268. package/dist/repository/framework-version.d.ts +8 -0
  269. package/dist/repository/framework-version.d.ts.map +1 -0
  270. package/dist/repository/framework-version.js +29 -0
  271. package/dist/repository/framework-version.js.map +1 -0
  272. package/dist/repository/identity-value.d.ts +4 -0
  273. package/dist/repository/identity-value.d.ts.map +1 -0
  274. package/dist/repository/identity-value.js +24 -0
  275. package/dist/repository/identity-value.js.map +1 -0
  276. package/dist/repository/identity.d.ts.map +1 -1
  277. package/dist/repository/identity.js +2 -0
  278. package/dist/repository/identity.js.map +1 -1
  279. package/dist/repository/project-fingerprint.d.ts +14 -2
  280. package/dist/repository/project-fingerprint.d.ts.map +1 -1
  281. package/dist/repository/project-fingerprint.js +312 -33
  282. package/dist/repository/project-fingerprint.js.map +1 -1
  283. package/dist/repository/remote-url.d.ts +0 -1
  284. package/dist/repository/remote-url.d.ts.map +1 -1
  285. package/dist/repository/remote-url.js +0 -1
  286. package/dist/repository/remote-url.js.map +1 -1
  287. package/dist/runtime-version.d.ts +2 -1
  288. package/dist/runtime-version.d.ts.map +1 -1
  289. package/dist/runtime-version.js +21 -4
  290. package/dist/runtime-version.js.map +1 -1
  291. package/dist/serialization/boundary-json.d.ts +20 -0
  292. package/dist/serialization/boundary-json.d.ts.map +1 -0
  293. package/dist/serialization/boundary-json.js +129 -0
  294. package/dist/serialization/boundary-json.js.map +1 -0
  295. package/dist/serialization/envelope.js +1 -1
  296. package/dist/serialization/envelope.js.map +1 -1
  297. package/dist/serialization/validate.d.ts +7 -0
  298. package/dist/serialization/validate.d.ts.map +1 -1
  299. package/dist/serialization/validate.js +53 -13
  300. package/dist/serialization/validate.js.map +1 -1
  301. package/dist/server/app.js +1 -1
  302. package/dist/server/app.js.map +1 -1
  303. package/dist/server/http.d.ts +4 -3
  304. package/dist/server/http.d.ts.map +1 -1
  305. package/dist/server/http.js +90 -50
  306. package/dist/server/http.js.map +1 -1
  307. package/dist/server/idempotency.d.ts +0 -6
  308. package/dist/server/idempotency.d.ts.map +1 -1
  309. package/dist/server/idempotency.js.map +1 -1
  310. package/dist/server/router.d.ts.map +1 -1
  311. package/dist/server/router.js +21 -4
  312. package/dist/server/router.js.map +1 -1
  313. package/dist/server/routes/agent-capability-gate.d.ts +40 -0
  314. package/dist/server/routes/agent-capability-gate.d.ts.map +1 -0
  315. package/dist/server/routes/agent-capability-gate.js +182 -0
  316. package/dist/server/routes/agent-capability-gate.js.map +1 -0
  317. package/dist/server/routes/agent-events.d.ts.map +1 -1
  318. package/dist/server/routes/agent-events.js +8 -1
  319. package/dist/server/routes/agent-events.js.map +1 -1
  320. package/dist/server/routes/agent-intake.d.ts.map +1 -1
  321. package/dist/server/routes/agent-intake.js +10 -2
  322. package/dist/server/routes/agent-intake.js.map +1 -1
  323. package/dist/server/routes/agent-promotions.d.ts.map +1 -1
  324. package/dist/server/routes/agent-promotions.js +5 -2
  325. package/dist/server/routes/agent-promotions.js.map +1 -1
  326. package/dist/server/routes/agent-runs.d.ts.map +1 -1
  327. package/dist/server/routes/agent-runs.js +18 -4
  328. package/dist/server/routes/agent-runs.js.map +1 -1
  329. package/dist/server/routes/request-binding.d.ts +5 -0
  330. package/dist/server/routes/request-binding.d.ts.map +1 -0
  331. package/dist/server/routes/request-binding.js +49 -0
  332. package/dist/server/routes/request-binding.js.map +1 -0
  333. package/dist/server/routes/task5-support.d.ts +1 -8
  334. package/dist/server/routes/task5-support.d.ts.map +1 -1
  335. package/dist/server/routes/task5-support.js +1 -17
  336. package/dist/server/routes/task5-support.js.map +1 -1
  337. package/dist/server/routes/task5.d.ts.map +1 -1
  338. package/dist/server/routes/task5.js +106 -36
  339. package/dist/server/routes/task5.js.map +1 -1
  340. package/dist/server/write-queue.js +2 -2
  341. package/dist/server/write-queue.js.map +1 -1
  342. package/dist/setup/claude-config.d.ts +2 -1
  343. package/dist/setup/claude-config.d.ts.map +1 -1
  344. package/dist/setup/claude-config.js +54 -4
  345. package/dist/setup/claude-config.js.map +1 -1
  346. package/dist/setup/client-detection.d.ts +7 -2
  347. package/dist/setup/client-detection.d.ts.map +1 -1
  348. package/dist/setup/client-detection.js +27 -9
  349. package/dist/setup/client-detection.js.map +1 -1
  350. package/dist/setup/hermes-config.d.ts +2 -1
  351. package/dist/setup/hermes-config.d.ts.map +1 -1
  352. package/dist/setup/hermes-config.js +53 -12
  353. package/dist/setup/hermes-config.js.map +1 -1
  354. package/dist/setup/legacy-client-cleanup.d.ts +6 -0
  355. package/dist/setup/legacy-client-cleanup.d.ts.map +1 -0
  356. package/dist/setup/legacy-client-cleanup.js +152 -0
  357. package/dist/setup/legacy-client-cleanup.js.map +1 -0
  358. package/dist/setup/managed-text.d.ts.map +1 -1
  359. package/dist/setup/managed-text.js +11 -1
  360. package/dist/setup/managed-text.js.map +1 -1
  361. package/dist/setup/opencode-config.d.ts +2 -1
  362. package/dist/setup/opencode-config.d.ts.map +1 -1
  363. package/dist/setup/opencode-config.js +57 -5
  364. package/dist/setup/opencode-config.js.map +1 -1
  365. package/dist/setup/render.d.ts +2 -1
  366. package/dist/setup/render.d.ts.map +1 -1
  367. package/dist/setup/render.js +91 -17
  368. package/dist/setup/render.js.map +1 -1
  369. package/dist/setup/standard-skills.d.ts +16 -2
  370. package/dist/setup/standard-skills.d.ts.map +1 -1
  371. package/dist/setup/standard-skills.js +37 -13
  372. package/dist/setup/standard-skills.js.map +1 -1
  373. package/dist/setup/strict-json.d.ts +7 -0
  374. package/dist/setup/strict-json.d.ts.map +1 -0
  375. package/dist/setup/strict-json.js +98 -0
  376. package/dist/setup/strict-json.js.map +1 -0
  377. package/dist/setup/strict-toml.d.ts +7 -0
  378. package/dist/setup/strict-toml.d.ts.map +1 -0
  379. package/dist/setup/strict-toml.js +470 -0
  380. package/dist/setup/strict-toml.js.map +1 -0
  381. package/dist/skills/cache.d.ts +15 -0
  382. package/dist/skills/cache.d.ts.map +1 -0
  383. package/dist/skills/cache.js +19 -0
  384. package/dist/skills/cache.js.map +1 -0
  385. package/dist/skills/candidate-ranking.d.ts +15 -0
  386. package/dist/skills/candidate-ranking.d.ts.map +1 -0
  387. package/dist/skills/candidate-ranking.js +52 -0
  388. package/dist/skills/candidate-ranking.js.map +1 -0
  389. package/dist/skills/chunking.d.ts +11 -0
  390. package/dist/skills/chunking.d.ts.map +1 -0
  391. package/dist/skills/chunking.js +291 -0
  392. package/dist/skills/chunking.js.map +1 -0
  393. package/dist/skills/config.d.ts +19 -0
  394. package/dist/skills/config.d.ts.map +1 -0
  395. package/dist/skills/config.js +103 -0
  396. package/dist/skills/config.js.map +1 -0
  397. package/dist/skills/discovery-service.d.ts +26 -0
  398. package/dist/skills/discovery-service.d.ts.map +1 -0
  399. package/dist/skills/discovery-service.js +921 -0
  400. package/dist/skills/discovery-service.js.map +1 -0
  401. package/dist/skills/external-transport.d.ts +2 -0
  402. package/dist/skills/external-transport.d.ts.map +1 -0
  403. package/dist/skills/external-transport.js +30 -0
  404. package/dist/skills/external-transport.js.map +1 -0
  405. package/dist/skills/find.d.ts +16 -0
  406. package/dist/skills/find.d.ts.map +1 -0
  407. package/dist/skills/find.js +58 -0
  408. package/dist/skills/find.js.map +1 -0
  409. package/dist/skills/gap-detection.d.ts +23 -0
  410. package/dist/skills/gap-detection.d.ts.map +1 -0
  411. package/dist/skills/gap-detection.js +62 -0
  412. package/dist/skills/gap-detection.js.map +1 -0
  413. package/dist/skills/import-preparation.d.ts +4 -0
  414. package/dist/skills/import-preparation.d.ts.map +1 -0
  415. package/dist/skills/import-preparation.js +20 -0
  416. package/dist/skills/import-preparation.js.map +1 -0
  417. package/dist/skills/materialization-authority.d.ts +11 -0
  418. package/dist/skills/materialization-authority.d.ts.map +1 -0
  419. package/dist/skills/materialization-authority.js +92 -0
  420. package/dist/skills/materialization-authority.js.map +1 -0
  421. package/dist/skills/materialization-service.d.ts +22 -0
  422. package/dist/skills/materialization-service.d.ts.map +1 -0
  423. package/dist/skills/materialization-service.js +101 -0
  424. package/dist/skills/materialization-service.js.map +1 -0
  425. package/dist/skills/official-catalog.d.ts +31 -0
  426. package/dist/skills/official-catalog.d.ts.map +1 -0
  427. package/dist/skills/official-catalog.js +110 -0
  428. package/dist/skills/official-catalog.js.map +1 -0
  429. package/dist/skills/providers/schema.d.ts +30 -0
  430. package/dist/skills/providers/schema.d.ts.map +1 -0
  431. package/dist/skills/providers/schema.js +354 -0
  432. package/dist/skills/providers/schema.js.map +1 -0
  433. package/dist/skills/providers/skills-sh-compat.d.ts +17 -0
  434. package/dist/skills/providers/skills-sh-compat.d.ts.map +1 -0
  435. package/dist/skills/providers/skills-sh-compat.js +71 -0
  436. package/dist/skills/providers/skills-sh-compat.js.map +1 -0
  437. package/dist/skills/providers/skills-sh-v1.d.ts +23 -0
  438. package/dist/skills/providers/skills-sh-v1.d.ts.map +1 -0
  439. package/dist/skills/providers/skills-sh-v1.js +134 -0
  440. package/dist/skills/providers/skills-sh-v1.js.map +1 -0
  441. package/dist/skills/query-builder.d.ts +18 -0
  442. package/dist/skills/query-builder.d.ts.map +1 -0
  443. package/dist/skills/query-builder.js +93 -0
  444. package/dist/skills/query-builder.js.map +1 -0
  445. package/dist/skills/source/errors.d.ts +9 -0
  446. package/dist/skills/source/errors.d.ts.map +1 -0
  447. package/dist/skills/source/errors.js +15 -0
  448. package/dist/skills/source/errors.js.map +1 -0
  449. package/dist/skills/source/frontmatter.d.ts +9 -0
  450. package/dist/skills/source/frontmatter.d.ts.map +1 -0
  451. package/dist/skills/source/frontmatter.js +77 -0
  452. package/dist/skills/source/frontmatter.js.map +1 -0
  453. package/dist/skills/source/github-fetcher.d.ts +20 -0
  454. package/dist/skills/source/github-fetcher.d.ts.map +1 -0
  455. package/dist/skills/source/github-fetcher.js +292 -0
  456. package/dist/skills/source/github-fetcher.js.map +1 -0
  457. package/dist/skills/source/snapshot-validator.d.ts +28 -0
  458. package/dist/skills/source/snapshot-validator.d.ts.map +1 -0
  459. package/dist/skills/source/snapshot-validator.js +186 -0
  460. package/dist/skills/source/snapshot-validator.js.map +1 -0
  461. package/dist/skills/store.d.ts +181 -0
  462. package/dist/skills/store.d.ts.map +1 -0
  463. package/dist/skills/store.js +1710 -0
  464. package/dist/skills/store.js.map +1 -0
  465. package/dist/skills/types.d.ts +169 -0
  466. package/dist/skills/types.d.ts.map +1 -0
  467. package/dist/skills/types.js +2 -0
  468. package/dist/skills/types.js.map +1 -0
  469. package/dist/web/i18n.d.ts +32 -0
  470. package/dist/web/i18n.d.ts.map +1 -1
  471. package/dist/web/i18n.js +128 -0
  472. package/dist/web/i18n.js.map +1 -1
  473. package/dist/web/server.d.ts.map +1 -1
  474. package/dist/web/server.js +386 -38
  475. package/dist/web/server.js.map +1 -1
  476. package/dist/web/ui.d.ts +4 -0
  477. package/dist/web/ui.d.ts.map +1 -1
  478. package/dist/web/ui.js +382 -6
  479. package/dist/web/ui.js.map +1 -1
  480. package/migrations/009_external_skill_discovery.sql +126 -0
  481. package/package.json +4 -3
  482. package/skills/kiokuko-single-purpose-functions/SKILL.md +288 -0
  483. package/skills/kiokuko-single-purpose-functions/references/kiokuko-patterns.md +344 -0
  484. package/skills/kiokuko-single-purpose-functions/references/review-checklist.md +97 -0
  485. package/skills/kiokuko-ui-design-soul/SKILL.md +1186 -28
  486. package/templates/AGENTS.md +8 -7
  487. package/dist/client/runtime-discovery.d.ts +0 -15
  488. package/dist/client/runtime-discovery.d.ts.map +0 -1
  489. package/dist/client/runtime-discovery.js +0 -45
  490. package/dist/client/runtime-discovery.js.map +0 -1
  491. package/dist/commands/call.d.ts +0 -7
  492. package/dist/commands/call.d.ts.map +0 -1
  493. package/dist/commands/call.js +0 -10
  494. package/dist/commands/call.js.map +0 -1
  495. package/dist/commands/link.d.ts +0 -6
  496. package/dist/commands/link.d.ts.map +0 -1
  497. package/dist/commands/link.js +0 -6
  498. package/dist/commands/link.js.map +0 -1
  499. package/dist/commands/promote.d.ts +0 -6
  500. package/dist/commands/promote.d.ts.map +0 -1
  501. package/dist/commands/promote.js +0 -6
  502. package/dist/commands/promote.js.map +0 -1
  503. package/dist/commands/read.d.ts +0 -6
  504. package/dist/commands/read.d.ts.map +0 -1
  505. package/dist/commands/read.js +0 -4
  506. package/dist/commands/read.js.map +0 -1
  507. package/dist/commands/recall.d.ts +0 -6
  508. package/dist/commands/recall.d.ts.map +0 -1
  509. package/dist/commands/recall.js +0 -4
  510. package/dist/commands/recall.js.map +0 -1
  511. package/dist/commands/record.d.ts +0 -6
  512. package/dist/commands/record.d.ts.map +0 -1
  513. package/dist/commands/record.js +0 -4
  514. package/dist/commands/record.js.map +0 -1
  515. package/dist/commands/search.d.ts +0 -6
  516. package/dist/commands/search.d.ts.map +0 -1
  517. package/dist/commands/search.js +0 -4
  518. package/dist/commands/search.js.map +0 -1
  519. package/dist/commands/supersede.d.ts +0 -6
  520. package/dist/commands/supersede.d.ts.map +0 -1
  521. package/dist/commands/supersede.js +0 -6
  522. package/dist/commands/supersede.js.map +0 -1
  523. package/dist/knowledge/sources.d.ts +0 -72
  524. package/dist/knowledge/sources.d.ts.map +0 -1
  525. package/dist/knowledge/sources.js +0 -388
  526. package/dist/knowledge/sources.js.map +0 -1
  527. package/dist/setup/opencode-evidence.d.ts +0 -37
  528. package/dist/setup/opencode-evidence.d.ts.map +0 -1
  529. package/dist/setup/opencode-evidence.js +0 -58
  530. package/dist/setup/opencode-evidence.js.map +0 -1
  531. package/dist/setup/opencode-loop-guard.d.ts +0 -9
  532. package/dist/setup/opencode-loop-guard.d.ts.map +0 -1
  533. package/dist/setup/opencode-loop-guard.js +0 -248
  534. package/dist/setup/opencode-loop-guard.js.map +0 -1
package/README.md CHANGED
@@ -1,309 +1,150 @@
1
- # Kiokuko
1
+ # Kiokuko (Memory Store)
2
2
 
3
3
  English | [日本語](README.ja.md) | [简体中文](README.zh-CN.md) | [한국어](README.ko.md)
4
4
 
5
- Kiokuko(記憶庫) is model-agnostic external memory for AI coding agents. One global npm
6
- installation stores structured memory in the current user's SQLite database and
7
- exposes guided task preparation plus recall/checkpoint tools to Codex, OpenCode,
8
- Claude Code, and Hermes Agent over native stdio MCP.
5
+ **Connect via MCP, recall with RAG, and store memories after each task.**
9
6
 
10
- The name **Kiokuko** comes from the Japanese **記憶庫**: **記憶** means
11
- "memory," and **庫** means "storehouse," so the name describes a place for
12
- storing memories.
7
+ Kiokuko is external memory for AI coding agents.
13
8
 
14
- ## Install and enable globally
9
+ It stores knowledge gained from past work in local SQLite, then searches for and passes only relevant memories to the AI in the next request.
15
10
 
16
- Node.js 24 or newer is required.
11
+ Users do not need to paste past context into every prompt or search for memories manually. By simply using AI as usual, project-specific knowledge gradually accumulates and can be reused in the next task.
12
+
13
+ ## Get started quickly
14
+
15
+ Node.js 24.16 or newer is required.
16
+ Get started easily with these two commands 💕
17
17
 
18
18
  ```bash
19
19
  npm install --global @askdkc/kiokuko
20
20
  kiokuko setup
21
21
  ```
22
22
 
23
- The no-argument command checks `PATH` for each supported client executable
24
- (`codex`, `opencode`, `claude`, and `hermes`). In an interactive terminal,
25
- setup displays a checked-choice list with detected clients preselected;
26
- pressing Enter accepts that selection. You can enter client names or numbers
27
- separated by commas to change it, or `none` to configure no clients. In
28
- `--json` and non-TTY runs, setup remains non-interactive and configures only
29
- detected clients. When `hermes` is detected, Kiokuko asks it for the active
30
- profile with `hermes config path`; otherwise it uses the valid `active_profile`
31
- marker or the default `$HOME/.hermes` root. If no supported client is detected
32
- and no interactive selection is made, setup initializes the database but writes
33
- no client configuration. Use `--clients` to configure a client explicitly;
34
- explicit selection always takes precedence.
35
-
36
- The npm package name is `@askdkc/kiokuko`; the installed CLI command remains
37
- `kiokuko`.
38
-
39
- Restart the clients reported by setup. Hermes can
40
- reload the MCP registry with `/reload-mcp`, but a restart or new session is still
41
- required to discover an updated standard skill; smoke-test the active Hermes
42
- profile with `hermes mcp test kiokuko`. Codex, OpenCode, and Claude Code use their existing
43
- instruction surfaces to request Kiokuko before non-trivial work and after durable
44
- work. Hermes uses its profile-scoped native MCP registration only: Kiokuko does not
45
- create a global instruction file, Hermes plugin, or Hermes hook.
46
-
47
- `setup` is explicit and idempotent. npm `postinstall` never edits AI-client
48
- configuration. Existing TOML/JSON/JSONC/YAML settings, comments, instruction content, line endings,
49
- and file modes are preserved; Kiokuko owns only its managed sections. By default,
50
- setup also installs the bundled `kiokuko-ui-design-soul` skill from a fixed local
51
- manifest. It performs no setup-time download or HIG scraping.
52
-
53
- When an existing database has pending migrations, setup first creates and
54
- integrity-checks a backup in the adjacent `backups/` directory under the current
55
- user's data directory. A
56
- database written by a newer Kiokuko version is rejected without modification.
23
+ `setup` detects supported clients that are installed and automatically configures the SQLite database and MCP connection.
24
+ Interactive setup asks whether audited community Skills may also be used as reference material; the default answer is no.
25
+ Model-facing memory enters a task only through the capability-gated `task_prepare`
26
+ and `task_answer` MCP tools. Kiokuko installs no client hook or plugin that
27
+ silently recalls memory before those calls.
28
+
29
+ After setup, launch the target AI client and use it as usual. If it is already running, quit it once and restart it.
30
+
31
+ Supported clients:
32
+
33
+ - Codex
34
+ - OpenCode
35
+ - Claude Code
36
+ - Hermes Agent
37
+
38
+ ## How it gets smarter with use
39
+
40
+ ```text
41
+ User request
42
+
43
+ Search relevant past memories
44
+
45
+ AI uses the memories to do the work
46
+
47
+ Store reusable results and lessons
48
+
49
+ Search again in the next request
50
+ ```
57
51
 
58
- ```bash
59
- # Preview exact target files without writing anything
60
- kiokuko setup --dry-run --json
52
+ Kiokuko repeats the following flow.
61
53
 
62
- # Configure only one client
63
- kiokuko setup --clients codex
64
- kiokuko setup --clients opencode
65
- kiokuko setup --clients claude
66
- kiokuko setup --clients hermes
54
+ 1. Before work, search the current project and Global memory
55
+ 2. Pass only highly relevant memories to the AI
56
+ 3. The AI performs the work
57
+ 4. After the work, store reusable knowledge as memory
58
+ 5. Reuse that memory in the next task
67
59
 
68
- # Use an absolute executable path if the client process does not inherit npm's PATH
69
- kiokuko setup --command /absolute/path/to/kiokuko
60
+ In other words, Kiokuko is a **RAG system that accumulates persistent memory**.
70
61
 
71
- # Skip new standard-skill placement; an existing managed copy is not deleted
72
- kiokuko setup --no-standard-skills
73
- ```
62
+ MCP connects the AI client to Kiokuko, while RAG searches for the memories needed and passes them to the AI.
74
63
 
75
- Hermes setup is profile-scoped. A named profile such as
76
- `$HOME/.hermes/profiles/work/config.yaml` receives the MCP config and standard
77
- skill; the root and inactive profiles are not modified. A temporary
78
- `hermes -p <name>` selection in another process is not inferred by setup. To
79
- target a named profile explicitly, pass its profile directory as
80
- `HERMES_HOME`:
64
+ ## Memory is separated by project
81
65
 
82
- ```bash
83
- HERMES_HOME="$HOME/.hermes/profiles/work" kiokuko setup --clients hermes
84
- ```
66
+ Ordinary searches do not mix in memories from unrelated projects.
85
67
 
86
- If a desktop process cannot find `kiokuko` through its `PATH`, migrate the
87
- managed command to an absolute executable path. Do not pass an empty result
88
- from `command -v`:
68
+ - **Project memory**
69
+ Knowledge used only in the current repository
89
70
 
90
- ```bash
91
- KIOKUKO_BIN="$(command -v kiokuko)"
92
- test -n "$KIOKUKO_BIN" && test -x "$KIOKUKO_BIN" || {
93
- echo "kiokuko executable not found" >&2
94
- exit 1
95
- }
96
- kiokuko setup --clients hermes --command "$KIOKUKO_BIN"
97
- ```
71
+ - **Ecosystem memory**
72
+ Knowledge kept in its source project and reused only when its language, framework, database, runtime, tool, or other applicability constraints match the current project
73
+
74
+ - **Global memory**
75
+ Knowledge explicitly generalized for reuse across projects without depending on one particular project
76
+
77
+ Matching free-form tags alone does not expose Project memory to other projects. Ecosystem retrieval checks both the memory's structured applicability and the technology fingerprint detected from the current project. Memories containing project-specific paths or identifiers are excluded.
78
+
79
+ Projects are automatically identified from Git remotes or paths.
98
80
 
99
- The setup targets are:
100
-
101
- | Client | MCP config | Global instructions | Runtime guard | Standard skill |
102
- |---|---|---|---|---|
103
- | Codex | `$CODEX_HOME/config.toml` or `~/.codex/config.toml` | `$CODEX_HOME/AGENTS.md` or `~/.codex/AGENTS.md` | — | `~/.agents/skills/kiokuko-ui-design-soul` |
104
- | OpenCode | `$XDG_CONFIG_HOME/opencode/opencode.json` or `~/.config/opencode/opencode.json` | the adjacent `AGENTS.md` | `plugins/kiokuko-loop-guard.js` | global config `skills/kiokuko-ui-design-soul` |
105
- | Claude Code | `$CLAUDE_CONFIG_DIR/.claude.json` or `~/.claude.json` | `$CLAUDE_CONFIG_DIR/CLAUDE.md` or `~/.claude/CLAUDE.md` | — | Claude config `skills/kiokuko-ui-design-soul` |
106
- | Hermes Agent | effective profile `config.yaml` under `$HERMES_HOME`, `$HOME/.hermes`, or `%LOCALAPPDATA%/hermes` | none | none | effective profile `skills/kiokuko-ui-design-soul` |
107
-
108
- Hermes is configured as a profile-scoped native stdio MCP server with `command: kiokuko` and `args: [mcp]`. A managed canonical entry can have its `command` migrated with `--command`; `args`, comments, and other servers are preserved. Unmanaged entries, extra fields, and non-`mcp` args remain conflicts. `setup` follows `hermes config path` when available, then a valid sticky `active_profile` when `HERMES_HOME` is a root, and never silently falls back from a missing named profile.
109
-
110
- If an OpenCode `opencode.jsonc` already exists, Kiokuko updates that file and
111
- preserves comments. If Codex already has an unmanaged
112
- `[mcp_servers.kiokuko]` table, setup refuses to guess which configuration to
113
- overwrite. The managed OpenCode guard caps visible agents at 12 steps, permits
114
- `task_prepare` and `memory_checkpoint` only once per user request, closes tool
115
- use after a checkpoint, and stops repeated calls or read-only discovery results
116
- after three unchanged iterations. It keeps its counters and fingerprints in
117
- process memory only.
118
-
119
- Each bundled skill file carries a Kiokuko management marker. Setup replaces only
120
- the fixed known files, reports exact matches as unchanged, and leaves unrelated
121
- sibling files alone. If a same-name skill file lacks the marker, setup stops with
122
- `CONFLICT` before any file or database write.
123
-
124
- ## Memory scope
125
-
126
- The database is global to the OS user, but ordinary recall is not a global
127
- full-database search:
128
-
129
- - `project` memory is resolved automatically from `.kiokuko.json`, the known
130
- canonical path, or the Git remote. Another project's memory is excluded.
131
- - `global` memory is reserved for genuinely cross-project preferences and
132
- lessons. New global lessons should include applicability (language,
133
- framework, runtime, database, tool, or platform) or an explicit portable
134
- reason; unscoped global candidates are penalized during task preparation.
135
- - default `auto` recall returns only the current project plus global memory.
136
- - a repository without a remote gets a stable path-derived identity. Kiokuko
137
- does not write anything into the repository during automatic resolution.
138
-
139
- The MCP surface is deliberately small:
140
-
141
- - `task_prepare`: once per user request, run the Akinator intake, open a
142
- lightweight execution-ledger run, and return one bounded ranked context
143
- delivery from the current project plus applicable global memory. The run and
144
- delivery IDs are returned for the final checkpoint.
145
- - `task_answer`: continue an intake only with an answer grounded in the user
146
- request or verified repository evidence.
147
- - `memory_recall`: read bounded project/global context, always marked untrusted.
148
- - `curator_check`: before the final checkpoint, return only skill-ready
149
- candidates by default. A qualified hit is a completed, actionable Akinator
150
- path with fresh verification or a passing test; retrieval frequency is never
151
- counted.
152
- - `curator_globalize`: store one revision-checked regenerated draft only after
153
- the user explicitly approves the displayed skill name and three-line overview.
154
- - `memory_checkpoint`: once at the end of a user request, atomically store
155
- candidate memory, bounded evidence, context feedback, ledger links, and the
156
- terminal run outcome. It also records the Akinator narrowing path for each
157
- proposed memory. Secret-like content, absolute paths, raw output, and
158
- unbounded evidence are rejected.
159
-
160
- Search uses additive hybrid lanes: exact structured signals, word FTS5,
161
- trigram substring FTS5, bounded literal fallback, and exact tags. Existing
162
- word-search data remains intact across migrations. Use
163
- `kiokuko setup --clients opencode --opencode-capture minimal|standard` to opt
164
- into in-memory OpenCode evidence metadata, and add
165
- `--opencode-mode strict` only when mutating tools must follow `task_prepare`.
166
-
167
- ## Curator
168
-
169
- `kiokuko curator` finds project candidate memories that look reusable across
170
- projects. It deterministically removes project identifiers and paths, then
171
- regenerates a portable draft with purpose, procedure, applicability, and
172
- verification sections. It prints the skill name, a three-line overview, and
173
- the full draft before asking for explicit confirmation. Curator separately
174
- reports qualified hits, independent runs, workspaces, and abstraction-to-action
175
- silo completeness. Use `--skill-ready-only` for the filtered periodic-prompt
176
- set, `--json` to inspect candidates without changing memory, `--yes` only for
177
- an explicit batch confirmation, or `--entry-id <id>` to review one entry:
81
+ To move Project memory to Global memory, review the candidate with Curator and explicitly approve it.
178
82
 
179
83
  ```bash
180
84
  kiokuko curator
181
- kiokuko curator --json
182
- kiokuko curator --skill-ready-only
183
- kiokuko curator --entry-id <entry-id>
184
85
  ```
185
86
 
186
- The Web UI has a Curator button that lists curation candidates across all
187
- project workspaces. Each candidate keeps its source workspace, can be selected
188
- or skipped in the checklist, and selected candidates are added in one explicit
189
- user action. The generated draft—not the original project-specific body—is
190
- stored as the Global entry. The generator is local and deterministic; it does
191
- not call an external LLM. Globalized entries retain source workspace, source
192
- revision, and provenance, and remain untrusted candidates until separately
193
- promoted.
194
-
195
- This is instruction-driven automatic use for clients with instruction surfaces,
196
- not prompt interception. Codex, OpenCode, Claude Code, and Hermes Agent can still
197
- choose not to call a tool on a particular turn; Hermes automatic/model use is best
198
- effort from MCP tool descriptions. Hermes's built-in memory and skills
199
- remain separate. Kiokuko does not capture full transcripts or install fetched skills,
200
- create a Hermes global instruction file, or silently promote memory to verified
201
- status. The bounded local loop guard described above is the only plugin installed
202
- for OpenCode; the bundled standard skill is a native client skill, not a plugin.
203
-
204
- ## Development
87
+ ## Review your memories
88
+
89
+ The local Web UI lets you search, review, and edit saved memories.
205
90
 
206
91
  ```bash
207
- npm install
208
- npm run typecheck
209
- npm test
210
- npm run build
211
- npm pack --dry-run
92
+ kiokuko web
212
93
  ```
213
94
 
214
- ## Development usage
95
+ Open the following address in your browser.
215
96
 
216
- ```bash
217
- npm exec -- tsx src/bin/kiokuko.ts setup --dry-run --json
218
- npm exec -- tsx src/bin/kiokuko.ts mcp
97
+ ```text
98
+ http://127.0.0.1:4173
219
99
  ```
220
100
 
221
- `kiokuko use` remains optional for a portable explicit binding. It creates
222
- `.kiokuko.json` and a managed block in `AGENTS.md`; normal MCP use no longer
223
- requires it.
224
-
225
- ## Akinator-style knowledge intake
226
-
227
- For non-trivial work, the installed agent instructions call `task_prepare`.
228
- The Akinator is an active reasoning guide, not a popularity counter or a fixed
229
- profile form. It starts with competing action families, uses each question to
230
- discriminate among or concretize them, and returns an abstraction-to-action silo:
231
- intent, action family, target, success state, selected action, verification, and
232
- stop conditions. It asks only for missing high-value fields such as the task
233
- type, target, and observable success condition, then selects local memory by
234
- query and role and purpose tags.
235
- If the client supplies complete capability names with short descriptions, the
236
- result also identifies matching capabilities and clearly distinguishes
237
- available, missing, and unknown skills. The catalog is compacted per item,
238
- ephemeral, and is not stored. The CLI `guide` commands expose the same intake
239
- for manual use:
240
-
241
- For tasks containing concrete UI vocabulary such as UI, UX, frontend, screen,
242
- SwiftUI, or accessibility, `task_prepare` explicitly recommends
243
- `kiokuko-ui-design-soul` when it is present in the client catalog. Generic
244
- `design`, backend-only work, and image-only generation do not trigger it.
101
+ The Web UI runs only in the local environment and is not exposed to external networks.
102
+ The Web UI and explicit memory CLI commands are human/operator management
103
+ surfaces. They are not model task-entry fallbacks for `task_prepare` and
104
+ `task_answer`.
105
+
106
+ ## External Skills
107
+
108
+ External skill discovery is reference-only and uses `official` mode by default
109
+ during Akinator task preparation. Kiokuko verifies the current GitHub commit,
110
+ stores bounded content as untrusted candidate memory, and never installs or
111
+ executes it. Set `KIOKUKO_SKILL_DISCOVERY=off` to disable automatic discovery;
112
+ `community` remains explicit opt-in. Interactive `kiokuko setup` asks before
113
+ enabling it; batch setup can use `--skill-discovery community`.
114
+
115
+ Example commands:
245
116
 
246
117
  ```bash
247
- kiokuko guide start "Implement the API change and add tests" \
248
- --workspace <workspace> --json
249
- kiokuko guide answer <session-id> --workspace <workspace> \
250
- --question-id target --value src/api.ts --json
251
- kiokuko guide answer <session-id> --workspace <workspace> \
252
- --question-id expected --value "All tests pass" --json
253
- kiokuko guide context <session-id> --workspace <workspace> --json
118
+ kiokuko skills find svelte --official-only --json
119
+ kiokuko skills list
120
+ kiokuko skills disable sveltejs/ai-tools/svelte-code-writer
121
+ kiokuko skills refresh sveltejs/ai-tools/svelte-code-writer
254
122
  ```
255
123
 
256
- If local retrieval produces no relevant entries and the client explicitly
257
- supplies an empty capability catalog, `task_prepare` can fetch the current
258
- `main` tree
259
- from the single allowlisted fallback repository:
124
+ The Web UI's External Skills screen can inspect source state and disable or
125
+ re-enable imported mappings. It has no install, script, or MCP registration action.
260
126
 
261
- - https://github.com/mattpocock/skills
127
+ ## Security
262
128
 
263
- An omitted, malformed, or non-empty capability catalog means this fallback is
264
- disabled. Manual CLI use must state the same condition explicitly with
265
- `guide context ... --no-client-skills`.
266
- Skills marked `disable-model-invocation: true` are excluded from automatic
267
- selection.
129
+ Kiokuko does not store full conversations.
268
130
 
269
- Each imported entry records its repository, commit SHA, and source path. It is
270
- untrusted reference material and is never auto-promoted to `verified` or
271
- executed as a command. Repeated sync is content-hash idempotent.
131
+ It refuses to store content that looks like a secret, such as passwords, API keys, tokens, or private keys.
272
132
 
273
- ## Local web UI
133
+ Saved memories are always treated as reference information. Current code, configuration, and execution results take precedence over past memories.
274
134
 
275
- Start a loopback-only HTTP server to browse memory entries by role and purpose,
276
- memory type, and cross-cutting tags, and edit candidate entries from the browser:
135
+ External skill discovery is a reference-only feature. Akinator uses `official`
136
+ mode by default; set `KIOKUKO_SKILL_DISCOVERY=off` to disable it or `community`
137
+ to include audited community candidates. External skills are commit-pinned,
138
+ stored as untrusted candidate references, and are never installed or executed
139
+ automatically.
277
140
 
278
- ```bash
279
- kiokuko web
280
- # open http://127.0.0.1:4173
281
- ```
141
+ ## Note
282
142
 
283
- For local development from a source checkout, build the package and start the
284
- compiled Web UI explicitly:
143
+ Kiokuko is not a prompt interception mechanism. Automatic use depends on MCP calls from each AI client and model, so there is no guarantee that it will be called on every turn.
144
+
145
+ See the following for more detailed commands.
285
146
 
286
147
  ```bash
287
- npm run build
288
- node dist/bin/kiokuko.js web --host 127.0.0.1 --port 4173
148
+ kiokuko --help
149
+ kiokuko setup --help
289
150
  ```
290
-
291
- The UI supports English, Japanese, Simplified Chinese, and Korean. It uses the
292
- browser language on first use, persists an explicit language selection in the
293
- browser, and accepts `?lang=en`, `?lang=ja`, `?lang=zh-CN`, or `?lang=ko` as an
294
- override.
295
-
296
- Use `--port 0` to select an available port, or `--json` to print the selected
297
- URL as JSON. The web UI does not expose the server on non-loopback interfaces.
298
- Verified and superseded entries are read-only; editing a candidate uses an
299
- optimistic revision check and preserves the audit trail.
300
- Tags such as `bot:researcher`, `bot:builder`, and `bot:reviewer` can be used as
301
- cross-genre filters. Clicking a tag in an entry or in the sidebar shows every
302
- matching entry regardless of its memory type.
303
-
304
- Memory entries are untrusted stored data. Verify current files and runtime
305
- state before relying on historical entries. Never store passwords, API keys,
306
- tokens, private keys, or session cookies.
307
-
308
- This repository is not published automatically. `npm publish`, commits, and
309
- pushes require explicit user authorization.