distill_session
Condense a conversation into structured knowledge and persist it to long-term memory to free up context and preserve key insights.
Instructions
Distill a conversation session into structured knowledge and persist to long-term memory. Three layers: (1) microcompact clears old tool results at zero cost, (2) LLM summarizes into 9 dimensions, (3) extracts durable knowledge into RecallNest. Use when a session is ending or context is getting large. Side effect: persists extracted memories.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"messages": "<messages>",
"scope": "<scope>"
},
"name": "distill_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | Memory scope for persisted knowledge, e.g. 'project:recallnest' | |
| persist | No | Whether to persist extracted knowledge to RecallNest (default: true) | |
| messages | Yes | Conversation messages to distill | |
| preserveRecent | No | Keep the N most recent messages verbatim (default: 6) | |
| keepRecentTools | No | Keep the N most recent tool results during microcompact (default: 5) |