@agentmemory/agentmemory 0.8.8 → 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.
@@ -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.