mem_relevant_to
Retrieve ranked memories relevant to a specific task to narrow context from loaded projects, skipping full briefings. Specify the task and optional files to surface anchored memories, with controls for limit and relevance threshold.
Instructions
One-shot ranked memories for a task — use instead of get_briefing when project context is already loaded and you only want the relevant memory layer.
Second step in progressive disclosure (after get_briefing): narrow here, then mem_get for full text.
Reuses the same ranking pipeline (anchor / module / literal / semantic) but skips project_context, modules, action_required, etc.
PARAMETERS: task — 1–2 sentences describing what you are about to do (required) files — files you'll edit (surfaces anchored memories) limit — cap on returned memories (default 8) min_semantic_score — drop weak semantic hits below this cosine (default 0.25) format — 'full' | 'compact' | 'actions' (inherits get_briefing memory framing)
RETURNS: { task, search_mode, memories: [...], hints?: [...], empty?: true }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | What you are about to do, in 1–2 sentences. Used to rank relevant memories. | |
| files | No | Optional: files you are about to edit — surfaces anchored memories. | |
| limit | No | Cap on returned memories. | |
| format | No | 'compact' = id + 1-line summary; 'full' = complete bodies; 'actions' = bullet-first excerpts. | full |
| min_semantic_score | No | Drop weakly-related semantic hits below this cosine threshold. |