@agentmemory/agentmemory 0.9.30 → 0.9.31

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 (331) hide show
  1. package/.env.example +39 -33
  2. package/AGENTS.md +8 -8
  3. package/README.md +173 -558
  4. package/dist/.env.example +39 -33
  5. package/dist/cli.d.mts.map +1 -1
  6. package/dist/cli.mjs +1741 -966
  7. package/dist/cli.mjs.map +1 -1
  8. package/dist/compression-recovery-CnhLQC6N.mjs +5912 -0
  9. package/dist/compression-recovery-CnhLQC6N.mjs.map +1 -0
  10. package/dist/{connect-B4_ca6BD.mjs → connect-BSLIAMpw.mjs} +874 -267
  11. package/dist/connect-BSLIAMpw.mjs.map +1 -0
  12. package/dist/hooks/_capture.d.mts +5 -2
  13. package/dist/hooks/_capture.d.mts.map +1 -1
  14. package/dist/hooks/_capture.mjs +55 -19
  15. package/dist/hooks/_capture.mjs.map +1 -1
  16. package/dist/hooks/notification.mjs +20 -6
  17. package/dist/hooks/notification.mjs.map +1 -1
  18. package/dist/hooks/post-commit.mjs +25 -5
  19. package/dist/hooks/post-commit.mjs.map +1 -1
  20. package/dist/hooks/post-tool-failure.mjs +12 -4
  21. package/dist/hooks/post-tool-failure.mjs.map +1 -1
  22. package/dist/hooks/post-tool-use.mjs +12 -4
  23. package/dist/hooks/post-tool-use.mjs.map +1 -1
  24. package/dist/hooks/pre-compact.mjs +37 -10
  25. package/dist/hooks/pre-compact.mjs.map +1 -1
  26. package/dist/hooks/pre-tool-use.mjs +25 -5
  27. package/dist/hooks/pre-tool-use.mjs.map +1 -1
  28. package/dist/hooks/prompt-submit.mjs +12 -4
  29. package/dist/hooks/prompt-submit.mjs.map +1 -1
  30. package/dist/hooks/session-end.mjs +47 -16
  31. package/dist/hooks/session-end.mjs.map +1 -1
  32. package/dist/hooks/session-start.mjs +37 -10
  33. package/dist/hooks/session-start.mjs.map +1 -1
  34. package/dist/hooks/stop.mjs +74 -72
  35. package/dist/hooks/stop.mjs.map +1 -1
  36. package/dist/hooks/subagent-start.mjs +13 -5
  37. package/dist/hooks/subagent-start.mjs.map +1 -1
  38. package/dist/hooks/subagent-stop.mjs +18 -6
  39. package/dist/hooks/subagent-stop.mjs.map +1 -1
  40. package/dist/hooks/task-completed.mjs +13 -5
  41. package/dist/hooks/task-completed.mjs.map +1 -1
  42. package/dist/{image-refs-T_urbwHM.mjs → image-refs-Cyta4Lf9.mjs} +2 -2
  43. package/dist/{image-refs-T_urbwHM.mjs.map → image-refs-Cyta4Lf9.mjs.map} +1 -1
  44. package/dist/index.mjs +8539 -4203
  45. package/dist/index.mjs.map +1 -1
  46. package/dist/integrations/dsh.d.mts +55 -0
  47. package/dist/integrations/dsh.d.mts.map +1 -0
  48. package/dist/integrations/dsh.mjs +1145 -0
  49. package/dist/integrations/dsh.mjs.map +1 -0
  50. package/dist/{keyed-mutex-DchXsyfP.mjs → keyed-mutex-DCUh7PG-.mjs} +58 -9
  51. package/dist/keyed-mutex-DCUh7PG-.mjs.map +1 -0
  52. package/dist/{secret-store-BnY3A50C.mjs → secret-store-D9GwO0xp.mjs} +535 -434
  53. package/dist/secret-store-D9GwO0xp.mjs.map +1 -0
  54. package/dist/session-arguments-zxsbbd8y.mjs +113 -0
  55. package/dist/session-arguments-zxsbbd8y.mjs.map +1 -0
  56. package/dist/{src-Jsq9LCeH.mjs → src-DaMtDzt_.mjs} +4087 -3788
  57. package/dist/src-DaMtDzt_.mjs.map +1 -0
  58. package/dist/{standalone-DKCdrf1d.mjs → standalone-BlqshyZ5.mjs} +213 -56
  59. package/dist/standalone-BlqshyZ5.mjs.map +1 -0
  60. package/dist/standalone.d.mts +1 -1
  61. package/dist/standalone.d.mts.map +1 -1
  62. package/dist/standalone.mjs +626 -73
  63. package/dist/standalone.mjs.map +1 -1
  64. package/dist/viewer/index.html +288 -140
  65. package/integrations/hermes/README.md +84 -0
  66. package/integrations/hermes/__init__.py +669 -0
  67. package/integrations/hermes/plugin.yaml +27 -0
  68. package/integrations/omp/LICENSE +190 -0
  69. package/integrations/omp/README.md +76 -0
  70. package/integrations/omp/capture.ts +1 -0
  71. package/integrations/omp/dist/index.mjs +1450 -0
  72. package/integrations/omp/index.ts +488 -0
  73. package/integrations/omp/package.json +13 -0
  74. package/integrations/omp/security.ts +67 -0
  75. package/integrations/omp/skills/agentmemory-agents/REFERENCE.md +32 -0
  76. package/integrations/omp/skills/agentmemory-agents/SKILL.md +48 -0
  77. package/integrations/omp/skills/agentmemory-agents/TROUBLESHOOTING.md +70 -0
  78. package/integrations/omp/skills/agentmemory-architecture/SKILL.md +33 -0
  79. package/integrations/omp/skills/agentmemory-architecture/TROUBLESHOOTING.md +70 -0
  80. package/integrations/omp/skills/agentmemory-config/REFERENCE.md +90 -0
  81. package/integrations/omp/skills/agentmemory-config/SKILL.md +78 -0
  82. package/integrations/omp/skills/agentmemory-config/TROUBLESHOOTING.md +70 -0
  83. package/integrations/omp/skills/agentmemory-hooks/REFERENCE.md +20 -0
  84. package/integrations/omp/skills/agentmemory-hooks/SKILL.md +49 -0
  85. package/integrations/omp/skills/agentmemory-hooks/TROUBLESHOOTING.md +70 -0
  86. package/integrations/omp/skills/agentmemory-mcp-tools/REFERENCE.md +66 -0
  87. package/integrations/omp/skills/agentmemory-mcp-tools/SKILL.md +42 -0
  88. package/integrations/omp/skills/agentmemory-mcp-tools/TROUBLESHOOTING.md +70 -0
  89. package/integrations/omp/skills/agentmemory-rest-api/REFERENCE.md +158 -0
  90. package/integrations/omp/skills/agentmemory-rest-api/SKILL.md +49 -0
  91. package/integrations/omp/skills/agentmemory-rest-api/TROUBLESHOOTING.md +70 -0
  92. package/integrations/omp/skills/commit-context/EXAMPLES.md +71 -0
  93. package/integrations/omp/skills/commit-context/SKILL.md +64 -0
  94. package/integrations/omp/skills/commit-context/TROUBLESHOOTING.md +70 -0
  95. package/integrations/omp/skills/commit-history/EXAMPLES.md +71 -0
  96. package/integrations/omp/skills/commit-history/SKILL.md +62 -0
  97. package/integrations/omp/skills/commit-history/TROUBLESHOOTING.md +70 -0
  98. package/integrations/omp/skills/forget/EXAMPLES.md +40 -0
  99. package/integrations/omp/skills/forget/SKILL.md +73 -0
  100. package/integrations/omp/skills/forget/TROUBLESHOOTING.md +70 -0
  101. package/integrations/omp/skills/handoff/EXAMPLES.md +57 -0
  102. package/integrations/omp/skills/handoff/SKILL.md +75 -0
  103. package/integrations/omp/skills/handoff/TROUBLESHOOTING.md +70 -0
  104. package/integrations/omp/skills/lesson/SKILL.md +64 -0
  105. package/integrations/omp/skills/lesson/TROUBLESHOOTING.md +70 -0
  106. package/integrations/omp/skills/memory-discipline/SKILL.md +65 -0
  107. package/integrations/omp/skills/memory-discipline/TROUBLESHOOTING.md +70 -0
  108. package/integrations/omp/skills/recall/EXAMPLES.md +74 -0
  109. package/integrations/omp/skills/recall/SKILL.md +74 -0
  110. package/integrations/omp/skills/recall/TROUBLESHOOTING.md +70 -0
  111. package/integrations/omp/skills/recap/EXAMPLES.md +62 -0
  112. package/integrations/omp/skills/recap/SKILL.md +68 -0
  113. package/integrations/omp/skills/recap/TROUBLESHOOTING.md +70 -0
  114. package/integrations/omp/skills/remember/EXAMPLES.md +67 -0
  115. package/integrations/omp/skills/remember/SKILL.md +66 -0
  116. package/integrations/omp/skills/remember/TROUBLESHOOTING.md +70 -0
  117. package/integrations/omp/skills/session-history/EXAMPLES.md +59 -0
  118. package/integrations/omp/skills/session-history/SKILL.md +67 -0
  119. package/integrations/omp/skills/session-history/TROUBLESHOOTING.md +70 -0
  120. package/integrations/omp/skills/write-agentmemory-skill/SKILL.md +41 -0
  121. package/integrations/omp/skills/write-agentmemory-skill/TROUBLESHOOTING.md +70 -0
  122. package/integrations/openclaw/LICENSE +190 -0
  123. package/integrations/openclaw/README.md +88 -0
  124. package/integrations/openclaw/openclaw.plugin.json +71 -0
  125. package/integrations/openclaw/package.json +38 -0
  126. package/integrations/openclaw/plugin.mjs +425 -0
  127. package/integrations/openclaw/plugin.yaml +26 -0
  128. package/integrations/openclaw/skills/agentmemory-agents/REFERENCE.md +32 -0
  129. package/integrations/openclaw/skills/agentmemory-agents/SKILL.md +48 -0
  130. package/integrations/openclaw/skills/agentmemory-agents/TROUBLESHOOTING.md +70 -0
  131. package/integrations/openclaw/skills/agentmemory-architecture/SKILL.md +33 -0
  132. package/integrations/openclaw/skills/agentmemory-architecture/TROUBLESHOOTING.md +70 -0
  133. package/integrations/openclaw/skills/agentmemory-config/REFERENCE.md +90 -0
  134. package/integrations/openclaw/skills/agentmemory-config/SKILL.md +78 -0
  135. package/integrations/openclaw/skills/agentmemory-config/TROUBLESHOOTING.md +70 -0
  136. package/integrations/openclaw/skills/agentmemory-hooks/REFERENCE.md +20 -0
  137. package/integrations/openclaw/skills/agentmemory-hooks/SKILL.md +49 -0
  138. package/integrations/openclaw/skills/agentmemory-hooks/TROUBLESHOOTING.md +70 -0
  139. package/integrations/openclaw/skills/agentmemory-mcp-tools/REFERENCE.md +66 -0
  140. package/integrations/openclaw/skills/agentmemory-mcp-tools/SKILL.md +42 -0
  141. package/integrations/openclaw/skills/agentmemory-mcp-tools/TROUBLESHOOTING.md +70 -0
  142. package/integrations/openclaw/skills/agentmemory-rest-api/REFERENCE.md +158 -0
  143. package/integrations/openclaw/skills/agentmemory-rest-api/SKILL.md +49 -0
  144. package/integrations/openclaw/skills/agentmemory-rest-api/TROUBLESHOOTING.md +70 -0
  145. package/integrations/openclaw/skills/commit-context/EXAMPLES.md +71 -0
  146. package/integrations/openclaw/skills/commit-context/SKILL.md +64 -0
  147. package/integrations/openclaw/skills/commit-context/TROUBLESHOOTING.md +70 -0
  148. package/integrations/openclaw/skills/commit-history/EXAMPLES.md +71 -0
  149. package/integrations/openclaw/skills/commit-history/SKILL.md +62 -0
  150. package/integrations/openclaw/skills/commit-history/TROUBLESHOOTING.md +70 -0
  151. package/integrations/openclaw/skills/forget/EXAMPLES.md +40 -0
  152. package/integrations/openclaw/skills/forget/SKILL.md +73 -0
  153. package/integrations/openclaw/skills/forget/TROUBLESHOOTING.md +70 -0
  154. package/integrations/openclaw/skills/handoff/EXAMPLES.md +57 -0
  155. package/integrations/openclaw/skills/handoff/SKILL.md +75 -0
  156. package/integrations/openclaw/skills/handoff/TROUBLESHOOTING.md +70 -0
  157. package/integrations/openclaw/skills/lesson/SKILL.md +64 -0
  158. package/integrations/openclaw/skills/lesson/TROUBLESHOOTING.md +70 -0
  159. package/integrations/openclaw/skills/memory-discipline/SKILL.md +65 -0
  160. package/integrations/openclaw/skills/memory-discipline/TROUBLESHOOTING.md +70 -0
  161. package/integrations/openclaw/skills/recall/EXAMPLES.md +74 -0
  162. package/integrations/openclaw/skills/recall/SKILL.md +74 -0
  163. package/integrations/openclaw/skills/recall/TROUBLESHOOTING.md +70 -0
  164. package/integrations/openclaw/skills/recap/EXAMPLES.md +62 -0
  165. package/integrations/openclaw/skills/recap/SKILL.md +68 -0
  166. package/integrations/openclaw/skills/recap/TROUBLESHOOTING.md +70 -0
  167. package/integrations/openclaw/skills/remember/EXAMPLES.md +67 -0
  168. package/integrations/openclaw/skills/remember/SKILL.md +66 -0
  169. package/integrations/openclaw/skills/remember/TROUBLESHOOTING.md +70 -0
  170. package/integrations/openclaw/skills/session-history/EXAMPLES.md +59 -0
  171. package/integrations/openclaw/skills/session-history/SKILL.md +67 -0
  172. package/integrations/openclaw/skills/session-history/TROUBLESHOOTING.md +70 -0
  173. package/integrations/openclaw/skills/write-agentmemory-skill/SKILL.md +41 -0
  174. package/integrations/openclaw/skills/write-agentmemory-skill/TROUBLESHOOTING.md +70 -0
  175. package/integrations/pi/LICENSE +190 -0
  176. package/integrations/pi/README.md +45 -51
  177. package/integrations/pi/dist/index.mjs +1379 -0
  178. package/integrations/pi/index.ts +138 -171
  179. package/integrations/pi/package.json +16 -6
  180. package/integrations/pi/security.ts +6 -26
  181. package/integrations/pi/skills/agentmemory-agents/REFERENCE.md +32 -0
  182. package/integrations/pi/skills/agentmemory-agents/SKILL.md +48 -0
  183. package/integrations/pi/skills/agentmemory-agents/TROUBLESHOOTING.md +70 -0
  184. package/integrations/pi/skills/agentmemory-architecture/SKILL.md +33 -0
  185. package/integrations/pi/skills/agentmemory-architecture/TROUBLESHOOTING.md +70 -0
  186. package/integrations/pi/skills/agentmemory-config/REFERENCE.md +90 -0
  187. package/integrations/pi/skills/agentmemory-config/SKILL.md +78 -0
  188. package/integrations/pi/skills/agentmemory-config/TROUBLESHOOTING.md +70 -0
  189. package/integrations/pi/skills/agentmemory-hooks/REFERENCE.md +20 -0
  190. package/integrations/pi/skills/agentmemory-hooks/SKILL.md +49 -0
  191. package/integrations/pi/skills/agentmemory-hooks/TROUBLESHOOTING.md +70 -0
  192. package/integrations/pi/skills/agentmemory-mcp-tools/REFERENCE.md +66 -0
  193. package/integrations/pi/skills/agentmemory-mcp-tools/SKILL.md +42 -0
  194. package/integrations/pi/skills/agentmemory-mcp-tools/TROUBLESHOOTING.md +70 -0
  195. package/integrations/pi/skills/agentmemory-rest-api/REFERENCE.md +158 -0
  196. package/integrations/pi/skills/agentmemory-rest-api/SKILL.md +49 -0
  197. package/integrations/pi/skills/agentmemory-rest-api/TROUBLESHOOTING.md +70 -0
  198. package/integrations/pi/skills/commit-context/EXAMPLES.md +71 -0
  199. package/integrations/pi/skills/commit-context/SKILL.md +64 -0
  200. package/integrations/pi/skills/commit-context/TROUBLESHOOTING.md +70 -0
  201. package/integrations/pi/skills/commit-history/EXAMPLES.md +71 -0
  202. package/integrations/pi/skills/commit-history/SKILL.md +62 -0
  203. package/integrations/pi/skills/commit-history/TROUBLESHOOTING.md +70 -0
  204. package/integrations/pi/skills/forget/EXAMPLES.md +40 -0
  205. package/integrations/pi/skills/forget/SKILL.md +73 -0
  206. package/integrations/pi/skills/forget/TROUBLESHOOTING.md +70 -0
  207. package/integrations/pi/skills/handoff/EXAMPLES.md +57 -0
  208. package/integrations/pi/skills/handoff/SKILL.md +75 -0
  209. package/integrations/pi/skills/handoff/TROUBLESHOOTING.md +70 -0
  210. package/integrations/pi/skills/lesson/SKILL.md +64 -0
  211. package/integrations/pi/skills/lesson/TROUBLESHOOTING.md +70 -0
  212. package/integrations/pi/skills/memory-discipline/SKILL.md +65 -0
  213. package/integrations/pi/skills/memory-discipline/TROUBLESHOOTING.md +70 -0
  214. package/integrations/pi/skills/recall/EXAMPLES.md +74 -0
  215. package/integrations/pi/skills/recall/SKILL.md +74 -0
  216. package/integrations/pi/skills/recall/TROUBLESHOOTING.md +70 -0
  217. package/integrations/pi/skills/recap/EXAMPLES.md +62 -0
  218. package/integrations/pi/skills/recap/SKILL.md +68 -0
  219. package/integrations/pi/skills/recap/TROUBLESHOOTING.md +70 -0
  220. package/integrations/pi/skills/remember/EXAMPLES.md +67 -0
  221. package/integrations/pi/skills/remember/SKILL.md +66 -0
  222. package/integrations/pi/skills/remember/TROUBLESHOOTING.md +70 -0
  223. package/integrations/pi/skills/session-history/EXAMPLES.md +59 -0
  224. package/integrations/pi/skills/session-history/SKILL.md +67 -0
  225. package/integrations/pi/skills/session-history/TROUBLESHOOTING.md +70 -0
  226. package/integrations/pi/skills/write-agentmemory-skill/SKILL.md +41 -0
  227. package/integrations/pi/skills/write-agentmemory-skill/TROUBLESHOOTING.md +70 -0
  228. package/package.json +32 -11
  229. package/plugin/.claude-plugin/plugin.json +1 -1
  230. package/plugin/.codex-plugin/plugin.json +4 -3
  231. package/plugin/.devin-plugin/plugin.json +5 -3
  232. package/plugin/cursor/hooks.json +23 -8
  233. package/plugin/hooks.json +67 -0
  234. package/plugin/opencode/README.md +1 -1
  235. package/plugin/opencode/agentmemory-capture.ts +25 -11
  236. package/plugin/opencode/plugin.json +1 -1
  237. package/plugin/plugin.json +1 -1
  238. package/plugin/scripts/_capture.d.mts +5 -2
  239. package/plugin/scripts/_capture.d.mts.map +1 -1
  240. package/plugin/scripts/_capture.mjs +55 -19
  241. package/plugin/scripts/_capture.mjs.map +1 -1
  242. package/plugin/scripts/cursor/run-detached.d.mts +1 -0
  243. package/plugin/scripts/cursor/run-detached.mjs +786 -0
  244. package/plugin/scripts/cursor/run-detached.mjs.map +1 -0
  245. package/plugin/scripts/cursor/run-hook.d.mts +1 -0
  246. package/plugin/scripts/cursor/run-hook.mjs +704 -0
  247. package/plugin/scripts/cursor/run-hook.mjs.map +1 -0
  248. package/plugin/scripts/notification.mjs +20 -6
  249. package/plugin/scripts/notification.mjs.map +1 -1
  250. package/plugin/scripts/plugin-bridge.mjs +37 -6
  251. package/plugin/scripts/post-commit.mjs +25 -5
  252. package/plugin/scripts/post-commit.mjs.map +1 -1
  253. package/plugin/scripts/post-tool-failure.mjs +12 -4
  254. package/plugin/scripts/post-tool-failure.mjs.map +1 -1
  255. package/plugin/scripts/post-tool-use.mjs +12 -4
  256. package/plugin/scripts/post-tool-use.mjs.map +1 -1
  257. package/plugin/scripts/pre-compact.mjs +37 -10
  258. package/plugin/scripts/pre-compact.mjs.map +1 -1
  259. package/plugin/scripts/pre-tool-use.mjs +25 -5
  260. package/plugin/scripts/pre-tool-use.mjs.map +1 -1
  261. package/plugin/scripts/prompt-submit.mjs +12 -4
  262. package/plugin/scripts/prompt-submit.mjs.map +1 -1
  263. package/plugin/scripts/session-end.mjs +47 -16
  264. package/plugin/scripts/session-end.mjs.map +1 -1
  265. package/plugin/scripts/session-start.mjs +37 -10
  266. package/plugin/scripts/session-start.mjs.map +1 -1
  267. package/plugin/scripts/stop.mjs +74 -72
  268. package/plugin/scripts/stop.mjs.map +1 -1
  269. package/plugin/scripts/subagent-start.mjs +13 -5
  270. package/plugin/scripts/subagent-start.mjs.map +1 -1
  271. package/plugin/scripts/subagent-stop.mjs +18 -6
  272. package/plugin/scripts/subagent-stop.mjs.map +1 -1
  273. package/plugin/scripts/task-completed.mjs +13 -5
  274. package/plugin/scripts/task-completed.mjs.map +1 -1
  275. package/plugin/skills/_shared/TROUBLESHOOTING.md +21 -7
  276. package/plugin/skills/agentmemory-agents/REFERENCE.md +7 -6
  277. package/plugin/skills/agentmemory-agents/SKILL.md +19 -5
  278. package/plugin/skills/agentmemory-agents/TROUBLESHOOTING.md +70 -0
  279. package/plugin/skills/agentmemory-architecture/SKILL.md +4 -4
  280. package/plugin/skills/agentmemory-architecture/TROUBLESHOOTING.md +70 -0
  281. package/plugin/skills/agentmemory-config/REFERENCE.md +12 -15
  282. package/plugin/skills/agentmemory-config/SKILL.md +7 -3
  283. package/plugin/skills/agentmemory-config/TROUBLESHOOTING.md +70 -0
  284. package/plugin/skills/agentmemory-hooks/SKILL.md +15 -5
  285. package/plugin/skills/agentmemory-hooks/TROUBLESHOOTING.md +70 -0
  286. package/plugin/skills/agentmemory-mcp-tools/REFERENCE.md +4 -4
  287. package/plugin/skills/agentmemory-mcp-tools/SKILL.md +6 -3
  288. package/plugin/skills/agentmemory-mcp-tools/TROUBLESHOOTING.md +70 -0
  289. package/plugin/skills/agentmemory-rest-api/REFERENCE.md +9 -1
  290. package/plugin/skills/agentmemory-rest-api/SKILL.md +12 -6
  291. package/plugin/skills/agentmemory-rest-api/TROUBLESHOOTING.md +70 -0
  292. package/plugin/skills/commit-context/SKILL.md +1 -1
  293. package/plugin/skills/commit-context/TROUBLESHOOTING.md +70 -0
  294. package/plugin/skills/commit-history/SKILL.md +1 -1
  295. package/plugin/skills/commit-history/TROUBLESHOOTING.md +70 -0
  296. package/plugin/skills/forget/EXAMPLES.md +19 -54
  297. package/plugin/skills/forget/SKILL.md +16 -12
  298. package/plugin/skills/forget/TROUBLESHOOTING.md +70 -0
  299. package/plugin/skills/handoff/EXAMPLES.md +5 -4
  300. package/plugin/skills/handoff/SKILL.md +10 -5
  301. package/plugin/skills/handoff/TROUBLESHOOTING.md +70 -0
  302. package/plugin/skills/lesson/SKILL.md +1 -1
  303. package/plugin/skills/lesson/TROUBLESHOOTING.md +70 -0
  304. package/plugin/skills/memory-discipline/SKILL.md +1 -1
  305. package/plugin/skills/memory-discipline/TROUBLESHOOTING.md +70 -0
  306. package/plugin/skills/recall/SKILL.md +18 -7
  307. package/plugin/skills/recall/TROUBLESHOOTING.md +70 -0
  308. package/plugin/skills/recap/EXAMPLES.md +5 -3
  309. package/plugin/skills/recap/SKILL.md +11 -6
  310. package/plugin/skills/recap/TROUBLESHOOTING.md +70 -0
  311. package/plugin/skills/remember/EXAMPLES.md +3 -3
  312. package/plugin/skills/remember/SKILL.md +1 -1
  313. package/plugin/skills/remember/TROUBLESHOOTING.md +70 -0
  314. package/plugin/skills/session-history/EXAMPLES.md +2 -2
  315. package/plugin/skills/session-history/SKILL.md +10 -4
  316. package/plugin/skills/session-history/TROUBLESHOOTING.md +70 -0
  317. package/plugin/skills/write-agentmemory-skill/SKILL.md +2 -1
  318. package/plugin/skills/write-agentmemory-skill/TROUBLESHOOTING.md +70 -0
  319. package/dist/connect-B4_ca6BD.mjs.map +0 -1
  320. package/dist/docker-compose.yml +0 -73
  321. package/dist/iii-config.docker.yaml +0 -53
  322. package/dist/iii-config.yaml +0 -63
  323. package/dist/keyed-mutex-DchXsyfP.mjs.map +0 -1
  324. package/dist/secret-store-BnY3A50C.mjs.map +0 -1
  325. package/dist/src-Jsq9LCeH.mjs.map +0 -1
  326. package/dist/standalone-DKCdrf1d.mjs.map +0 -1
  327. package/dist/status-IRz7ta8-.mjs +0 -2344
  328. package/dist/status-IRz7ta8-.mjs.map +0 -1
  329. package/docker-compose.yml +0 -73
  330. package/iii-config.docker.yaml +0 -53
  331. package/iii-config.yaml +0 -63
