@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.
@@ -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
- 2. Show the user what was found and ask for confirmation
22
- 3. If confirmed, delete via:
23
- ```bash
24
- curl -s -H "Content-Type: application/json" \
25
- -H "Authorization: Bearer ${AGENTMEMORY_SECRET:-}" \
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
- 4. Confirm deletion to the user
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
- Search agentmemory for observations matching: $ARGUMENTS
8
+ The user wants to recall past context about: $ARGUMENTS
9
9
 
10
- !`QUERY=$(echo "$ARGUMENTS" | sed 's/\\/\\\\/g; s/"/\\"/g') && curl -s -H "Content-Type: application/json" -H "Authorization: Bearer ${AGENTMEMORY_SECRET:-}" -X POST http://${AGENTMEMORY_URL:-localhost:3111}/agentmemory/search -d "{\"query\": \"${QUERY}\", \"limit\": 10}" 2>/dev/null || echo '{"results":[]}'`
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 search results to the user in a readable format:
12
+ Present the returned results to the user in a readable format:
13
13
  - Group by session
14
- - Show observation type, title, and narrative
14
+ - For each observation show its type, title, and narrative
15
15
  - Highlight the most important observations (importance >= 7)
16
- - If no results found, suggest alternative search terms
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 results. Only present what was returned from the search.
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
- To save this, make a POST request using the Bash tool:
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 key concepts (2-5 searchable terms)
22
- 3. Extract relevant file paths if any
23
- 4. Make the API call with the properly escaped content
24
- 5. Confirm to the user that the memory was saved
25
- 6. Show what concepts were tagged for future recall
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 from agentmemory:
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
- !`curl -s -H "Authorization: Bearer ${AGENTMEMORY_SECRET:-}" "http://${AGENTMEMORY_URL:-localhost:3111}/agentmemory/sessions" 2>/dev/null || echo '{"sessions":[]}'`
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
- Present the sessions in reverse chronological order:
12
- - Show session ID (first 8 chars), project, start time, status
13
- - For each session with observations, show the key highlights
14
- - Note total observation count per session
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.