gc_recall
Search the memory bank for facts matching a query, returning ranked results with bank attribution and excluding superseded facts for current truth.
Instructions
Search the memory bank for facts matching a query. Uses FTS5/BM25 — instant, zero cost. Falls back to the deep-memory backend (expensive, deep) only if no local results and that backend is available. Returns ranked facts with bank attribution and match scores.
Superseded facts (those replaced via gc_retain supersedes) are EXCLUDED by default — you get current truth only. Each returned fact may include a "superseded_by" field pointing to the fact that replaced it (only visible when include_superseded: true). Use include_superseded: true for historical audits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bank | No | Filter to specific bank (omit for global search) | |
| mode | No | "linear" (default) = local facts only, recency-weighted. "deep" = includes HS-imports. "full" = everything, pure BM25 (debug). | |
| limit | No | Max results (default 15) | |
| query | Yes | Natural language search query | |
| hindsight | No | "never" = local only, "fallback" = use if no local results, "always" = always query the deep-memory backend too | |
| include_superseded | No | If true, include facts that have been superseded. Each such fact is returned with a superseded_by: <id> field. Default: false (current truth only). |