@agentmemory/agentmemory 0.8.7 → 0.8.9
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/README.md +6 -1
- package/dist/cli.mjs +4 -4
- package/dist/index.mjs +281 -157
- package/dist/index.mjs.map +1 -1
- package/dist/{src-DUTxjrOM.mjs → src-DJpwR1mt.mjs} +279 -158
- package/dist/src-DJpwR1mt.mjs.map +1 -0
- package/dist/{standalone-DF1_-GHr.mjs → standalone-DpxhaZLn.mjs} +59 -13
- package/dist/standalone-DpxhaZLn.mjs.map +1 -0
- package/dist/standalone.d.mts.map +1 -1
- package/dist/standalone.mjs +58 -12
- package/dist/standalone.mjs.map +1 -1
- package/dist/{tools-registry-CqxObfG_.mjs → tools-registry-CfbSegvn.mjs} +6 -3
- package/dist/tools-registry-CfbSegvn.mjs.map +1 -0
- package/package.json +1 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/.mcp.json +8 -0
- package/plugin/skills/forget/SKILL.md +11 -17
- package/plugin/skills/recall/SKILL.md +9 -6
- package/plugin/skills/remember/SKILL.md +14 -14
- package/plugin/skills/session-history/SKILL.md +10 -9
- package/dist/src-DUTxjrOM.mjs.map +0 -1
- package/dist/standalone-DF1_-GHr.mjs.map +0 -1
- package/dist/tools-registry-CqxObfG_.mjs.map +0 -1
|
@@ -7,19 +7,19 @@ user-invocable: true
|
|
|
7
7
|
|
|
8
8
|
The user wants to save this to long-term memory: $ARGUMENTS
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
```bash
|
|
13
|
-
curl -s -H "Content-Type: application/json" \
|
|
14
|
-
-H "Authorization: Bearer ${AGENTMEMORY_SECRET:-}" \
|
|
15
|
-
-X POST "http://${AGENTMEMORY_URL:-localhost:3111}/agentmemory/remember" \
|
|
16
|
-
-d '{"content": "<ESCAPED_CONTENT>", "concepts": [<CONCEPTS>], "files": [<FILES>]}'
|
|
17
|
-
```
|
|
10
|
+
Use the `memory_save` MCP tool (provided by the agentmemory server that this plugin wires up automatically via `.mcp.json`) to persist it.
|
|
18
11
|
|
|
19
12
|
Steps:
|
|
20
|
-
1. Analyze what the user wants to remember
|
|
21
|
-
2. Extract
|
|
22
|
-
3. Extract relevant
|
|
23
|
-
4.
|
|
24
|
-
|
|
25
|
-
|
|
13
|
+
1. Analyze what the user wants to remember — pull out the core insight, decision, or fact.
|
|
14
|
+
2. Extract 2-5 searchable `concepts` (lowercased keyword phrases) that capture what the memory is about. Prefer specific terms over generic ones (`"jwt-refresh-rotation"` beats `"auth"`).
|
|
15
|
+
3. Extract any relevant `files` — absolute or repo-relative paths the memory references.
|
|
16
|
+
4. Call `memory_save` with the fields:
|
|
17
|
+
- `content` — the full text to remember (preserve the user's phrasing as much as possible)
|
|
18
|
+
- `concepts` — the extracted concept list
|
|
19
|
+
- `files` — the extracted file list (empty array if none apply)
|
|
20
|
+
5. Confirm to the user that the memory was saved and show the concepts you tagged so they know what terms will retrieve it later.
|
|
21
|
+
|
|
22
|
+
If `memory_save` isn't available, the stdio MCP shim didn't start — tell the user to:
|
|
23
|
+
1. Run `/plugin list` in Claude Code and confirm `agentmemory` shows as enabled.
|
|
24
|
+
2. Restart Claude Code (the plugin's `.mcp.json` is only read on startup).
|
|
25
|
+
3. Check `/mcp` to see whether the `agentmemory` MCP server is connected.
|
|
@@ -4,14 +4,15 @@ description: Show what happened in recent past sessions on this project. Use whe
|
|
|
4
4
|
user-invocable: true
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
Fetch recent session history
|
|
7
|
+
Fetch recent session history using the `memory_sessions` MCP tool (provided by the agentmemory server that this plugin wires up automatically via `.mcp.json`). Pass `limit: 20` to get a meaningful window.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Present the returned sessions in reverse chronological order:
|
|
10
|
+
- Show the session ID (first 8 chars), project, start time, and status
|
|
11
|
+
- For each session with observations, show the key highlights (type + title)
|
|
12
|
+
- Note the total observation count per session
|
|
13
|
+
- If a session summary exists, surface the title and the key decisions
|
|
10
14
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
- If summaries exist, show the session title and key decisions
|
|
16
|
-
|
|
17
|
-
Format as a clean timeline. Do NOT make up sessions -- only show what was returned.
|
|
15
|
+
Format as a clean timeline. **Do NOT make up sessions** — only show what the MCP tool actually returned. If `memory_sessions` isn't available, the stdio MCP shim didn't start — tell the user to:
|
|
16
|
+
1. Run `/plugin list` in Claude Code and confirm `agentmemory` shows as enabled.
|
|
17
|
+
2. Restart Claude Code (the plugin's `.mcp.json` is only read on startup).
|
|
18
|
+
3. Check `/mcp` to see whether the `agentmemory` MCP server is connected.
|