Appearance
AI agents keep forgetting your architecture, constraints, and past decisions. Yggdrasil gives your repository persistent semantic memory, so each task starts with the right context instead of another giant prompt.
Every new AI coding task starts the same way.
You explain how the system works.
What must not break.
Why this module exists.
Which rules apply here.
What happened last time this went wrong.
Then the session ends.
And the next time, you do it all over again.
That works on small projects.
On real codebases, it turns into context tax.
The agent reads a few files, misses the bigger picture, guesses, and makes changes that look reasonable but break neighboring contracts. You fix it. You explain more. You add another rule. You paste another prompt. Repeat.
The problem is not just model quality.
The problem is memory.
Yggdrasil gives your repository persistent semantic memory.
Instead of dumping the whole repo into a prompt, it gives the agent the exact context needed for the part of the system it is changing.
That means:
You ask the agent to add a payment retry to OrderService.
Without Yggdrasil, it may read OrderService.ts, maybe PaymentService.ts, and still miss that:
So it guesses.
It makes a change that looks plausible.
It breaks things.
With Yggdrasil, the agent gets focused context for that exact area before it touches the file.
It knows:
That is the difference between code generation and context-aware change.
npm install -g @krzysztofdudek/ygcd your-project
yg init --platform <platform>That is it.
Your agent now has persistent semantic memory.
yg init in your project..yggdrasil folder appears in the repo.The memory is stored as plain Markdown and YAML.
No database.
No lock-in.
No hidden black box.
Delete .yggdrasil and your project works exactly as before.
Yggdrasil helps agents work with more than raw files.
It stores and serves knowledge like:
In other words, not just what the code does.
Also why it exists and what must not break.
Code contains logic.
It does not reliably contain meaning.
A human can survive that gap. A human can ask around, read between the lines, and slowly rebuild a mental model of the system.
An AI agent cannot.
That is why agents often look great on small repos and unreliable on larger ones.
Repositories already have memory of changes through Git.
What they usually do not have is memory of meaning in a form agents can use.
Yggdrasil fills that gap.
Git remembers what changed.
Yggdrasil helps the repository remember what the system is.
Yggdrasil is not a code generator.
Your agent still writes the code. Yggdrasil helps it write better code by giving it better context.
Yggdrasil is not manual documentation.
You are not expected to maintain a wiki by hand. The memory is built and updated as real work happens.
Yggdrasil is not tied to one provider.
It works with the tools you already use.
Yggdrasil is not invasive.
Remove .yggdrasil and your codebase still works exactly as before.
More can be added.
I ran experiments on real open-source repositories, including projects like Hoppscotch, Medusa, and Django.
Early takeaways:
This is still early.
But the core idea is already clear.
AI agents do not need bigger context windows.
They need memory.
Yggdrasil is worth it when:
Yggdrasil is probably not worth it yet when:
MIT — see LICENSE.