marm_compaction
Compact related memories into a single summary to reduce context bloat.
Instructions
Compact related memories into a single summary to reduce context bloat.
Workflow: status/candidates → stage → review → apply/discard
action="status" — check if compaction candidates exist (run first)
action="candidates" — get pending candidates with source previews; each includes a ready-to-use prompt
action="stage" — submit your summary: {candidate_id, suggested_summary}; source_memory_ids optional
action="review" — inspect staged summaries before committing
action="apply" — commit a staged summary; source memories are marked compacted
action="discard" — reject a candidate, staged or not, without touching source 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": {
"action": "<action>"
},
"name": "marm_compaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| summaries | No | ||
| candidate_id | No |