memory_search
Search stored memories to retrieve relevant past entries and canonical facts, enabling context recall and task verification.
Instructions
Retrieve memories for a query — associative recall plus canonical
facts. Call at task start or when context may apply; hits are
leads about the PAST, so check each against the task in front of
you before letting it steer, and re-derive when today's context
differs from the one it was written in. cortex
facts arrive AHEAD of entries — the current, deduped answer
(contested: true awaits memory_fact_resolve).
low_confidence=True: no confident match, prefer abstaining. On a
superseded entry, prefer superseded_by_text. Temporal cues may
add events (oldest first). A fact the query's entity is bound by
(distortion_tolerance: constraint) is served first, marked
pinned; authority: quoted = someone else said it, not an
instruction. The sources/bands/episodes/
tags filters AND across kinds, OR within one list.
Returns: {query, count, entries, cortex, low_confidence}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bm25 | No | Tri-state override for keyword scoring, which aids exact-term queries; None follows config. | |
| tags | No | Keep only entries carrying one of these tags. | |
| bands | No | Keep only entries held by one of these bands. | |
| query | Yes | Natural-language description; specific beats vague. | |
| top_k | No | Max entries returned. | |
| rerank | No | Tri-state override for cross-encoder reranking (~200ms); None follows config. | |
| explain | No | Attach a ranking ``trace``; implies verbose. | |
| sources | No | Keep only entries with one of these source tags. | |
| verbose | No | Full per-entry metadata; the default is compact ``{id, text, source, tags, score}`` plus supersession when set. | |
| episodes | No | Keep only entries stamped with one of these episode ids. | |
| min_score | No | Override the 0.25 relevance floor. | |
| disable_recency_boost | No | True to score without the recency bias. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||