codna_recall
Recall code behind a concept by searching the local on-device memory index, returning matching symbols and ranking explanations. Runs fully offline with zero LLM tokens and zero network calls.
Instructions
Recall relevant code from the local on-device Telys memory — semantic + lexical search over the symbols this machine has already indexed, with zero LLM tokens and zero network calls.
Use when you need the code behind a concept ("where is SARIF provenance validated?")
rather than a whole-repo map (codna_triage) — and when you want it offline. The index
is built on first use (an empty index auto-indexes the repo, once) and is stored
outside the git checkout. On a fresh machine, first use requires the one-time free
codna login device authorization (free community license); the on-device memory
runtime arrives via the login-gated runtime install. After that, recall is fully
offline with no key and no network calls.
repo: a local path or git URL (default: current directory, or the server default set
by codna mcp start --repo).
query: what to recall (required — an empty query returns an error string).
service: optional service name to scope recall to one service in a monorepo
(default: all services).
language: optional language filter such as "python" (default: all indexed languages).
final_k: maximum number of symbols to return (default: 8).
Returns matching symbols, the ranking explanation, and the candidate count as JSON.
Failure modes (missing query, Telys memory not installed, unreadable repo) come back
as "codna_recall error: ..." text — the tool never raises.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | . | |
| query | No | ||
| final_k | No | ||
| service | No | ||
| language | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |