memory_recall_context
Assemble a structured memory recall briefing for agent cold-start or session continuity by retrieving recent memories, pinned items, and user profile.
Instructions
Assemble a structured memory recall briefing for agent cold-start or session continuity.
deep_rerank: when True, runs the Qwen3-0.6B / BGE-m3 deep reranker on
the relevant-memories section (1-5s extra CPU, best ranking quality).
Default False so the briefing is bounded to <100ms. ON APPLE SILICON
(MPS) the deep reranker can hang indefinitely in a PyTorch MPS kernel
(2026-06-19 incident: PIDs 68335, 10086). If you don't need the
best-quality ranking, leave this False. If you do need it and the call
hangs, set the MEMORY_RERANKER_DISABLED env var or
reranker_disabled = true in memory.toml to fully disable the
reranker (falls back to the lightweight weak cross-encoder).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | No | ||
| action | No | ||
| days_recent | No | ||
| deep_rerank | No | ||
| include_pinned | No | ||
| include_user_profile | No | ||
| include_recent_digests | No | ||
| include_high_importance | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |