chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
Search past session observations and lessons for relevant context. Wrap the `memory_smart_search` and `memory_lesson_recall` MCP tools.
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
/recall [query]
|
||||
```
|
||||
|
||||
## Instructions
|
||||
|
||||
1. Call `memory_smart_search` with the query and `limit: 10` (hybrid BM25 + vector + graph search).
|
||||
2. Call `memory_lesson_recall` with the same query and `limit: 5` (lesson search).
|
||||
3. Combine results and present to the user:
|
||||
- Group by session
|
||||
- Show type, title, and narrative for each observation
|
||||
- Highlight high-importance (>= 7) observations
|
||||
- Show lessons separately with confidence scores
|
||||
4. If no results, suggest 2-3 alternative search terms.
|
||||
5. **Never hallucinate results.** Only present what the MCP tools actually return.
|
||||
@@ -0,0 +1,19 @@
|
||||
Explicitly save an insight, decision, or learning to agentmemory for future sessions. Wraps the `memory_save` MCP tool.
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
/remember [what to remember]
|
||||
```
|
||||
|
||||
## Instructions
|
||||
|
||||
1. Analyze what needs to be remembered — extract the core insight, decision, or fact.
|
||||
2. Extract 2-5 searchable concepts (lowercased keyword phrases). Prefer specific terms ("jwt-refresh-rotation" over "auth").
|
||||
3. Extract relevant file paths the memory references.
|
||||
4. Call `memory_save` with:
|
||||
- `content` — full text to remember (preserve user's phrasing)
|
||||
- `concepts` — extracted concept list
|
||||
- `files` — extracted file list (empty array if none)
|
||||
- `type` — choose from: pattern, preference, architecture, bug, workflow, fact
|
||||
5. Confirm the save and show the concepts tagged so the user knows retrieval terms.
|
||||
Reference in New Issue
Block a user