@agentmemory/agentmemory 0.9.30 → 0.9.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +57 -48
- package/AGENTS.md +8 -8
- package/README.md +256 -819
- package/dist/.env.example +57 -48
- package/dist/cli.d.mts.map +1 -1
- package/dist/cli.mjs +2257 -1027
- package/dist/cli.mjs.map +1 -1
- package/dist/compression-recovery-CZh63Jmz.mjs +5997 -0
- package/dist/compression-recovery-CZh63Jmz.mjs.map +1 -0
- package/dist/{connect-B4_ca6BD.mjs → connect-BX3njQ3Y.mjs} +897 -276
- package/dist/connect-BX3njQ3Y.mjs.map +1 -0
- package/dist/hooks/_capture.d.mts +5 -1
- package/dist/hooks/_capture.d.mts.map +1 -1
- package/dist/hooks/_capture.mjs +141 -26
- package/dist/hooks/_capture.mjs.map +1 -1
- package/dist/hooks/notification.mjs +20 -6
- package/dist/hooks/notification.mjs.map +1 -1
- package/dist/hooks/post-commit.mjs +83 -10
- package/dist/hooks/post-commit.mjs.map +1 -1
- package/dist/hooks/post-tool-failure.mjs +19 -6
- package/dist/hooks/post-tool-failure.mjs.map +1 -1
- package/dist/hooks/post-tool-use.mjs +19 -6
- package/dist/hooks/post-tool-use.mjs.map +1 -1
- package/dist/hooks/pre-compact.mjs +104 -22
- package/dist/hooks/pre-compact.mjs.map +1 -1
- package/dist/hooks/pre-tool-use.mjs +83 -10
- package/dist/hooks/pre-tool-use.mjs.map +1 -1
- package/dist/hooks/prompt-submit.mjs +12 -4
- package/dist/hooks/prompt-submit.mjs.map +1 -1
- package/dist/hooks/session-end.mjs +59 -17
- package/dist/hooks/session-end.mjs.map +1 -1
- package/dist/hooks/session-start.mjs +95 -15
- package/dist/hooks/session-start.mjs.map +1 -1
- package/dist/hooks/stop.mjs +75 -72
- package/dist/hooks/stop.mjs.map +1 -1
- package/dist/hooks/subagent-start.mjs +13 -5
- package/dist/hooks/subagent-start.mjs.map +1 -1
- package/dist/hooks/subagent-stop.mjs +32 -10
- package/dist/hooks/subagent-stop.mjs.map +1 -1
- package/dist/hooks/task-completed.mjs +21 -6
- package/dist/hooks/task-completed.mjs.map +1 -1
- package/dist/{image-refs-T_urbwHM.mjs → image-refs-Cyta4Lf9.mjs} +2 -2
- package/dist/{image-refs-T_urbwHM.mjs.map → image-refs-Cyta4Lf9.mjs.map} +1 -1
- package/dist/index.mjs +16390 -11530
- package/dist/index.mjs.map +1 -1
- package/dist/integrations/dsh.d.mts +55 -0
- package/dist/integrations/dsh.d.mts.map +1 -0
- package/dist/integrations/dsh.mjs +1172 -0
- package/dist/integrations/dsh.mjs.map +1 -0
- package/dist/{keyed-mutex-DchXsyfP.mjs → keyed-mutex-DCUh7PG-.mjs} +58 -9
- package/dist/keyed-mutex-DCUh7PG-.mjs.map +1 -0
- package/dist/{secret-store-BnY3A50C.mjs → secret-store-iYXRcrO8.mjs} +717 -474
- package/dist/secret-store-iYXRcrO8.mjs.map +1 -0
- package/dist/session-arguments-zxsbbd8y.mjs +113 -0
- package/dist/session-arguments-zxsbbd8y.mjs.map +1 -0
- package/dist/{src-Jsq9LCeH.mjs → src-C23nMpda.mjs} +5263 -4667
- package/dist/src-C23nMpda.mjs.map +1 -0
- package/dist/{standalone-DKCdrf1d.mjs → standalone-BYo5USDb.mjs} +379 -63
- package/dist/standalone-BYo5USDb.mjs.map +1 -0
- package/dist/standalone.d.mts +1 -1
- package/dist/standalone.d.mts.map +1 -1
- package/dist/standalone.mjs +864 -81
- package/dist/standalone.mjs.map +1 -1
- package/dist/viewer/index.html +337 -168
- package/integrations/hermes/README.md +94 -0
- package/integrations/hermes/__init__.py +670 -0
- package/integrations/hermes/plugin.yaml +27 -0
- package/integrations/omp/LICENSE +190 -0
- package/integrations/omp/README.md +76 -0
- package/integrations/omp/capture.ts +1 -0
- package/integrations/omp/dist/index.mjs +1477 -0
- package/integrations/omp/index.ts +488 -0
- package/integrations/omp/package.json +13 -0
- package/integrations/omp/security.ts +67 -0
- package/integrations/omp/skills/agentmemory-agents/REFERENCE.md +32 -0
- package/integrations/omp/skills/agentmemory-agents/SKILL.md +48 -0
- package/integrations/omp/skills/agentmemory-agents/TROUBLESHOOTING.md +70 -0
- package/integrations/omp/skills/agentmemory-architecture/SKILL.md +37 -0
- package/integrations/omp/skills/agentmemory-architecture/TROUBLESHOOTING.md +70 -0
- package/integrations/omp/skills/agentmemory-config/REFERENCE.md +91 -0
- package/integrations/omp/skills/agentmemory-config/SKILL.md +98 -0
- package/integrations/omp/skills/agentmemory-config/TROUBLESHOOTING.md +70 -0
- package/integrations/omp/skills/agentmemory-hooks/REFERENCE.md +20 -0
- package/integrations/omp/skills/agentmemory-hooks/SKILL.md +60 -0
- package/integrations/omp/skills/agentmemory-hooks/TROUBLESHOOTING.md +70 -0
- package/integrations/omp/skills/agentmemory-mcp-tools/REFERENCE.md +66 -0
- package/integrations/omp/skills/agentmemory-mcp-tools/SKILL.md +52 -0
- package/integrations/omp/skills/agentmemory-mcp-tools/TROUBLESHOOTING.md +70 -0
- package/integrations/omp/skills/agentmemory-rest-api/REFERENCE.md +159 -0
- package/integrations/omp/skills/agentmemory-rest-api/SKILL.md +49 -0
- package/integrations/omp/skills/agentmemory-rest-api/TROUBLESHOOTING.md +70 -0
- package/integrations/omp/skills/commit-context/EXAMPLES.md +71 -0
- package/integrations/omp/skills/commit-context/SKILL.md +64 -0
- package/integrations/omp/skills/commit-context/TROUBLESHOOTING.md +70 -0
- package/integrations/omp/skills/commit-history/EXAMPLES.md +71 -0
- package/integrations/omp/skills/commit-history/SKILL.md +62 -0
- package/integrations/omp/skills/commit-history/TROUBLESHOOTING.md +70 -0
- package/integrations/omp/skills/forget/EXAMPLES.md +40 -0
- package/integrations/omp/skills/forget/SKILL.md +73 -0
- package/integrations/omp/skills/forget/TROUBLESHOOTING.md +70 -0
- package/integrations/omp/skills/handoff/EXAMPLES.md +57 -0
- package/integrations/omp/skills/handoff/SKILL.md +75 -0
- package/integrations/omp/skills/handoff/TROUBLESHOOTING.md +70 -0
- package/integrations/omp/skills/lesson/SKILL.md +64 -0
- package/integrations/omp/skills/lesson/TROUBLESHOOTING.md +70 -0
- package/integrations/omp/skills/memory-discipline/SKILL.md +65 -0
- package/integrations/omp/skills/memory-discipline/TROUBLESHOOTING.md +70 -0
- package/integrations/omp/skills/recall/EXAMPLES.md +74 -0
- package/integrations/omp/skills/recall/SKILL.md +74 -0
- package/integrations/omp/skills/recall/TROUBLESHOOTING.md +70 -0
- package/integrations/omp/skills/recap/EXAMPLES.md +62 -0
- package/integrations/omp/skills/recap/SKILL.md +68 -0
- package/integrations/omp/skills/recap/TROUBLESHOOTING.md +70 -0
- package/integrations/omp/skills/remember/EXAMPLES.md +67 -0
- package/integrations/omp/skills/remember/SKILL.md +66 -0
- package/integrations/omp/skills/remember/TROUBLESHOOTING.md +70 -0
- package/integrations/omp/skills/session-history/EXAMPLES.md +59 -0
- package/integrations/omp/skills/session-history/SKILL.md +67 -0
- package/integrations/omp/skills/session-history/TROUBLESHOOTING.md +70 -0
- package/integrations/omp/skills/write-agentmemory-skill/SKILL.md +41 -0
- package/integrations/omp/skills/write-agentmemory-skill/TROUBLESHOOTING.md +70 -0
- package/integrations/openclaw/LICENSE +190 -0
- package/integrations/openclaw/README.md +98 -0
- package/integrations/openclaw/openclaw.plugin.json +71 -0
- package/integrations/openclaw/package.json +38 -0
- package/integrations/openclaw/plugin.mjs +425 -0
- package/integrations/openclaw/plugin.yaml +26 -0
- package/integrations/openclaw/skills/agentmemory-agents/REFERENCE.md +32 -0
- package/integrations/openclaw/skills/agentmemory-agents/SKILL.md +48 -0
- package/integrations/openclaw/skills/agentmemory-agents/TROUBLESHOOTING.md +70 -0
- package/integrations/openclaw/skills/agentmemory-architecture/SKILL.md +37 -0
- package/integrations/openclaw/skills/agentmemory-architecture/TROUBLESHOOTING.md +70 -0
- package/integrations/openclaw/skills/agentmemory-config/REFERENCE.md +91 -0
- package/integrations/openclaw/skills/agentmemory-config/SKILL.md +98 -0
- package/integrations/openclaw/skills/agentmemory-config/TROUBLESHOOTING.md +70 -0
- package/integrations/openclaw/skills/agentmemory-hooks/REFERENCE.md +20 -0
- package/integrations/openclaw/skills/agentmemory-hooks/SKILL.md +60 -0
- package/integrations/openclaw/skills/agentmemory-hooks/TROUBLESHOOTING.md +70 -0
- package/integrations/openclaw/skills/agentmemory-mcp-tools/REFERENCE.md +66 -0
- package/integrations/openclaw/skills/agentmemory-mcp-tools/SKILL.md +52 -0
- package/integrations/openclaw/skills/agentmemory-mcp-tools/TROUBLESHOOTING.md +70 -0
- package/integrations/openclaw/skills/agentmemory-rest-api/REFERENCE.md +159 -0
- package/integrations/openclaw/skills/agentmemory-rest-api/SKILL.md +49 -0
- package/integrations/openclaw/skills/agentmemory-rest-api/TROUBLESHOOTING.md +70 -0
- package/integrations/openclaw/skills/commit-context/EXAMPLES.md +71 -0
- package/integrations/openclaw/skills/commit-context/SKILL.md +64 -0
- package/integrations/openclaw/skills/commit-context/TROUBLESHOOTING.md +70 -0
- package/integrations/openclaw/skills/commit-history/EXAMPLES.md +71 -0
- package/integrations/openclaw/skills/commit-history/SKILL.md +62 -0
- package/integrations/openclaw/skills/commit-history/TROUBLESHOOTING.md +70 -0
- package/integrations/openclaw/skills/forget/EXAMPLES.md +40 -0
- package/integrations/openclaw/skills/forget/SKILL.md +73 -0
- package/integrations/openclaw/skills/forget/TROUBLESHOOTING.md +70 -0
- package/integrations/openclaw/skills/handoff/EXAMPLES.md +57 -0
- package/integrations/openclaw/skills/handoff/SKILL.md +75 -0
- package/integrations/openclaw/skills/handoff/TROUBLESHOOTING.md +70 -0
- package/integrations/openclaw/skills/lesson/SKILL.md +64 -0
- package/integrations/openclaw/skills/lesson/TROUBLESHOOTING.md +70 -0
- package/integrations/openclaw/skills/memory-discipline/SKILL.md +65 -0
- package/integrations/openclaw/skills/memory-discipline/TROUBLESHOOTING.md +70 -0
- package/integrations/openclaw/skills/recall/EXAMPLES.md +74 -0
- package/integrations/openclaw/skills/recall/SKILL.md +74 -0
- package/integrations/openclaw/skills/recall/TROUBLESHOOTING.md +70 -0
- package/integrations/openclaw/skills/recap/EXAMPLES.md +62 -0
- package/integrations/openclaw/skills/recap/SKILL.md +68 -0
- package/integrations/openclaw/skills/recap/TROUBLESHOOTING.md +70 -0
- package/integrations/openclaw/skills/remember/EXAMPLES.md +67 -0
- package/integrations/openclaw/skills/remember/SKILL.md +66 -0
- package/integrations/openclaw/skills/remember/TROUBLESHOOTING.md +70 -0
- package/integrations/openclaw/skills/session-history/EXAMPLES.md +59 -0
- package/integrations/openclaw/skills/session-history/SKILL.md +67 -0
- package/integrations/openclaw/skills/session-history/TROUBLESHOOTING.md +70 -0
- package/integrations/openclaw/skills/write-agentmemory-skill/SKILL.md +41 -0
- package/integrations/openclaw/skills/write-agentmemory-skill/TROUBLESHOOTING.md +70 -0
- package/integrations/pi/LICENSE +190 -0
- package/integrations/pi/README.md +46 -51
- package/integrations/pi/dist/index.mjs +1460 -0
- package/integrations/pi/index.ts +192 -175
- package/integrations/pi/package.json +17 -7
- package/integrations/pi/security.ts +6 -26
- package/integrations/pi/skills/agentmemory-agents/REFERENCE.md +32 -0
- package/integrations/pi/skills/agentmemory-agents/SKILL.md +48 -0
- package/integrations/pi/skills/agentmemory-agents/TROUBLESHOOTING.md +70 -0
- package/integrations/pi/skills/agentmemory-architecture/SKILL.md +37 -0
- package/integrations/pi/skills/agentmemory-architecture/TROUBLESHOOTING.md +70 -0
- package/integrations/pi/skills/agentmemory-config/REFERENCE.md +91 -0
- package/integrations/pi/skills/agentmemory-config/SKILL.md +98 -0
- package/integrations/pi/skills/agentmemory-config/TROUBLESHOOTING.md +70 -0
- package/integrations/pi/skills/agentmemory-hooks/REFERENCE.md +20 -0
- package/integrations/pi/skills/agentmemory-hooks/SKILL.md +60 -0
- package/integrations/pi/skills/agentmemory-hooks/TROUBLESHOOTING.md +70 -0
- package/integrations/pi/skills/agentmemory-mcp-tools/REFERENCE.md +66 -0
- package/integrations/pi/skills/agentmemory-mcp-tools/SKILL.md +52 -0
- package/integrations/pi/skills/agentmemory-mcp-tools/TROUBLESHOOTING.md +70 -0
- package/integrations/pi/skills/agentmemory-rest-api/REFERENCE.md +159 -0
- package/integrations/pi/skills/agentmemory-rest-api/SKILL.md +49 -0
- package/integrations/pi/skills/agentmemory-rest-api/TROUBLESHOOTING.md +70 -0
- package/integrations/pi/skills/commit-context/EXAMPLES.md +71 -0
- package/integrations/pi/skills/commit-context/SKILL.md +64 -0
- package/integrations/pi/skills/commit-context/TROUBLESHOOTING.md +70 -0
- package/integrations/pi/skills/commit-history/EXAMPLES.md +71 -0
- package/integrations/pi/skills/commit-history/SKILL.md +62 -0
- package/integrations/pi/skills/commit-history/TROUBLESHOOTING.md +70 -0
- package/integrations/pi/skills/forget/EXAMPLES.md +40 -0
- package/integrations/pi/skills/forget/SKILL.md +73 -0
- package/integrations/pi/skills/forget/TROUBLESHOOTING.md +70 -0
- package/integrations/pi/skills/handoff/EXAMPLES.md +57 -0
- package/integrations/pi/skills/handoff/SKILL.md +75 -0
- package/integrations/pi/skills/handoff/TROUBLESHOOTING.md +70 -0
- package/integrations/pi/skills/lesson/SKILL.md +64 -0
- package/integrations/pi/skills/lesson/TROUBLESHOOTING.md +70 -0
- package/integrations/pi/skills/memory-discipline/SKILL.md +65 -0
- package/integrations/pi/skills/memory-discipline/TROUBLESHOOTING.md +70 -0
- package/integrations/pi/skills/recall/EXAMPLES.md +74 -0
- package/integrations/pi/skills/recall/SKILL.md +74 -0
- package/integrations/pi/skills/recall/TROUBLESHOOTING.md +70 -0
- package/integrations/pi/skills/recap/EXAMPLES.md +62 -0
- package/integrations/pi/skills/recap/SKILL.md +68 -0
- package/integrations/pi/skills/recap/TROUBLESHOOTING.md +70 -0
- package/integrations/pi/skills/remember/EXAMPLES.md +67 -0
- package/integrations/pi/skills/remember/SKILL.md +66 -0
- package/integrations/pi/skills/remember/TROUBLESHOOTING.md +70 -0
- package/integrations/pi/skills/session-history/EXAMPLES.md +59 -0
- package/integrations/pi/skills/session-history/SKILL.md +67 -0
- package/integrations/pi/skills/session-history/TROUBLESHOOTING.md +70 -0
- package/integrations/pi/skills/write-agentmemory-skill/SKILL.md +41 -0
- package/integrations/pi/skills/write-agentmemory-skill/TROUBLESHOOTING.md +70 -0
- package/package.json +33 -11
- package/plugin/.claude-plugin/plugin.json +16 -3
- package/plugin/.codex-plugin/plugin.json +4 -3
- package/plugin/.devin-plugin/plugin.json +6 -5
- package/plugin/.mcp.json +5 -1
- package/plugin/README.md +71 -0
- package/plugin/cursor/hooks.json +23 -8
- package/plugin/hooks/hooks.json +24 -12
- package/plugin/hooks.json +67 -0
- package/plugin/opencode/README.md +1 -1
- package/plugin/opencode/agentmemory-capture.ts +25 -11
- package/plugin/opencode/plugin.json +1 -1
- package/plugin/plugin.json +1 -1
- package/plugin/scripts/_capture.d.mts +5 -1
- package/plugin/scripts/_capture.d.mts.map +1 -1
- package/plugin/scripts/_capture.mjs +141 -26
- package/plugin/scripts/_capture.mjs.map +1 -1
- package/plugin/scripts/cursor/run-detached.mjs +786 -0
- package/plugin/scripts/cursor/run-detached.mjs.map +1 -0
- package/plugin/scripts/cursor/run-hook.d.mts +1 -0
- package/plugin/scripts/cursor/run-hook.mjs +704 -0
- package/plugin/scripts/cursor/run-hook.mjs.map +1 -0
- package/plugin/scripts/notification.mjs +20 -6
- package/plugin/scripts/notification.mjs.map +1 -1
- package/plugin/scripts/plugin-bridge.mjs +61 -11
- package/plugin/scripts/post-tool-failure.mjs +19 -6
- package/plugin/scripts/post-tool-failure.mjs.map +1 -1
- package/plugin/scripts/post-tool-use.mjs +19 -6
- package/plugin/scripts/post-tool-use.mjs.map +1 -1
- package/plugin/scripts/pre-compact.mjs +104 -22
- package/plugin/scripts/pre-compact.mjs.map +1 -1
- package/plugin/scripts/pre-tool-use.mjs +83 -10
- package/plugin/scripts/pre-tool-use.mjs.map +1 -1
- package/plugin/scripts/prompt-submit.mjs +12 -4
- package/plugin/scripts/prompt-submit.mjs.map +1 -1
- package/plugin/scripts/session-end.mjs +59 -17
- package/plugin/scripts/session-end.mjs.map +1 -1
- package/plugin/scripts/session-start.mjs +95 -15
- package/plugin/scripts/session-start.mjs.map +1 -1
- package/plugin/scripts/stop.mjs +75 -72
- package/plugin/scripts/stop.mjs.map +1 -1
- package/plugin/scripts/subagent-start.mjs +13 -5
- package/plugin/scripts/subagent-start.mjs.map +1 -1
- package/plugin/scripts/subagent-stop.mjs +32 -10
- package/plugin/scripts/subagent-stop.mjs.map +1 -1
- package/plugin/scripts/task-completed.mjs +21 -6
- package/plugin/scripts/task-completed.mjs.map +1 -1
- package/plugin/skills/_shared/TROUBLESHOOTING.md +21 -7
- package/plugin/skills/agentmemory-agents/REFERENCE.md +8 -7
- package/plugin/skills/agentmemory-agents/SKILL.md +19 -5
- package/plugin/skills/agentmemory-agents/TROUBLESHOOTING.md +70 -0
- package/plugin/skills/agentmemory-architecture/SKILL.md +8 -4
- package/plugin/skills/agentmemory-architecture/TROUBLESHOOTING.md +70 -0
- package/plugin/skills/agentmemory-config/REFERENCE.md +13 -15
- package/plugin/skills/agentmemory-config/SKILL.md +34 -10
- package/plugin/skills/agentmemory-config/TROUBLESHOOTING.md +70 -0
- package/plugin/skills/agentmemory-hooks/SKILL.md +31 -10
- package/plugin/skills/agentmemory-hooks/TROUBLESHOOTING.md +70 -0
- package/plugin/skills/agentmemory-mcp-tools/REFERENCE.md +5 -5
- package/plugin/skills/agentmemory-mcp-tools/SKILL.md +16 -3
- package/plugin/skills/agentmemory-mcp-tools/TROUBLESHOOTING.md +70 -0
- package/plugin/skills/agentmemory-rest-api/REFERENCE.md +10 -1
- package/plugin/skills/agentmemory-rest-api/SKILL.md +12 -6
- package/plugin/skills/agentmemory-rest-api/TROUBLESHOOTING.md +70 -0
- package/plugin/skills/commit-context/SKILL.md +1 -1
- package/plugin/skills/commit-context/TROUBLESHOOTING.md +70 -0
- package/plugin/skills/commit-history/SKILL.md +1 -1
- package/plugin/skills/commit-history/TROUBLESHOOTING.md +70 -0
- package/plugin/skills/forget/EXAMPLES.md +19 -54
- package/plugin/skills/forget/SKILL.md +16 -12
- package/plugin/skills/forget/TROUBLESHOOTING.md +70 -0
- package/plugin/skills/handoff/EXAMPLES.md +5 -4
- package/plugin/skills/handoff/SKILL.md +10 -5
- package/plugin/skills/handoff/TROUBLESHOOTING.md +70 -0
- package/plugin/skills/lesson/SKILL.md +1 -1
- package/plugin/skills/lesson/TROUBLESHOOTING.md +70 -0
- package/plugin/skills/memory-discipline/SKILL.md +1 -1
- package/plugin/skills/memory-discipline/TROUBLESHOOTING.md +70 -0
- package/plugin/skills/recall/SKILL.md +18 -7
- package/plugin/skills/recall/TROUBLESHOOTING.md +70 -0
- package/plugin/skills/recap/EXAMPLES.md +5 -3
- package/plugin/skills/recap/SKILL.md +11 -6
- package/plugin/skills/recap/TROUBLESHOOTING.md +70 -0
- package/plugin/skills/remember/EXAMPLES.md +3 -3
- package/plugin/skills/remember/SKILL.md +1 -1
- package/plugin/skills/remember/TROUBLESHOOTING.md +70 -0
- package/plugin/skills/session-history/EXAMPLES.md +2 -2
- package/plugin/skills/session-history/SKILL.md +10 -4
- package/plugin/skills/session-history/TROUBLESHOOTING.md +70 -0
- package/plugin/skills/write-agentmemory-skill/SKILL.md +2 -1
- package/plugin/skills/write-agentmemory-skill/TROUBLESHOOTING.md +70 -0
- package/dist/connect-B4_ca6BD.mjs.map +0 -1
- package/dist/docker-compose.yml +0 -73
- package/dist/iii-config.docker.yaml +0 -53
- package/dist/iii-config.yaml +0 -63
- package/dist/keyed-mutex-DchXsyfP.mjs.map +0 -1
- package/dist/secret-store-BnY3A50C.mjs.map +0 -1
- package/dist/src-Jsq9LCeH.mjs.map +0 -1
- package/dist/standalone-DKCdrf1d.mjs.map +0 -1
- package/dist/status-IRz7ta8-.mjs +0 -2344
- package/dist/status-IRz7ta8-.mjs.map +0 -1
- package/docker-compose.yml +0 -73
- package/iii-config.docker.yaml +0 -53
- package/iii-config.yaml +0 -63
- package/plugin/scripts/post-commit.mjs +0 -184
- package/plugin/scripts/post-commit.mjs.map +0 -1
- /package/plugin/scripts/{post-commit.d.mts → cursor/run-detached.d.mts} +0 -0
|
@@ -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 @@ RIGHT: `content: "Run vitest with --run in CI; watch mode hangs the pipeline."`
|
|
|
61
61
|
|
|
62
62
|
## Troubleshooting
|
|
63
63
|
|
|
64
|
-
See
|
|
64
|
+
See [TROUBLESHOOTING.md](TROUBLESHOOTING.md) if `memory_lesson_save` 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 -->
|
|
@@ -62,4 +62,4 @@ RIGHT: search first, save each decision as it settles, let hooks own the summary
|
|
|
62
62
|
|
|
63
63
|
## Troubleshooting
|
|
64
64
|
|
|
65
|
-
See
|
|
65
|
+
See [TROUBLESHOOTING.md](TROUBLESHOOTING.md) if `memory_smart_search` or `memory_save` 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 -->
|
|
@@ -29,13 +29,24 @@ id, or an importance score. If nothing comes back, say so.
|
|
|
29
29
|
## Workflow
|
|
30
30
|
|
|
31
31
|
1. Call `memory_smart_search` with the user's text as `query` and `limit: 10`.
|
|
32
|
-
Pass `project` when the user scopes to a specific repo
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
Pass `project` when the user scopes to a specific repo and `agentId` when
|
|
33
|
+
they request one agent's history.
|
|
34
|
+
Use `targetLayer: "memory"` for explicitly saved knowledge, or
|
|
35
|
+
`targetLayer: "observation"` for captured activity. Omit it for mixed search.
|
|
36
|
+
2. Search results are compact. Before quoting full content or describing
|
|
37
|
+
provenance, call `memory_smart_search` with the selected IDs as a
|
|
38
|
+
comma-separated `expandIds` string and the same project, agent, and layer
|
|
39
|
+
filters. If expansion fails or the record is no longer available, report
|
|
40
|
+
that limitation; a title alone is not the full fact.
|
|
41
|
+
3. Group expanded observations by session and show the returned type, title,
|
|
42
|
+
and narrative. Include provenance only when the response supplies it.
|
|
37
43
|
4. Lead with the high-signal observations (importance >= 7).
|
|
38
|
-
5.
|
|
44
|
+
5. With `memory_recall`, inspect `matched_count`, `excluded_by_budget`, and
|
|
45
|
+
`content_truncated` before treating an empty or shortened response as absent
|
|
46
|
+
knowledge. Recover full content with `memory_smart_search` using `expandIds`
|
|
47
|
+
and the same project, agent, and layer filters. `minimum_budget` reports the
|
|
48
|
+
estimated budget needed for a minimal preview when the budget is too small.
|
|
49
|
+
6. If there are no matches, suggest 2-3 alternative search terms and stop. Do not guess.
|
|
39
50
|
|
|
40
51
|
## Anti-patterns
|
|
41
52
|
|
|
@@ -60,4 +71,4 @@ or `auth rotation`."
|
|
|
60
71
|
|
|
61
72
|
## Troubleshooting
|
|
62
73
|
|
|
63
|
-
See
|
|
74
|
+
See [TROUBLESHOOTING.md](TROUBLESHOOTING.md) if `memory_smart_search` 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 -->
|
|
@@ -7,7 +7,7 @@ User: "Recap this week."
|
|
|
7
7
|
Window: last 7 days. Invocation:
|
|
8
8
|
|
|
9
9
|
```json
|
|
10
|
-
memory_sessions { "limit": 30 }
|
|
10
|
+
memory_sessions { "project": "app", "limit": 30 }
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Response (after filtering to cwd and the 7-day window):
|
|
@@ -28,7 +28,7 @@ Response (after filtering to cwd and the 7-day window):
|
|
|
28
28
|
Per session, pull highlights:
|
|
29
29
|
|
|
30
30
|
```json
|
|
31
|
-
memory_recall { "query": "jwt-refresh-rotation auth-flow", "limit": 3 }
|
|
31
|
+
memory_recall { "query": "jwt-refresh-rotation auth-flow", "project": "app", "limit": 3 }
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
Present:
|
|
@@ -47,7 +47,9 @@ Present:
|
|
|
47
47
|
|
|
48
48
|
User: "recap 3"
|
|
49
49
|
|
|
50
|
-
Treat as `last 3`. Call `memory_sessions { "limit": 3 }
|
|
50
|
+
Treat as `last 3`. Call `memory_sessions { "project": "app", "limit": 3 }`
|
|
51
|
+
using the recorded project identifier, then group by date. If the identifier is
|
|
52
|
+
unknown, page through results and filter by directory before selecting three.
|
|
51
53
|
|
|
52
54
|
## 3. Empty window
|
|
53
55
|
|
|
@@ -10,10 +10,11 @@ The user wants a recap. Time window args: $ARGUMENTS
|
|
|
10
10
|
## Quick start
|
|
11
11
|
|
|
12
12
|
```json
|
|
13
|
-
memory_sessions { "limit": 30 }
|
|
13
|
+
memory_sessions { "project": "<current-project-id>", "limit": 30 }
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
Then per surviving session: `memory_recall { "query": "<top concepts>", "limit": 3 }`.
|
|
16
|
+
Then per surviving session: `memory_recall { "query": "<top concepts>", "project": "<current-project-id>", "limit": 3 }`.
|
|
17
|
+
When an agent is requested, pass the same `agentId` to both calls.
|
|
17
18
|
|
|
18
19
|
Expected output:
|
|
19
20
|
|
|
@@ -33,11 +34,15 @@ a real answer, not a prompt to invent activity.
|
|
|
33
34
|
|
|
34
35
|
1. Parse `$ARGUMENTS`: `today` = current local date; `this week` = last 7 days;
|
|
35
36
|
`last <n>` or bare numeric = most recent N; empty = `last 10`.
|
|
36
|
-
2. Call `memory_sessions
|
|
37
|
-
|
|
37
|
+
2. Call `memory_sessions` with the exact recorded project identifier when known
|
|
38
|
+
and the requested `agentId`. Follow `nextCursor` with the same filters until
|
|
39
|
+
the requested window is covered or pages end. When the project identifier is
|
|
40
|
+
unknown, match normalized `cwd` by directory boundary across pages before
|
|
41
|
+
applying the time/count window. Sort by `startedAt` descending.
|
|
38
42
|
3. Group survivors by local calendar date (YYYY-MM-DD).
|
|
39
43
|
4. Per session list id (first 8), title or first prompt, observation count,
|
|
40
|
-
status.
|
|
44
|
+
status. Obtain highlights with `memory_recall`, retaining project/agent scope,
|
|
45
|
+
and verify each result belongs to that session before including it.
|
|
41
46
|
5. End with "N sessions across M days, K observations."
|
|
42
47
|
|
|
43
48
|
## Anti-patterns
|
|
@@ -60,4 +65,4 @@ RIGHT: "No sessions in the last 7 days for this project."
|
|
|
60
65
|
|
|
61
66
|
## Troubleshooting
|
|
62
67
|
|
|
63
|
-
See
|
|
68
|
+
See [TROUBLESHOOTING.md](TROUBLESHOOTING.md) if `memory_sessions` or `memory_recall` 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 -->
|
|
@@ -9,7 +9,7 @@ Invocation:
|
|
|
9
9
|
```json
|
|
10
10
|
memory_save {
|
|
11
11
|
"content": "We decided to drop Redis and use the iii-engine state store for session caching to remove a moving part.",
|
|
12
|
-
"concepts": "session-caching,
|
|
12
|
+
"concepts": "session-caching, state-worker-store, dropped-redis",
|
|
13
13
|
"files": ""
|
|
14
14
|
}
|
|
15
15
|
```
|
|
@@ -17,12 +17,12 @@ memory_save {
|
|
|
17
17
|
Response:
|
|
18
18
|
|
|
19
19
|
```json
|
|
20
|
-
{ "id": "7f3a9c21", "concepts": ["session-caching", "
|
|
20
|
+
{ "id": "7f3a9c21", "concepts": ["session-caching", "state-worker-store", "dropped-redis"], "saved": true }
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
Present:
|
|
24
24
|
|
|
25
|
-
> Saved. Tagged it `session-caching`, `
|
|
25
|
+
> Saved. Tagged it `session-caching`, `state-worker-store`, `dropped-redis`, so a
|
|
26
26
|
> later recall on caching or Redis will surface this decision.
|
|
27
27
|
|
|
28
28
|
## 2. Saving a code-specific gotcha
|
|
@@ -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 -->
|
|
@@ -7,7 +7,7 @@ User: "Show me the session history."
|
|
|
7
7
|
Invocation:
|
|
8
8
|
|
|
9
9
|
```json
|
|
10
|
-
memory_sessions { "limit": 20 }
|
|
10
|
+
memory_sessions { "project": "app", "limit": 20 }
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Response:
|
|
@@ -44,7 +44,7 @@ If a returned session has `observationCount: 0`, list it but say so:
|
|
|
44
44
|
User: "What did we do last time?"
|
|
45
45
|
|
|
46
46
|
```json
|
|
47
|
-
memory_sessions { "limit": 20 }
|
|
47
|
+
memory_sessions { "project": "app", "limit": 20 }
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
Response:
|
|
@@ -9,7 +9,7 @@ The user wants an overview of recent sessions on this project.
|
|
|
9
9
|
## Quick start
|
|
10
10
|
|
|
11
11
|
```json
|
|
12
|
-
memory_sessions { "limit": 20 }
|
|
12
|
+
memory_sessions { "project": "<current-project-id>", "limit": 20 }
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
Expected output:
|
|
@@ -28,8 +28,13 @@ real answer, never a cue to invent past work.
|
|
|
28
28
|
|
|
29
29
|
## Workflow
|
|
30
30
|
|
|
31
|
-
1.
|
|
32
|
-
|
|
31
|
+
1. Use the exact project identifier recorded by the host and pass it to
|
|
32
|
+
`memory_sessions`, with `agentId` when requested. If it is unknown, page
|
|
33
|
+
through sessions using `nextCursor` and match normalized `cwd` by directory
|
|
34
|
+
boundary before choosing the most recent 20. Never substitute another project.
|
|
35
|
+
2. Preserve scope filters on every page; stop at the requested count or a null
|
|
36
|
+
`nextCursor`. State when the displayed history is a partial page. Present in
|
|
37
|
+
reverse chronological order: session id (first 8), project, start
|
|
33
38
|
time, status.
|
|
34
39
|
3. For sessions with observations, show the key highlights (type plus title).
|
|
35
40
|
4. Note the total observation count per session.
|
|
@@ -46,6 +51,7 @@ observation count.
|
|
|
46
51
|
## Checklist
|
|
47
52
|
|
|
48
53
|
- Every session shown came from the tool response.
|
|
54
|
+
- Project/directory scope was checked before selecting the displayed window.
|
|
49
55
|
- Order is reverse-chronological.
|
|
50
56
|
- Per-session observation counts match the response.
|
|
51
57
|
- No session or highlight was invented or merged.
|
|
@@ -58,4 +64,4 @@ observation count.
|
|
|
58
64
|
|
|
59
65
|
## Troubleshooting
|
|
60
66
|
|
|
61
|
-
See
|
|
67
|
+
See [TROUBLESHOOTING.md](TROUBLESHOOTING.md) if `memory_sessions` is not available.
|