Index Conversation to Memory
Save recent Q&A pairs to the index.
Arguments
- If
$ARGUMENTSis a number: save that many Q&A pairs - If
$ARGUMENTSis empty: save the most recent 1 Q&A pair
Count: $ARGUMENTS (default: 1)
Steps
- Identify the recent Q&A pairs (specified count)
- Call store_memory with the formatted content
Format
Content must be in this format:
Human: User's question
Assistant: Claude's response
For multiple pairs, concatenate them.
Example Call
Call store_memory with:
- content: "Human: How do I use CC-Forever?\nAssistant: CC-Forever is a plugin for persistent conversation memory..."
- project: current directory name
- tags: ["manual-index"]
Completion
Report the number of Q&A pairs saved.