@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.
- package/.env.example +39 -33
- package/AGENTS.md +8 -8
- package/README.md +173 -558
- package/dist/.env.example +39 -33
- package/dist/cli.d.mts.map +1 -1
- package/dist/cli.mjs +1741 -966
- package/dist/cli.mjs.map +1 -1
- package/dist/compression-recovery-CnhLQC6N.mjs +5912 -0
- package/dist/compression-recovery-CnhLQC6N.mjs.map +1 -0
- package/dist/{connect-B4_ca6BD.mjs → connect-BSLIAMpw.mjs} +874 -267
- package/dist/connect-BSLIAMpw.mjs.map +1 -0
- package/dist/hooks/_capture.d.mts +5 -2
- package/dist/hooks/_capture.d.mts.map +1 -1
- package/dist/hooks/_capture.mjs +55 -19
- 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 +25 -5
- package/dist/hooks/post-commit.mjs.map +1 -1
- package/dist/hooks/post-tool-failure.mjs +12 -4
- package/dist/hooks/post-tool-failure.mjs.map +1 -1
- package/dist/hooks/post-tool-use.mjs +12 -4
- package/dist/hooks/post-tool-use.mjs.map +1 -1
- package/dist/hooks/pre-compact.mjs +37 -10
- package/dist/hooks/pre-compact.mjs.map +1 -1
- package/dist/hooks/pre-tool-use.mjs +25 -5
- 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 +47 -16
- package/dist/hooks/session-end.mjs.map +1 -1
- package/dist/hooks/session-start.mjs +37 -10
- package/dist/hooks/session-start.mjs.map +1 -1
- package/dist/hooks/stop.mjs +74 -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 +18 -6
- package/dist/hooks/subagent-stop.mjs.map +1 -1
- package/dist/hooks/task-completed.mjs +13 -5
- 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 +8539 -4203
- 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 +1145 -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-D9GwO0xp.mjs} +535 -434
- package/dist/secret-store-D9GwO0xp.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-DaMtDzt_.mjs} +4087 -3788
- package/dist/src-DaMtDzt_.mjs.map +1 -0
- package/dist/{standalone-DKCdrf1d.mjs → standalone-BlqshyZ5.mjs} +213 -56
- package/dist/standalone-BlqshyZ5.mjs.map +1 -0
- package/dist/standalone.d.mts +1 -1
- package/dist/standalone.d.mts.map +1 -1
- package/dist/standalone.mjs +626 -73
- package/dist/standalone.mjs.map +1 -1
- package/dist/viewer/index.html +288 -140
- package/integrations/hermes/README.md +84 -0
- package/integrations/hermes/__init__.py +669 -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 +1450 -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 +33 -0
- package/integrations/omp/skills/agentmemory-architecture/TROUBLESHOOTING.md +70 -0
- package/integrations/omp/skills/agentmemory-config/REFERENCE.md +90 -0
- package/integrations/omp/skills/agentmemory-config/SKILL.md +78 -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 +49 -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 +42 -0
- package/integrations/omp/skills/agentmemory-mcp-tools/TROUBLESHOOTING.md +70 -0
- package/integrations/omp/skills/agentmemory-rest-api/REFERENCE.md +158 -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 +88 -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 +33 -0
- package/integrations/openclaw/skills/agentmemory-architecture/TROUBLESHOOTING.md +70 -0
- package/integrations/openclaw/skills/agentmemory-config/REFERENCE.md +90 -0
- package/integrations/openclaw/skills/agentmemory-config/SKILL.md +78 -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 +49 -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 +42 -0
- package/integrations/openclaw/skills/agentmemory-mcp-tools/TROUBLESHOOTING.md +70 -0
- package/integrations/openclaw/skills/agentmemory-rest-api/REFERENCE.md +158 -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 +45 -51
- package/integrations/pi/dist/index.mjs +1379 -0
- package/integrations/pi/index.ts +138 -171
- package/integrations/pi/package.json +16 -6
- 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 +33 -0
- package/integrations/pi/skills/agentmemory-architecture/TROUBLESHOOTING.md +70 -0
- package/integrations/pi/skills/agentmemory-config/REFERENCE.md +90 -0
- package/integrations/pi/skills/agentmemory-config/SKILL.md +78 -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 +49 -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 +42 -0
- package/integrations/pi/skills/agentmemory-mcp-tools/TROUBLESHOOTING.md +70 -0
- package/integrations/pi/skills/agentmemory-rest-api/REFERENCE.md +158 -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 +32 -11
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/.codex-plugin/plugin.json +4 -3
- package/plugin/.devin-plugin/plugin.json +5 -3
- package/plugin/cursor/hooks.json +23 -8
- 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 -2
- package/plugin/scripts/_capture.d.mts.map +1 -1
- package/plugin/scripts/_capture.mjs +55 -19
- package/plugin/scripts/_capture.mjs.map +1 -1
- package/plugin/scripts/cursor/run-detached.d.mts +1 -0
- 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 +37 -6
- package/plugin/scripts/post-commit.mjs +25 -5
- package/plugin/scripts/post-commit.mjs.map +1 -1
- package/plugin/scripts/post-tool-failure.mjs +12 -4
- package/plugin/scripts/post-tool-failure.mjs.map +1 -1
- package/plugin/scripts/post-tool-use.mjs +12 -4
- package/plugin/scripts/post-tool-use.mjs.map +1 -1
- package/plugin/scripts/pre-compact.mjs +37 -10
- package/plugin/scripts/pre-compact.mjs.map +1 -1
- package/plugin/scripts/pre-tool-use.mjs +25 -5
- 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 +47 -16
- package/plugin/scripts/session-end.mjs.map +1 -1
- package/plugin/scripts/session-start.mjs +37 -10
- package/plugin/scripts/session-start.mjs.map +1 -1
- package/plugin/scripts/stop.mjs +74 -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 +18 -6
- package/plugin/scripts/subagent-stop.mjs.map +1 -1
- package/plugin/scripts/task-completed.mjs +13 -5
- package/plugin/scripts/task-completed.mjs.map +1 -1
- package/plugin/skills/_shared/TROUBLESHOOTING.md +21 -7
- package/plugin/skills/agentmemory-agents/REFERENCE.md +7 -6
- 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 +4 -4
- package/plugin/skills/agentmemory-architecture/TROUBLESHOOTING.md +70 -0
- package/plugin/skills/agentmemory-config/REFERENCE.md +12 -15
- package/plugin/skills/agentmemory-config/SKILL.md +7 -3
- package/plugin/skills/agentmemory-config/TROUBLESHOOTING.md +70 -0
- package/plugin/skills/agentmemory-hooks/SKILL.md +15 -5
- package/plugin/skills/agentmemory-hooks/TROUBLESHOOTING.md +70 -0
- package/plugin/skills/agentmemory-mcp-tools/REFERENCE.md +4 -4
- package/plugin/skills/agentmemory-mcp-tools/SKILL.md +6 -3
- package/plugin/skills/agentmemory-mcp-tools/TROUBLESHOOTING.md +70 -0
- package/plugin/skills/agentmemory-rest-api/REFERENCE.md +9 -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
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agentmemory-mcp-tools
|
|
3
|
+
description: Map of every agentmemory MCP tool, what each does, and its parameters. Use when choosing which memory tool to call, when a tool name or argument is unclear, or when answering what agentmemory can do via MCP.
|
|
4
|
+
user-invocable: false
|
|
5
|
+
---
|
|
6
|
+
|
|
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
|
+
|
|
9
|
+
## Quick start
|
|
10
|
+
|
|
11
|
+
Save then recall:
|
|
12
|
+
|
|
13
|
+
1. `memory_save` with `content` (the insight), `concepts` (comma-separated keywords), `files` (comma-separated paths).
|
|
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
|
+
|
|
16
|
+
## Tool families
|
|
17
|
+
|
|
18
|
+
- Capture: `memory_save`, `memory_compress_file`. Automatic observations use native hooks or `POST /agentmemory/observe`, not an MCP observation tool.
|
|
19
|
+
- Retrieve: `memory_smart_search`, `memory_recall`, `memory_file_history`, `memory_timeline`, `memory_vision_search`.
|
|
20
|
+
- Sessions and commits: `memory_sessions`, `memory_commits`, `memory_commit_lookup`.
|
|
21
|
+
- Knowledge and graph: `memory_lesson_save`, `memory_lesson_recall`, `memory_graph_query`, `memory_relations`, `memory_patterns`, `memory_crystallize`.
|
|
22
|
+
- Structured slots: `memory_slot_create`, `memory_slot_append`, `memory_slot_get`, `memory_slot_list`, `memory_slot_replace`, `memory_slot_delete`.
|
|
23
|
+
- Governance and health: `memory_governance_delete`, `memory_audit`, `memory_verify`, `memory_heal`, `memory_diagnose`.
|
|
24
|
+
|
|
25
|
+
## Workflow
|
|
26
|
+
|
|
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
|
+
2. Look up exact parameter names and which are required in REFERENCE.md before calling.
|
|
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.
|
|
33
|
+
|
|
34
|
+
## See also
|
|
35
|
+
|
|
36
|
+
- agentmemory-rest-api for the HTTP equivalents.
|
|
37
|
+
- agentmemory-config for tool-visibility and feature flags.
|
|
38
|
+
- The user-invocable action skills (remember, recall, recap, handoff, forget) wrap the most common tools.
|
|
39
|
+
|
|
40
|
+
## Reference
|
|
41
|
+
|
|
42
|
+
Full tool table with parameters and the core-set marking lives in REFERENCE.md, generated from source so it never drifts.
|
|
@@ -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 -->
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
# agentmemory REST API reference
|
|
2
|
+
|
|
3
|
+
Generated from `src/triggers/api.ts`. Do not edit the block below by hand; run `npm run skills:gen` after changing the registered endpoints.
|
|
4
|
+
|
|
5
|
+
<!-- AUTOGEN:rest START - generated by scripts/skills/generate.ts, do not edit by hand -->
|
|
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
|
+
|
|
8
|
+
146 registered endpoints:
|
|
9
|
+
|
|
10
|
+
| Method | Path |
|
|
11
|
+
| --- | --- |
|
|
12
|
+
| GET | `/agentmemory/actions` |
|
|
13
|
+
| POST | `/agentmemory/actions` |
|
|
14
|
+
| POST | `/agentmemory/actions/edges` |
|
|
15
|
+
| GET | `/agentmemory/actions/get` |
|
|
16
|
+
| POST | `/agentmemory/actions/update` |
|
|
17
|
+
| GET | `/agentmemory/audit` |
|
|
18
|
+
| POST | `/agentmemory/auto-forget` |
|
|
19
|
+
| GET | `/agentmemory/branch/detect` |
|
|
20
|
+
| GET | `/agentmemory/branch/sessions` |
|
|
21
|
+
| GET | `/agentmemory/branch/worktrees` |
|
|
22
|
+
| GET | `/agentmemory/capture` |
|
|
23
|
+
| POST | `/agentmemory/capture/drain` |
|
|
24
|
+
| POST | `/agentmemory/capture/retry` |
|
|
25
|
+
| POST | `/agentmemory/cascade-update` |
|
|
26
|
+
| GET | `/agentmemory/checkpoints` |
|
|
27
|
+
| POST | `/agentmemory/checkpoints` |
|
|
28
|
+
| POST | `/agentmemory/checkpoints/resolve` |
|
|
29
|
+
| GET | `/agentmemory/claude-bridge/read` |
|
|
30
|
+
| POST | `/agentmemory/claude-bridge/sync` |
|
|
31
|
+
| GET | `/agentmemory/commits` |
|
|
32
|
+
| POST | `/agentmemory/compress-file` |
|
|
33
|
+
| GET | `/agentmemory/compression` |
|
|
34
|
+
| POST | `/agentmemory/compression/retry` |
|
|
35
|
+
| GET | `/agentmemory/config/flags` |
|
|
36
|
+
| POST | `/agentmemory/consolidate` |
|
|
37
|
+
| POST | `/agentmemory/consolidate-pipeline` |
|
|
38
|
+
| GET | `/agentmemory/consolidation/status` |
|
|
39
|
+
| POST | `/agentmemory/context` |
|
|
40
|
+
| GET | `/agentmemory/counts` |
|
|
41
|
+
| GET | `/agentmemory/crystals` |
|
|
42
|
+
| POST | `/agentmemory/crystals/auto` |
|
|
43
|
+
| POST | `/agentmemory/crystals/create` |
|
|
44
|
+
| POST | `/agentmemory/diagnostics` |
|
|
45
|
+
| GET | `/agentmemory/diagnostics/followup` |
|
|
46
|
+
| POST | `/agentmemory/diagnostics/heal` |
|
|
47
|
+
| POST | `/agentmemory/enrich` |
|
|
48
|
+
| POST | `/agentmemory/evict` |
|
|
49
|
+
| POST | `/agentmemory/evolve` |
|
|
50
|
+
| GET | `/agentmemory/export` |
|
|
51
|
+
| GET | `/agentmemory/facets` |
|
|
52
|
+
| POST | `/agentmemory/facets` |
|
|
53
|
+
| POST | `/agentmemory/facets/query` |
|
|
54
|
+
| POST | `/agentmemory/facets/remove` |
|
|
55
|
+
| GET | `/agentmemory/facets/stats` |
|
|
56
|
+
| POST | `/agentmemory/file-context` |
|
|
57
|
+
| POST | `/agentmemory/flow/compress` |
|
|
58
|
+
| POST | `/agentmemory/forget` |
|
|
59
|
+
| GET | `/agentmemory/frontier` |
|
|
60
|
+
| POST | `/agentmemory/generate-rules` |
|
|
61
|
+
| POST | `/agentmemory/governance/bulk-delete` |
|
|
62
|
+
| DELETE | `/agentmemory/governance/memories` |
|
|
63
|
+
| POST | `/agentmemory/graph/build` |
|
|
64
|
+
| POST | `/agentmemory/graph/compact` |
|
|
65
|
+
| POST | `/agentmemory/graph/extract` |
|
|
66
|
+
| POST | `/agentmemory/graph/import-graphify` |
|
|
67
|
+
| GET | `/agentmemory/graph/index` |
|
|
68
|
+
| POST | `/agentmemory/graph/index/migrate` |
|
|
69
|
+
| POST | `/agentmemory/graph/index/resume` |
|
|
70
|
+
| GET | `/agentmemory/graph/node` |
|
|
71
|
+
| POST | `/agentmemory/graph/query` |
|
|
72
|
+
| POST | `/agentmemory/graph/reset` |
|
|
73
|
+
| POST | `/agentmemory/graph/snapshot-rebuild` |
|
|
74
|
+
| GET | `/agentmemory/graph/stats` |
|
|
75
|
+
| GET | `/agentmemory/health` |
|
|
76
|
+
| POST | `/agentmemory/import` |
|
|
77
|
+
| GET | `/agentmemory/insights` |
|
|
78
|
+
| POST | `/agentmemory/insights/search` |
|
|
79
|
+
| POST | `/agentmemory/leases/acquire` |
|
|
80
|
+
| POST | `/agentmemory/leases/release` |
|
|
81
|
+
| POST | `/agentmemory/leases/renew` |
|
|
82
|
+
| GET | `/agentmemory/lessons` |
|
|
83
|
+
| POST | `/agentmemory/lessons` |
|
|
84
|
+
| POST | `/agentmemory/lessons/delete` |
|
|
85
|
+
| POST | `/agentmemory/lessons/search` |
|
|
86
|
+
| POST | `/agentmemory/lessons/strengthen` |
|
|
87
|
+
| GET | `/agentmemory/livez` |
|
|
88
|
+
| GET | `/agentmemory/memories` |
|
|
89
|
+
| GET | `/agentmemory/memories/:id` |
|
|
90
|
+
| GET | `/agentmemory/mesh/export` |
|
|
91
|
+
| GET | `/agentmemory/mesh/peers` |
|
|
92
|
+
| POST | `/agentmemory/mesh/peers` |
|
|
93
|
+
| POST | `/agentmemory/mesh/receive` |
|
|
94
|
+
| POST | `/agentmemory/mesh/sync` |
|
|
95
|
+
| POST | `/agentmemory/migrate` |
|
|
96
|
+
| GET | `/agentmemory/next` |
|
|
97
|
+
| GET | `/agentmemory/observations` |
|
|
98
|
+
| GET | `/agentmemory/observations/locate` |
|
|
99
|
+
| POST | `/agentmemory/observe` |
|
|
100
|
+
| POST | `/agentmemory/obsidian/export` |
|
|
101
|
+
| POST | `/agentmemory/patterns` |
|
|
102
|
+
| GET | `/agentmemory/procedural` |
|
|
103
|
+
| GET | `/agentmemory/profile` |
|
|
104
|
+
| POST | `/agentmemory/reflect` |
|
|
105
|
+
| GET | `/agentmemory/relations` |
|
|
106
|
+
| POST | `/agentmemory/relations` |
|
|
107
|
+
| POST | `/agentmemory/remember` |
|
|
108
|
+
| POST | `/agentmemory/replay/import-jsonl` |
|
|
109
|
+
| GET | `/agentmemory/replay/load` |
|
|
110
|
+
| GET | `/agentmemory/replay/sessions` |
|
|
111
|
+
| GET | `/agentmemory/routines` |
|
|
112
|
+
| POST | `/agentmemory/routines` |
|
|
113
|
+
| POST | `/agentmemory/routines/run` |
|
|
114
|
+
| GET | `/agentmemory/routines/status` |
|
|
115
|
+
| POST | `/agentmemory/search` |
|
|
116
|
+
| GET | `/agentmemory/semantic` |
|
|
117
|
+
| GET | `/agentmemory/sentinels` |
|
|
118
|
+
| POST | `/agentmemory/sentinels` |
|
|
119
|
+
| POST | `/agentmemory/sentinels/cancel` |
|
|
120
|
+
| POST | `/agentmemory/sentinels/check` |
|
|
121
|
+
| POST | `/agentmemory/sentinels/trigger` |
|
|
122
|
+
| GET | `/agentmemory/session/by-commit` |
|
|
123
|
+
| POST | `/agentmemory/session/commit` |
|
|
124
|
+
| POST | `/agentmemory/session/end` |
|
|
125
|
+
| POST | `/agentmemory/session/start` |
|
|
126
|
+
| GET | `/agentmemory/sessions` |
|
|
127
|
+
| GET | `/agentmemory/signals` |
|
|
128
|
+
| POST | `/agentmemory/signals/send` |
|
|
129
|
+
| GET | `/agentmemory/sketches` |
|
|
130
|
+
| POST | `/agentmemory/sketches` |
|
|
131
|
+
| POST | `/agentmemory/sketches/add` |
|
|
132
|
+
| POST | `/agentmemory/sketches/discard` |
|
|
133
|
+
| POST | `/agentmemory/sketches/gc` |
|
|
134
|
+
| POST | `/agentmemory/sketches/promote` |
|
|
135
|
+
| DELETE | `/agentmemory/slot` |
|
|
136
|
+
| GET | `/agentmemory/slot` |
|
|
137
|
+
| POST | `/agentmemory/slot` |
|
|
138
|
+
| POST | `/agentmemory/slot/append` |
|
|
139
|
+
| POST | `/agentmemory/slot/reflect` |
|
|
140
|
+
| POST | `/agentmemory/slot/replace` |
|
|
141
|
+
| GET | `/agentmemory/slots` |
|
|
142
|
+
| POST | `/agentmemory/smart-search` |
|
|
143
|
+
| POST | `/agentmemory/snapshot/create` |
|
|
144
|
+
| POST | `/agentmemory/snapshot/restore` |
|
|
145
|
+
| GET | `/agentmemory/snapshots` |
|
|
146
|
+
| GET | `/agentmemory/status` |
|
|
147
|
+
| POST | `/agentmemory/summarize` |
|
|
148
|
+
| GET | `/agentmemory/team/feed` |
|
|
149
|
+
| GET | `/agentmemory/team/profile` |
|
|
150
|
+
| POST | `/agentmemory/team/share` |
|
|
151
|
+
| POST | `/agentmemory/timeline` |
|
|
152
|
+
| POST | `/agentmemory/verify` |
|
|
153
|
+
| GET | `/agentmemory/viewer` |
|
|
154
|
+
| GET | `/agentmemory/viewer/events` |
|
|
155
|
+
| GET | `/agentmemory/viewer/snapshot` |
|
|
156
|
+
| POST | `/agentmemory/vision-embed` |
|
|
157
|
+
| POST | `/agentmemory/vision-search` |
|
|
158
|
+
<!-- AUTOGEN:rest END -->
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agentmemory-rest-api
|
|
3
|
+
description: The agentmemory HTTP REST API surface, the primary protocol for talking to the memory server. Use when calling agentmemory over HTTP, when MCP is unavailable and you need a fallback, or when integrating a host that does not speak MCP.
|
|
4
|
+
user-invocable: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
REST is agentmemory's primary surface. MCP is a bridge on top of it. Every memory operation has an HTTP endpoint under `http://localhost:3111/agentmemory/*`.
|
|
8
|
+
|
|
9
|
+
## Quick start
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
# liveness
|
|
13
|
+
curl -fsS http://localhost:3111/agentmemory/livez
|
|
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
|
+
|
|
19
|
+
# save
|
|
20
|
+
curl -fsS -X POST http://localhost:3111/agentmemory/remember \
|
|
21
|
+
-H "Authorization: Bearer $agentmemory_secret" \
|
|
22
|
+
-H "Content-Type: application/json" \
|
|
23
|
+
-d '{"content":"chose JWT refresh rotation","concepts":["jwt-refresh-rotation"]}'
|
|
24
|
+
|
|
25
|
+
# recall
|
|
26
|
+
curl -fsS -X POST http://localhost:3111/agentmemory/smart-search \
|
|
27
|
+
-H "Authorization: Bearer $agentmemory_secret" \
|
|
28
|
+
-H "Content-Type: application/json" \
|
|
29
|
+
-d '{"query":"auth token strategy","limit":5}'
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Auth
|
|
33
|
+
|
|
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).
|
|
35
|
+
|
|
36
|
+
## Conventions
|
|
37
|
+
|
|
38
|
+
- Save returns `201`, reads return `200`, validation errors return `400`.
|
|
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`.
|
|
41
|
+
|
|
42
|
+
## See also
|
|
43
|
+
|
|
44
|
+
- agentmemory-mcp-tools for the MCP equivalents.
|
|
45
|
+
- agentmemory-config for local configuration and the secret.
|
|
46
|
+
|
|
47
|
+
## Reference
|
|
48
|
+
|
|
49
|
+
The full endpoint list with methods lives in REFERENCE.md, generated from `src/triggers/api.ts`.
|
|
@@ -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 -->
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# commit-context worked examples
|
|
2
|
+
|
|
3
|
+
## 1. Line range with a linked session
|
|
4
|
+
|
|
5
|
+
User: "Why is this retry loop here?" (pointing at lines 40-52 of refresh.ts)
|
|
6
|
+
|
|
7
|
+
Find the SHA:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
git blame -L 40,52 src/auth/refresh.ts
|
|
11
|
+
# 9a1b2c3d (dev 2026-06-07) ... retry on revoked token
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Look it up:
|
|
15
|
+
|
|
16
|
+
```json
|
|
17
|
+
memory_commit_lookup { "sha": "9a1b2c3d4e5f60718293a4b5c6d7e8f901234567" }
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Response:
|
|
21
|
+
|
|
22
|
+
```json
|
|
23
|
+
{
|
|
24
|
+
"commit": { "sha": "9a1b2c3d...", "short": "9a1b2c3", "branch": "main",
|
|
25
|
+
"author": "dev", "message": "rotate refresh tokens" },
|
|
26
|
+
"sessions": [ { "id": "7f3a9c21", "project": "app", "observationCount": 14,
|
|
27
|
+
"summary": "Reworked refresh rotation" } ]
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Present:
|
|
32
|
+
|
|
33
|
+
> `9a1b2c3` on `main` by dev: "rotate refresh tokens". Linked to session
|
|
34
|
+
> `7f3a9c2` "Auth refresh rework" (14 obs). The retry loop handles a token
|
|
35
|
+
> revoked mid-flight, per the session's high-importance observations.
|
|
36
|
+
|
|
37
|
+
## 2. Function lookup, commit predates linking
|
|
38
|
+
|
|
39
|
+
User: "What was the agent doing when it wrote validateScope?"
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
git log -L :validateScope:src/auth/scope.ts -n 1
|
|
43
|
+
# 1122aabb ...
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
```json
|
|
47
|
+
memory_commit_lookup { "sha": "1122aabbccddeeff00112233445566778899aabb" }
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Response:
|
|
51
|
+
|
|
52
|
+
```json
|
|
53
|
+
{ "commit": null }
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Present:
|
|
57
|
+
|
|
58
|
+
> `1122aab` predates agent session linking, so there is no recorded session.
|
|
59
|
+
> From `git show`: it added `validateScope` to enforce per-token scopes. I can
|
|
60
|
+
> show the full diff if useful.
|
|
61
|
+
|
|
62
|
+
## 3. Bare path
|
|
63
|
+
|
|
64
|
+
User: "Give me context on src/middleware/limit.ts."
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
git log -n 1 -- src/middleware/limit.ts
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Take the SHA, run `memory_commit_lookup`, present commit plus linked session in
|
|
71
|
+
the same shape as example 1.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: commit-context
|
|
3
|
+
description: Trace a file, function, or line back to the agent session that produced its current commit. Use when the user asks "why is this code here", "what was the agent doing when this changed", "who wrote this", or wants context on a specific location in the codebase.
|
|
4
|
+
argument-hint: "[file, function, or line]"
|
|
5
|
+
user-invocable: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
The user wants commit context for: $ARGUMENTS
|
|
9
|
+
|
|
10
|
+
## Quick start
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
git blame -L 40,52 src/auth/refresh.ts # -> SHA 9a1b2c3d
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
```json
|
|
17
|
+
memory_commit_lookup { "sha": "9a1b2c3d4e5f60718293a4b5c6d7e8f901234567" }
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Expected output:
|
|
21
|
+
|
|
22
|
+
```text
|
|
23
|
+
9a1b2c3 on main by dev: "rotate refresh tokens"
|
|
24
|
+
Linked session 7f3a9c2 "Auth refresh rework", 14 obs.
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Why
|
|
28
|
+
|
|
29
|
+
Report only what git and the lookup return. When the lookup gives `commit: null`,
|
|
30
|
+
the commit predates session linking; do not invent intent.
|
|
31
|
+
|
|
32
|
+
## Workflow
|
|
33
|
+
|
|
34
|
+
1. Find the SHA: `git blame -L <start>,<end> <file>` for a line range;
|
|
35
|
+
`git log -L :<function>:<file>` for a function; `git log -n 1 -- <file>` for a
|
|
36
|
+
bare path.
|
|
37
|
+
2. Look it up: `memory_commit_lookup { "sha": "<full-sha>" }`.
|
|
38
|
+
3. Present the commit (sha, short sha, branch, author, message), the linked
|
|
39
|
+
session(s) (id, project, started/ended, observation count, summary), and the
|
|
40
|
+
importance >= 7 observations via `memory_recall` when available.
|
|
41
|
+
|
|
42
|
+
## Anti-patterns
|
|
43
|
+
|
|
44
|
+
WRONG: lookup returns `{ "commit": null }`, you narrate "the agent was
|
|
45
|
+
refactoring auth" from the diff alone.
|
|
46
|
+
|
|
47
|
+
RIGHT: "This commit predates session linking, so there is no recorded agent
|
|
48
|
+
session. From `git show`: it changed token rotation in refresh.ts."
|
|
49
|
+
|
|
50
|
+
## Checklist
|
|
51
|
+
|
|
52
|
+
- SHA came from git blame/log, not a guess.
|
|
53
|
+
- `commit: null` reported as "predates linking", no fabricated session.
|
|
54
|
+
- Session details quote the lookup response verbatim.
|
|
55
|
+
- No intent claimed beyond what observations state.
|
|
56
|
+
|
|
57
|
+
## See also
|
|
58
|
+
|
|
59
|
+
- `commit-history`: list many agent-linked commits at once.
|
|
60
|
+
- `recall`: dig deeper into the linked session's observations.
|
|
61
|
+
|
|
62
|
+
## Troubleshooting
|
|
63
|
+
|
|
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 -->
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# commit-history worked examples
|
|
2
|
+
|
|
3
|
+
## 1. Branch filter
|
|
4
|
+
|
|
5
|
+
User: "Show agent commits on main."
|
|
6
|
+
|
|
7
|
+
Invocation:
|
|
8
|
+
|
|
9
|
+
```json
|
|
10
|
+
memory_commits { "branch": "main", "limit": 100 }
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Response:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"commits": [
|
|
18
|
+
{ "short": "9a1b2c3", "branch": "main", "authoredAt": "2026-06-07T09:12:00Z",
|
|
19
|
+
"message": "rotate refresh tokens", "sessionIds": ["7f3a9c21"],
|
|
20
|
+
"observationCount": 14, "files": 3 },
|
|
21
|
+
{ "short": "b21d004", "branch": "main", "authoredAt": "2026-06-05T14:40:00Z",
|
|
22
|
+
"message": "rate limiter audit", "sessionIds": ["b21d004e"],
|
|
23
|
+
"observationCount": 9, "files": 1 }
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Present:
|
|
29
|
+
|
|
30
|
+
> - `9a1b2c3` main 2026-06-07 "rotate refresh tokens", session `7f3a9c2` (14 obs, 3 files)
|
|
31
|
+
> - `b21d004` main 2026-06-05 "rate limiter audit", session `b21d004` (9 obs, 1 file)
|
|
32
|
+
|
|
33
|
+
## 2. Bare number as limit
|
|
34
|
+
|
|
35
|
+
User: "commit-history 5"
|
|
36
|
+
|
|
37
|
+
Treat `5` as the limit:
|
|
38
|
+
|
|
39
|
+
```json
|
|
40
|
+
memory_commits { "limit": 5 }
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Render the five newest linked commits in the same format.
|
|
44
|
+
|
|
45
|
+
## 3. Empty result
|
|
46
|
+
|
|
47
|
+
User: "Show agent commits on release-2.0."
|
|
48
|
+
|
|
49
|
+
```json
|
|
50
|
+
memory_commits { "branch": "release-2.0", "limit": 100 }
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Response:
|
|
54
|
+
|
|
55
|
+
```json
|
|
56
|
+
{ "commits": [] }
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Present:
|
|
60
|
+
|
|
61
|
+
> No agent-linked commits on `release-2.0`. Drop the branch filter to see all
|
|
62
|
+
> linked commits, or try a different branch.
|
|
63
|
+
|
|
64
|
+
REST fallback for this same call, with encoding:
|
|
65
|
+
|
|
66
|
+
```http
|
|
67
|
+
GET /agentmemory/commits?branch=release-2.0&limit=100
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Build it with `URLSearchParams` so a branch like `feat/a&b` becomes
|
|
71
|
+
`feat%2Fa%26b` rather than breaking the query.
|