@@ -0,0 +1,70 @@
1
+ <!-- AUTOGEN:troubleshooting START - generated by scripts/skills/generate.ts, do not edit by hand -->
2
+ # Troubleshooting agentmemory skills
3
+
4
+ Recovery steps for separately installed skills. This document is generated into
5
+ each skill directory so native skill readers can open it without parent traversal.
6
+
7
+ ## "MCP tool not available"
8
+
9
+ Missing tools can mean a stopped MCP process, a disconnected daemon, or an
10
+ explicitly reduced tool surface. Walk these in order:
11
+
12
+ 1. Identify the host. In Claude Code, inspect `/plugin list` and `/mcp`.
13
+ In Hermes, inspect the configured memory provider and `mcp_servers` separately.
14
+ In OpenClaw, validate the host configuration and inspect its MCP servers and
15
+ native plugins separately. In Pi or OMP, inspect `/agentmemory-status` and the
16
+ MCP inventory separately; native save/search does not prove the broader tools
17
+ are connected. Do not run another host's setup commands.
18
+ 2. Restart or reload the affected host connection after configuration changes.
19
+ 3. Inspect the connected tool inventory. Hermes may namespace MCP tools; invoke
20
+ the actual advertised names and schemas. A native memory provider is not
21
+ proof that every MCP tool or shared skill is available.
22
+ 4. Check `agentmemory status` and the daemon's `AGENTMEMORY_TOOLS` setting.
23
+ Codex's bundled bridge lists the daemon's enabled tools. The standalone shim
24
+ used by other hosts can fall back to seven basic tools with a separate store.
25
+ Do not claim full daemon functionality based on those seven tools.
26
+ 5. If `agentmemory connect codex` and the Codex plugin are both enabled, choose
27
+ one MCP connection. Check `/hooks` before adding global hook fallbacks.
28
+
29
+ Hermes, OpenClaw, Pi and OMP connector installations bundle skills; other hosts
30
+ may install them separately. Check the host's skill inventory and open this file
31
+ from the installed skill directory. Test automatic capture with a real turn and
32
+ a recorded observation; tool connectivity alone does not establish lifecycle
33
+ capture.
34
+
35
+ An outage or timeout is not an empty search result. Report the failure. A write
36
+ may have committed before the response was lost; inspect state before retrying.
37
+
38
+ ## REST fallback
39
+
40
+ When the MCP tools stay unavailable but the daemon is running, call the REST
41
+ API directly:
42
+
43
+ 1. Set `AGENTMEMORY_URL` to the daemon base URL (default `http://localhost:3111`).
44
+ 2. The REST API requires a bearer credential by default. Use the host's explicit
45
+ `AGENTMEMORY_SECRET`; for loopback URLs only, fall back to the secret in
46
+ `~/.agentmemory/.env` and then `~/.agentmemory/secret`. Load the value locally
47
+ without displaying it. Never send a local-file secret to a remote URL.
48
+ If `AGENTMEMORY_CREDENTIAL_MODE=explicit`, require the explicit host credential
49
+ and do not read local credential files.
50
+ Authenticated REST fallback requests require HTTPS for non-loopback
51
+ URLs; HTTP is allowed for loopback URLs (`localhost`, `127.0.0.0/8`, or `[::1]`).
52
+ Reject redirects on authenticated requests. Do not print or save the secret.
53
+
54
+ Endpoint map by skill:
55
+
56
+ | Skill | REST call |
57
+ | --------------- | --------------------------------------------------------------- |
58
+ | remember | `POST /agentmemory/remember` |
59
+ | recall | `POST /agentmemory/smart-search` |
60
+ | recap | `GET /agentmemory/sessions` + `POST /agentmemory/smart-search` |
61
+ | handoff | `GET /agentmemory/sessions` + `POST /agentmemory/smart-search` |
62
+ | session-history | `GET /agentmemory/sessions` |
63
+ | commit-context | `GET /agentmemory/session/by-commit?sha=<sha>` |
64
+ | commit-history | `GET /agentmemory/commits` (URL-encode every query param) |
65
+
66
+ The MCP host reads the plugin MCP configuration. Restart the daemon after
67
+ changing its configuration, then restart or reconnect the host MCP process after
68
+ changing its URL or explicit secret. The local bridge reads the credential files
69
+ for each request; it does not inherit other daemon `.env` settings.
70
+ <!-- AUTOGEN:troubleshooting END -->
@@ -18,7 +18,7 @@ agentmemory exposes 54 MCP tools. 8 are in the lean core set (`--tools core` or
18
18
  | `memory_consolidate` | yes | `tier`: string | Run the 4-tier memory consolidation pipeline (working -> episodic -> semantic -> procedural). |
19
19
  | `memory_crystallize` | | `actionIds`*: string, `project`: string, `sessionId`: string | Compress completed action chains into compact crystal digests using LLM summarization. Extracts narrative, key outcomes, files affected, and lessons. |
20
20
  | `memory_diagnose` | yes | `categories`: string | Run health checks across all subsystems (actions, leases, sentinels, sketches, signals, sessions, memories, mesh). Identifies stuck, orphaned, and inconsistent state. |
21
- | `memory_export` | | none | Export all memory data as JSON. |
21
+ | `memory_export` | | `maxSessions`: number, `offset`: number, `collectionLimit`: number, `collectionOffset`: number, `collections`: string | Export memory data as JSON. Past the transport size limit the export is refused, so use the paging arguments on a large store. |
22
22
  | `memory_facet_query` | | `matchAll`: string, `matchAny`: string, `targetType`: string | Query targets by facet tags with AND/OR logic. Find all actions tagged priority:urgent AND team:backend. |
23
23
  | `memory_facet_tag` | | `targetId`*: string, `targetType`*: string, `dimension`*: string, `value`*: string | Attach a structured tag (dimension:value) to an action, memory, or observation for multi-dimensional categorization. |
24
24
  | `memory_file_history` | | `files`*: string, `sessionId`: string | Get past observations about specific files. |
@@ -36,14 +36,14 @@ agentmemory exposes 54 MCP tools. 8 are in the lean core set (`--tools core` or
36
36
  | `memory_obsidian_export` | | `vaultDir`: string, `types`: string | Export memories, lessons, and crystals as Obsidian-compatible Markdown files with YAML frontmatter and wikilinks for graph view. |
37
37
  | `memory_patterns` | | `project`: string, `limit`: integer | Detect recurring patterns across sessions. |
38
38
  | `memory_profile` | | `project`*: string, `refresh`: string | User/project profile with top concepts and file patterns. |
39
- | `memory_recall` | yes | `query`*: string, `limit`: number, `format`: string, `token_budget`: number | Search past session observations for relevant context. Use when you need to recall what happened in previous sessions, find past decisions, or look up how a file was modified before. |
39
+ | `memory_recall` | yes | `query`*: string, `limit`: number, `format`: string, `token_budget`: number, `targetLayer`: string, `project`: string, `cwd`: string, `agentId`: string | Search stored memories and session observations for relevant context. Use when you need to recall what happened in previous sessions, find past decisions, or look up how a file was modified before. |
40
40
  | `memory_reflect` | yes | `project`: string, `maxClusters`: number | Traverse the knowledge graph, group related memories by concept clusters, and synthesize higher-order insights via LLM. Returns new and reinforced insights. |
41
41
  | `memory_relations` | | `memoryId`*: string, `maxHops`: number, `minConfidence`: number | Query the memory relationship graph. |
42
42
  | `memory_routine_run` | | `routineId`*: string, `project`: string, `initiatedBy`: string | Instantiate a frozen workflow routine, creating actions for each step with proper dependencies. |
43
43
  | `memory_save` | yes | `content`*: string, `type`: string, `concepts`: string, `files`: string, `project`: string, `agentId`: string | Explicitly save an important insight, decision, or pattern to long-term memory. |
44
44
  | `memory_sentinel_create` | | `name`*: string, `type`*: string, `config`: string, `linkedActionIds`: string, `expiresInMs`: number | Create an event-driven sentinel that watches for conditions (webhook, timer, threshold, pattern, approval) and auto-unblocks gated actions when triggered. |
45
45
  | `memory_sentinel_trigger` | | `sentinelId`*: string, `result`: string | Externally fire a sentinel, providing an optional result payload. Unblocks any gated actions. |
46
- | `memory_sessions` | yes | none | List recent sessions with their status and observation counts. |
46
+ | `memory_sessions` | yes | `project`: string, `agentId`: string, `limit`: integer, `cursor`: string | List recent sessions with status, observation counts, summaries and a continuation cursor. Filters apply before pagination; retain them when requesting the next page. |
47
47
  | `memory_signal_read` | | `agentId`*: string, `unreadOnly`: string, `threadId`: string, `limit`: number | Read messages for an agent. Marks delivered messages as read. |
48
48
  | `memory_signal_send` | | `from`*: string, `to`: string, `content`*: string, `type`: string, `replyTo`: string | Send a message to another agent or broadcast. Supports threading, typed messages, and TTL expiration. |
49
49
  | `memory_sketch_create` | | `title`*: string, `description`: string, `expiresInMs`: number, `project`: string | Create an ephemeral action graph for exploratory work. Auto-expires after TTL. Can be promoted to permanent actions or discarded. |
@@ -54,7 +54,7 @@ agentmemory exposes 54 MCP tools. 8 are in the lean core set (`--tools core` or
54
54
  | `memory_slot_get` | | `label`*: string | Read a single slot by label. |
55
55
  | `memory_slot_list` | | none | List all memory slots (pinned + project + global). Slots are editable, size-limited memory units the agent can read and modify across sessions. |
56
56
  | `memory_slot_replace` | | `label`*: string, `content`*: string | Replace slot content in place. Fails if content exceeds sizeLimit. |
57
- | `memory_smart_search` | yes | `query`*: string, `expandIds`: string, `limit`: number | Hybrid semantic+keyword search with progressive disclosure. |
57
+ | `memory_smart_search` | yes | `query`: string, `expandIds`: string, `limit`: number, `targetLayer`: string, `project`: string, `agentId`: string, `includeLessons`: boolean | Hybrid semantic+keyword search with progressive disclosure. Pass query to search, or expandIds to recover full results. |
58
58
  | `memory_snapshot_create` | | `message`: string | Create a git-versioned snapshot of current memory state. |
59
59
  | `memory_team_feed` | | `limit`: number | Get recent shared items from all team members. |
60
60
  | `memory_team_share` | | `itemId`*: string, `itemType`*: string | Share a memory or observation with team members. |
@@ -4,18 +4,18 @@ description: Map of every agentmemory MCP tool, what each does, and its paramete
4
4
  user-invocable: false
5
5
  ---
6
6
 
7
- agentmemory exposes its full capability set as MCP tools. This skill is the index: it tells you which tool to reach for and where to find exact parameters.
7
+ This skill indexes agentmemory's MCP tools. Use the connected server's tool inventory and schemas; a native memory provider may expose a smaller set under different names. Hermes and OpenClaw skills that need the full surface require a separate MCP connection to the running daemon. For Pi and OMP, connect with `--with-mcp` to enable the broader workflows. Pi exposes MCP names with an `mcp__agentmemory__` prefix; OMP exposes MCP operations as `xd://mcp__agentmemory_<tool>` devices through its `write` tool.
8
8
 
9
9
  ## Quick start
10
10
 
11
11
  Save then recall:
12
12
 
13
13
  1. `memory_save` with `content` (the insight), `concepts` (comma-separated keywords), `files` (comma-separated paths).
14
- 2. `memory_smart_search` with `query` and `limit` to retrieve it later. This runs hybrid BM25 plus vector plus graph-expanded search.
14
+ 2. `memory_smart_search` with `query`, `limit`, and `targetLayer: "memory"` to retrieve saved knowledge later. Omit `targetLayer` to also search captured observations. This runs hybrid BM25 plus vector plus graph-expanded search.
15
15
 
16
16
  ## Tool families
17
17
 
18
- - Capture: `memory_save`, `memory_observe` flows, `memory_compress_file`.
18
+ - Capture: `memory_save`, `memory_compress_file`. Automatic observations use native hooks or `POST /agentmemory/observe`, not an MCP observation tool.
19
19
  - Retrieve: `memory_smart_search`, `memory_recall`, `memory_file_history`, `memory_timeline`, `memory_vision_search`.
20
20
  - Sessions and commits: `memory_sessions`, `memory_commits`, `memory_commit_lookup`.
21
21
  - Knowledge and graph: `memory_lesson_save`, `memory_lesson_recall`, `memory_graph_query`, `memory_relations`, `memory_patterns`, `memory_crystallize`.
@@ -27,6 +27,9 @@ Save then recall:
27
27
  1. Pick the narrowest tool for the task. Prefer `memory_smart_search` for open recall, `memory_recall` when you already have a focused query, `memory_sessions` for session listings.
28
28
  2. Look up exact parameter names and which are required in REFERENCE.md before calling.
29
29
  3. Pass only documented fields. REST handlers whitelist fields and drop unknown ones.
30
+ 4. For budgeted `memory_recall`, distinguish `matched_count: 0` from
31
+ `excluded_by_budget > 0`. Expand clipped or omitted IDs with
32
+ `memory_smart_search` and `expandIds`, preserving the same scope filters.
30
33
 
31
34
  ## See also
32
35
 
@@ -0,0 +1,70 @@
1
+ <!-- AUTOGEN:troubleshooting START - generated by scripts/skills/generate.ts, do not edit by hand -->
2
+ # Troubleshooting agentmemory skills
3
+
4
+ Recovery steps for separately installed skills. This document is generated into
5
+ each skill directory so native skill readers can open it without parent traversal.
6
+
7
+ ## "MCP tool not available"
8
+
9
+ Missing tools can mean a stopped MCP process, a disconnected daemon, or an
10
+ explicitly reduced tool surface. Walk these in order:
11
+
12
+ 1. Identify the host. In Claude Code, inspect `/plugin list` and `/mcp`.
13
+ In Hermes, inspect the configured memory provider and `mcp_servers` separately.
14
+ In OpenClaw, validate the host configuration and inspect its MCP servers and
15
+ native plugins separately. In Pi or OMP, inspect `/agentmemory-status` and the
16
+ MCP inventory separately; native save/search does not prove the broader tools
17
+ are connected. Do not run another host's setup commands.
18
+ 2. Restart or reload the affected host connection after configuration changes.
19
+ 3. Inspect the connected tool inventory. Hermes may namespace MCP tools; invoke
20
+ the actual advertised names and schemas. A native memory provider is not
21
+ proof that every MCP tool or shared skill is available.
22
+ 4. Check `agentmemory status` and the daemon's `AGENTMEMORY_TOOLS` setting.
23
+ Codex's bundled bridge lists the daemon's enabled tools. The standalone shim
24
+ used by other hosts can fall back to seven basic tools with a separate store.
25
+ Do not claim full daemon functionality based on those seven tools.
26
+ 5. If `agentmemory connect codex` and the Codex plugin are both enabled, choose
27
+ one MCP connection. Check `/hooks` before adding global hook fallbacks.
28
+
29
+ Hermes, OpenClaw, Pi and OMP connector installations bundle skills; other hosts
30
+ may install them separately. Check the host's skill inventory and open this file
31
+ from the installed skill directory. Test automatic capture with a real turn and
32
+ a recorded observation; tool connectivity alone does not establish lifecycle
33
+ capture.
34
+
35
+ An outage or timeout is not an empty search result. Report the failure. A write
36
+ may have committed before the response was lost; inspect state before retrying.
37
+
38
+ ## REST fallback
39
+
40
+ When the MCP tools stay unavailable but the daemon is running, call the REST
41
+ API directly:
42
+
43
+ 1. Set `AGENTMEMORY_URL` to the daemon base URL (default `http://localhost:3111`).
44
+ 2. The REST API requires a bearer credential by default. Use the host's explicit
45
+ `AGENTMEMORY_SECRET`; for loopback URLs only, fall back to the secret in
46
+ `~/.agentmemory/.env` and then `~/.agentmemory/secret`. Load the value locally
47
+ without displaying it. Never send a local-file secret to a remote URL.
48
+ If `AGENTMEMORY_CREDENTIAL_MODE=explicit`, require the explicit host credential
49
+ and do not read local credential files.
50
+ Authenticated REST fallback requests require HTTPS for non-loopback
51
+ URLs; HTTP is allowed for loopback URLs (`localhost`, `127.0.0.0/8`, or `[::1]`).
52
+ Reject redirects on authenticated requests. Do not print or save the secret.
53
+
54
+ Endpoint map by skill:
55
+
56
+ | Skill | REST call |
57
+ | --------------- | --------------------------------------------------------------- |
58
+ | remember | `POST /agentmemory/remember` |
59
+ | recall | `POST /agentmemory/smart-search` |
60
+ | recap | `GET /agentmemory/sessions` + `POST /agentmemory/smart-search` |
61
+ | handoff | `GET /agentmemory/sessions` + `POST /agentmemory/smart-search` |
62
+ | session-history | `GET /agentmemory/sessions` |
63
+ | commit-context | `GET /agentmemory/session/by-commit?sha=<sha>` |
64
+ | commit-history | `GET /agentmemory/commits` (URL-encode every query param) |
65
+
66
+ The MCP host reads the plugin MCP configuration. Restart the daemon after
67
+ changing its configuration, then restart or reconnect the host MCP process after
68
+ changing its URL or explicit secret. The local bridge reads the credential files
69
+ for each request; it does not inherit other daemon `.env` settings.
70
+ <!-- AUTOGEN:troubleshooting END -->
@@ -5,7 +5,7 @@ Generated from `src/triggers/api.ts`. Do not edit the block below by hand; run `
5
5
  <!-- AUTOGEN:rest START - generated by scripts/skills/generate.ts, do not edit by hand -->
6
6
  The REST API is the primary surface. All paths are under `http://localhost:3111` (override with `--port`). Send `Authorization: Bearer <secret>`: the value of `AGENTMEMORY_SECRET`, or the one generated into `~/.agentmemory/secret` on first start when it is unset. Writes must use `Content-Type: application/json`.
7
7
 
8
- 138 registered endpoints:
8
+ 146 registered endpoints:
9
9
 
10
10
  | Method | Path |
11
11
  | --- | --- |
@@ -30,11 +30,14 @@ The REST API is the primary surface. All paths are under `http://localhost:3111`
30
30
  | POST | `/agentmemory/claude-bridge/sync` |
31
31
  | GET | `/agentmemory/commits` |
32
32
  | POST | `/agentmemory/compress-file` |
33
+ | GET | `/agentmemory/compression` |
34
+ | POST | `/agentmemory/compression/retry` |
33
35
  | GET | `/agentmemory/config/flags` |
34
36
  | POST | `/agentmemory/consolidate` |
35
37
  | POST | `/agentmemory/consolidate-pipeline` |
36
38
  | GET | `/agentmemory/consolidation/status` |
37
39
  | POST | `/agentmemory/context` |
40
+ | GET | `/agentmemory/counts` |
38
41
  | GET | `/agentmemory/crystals` |
39
42
  | POST | `/agentmemory/crystals/auto` |
40
43
  | POST | `/agentmemory/crystals/create` |
@@ -61,6 +64,9 @@ The REST API is the primary surface. All paths are under `http://localhost:3111`
61
64
  | POST | `/agentmemory/graph/compact` |
62
65
  | POST | `/agentmemory/graph/extract` |
63
66
  | POST | `/agentmemory/graph/import-graphify` |
67
+ | GET | `/agentmemory/graph/index` |
68
+ | POST | `/agentmemory/graph/index/migrate` |
69
+ | POST | `/agentmemory/graph/index/resume` |
64
70
  | GET | `/agentmemory/graph/node` |
65
71
  | POST | `/agentmemory/graph/query` |
66
72
  | POST | `/agentmemory/graph/reset` |
@@ -145,6 +151,8 @@ The REST API is the primary surface. All paths are under `http://localhost:3111`
145
151
  | POST | `/agentmemory/timeline` |
146
152
  | POST | `/agentmemory/verify` |
147
153
  | GET | `/agentmemory/viewer` |
154
+ | GET | `/agentmemory/viewer/events` |
155
+ | GET | `/agentmemory/viewer/snapshot` |
148
156
  | POST | `/agentmemory/vision-embed` |
149
157
  | POST | `/agentmemory/vision-search` |
150
158
  <!-- AUTOGEN:rest END -->
@@ -12,31 +12,37 @@ REST is agentmemory's primary surface. MCP is a bridge on top of it. Every memor
12
12
  # liveness
13
13
  curl -fsS http://localhost:3111/agentmemory/livez
14
14
 
15
+ # For this fixed loopback URL only. Do not print the value or enable shell tracing.
16
+ agentmemory_secret="${AGENTMEMORY_SECRET:-$(cat "$HOME/.agentmemory/secret")}"
17
+ test -n "$agentmemory_secret" || exit 1
18
+
15
19
  # save
16
- curl -X POST http://localhost:3111/agentmemory/remember \
20
+ curl -fsS -X POST http://localhost:3111/agentmemory/remember \
21
+ -H "Authorization: Bearer $agentmemory_secret" \
17
22
  -H "Content-Type: application/json" \
18
23
  -d '{"content":"chose JWT refresh rotation","concepts":["jwt-refresh-rotation"]}'
19
24
 
20
25
  # recall
21
- curl -X POST http://localhost:3111/agentmemory/smart-search \
26
+ curl -fsS -X POST http://localhost:3111/agentmemory/smart-search \
27
+ -H "Authorization: Bearer $agentmemory_secret" \
22
28
  -H "Content-Type: application/json" \
23
29
  -d '{"query":"auth token strategy","limit":5}'
24
30
  ```
25
31
 
26
32
  ## Auth
27
33
 
28
- By default localhost is open and no auth is needed. When `AGENTMEMORY_SECRET` is set, every request needs `Authorization: Bearer $AGENTMEMORY_SECRET`. See agentmemory-config.
34
+ Protected endpoints require bearer authentication by default, including localhost. Liveness is public. The example uses an explicit environment secret or the generated local secret file; if the daemon uses a secret from its `.env`, load that value locally without displaying it. For a remote daemon, require an explicit credential for that endpoint and HTTPS. Never forward a local-file secret or follow an authenticated redirect to another host. See [TROUBLESHOOTING.md](TROUBLESHOOTING.md).
29
35
 
30
36
  ## Conventions
31
37
 
32
38
  - Save returns `201`, reads return `200`, validation errors return `400`.
33
- - Handlers whitelist body fields and drop unknown ones, so passing extra keys is safe but ignored.
34
- - The port is configurable with `--port` or `--instance`; streams, viewer, and engine derive from it.
39
+ - Use documented fields only. A successful response does not prove an unsupported field was applied.
40
+ - The REST port defaults to `3111` and is configurable with `--port` or `--instance`. The viewer defaults to `3113`; the internal engine WebSocket defaults to `49134`.
35
41
 
36
42
  ## See also
37
43
 
38
44
  - agentmemory-mcp-tools for the MCP equivalents.
39
- - agentmemory-config for the port quartet and the secret.
45
+ - agentmemory-config for local configuration and the secret.
40
46
 
41
47
  ## Reference
42
48
 
@@ -0,0 +1,70 @@
1
+ <!-- AUTOGEN:troubleshooting START - generated by scripts/skills/generate.ts, do not edit by hand -->
2
+ # Troubleshooting agentmemory skills
3
+
4
+ Recovery steps for separately installed skills. This document is generated into
5
+ each skill directory so native skill readers can open it without parent traversal.
6
+
7
+ ## "MCP tool not available"
8
+
9
+ Missing tools can mean a stopped MCP process, a disconnected daemon, or an
10
+ explicitly reduced tool surface. Walk these in order:
11
+
12
+ 1. Identify the host. In Claude Code, inspect `/plugin list` and `/mcp`.
13
+ In Hermes, inspect the configured memory provider and `mcp_servers` separately.
14
+ In OpenClaw, validate the host configuration and inspect its MCP servers and
15
+ native plugins separately. In Pi or OMP, inspect `/agentmemory-status` and the
16
+ MCP inventory separately; native save/search does not prove the broader tools
17
+ are connected. Do not run another host's setup commands.
18
+ 2. Restart or reload the affected host connection after configuration changes.
19
+ 3. Inspect the connected tool inventory. Hermes may namespace MCP tools; invoke
20
+ the actual advertised names and schemas. A native memory provider is not
21
+ proof that every MCP tool or shared skill is available.
22
+ 4. Check `agentmemory status` and the daemon's `AGENTMEMORY_TOOLS` setting.
23
+ Codex's bundled bridge lists the daemon's enabled tools. The standalone shim
24
+ used by other hosts can fall back to seven basic tools with a separate store.
25
+ Do not claim full daemon functionality based on those seven tools.
26
+ 5. If `agentmemory connect codex` and the Codex plugin are both enabled, choose
27
+ one MCP connection. Check `/hooks` before adding global hook fallbacks.
28
+
29
+ Hermes, OpenClaw, Pi and OMP connector installations bundle skills; other hosts
30
+ may install them separately. Check the host's skill inventory and open this file
31
+ from the installed skill directory. Test automatic capture with a real turn and
32
+ a recorded observation; tool connectivity alone does not establish lifecycle
33
+ capture.
34
+
35
+ An outage or timeout is not an empty search result. Report the failure. A write
36
+ may have committed before the response was lost; inspect state before retrying.
37
+
38
+ ## REST fallback
39
+
40
+ When the MCP tools stay unavailable but the daemon is running, call the REST
41
+ API directly:
42
+
43
+ 1. Set `AGENTMEMORY_URL` to the daemon base URL (default `http://localhost:3111`).
44
+ 2. The REST API requires a bearer credential by default. Use the host's explicit
45
+ `AGENTMEMORY_SECRET`; for loopback URLs only, fall back to the secret in
46
+ `~/.agentmemory/.env` and then `~/.agentmemory/secret`. Load the value locally
47
+ without displaying it. Never send a local-file secret to a remote URL.
48
+ If `AGENTMEMORY_CREDENTIAL_MODE=explicit`, require the explicit host credential
49
+ and do not read local credential files.
50
+ Authenticated REST fallback requests require HTTPS for non-loopback
51
+ URLs; HTTP is allowed for loopback URLs (`localhost`, `127.0.0.0/8`, or `[::1]`).
52
+ Reject redirects on authenticated requests. Do not print or save the secret.
53
+
54
+ Endpoint map by skill:
55
+
56
+ | Skill | REST call |
57
+ | --------------- | --------------------------------------------------------------- |
58
+ | remember | `POST /agentmemory/remember` |
59
+ | recall | `POST /agentmemory/smart-search` |
60
+ | recap | `GET /agentmemory/sessions` + `POST /agentmemory/smart-search` |
61
+ | handoff | `GET /agentmemory/sessions` + `POST /agentmemory/smart-search` |
62
+ | session-history | `GET /agentmemory/sessions` |
63
+ | commit-context | `GET /agentmemory/session/by-commit?sha=<sha>` |
64
+ | commit-history | `GET /agentmemory/commits` (URL-encode every query param) |
65
+
66
+ The MCP host reads the plugin MCP configuration. Restart the daemon after
67
+ changing its configuration, then restart or reconnect the host MCP process after
68
+ changing its URL or explicit secret. The local bridge reads the credential files
69
+ for each request; it does not inherit other daemon `.env` settings.
70
+ <!-- AUTOGEN:troubleshooting END -->
@@ -61,4 +61,4 @@ session. From `git show`: it changed token rotation in refresh.ts."
61
61
 
62
62
  ## Troubleshooting
63
63
 
64
- See ../_shared/TROUBLESHOOTING.md if `memory_commit_lookup` is not available.
64
+ See [TROUBLESHOOTING.md](TROUBLESHOOTING.md) if `memory_commit_lookup` is not available.
@@ -0,0 +1,70 @@
1
+ <!-- AUTOGEN:troubleshooting START - generated by scripts/skills/generate.ts, do not edit by hand -->
2
+ # Troubleshooting agentmemory skills
3
+
4
+ Recovery steps for separately installed skills. This document is generated into
5
+ each skill directory so native skill readers can open it without parent traversal.
6
+
7
+ ## "MCP tool not available"
8
+
9
+ Missing tools can mean a stopped MCP process, a disconnected daemon, or an
10
+ explicitly reduced tool surface. Walk these in order:
11
+
12
+ 1. Identify the host. In Claude Code, inspect `/plugin list` and `/mcp`.
13
+ In Hermes, inspect the configured memory provider and `mcp_servers` separately.
14
+ In OpenClaw, validate the host configuration and inspect its MCP servers and
15
+ native plugins separately. In Pi or OMP, inspect `/agentmemory-status` and the
16
+ MCP inventory separately; native save/search does not prove the broader tools
17
+ are connected. Do not run another host's setup commands.
18
+ 2. Restart or reload the affected host connection after configuration changes.
19
+ 3. Inspect the connected tool inventory. Hermes may namespace MCP tools; invoke
20
+ the actual advertised names and schemas. A native memory provider is not
21
+ proof that every MCP tool or shared skill is available.
22
+ 4. Check `agentmemory status` and the daemon's `AGENTMEMORY_TOOLS` setting.
23
+ Codex's bundled bridge lists the daemon's enabled tools. The standalone shim
24
+ used by other hosts can fall back to seven basic tools with a separate store.
25
+ Do not claim full daemon functionality based on those seven tools.
26
+ 5. If `agentmemory connect codex` and the Codex plugin are both enabled, choose
27
+ one MCP connection. Check `/hooks` before adding global hook fallbacks.
28
+
29
+ Hermes, OpenClaw, Pi and OMP connector installations bundle skills; other hosts
30
+ may install them separately. Check the host's skill inventory and open this file
31
+ from the installed skill directory. Test automatic capture with a real turn and
32
+ a recorded observation; tool connectivity alone does not establish lifecycle
33
+ capture.
34
+
35
+ An outage or timeout is not an empty search result. Report the failure. A write
36
+ may have committed before the response was lost; inspect state before retrying.
37
+
38
+ ## REST fallback
39
+
40
+ When the MCP tools stay unavailable but the daemon is running, call the REST
41
+ API directly:
42
+
43
+ 1. Set `AGENTMEMORY_URL` to the daemon base URL (default `http://localhost:3111`).
44
+ 2. The REST API requires a bearer credential by default. Use the host's explicit
45
+ `AGENTMEMORY_SECRET`; for loopback URLs only, fall back to the secret in
46
+ `~/.agentmemory/.env` and then `~/.agentmemory/secret`. Load the value locally
47
+ without displaying it. Never send a local-file secret to a remote URL.
48
+ If `AGENTMEMORY_CREDENTIAL_MODE=explicit`, require the explicit host credential
49
+ and do not read local credential files.
50
+ Authenticated REST fallback requests require HTTPS for non-loopback
51
+ URLs; HTTP is allowed for loopback URLs (`localhost`, `127.0.0.0/8`, or `[::1]`).
52
+ Reject redirects on authenticated requests. Do not print or save the secret.
53
+
54
+ Endpoint map by skill:
55
+
56
+ | Skill | REST call |
57
+ | --------------- | --------------------------------------------------------------- |
58
+ | remember | `POST /agentmemory/remember` |
59
+ | recall | `POST /agentmemory/smart-search` |
60
+ | recap | `GET /agentmemory/sessions` + `POST /agentmemory/smart-search` |
61
+ | handoff | `GET /agentmemory/sessions` + `POST /agentmemory/smart-search` |
62
+ | session-history | `GET /agentmemory/sessions` |
63
+ | commit-context | `GET /agentmemory/session/by-commit?sha=<sha>` |
64
+ | commit-history | `GET /agentmemory/commits` (URL-encode every query param) |
65
+
66
+ The MCP host reads the plugin MCP configuration. Restart the daemon after
67
+ changing its configuration, then restart or reconnect the host MCP process after
68
+ changing its URL or explicit secret. The local bridge reads the credential files
69
+ for each request; it does not inherit other daemon `.env` settings.
70
+ <!-- AUTOGEN:troubleshooting END -->
@@ -59,4 +59,4 @@ appending to `GET /agentmemory/commits`.
59
59
 
60
60
  ## Troubleshooting
61
61
 
62
- See ../_shared/TROUBLESHOOTING.md if `memory_commits` is not available.
62
+ See [TROUBLESHOOTING.md](TROUBLESHOOTING.md) if `memory_commits` is not available.
@@ -0,0 +1,70 @@
1
+ <!-- AUTOGEN:troubleshooting START - generated by scripts/skills/generate.ts, do not edit by hand -->
2
+ # Troubleshooting agentmemory skills
3
+
4
+ Recovery steps for separately installed skills. This document is generated into
5
+ each skill directory so native skill readers can open it without parent traversal.
6
+
7
+ ## "MCP tool not available"
8
+
9
+ Missing tools can mean a stopped MCP process, a disconnected daemon, or an
10
+ explicitly reduced tool surface. Walk these in order:
11
+
12
+ 1. Identify the host. In Claude Code, inspect `/plugin list` and `/mcp`.
13
+ In Hermes, inspect the configured memory provider and `mcp_servers` separately.
14
+ In OpenClaw, validate the host configuration and inspect its MCP servers and
15
+ native plugins separately. In Pi or OMP, inspect `/agentmemory-status` and the
16
+ MCP inventory separately; native save/search does not prove the broader tools
17
+ are connected. Do not run another host's setup commands.
18
+ 2. Restart or reload the affected host connection after configuration changes.
19
+ 3. Inspect the connected tool inventory. Hermes may namespace MCP tools; invoke
20
+ the actual advertised names and schemas. A native memory provider is not
21
+ proof that every MCP tool or shared skill is available.
22
+ 4. Check `agentmemory status` and the daemon's `AGENTMEMORY_TOOLS` setting.
23
+ Codex's bundled bridge lists the daemon's enabled tools. The standalone shim
24
+ used by other hosts can fall back to seven basic tools with a separate store.
25
+ Do not claim full daemon functionality based on those seven tools.
26
+ 5. If `agentmemory connect codex` and the Codex plugin are both enabled, choose
27
+ one MCP connection. Check `/hooks` before adding global hook fallbacks.
28
+
29
+ Hermes, OpenClaw, Pi and OMP connector installations bundle skills; other hosts
30
+ may install them separately. Check the host's skill inventory and open this file
31
+ from the installed skill directory. Test automatic capture with a real turn and
32
+ a recorded observation; tool connectivity alone does not establish lifecycle
33
+ capture.
34
+
35
+ An outage or timeout is not an empty search result. Report the failure. A write
36
+ may have committed before the response was lost; inspect state before retrying.
37
+
38
+ ## REST fallback
39
+
40
+ When the MCP tools stay unavailable but the daemon is running, call the REST
41
+ API directly:
42
+
43
+ 1. Set `AGENTMEMORY_URL` to the daemon base URL (default `http://localhost:3111`).
44
+ 2. The REST API requires a bearer credential by default. Use the host's explicit
45
+ `AGENTMEMORY_SECRET`; for loopback URLs only, fall back to the secret in
46
+ `~/.agentmemory/.env` and then `~/.agentmemory/secret`. Load the value locally
47
+ without displaying it. Never send a local-file secret to a remote URL.
48
+ If `AGENTMEMORY_CREDENTIAL_MODE=explicit`, require the explicit host credential
49
+ and do not read local credential files.
50
+ Authenticated REST fallback requests require HTTPS for non-loopback
51
+ URLs; HTTP is allowed for loopback URLs (`localhost`, `127.0.0.0/8`, or `[::1]`).
52
+ Reject redirects on authenticated requests. Do not print or save the secret.
53
+
54
+ Endpoint map by skill:
55
+
56
+ | Skill | REST call |
57
+ | --------------- | --------------------------------------------------------------- |
58
+ | remember | `POST /agentmemory/remember` |
59
+ | recall | `POST /agentmemory/smart-search` |
60
+ | recap | `GET /agentmemory/sessions` + `POST /agentmemory/smart-search` |
61
+ | handoff | `GET /agentmemory/sessions` + `POST /agentmemory/smart-search` |
62
+ | session-history | `GET /agentmemory/sessions` |
63
+ | commit-context | `GET /agentmemory/session/by-commit?sha=<sha>` |
64
+ | commit-history | `GET /agentmemory/commits` (URL-encode every query param) |
65
+
66
+ The MCP host reads the plugin MCP configuration. Restart the daemon after
67
+ changing its configuration, then restart or reconnect the host MCP process after
68
+ changing its URL or explicit secret. The local bridge reads the credential files
69
+ for each request; it does not inherit other daemon `.env` settings.
70
+ <!-- AUTOGEN:troubleshooting END -->
@@ -1,75 +1,40 @@
1
1
  # forget worked examples
2
2
 
3
- ## 1. Delete a leaked secret
3
+ ## Delete a selected durable memory
4
4
 
5
5
  User: "Forget that note where I pasted the API key."
6
6
 
7
- Search:
8
-
9
- ```json
10
- memory_smart_search { "query": "api key", "limit": 20 }
11
- ```
12
-
13
- Response:
14
-
15
7
  ```json
16
- {
17
- "results": [
18
- { "id": "abc12345", "sessionId": "7f3a9c21", "title": "Pasted staging API key",
19
- "narrative": "STAGING_KEY=sk-live-..." }
20
- ]
21
- }
8
+ memory_smart_search { "query": "api key", "targetLayer": "memory", "project": "app", "limit": 20 }
22
9
  ```
23
10
 
24
- Present and gate:
11
+ Show the returned memory ID and title without displaying the secret value:
25
12
 
26
- > Found 1 match:
27
- > - `abc12345` (session `7f3a9c2`) "Pasted staging API key"
28
- >
29
- > Delete this memory? (yes/no)
13
+ > Found memory `abc12345` in project `app`: "Staging API configuration".
14
+ > Delete this memory?
30
15
 
31
- After the user says yes:
16
+ After explicit confirmation:
32
17
 
33
18
  ```json
34
- memory_governance_delete { "memoryIds": ["abc12345"], "reason": "user privacy request" }
19
+ memory_governance_delete { "memoryIds": "abc12345", "reason": "user privacy request" }
35
20
  ```
36
21
 
37
- Response:
38
-
39
- ```json
40
- { "deleted": 1 }
41
- ```
42
-
43
- Present:
44
-
45
- > Deleted 1 memory (`abc12345`).
22
+ If the response reports `deleted: 1`, report one deletion. If it reports
23
+ `deleted: 0` and `notFound: ["abc12345"]`, report that the memory was not found.
24
+ For mixed results, state the actual count and any failed or missing IDs.
46
25
 
47
- ## 2. Drop a whole session's observations
26
+ ## A request to erase a whole session
48
27
 
49
28
  User: "Delete everything from the throwaway spike session."
50
29
 
51
- Search, identify the session, then collect every memory id in it:
52
-
53
- ```json
54
- memory_smart_search { "query": "spike prototype throwaway", "limit": 20 }
55
- ```
56
-
57
- Response has 4 results all with `sessionId: c98f1100`. Show all four, get a yes,
58
- then pass every id:
59
-
60
- ```json
61
- memory_governance_delete {
62
- "memoryIds": ["m1", "m2", "m3", "m4"],
63
- "reason": "drop throwaway spike session"
64
- }
65
- ```
66
-
67
- Never send `{ "sessionId": "c98f1100" }`; the MCP deletes by memory id only.
68
-
69
- ## 3. User declines
30
+ Explain that this tool deletes selected durable memories only. A relevance
31
+ search limited to 20 results cannot enumerate all session data, and observation
32
+ IDs are not accepted as durable-memory IDs. Do not claim complete erasure.
33
+ Offer a review of matching durable memories with the scope clearly stated.
34
+ Lessons have a separate `memory_lesson_delete` operation.
70
35
 
71
- User: "Actually, on second thought, keep them."
36
+ ## User declines
72
37
 
73
- Do not call delete. Confirm:
38
+ User: "Actually, keep them."
74
39
 
75
- > Understood, nothing deleted. The 4 memories from session `c98f110` are intact.
40
+ Do not call delete. Report that nothing was deleted.