@agentmemory/agentmemory 0.8.8 → 0.8.10
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 +23 -1
- package/dist/cli.mjs +4 -4
- package/dist/hooks/pre-tool-use.mjs +2 -0
- package/dist/hooks/pre-tool-use.mjs.map +1 -1
- package/dist/hooks/session-start.mjs +2 -1
- package/dist/hooks/session-start.mjs.map +1 -1
- package/dist/index.mjs +60 -6
- package/dist/index.mjs.map +1 -1
- package/dist/{src-CneY0pgf.mjs → src-65nK6f5B.mjs} +58 -7
- package/dist/src-65nK6f5B.mjs.map +1 -0
- package/dist/{standalone-Qmvspmgi.mjs → standalone-CdWMLSak.mjs} +59 -13
- package/dist/standalone-CdWMLSak.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-BuDo4gKj.mjs → tools-registry-DXnvw9ZI.mjs} +6 -3
- package/dist/tools-registry-DXnvw9ZI.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/scripts/pre-tool-use.mjs +2 -0
- package/plugin/scripts/pre-tool-use.mjs.map +1 -1
- package/plugin/scripts/session-start.mjs +2 -1
- package/plugin/scripts/session-start.mjs.map +1 -1
- 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-CneY0pgf.mjs.map +0 -1
- package/dist/standalone-Qmvspmgi.mjs.map +0 -1
- package/dist/tools-registry-BuDo4gKj.mjs.map +0 -1
|
@@ -10,23 +10,17 @@ The user wants to remove data from agentmemory: $ARGUMENTS
|
|
|
10
10
|
**IMPORTANT**: This is a destructive operation. Always confirm with the user before deleting.
|
|
11
11
|
|
|
12
12
|
Steps:
|
|
13
|
-
1. First, search for matching observations:
|
|
14
|
-
```bash
|
|
15
|
-
curl -s -H "Content-Type: application/json" \
|
|
16
|
-
-H "Authorization: Bearer ${AGENTMEMORY_SECRET:-}" \
|
|
17
|
-
-X POST "http://${AGENTMEMORY_URL:-localhost:3111}/agentmemory/search" \
|
|
18
|
-
-d '{"query": "<SEARCH_TERM>", "limit": 20}'
|
|
19
|
-
```
|
|
20
13
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
-X POST "http://${AGENTMEMORY_URL:-localhost:3111}/agentmemory/forget" \
|
|
27
|
-
-d '{"sessionId": "<ID>"}' # or {"observationIds": ["id1", "id2"]}
|
|
28
|
-
```
|
|
14
|
+
1. First search for matching observations with the `memory_smart_search` MCP tool (provided by the agentmemory server this plugin wires up via `.mcp.json`). Use the user's input as the `query` with `limit: 20`.
|
|
15
|
+
2. Show the user what was found — session IDs, observation IDs, titles — and ask for explicit confirmation before deleting.
|
|
16
|
+
3. Once confirmed, call `memory_governance_delete` with:
|
|
17
|
+
- `memoryIds: [<id>, ...]` — an array (or comma-separated string) of the memory IDs returned by the search in step 1
|
|
18
|
+
- `reason: "<short reason>"` — optional, defaults to `"plugin skill request"`
|
|
29
19
|
|
|
30
|
-
|
|
20
|
+
If the user wants to drop an entire session's observations, collect every memory ID in that session from the search results and pass them all via `memoryIds`. The standalone MCP doesn't accept a bare `sessionId` argument — it deletes by memory ID only.
|
|
21
|
+
4. Confirm the deletion count back to the user.
|
|
31
22
|
|
|
32
|
-
Never delete without explicit user confirmation
|
|
23
|
+
**Never delete without explicit user confirmation.** If the MCP tools aren't available, the stdio MCP shim didn't start — tell the user to:
|
|
24
|
+
1. Run `/plugin list` in Claude Code and confirm `agentmemory` shows as enabled.
|
|
25
|
+
2. Restart Claude Code (the plugin's `.mcp.json` is only read on startup).
|
|
26
|
+
3. Check `/mcp` to see whether the `agentmemory` MCP server is connected.
|
|
@@ -5,14 +5,17 @@ argument-hint: "[search query]"
|
|
|
5
5
|
user-invocable: true
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
The user wants to recall past context about: $ARGUMENTS
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Use the `memory_smart_search` MCP tool (provided by the agentmemory server that this plugin wires up automatically via `.mcp.json`) with the user's query as the `query` argument and `limit: 10`. The tool runs hybrid BM25 + vector + graph-expanded search over captured observations and returns ranked results.
|
|
11
11
|
|
|
12
|
-
Present the
|
|
12
|
+
Present the returned results to the user in a readable format:
|
|
13
13
|
- Group by session
|
|
14
|
-
-
|
|
14
|
+
- For each observation show its type, title, and narrative
|
|
15
15
|
- Highlight the most important observations (importance >= 7)
|
|
16
|
-
- If no results
|
|
16
|
+
- If no results come back, suggest 2-3 alternative search terms the user could try
|
|
17
17
|
|
|
18
|
-
Do NOT make up or hallucinate
|
|
18
|
+
**Do NOT make up or hallucinate observations.** Only present what the MCP tool actually returned. If `memory_smart_search` isn't available, the stdio MCP shim didn't start — tell the user to:
|
|
19
|
+
1. Run `/plugin list` in Claude Code and confirm `agentmemory` shows as enabled.
|
|
20
|
+
2. Restart Claude Code (the plugin's `.mcp.json` is only read on startup).
|
|
21
|
+
3. Check `/mcp` to see whether the `agentmemory` MCP server is connected.
|
|
@@ -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.
|