yggdrasil

v0.18.0
io.github.VonderVuflya/yggdrasil Checked 2 hours ago Published 15 days ago

One 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.

ParameterTypeDescription
query *stringNatural-language description of the problem or topic to find prior work for, e.g. "token refresh before opening socket".
jsonbooleanReturn raw JSON instead of formatted text (default false). Set true to parse fields programmatically.
limitintegerMaximum number of memories to return (default 5).
typestringOptional 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.

ParameterTypeDescription
project *stringProject to scope to — usually the git repository name, e.g. "checkout-api".
limitintegerMaximum number of memories to return (default 5). Raise for a fuller picture; lower to keep context small.
querystringOptional focus to rank within the project, e.g. "payment retries". Leave empty for the project's most relevant memories overall.

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.

ParameterTypeDescription
content *stringThe single durable fact — one atomic idea, phrased so it stays useful with no surrounding context.
project *stringProject this fact belongs to — usually the git repo name, e.g. "checkout-api".
type *stringMemory category that best fits the fact.
confidencenumberOptional confidence 0.0–1.0; higher ranks the memory more strongly in recall. Defaults to the engine's standard for tool writes.
contradictsstringOptional id of a memory this one CONTRADICTS — both stay active, the dispute is recorded for review.
solvesstringOptional id of a memory this one SOLVES (e.g. this fix resolves that open follow_up) — links them in the relation graph.
sourcestringProvenance tag for where this memory came from (default "ygg-mcp"). Usually leave as default.
supersedesstringOptional 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.

ParameterTypeDescription
id *stringThe memory id to export, as returned by a prior recall/search/bootstrap, e.g. "ygg_4a5c82a...".
project *stringThe project the memory belongs to.
output_dirstringDirectory to write the Markdown note into (default "vault/04-learnings"). Must stay inside the local vault root; paths escaping it are rejected.