yggdrasil
v0.18.0One shared, durable memory for your AI coding agents — local-first, zero-dependency.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ygg_health Check memory engine health
Report the local Yggdrasil memory engine's health: running status, total stored-memory count, and whether semantic (dense-vector) search is available. Call this first when any other ygg_* tool fails unexpectedly, to confirm the engine is up before retrying. Returns a small JSON status object.
ygg_recall Recall prior work across all projects
Search durable memory ACROSS ALL projects for prior solutions, decisions, and lessons to reuse. Use BEFORE solving any non-trivial problem ("have I handled this before?"); for one known project use ygg_bootstrap to load its context or ygg_search for a targeted query instead. Ranks by relevance and past usage — lexical by default, semantic when embeddings are enabled.
| Parameter | Type | Description |
|---|---|---|
query * | string | Natural-language description of the problem or topic to find prior work for, e.g. "token refresh before opening socket". |
json | boolean | Return raw JSON instead of formatted text (default false). Set true to parse fields programmatically. |
limit | integer | Maximum number of memories to return (default 5). |
type | string | Optional filter to one memory category. Omit to recall across all types. |
ygg_bootstrap Load one project's memory
Load the top durable memories for ONE project — decisions, conventions, lessons, and open status — to prime work at the start of a task. Use when you already know the project; for cross-project discovery use ygg_recall, for a targeted in-project query use ygg_search. Results are project-scoped and ranked, most-used and pinned first.
| Parameter | Type | Description |
|---|---|---|
project * | string | Project to scope to — usually the git repository name, e.g. "checkout-api". |
limit | integer | Maximum number of memories to return (default 5). Raise for a fuller picture; lower to keep context small. |
query | string | Optional focus to rank within the project, e.g. "payment retries". Leave empty for the project's most relevant memories overall. |
ygg_search Search one project's memory
Search ONE project's durable memory with a free-text query and optional type filter — the precise, in-project lookup. Use when you know the project and want specific matches (e.g. every 'fix' about auth); for cross-project discovery use ygg_recall, to load a project's whole context use ygg_bootstrap. Lexical BM25 plus semantic ranking when embeddings are enabled.
| Parameter | Type | Description |
|---|---|---|
project * | string | Project to search within — typically the git repo name, e.g. "webdesk". |
query * | string | Free-text query describing what you're looking for, e.g. "flaky e2e tests". |
json | boolean | Return raw JSON instead of formatted text (default false). Set true to parse fields programmatically. |
limit | integer | Maximum results to return (default 5). |
type | string | Optional filter to one memory category. Omit to search all types. |
ygg_remember Save a durable memory
Persist ONE atomic, reusable fact (a decision, lesson, fix, convention, or status) to a project's durable memory for future sessions. Call right after you decide something, learn a lesson, or fix a non-obvious bug; store one idea per call, phrased to stand alone. Near-duplicates are merged automatically and obvious secrets (API keys, tokens) are refused. Returns the saved memory id.
| Parameter | Type | Description |
|---|---|---|
content * | string | The single durable fact — one atomic idea, phrased so it stays useful with no surrounding context. |
project * | string | Project this fact belongs to — usually the git repo name, e.g. "checkout-api". |
type * | string | Memory category that best fits the fact. |
confidence | number | Optional confidence 0.0–1.0; higher ranks the memory more strongly in recall. Defaults to the engine's standard for tool writes. |
contradicts | string | Optional id of a memory this one CONTRADICTS — both stay active, the dispute is recorded for review. |
solves | string | Optional id of a memory this one SOLVES (e.g. this fix resolves that open follow_up) — links them in the relation graph. |
source | string | Provenance tag for where this memory came from (default "ygg-mcp"). Usually leave as default. |
supersedes | string | Optional id of a memory this one REPLACES — records a SUPERSEDES edge and archives the old memory (reversible). |
ygg_materialize Export a memory to Markdown
Write ONE stored memory to a human-readable Markdown note (Obsidian-compatible) on disk; the stored memory itself is unchanged. Use when the user wants to read, edit, or archive a specific memory as a file. Needs the memory id from a prior ygg_recall / ygg_search / ygg_bootstrap result plus its project; returns the written file path.
| Parameter | Type | Description |
|---|---|---|
id * | string | The memory id to export, as returned by a prior recall/search/bootstrap, e.g. "ygg_4a5c82a...". |
project * | string | The project the memory belongs to. |
output_dir | string | Directory to write the Markdown note into (default "vault/04-learnings"). Must stay inside the local vault root; paths escaping it are rejected. |