My peaceful life ending when I see #pepethon 


๐ #SYMBIOSIS 3 ๐
โข The tree โ Routings, folder structure and instructions finally revealed
โข LLM-first Project template and workflow
Get it here ๐
AUTO GRAPH WIKI
Skill extension of LLM-Wiki by
karpathy
โ 20x performance when querying LLM-wikis.
Automated regeneration of wiki graph from frontmatter.
You never type a script name. You ask in natural language; the agent runs the right thing.
I did some tests querying my Wiki and I was astonished by the results. ~500 tokens instead of ~10 000 for a full-file read.
How you run it
The skill is a folder of Python scripts. You point your agent at the folder and let it run the right script when you ask. Drop the folder into your host's skills directory; the host parses SKILL.md, learns the triggers, and dispatches scripts on your behalf.
Quick start
1. Configure your wiki paths
2. Build the initial index (one-time)
3. Search
That's the whole loop.
Edit your wiki freely from this point on. Every search.py call re-checks freshness and rebuilds if needed.
Optional follow-ups
- Generate a derived overview page (frontmatter table grouped by domain)
- Find broken wiki-links
- Check freshness manually (mtime + schema-version drift)
Frontmatter that makes the graph sharp
The skill quality goes up sharply when notes carry the right metadata. The fields below are what search.py, links.py, broken.py, and generate_index.py actually read.
Minimal frontmatter example
Three principles for frontmatter
Consistency beats completeness. A wiki where every page has summary, keywords, and aliases filled in โ even minimally โ outperforms one where some pages have rich frontmatter & others have none. The graph is only as good as its sparsest section.
Aliases are how the graph knows what your pages are called. A page named quarterly-revenue-by-segment won't backlink from [[Quarterly revenue]] in prose unless Quarterly revenue is listed in its aliases. Add aliases for the words you actually use when referring to the page.
Related: is curated graph context. Inline [[wiki-links]] in the body capture intention at a moment. Frontmatter related: captures the page's permanent neighbors. Both end up in the graph; both add value; they are not the same.
The auto part?
Indexes regenerate automatically when frontmatter changes โ there's no migration step.
Auto-reindexing
The skill name is "auto" because indexing is automatic at three points:
Lazy at search. Every search.py call checks index freshness. If any wiki file is newer than the index, search rebuilds before returning.
Active at lint. freshness.py --auto-fix rebuilds stale indexes on demand. Wire this into your host harness's lint pipeline.
Coupled at ingest. Whatever pipeline writes new pages to the wiki should run reindex.py as final step. Documented in command file.
A correctly integrated install means you never type "reindex" by hand.
Trade-offs
TF-IDF is keyword-based. A query for "compliance" will not match a wiki that uses "regulation". The augmentation rewards consistent vocabulary in the source โ consider it a feature.
Indexes are rebuilt from scratch. Not incremental. For wikis up to a few thousand pages this is fine โ full reindex completes in a couple of seconds. For larger wikis, incremental indexing would need to be added
JSON indexes are not for humans. They are fuel for search.py. Do not open them in a markdown editor.
For contributors
Run the test suite:
Tests cover the edge-case vault under examples/edge-cases/. Pytest is a test-time dependency only โ the runtime is Python-standalone with no third-party packages.
What this is not
This is a retrieval layer for already-curated knowledge. If your wiki is unstructured โ no frontmatter, inconsistent terminology, no manual organization โ the augmentation will not save you.
The discipline of writing the wiki is what makes the cheap retrieval possible. This is also not a knowledge graph extractor. If you have unfamiliar material (a codebase you didn't write, papers you haven't read), you need extraction tools, not retrieval tools.
Different problem.
Want to support my work, you can zap me.
#SYMBIOSIS 2 is out!
Frictionless onboarding!
Refactored architecture!
New features!
Examples examples examples
Get the gist here:



S Y M B I O S I S
1/ Your LLM has Leonard Shelby's memory problem.
Every session ends. The next starts from zero. Context gone. Lessons lost. Agent acts strange as if he has amnesia.
Months of longer prompts and bigger context windows didn't hold. Here's what did.
THREE LAYERS, ONE ROUTER
character/ โ who the model is harness/ โ how the work gets done memento/ โ what we've learned so far
30 lines at the root boot the rest. Nothing else lives there.
WHY SPLIT IT THIS WAY?
Separation lets you update one layer without touching the others. And models reason better retrieving from structure than reconstructing from training.
One rule at the top of the router:
Prefer retrieval-led reasoning over pre-training-led reasoning.
MEMENTO
The memento layer mirrors cognitive science:
episodic โ specific events (sessions, lessons)
semantic โ synthesized knowledge (wiki, ideas) procedural โ automated patterns (skills, scripts) prospective โ future intentions (tasks)
Same 4 domains humans have. Same split works.
IT'S CALLED MEMENTO ON PURPOSE
Leonard Shelby can't form memories. He relies on tattoos, polaroids, notes. The character holds together through structure outside his head.
LLMs have the same problem. The folders is the tattoos
THE CONTRACT
The contract matters more than the structure.
symbiosis .MD defines what the user owe (externalize lessons, correct drift) and what the model owes (build on memory, push back, flag if I outsource thinking).
Without it, the files are just files.
With it, better alignment.
TWO VERBS KEEP IT ALIVE
ingest โ moves signal up. Sessions โ lessons โ wiki or skills. Patterns that repeat get promoted.
lint โ catches drift. Broken refs, stale facts, missing pushback, rules that aren't pulling weight.
THE ENGINE IS REPLACABLE
Model is the motor. Harness is the chassis. Memento is the navigation. I'm the driver.
Motor swappable โ Claude today, something else tomorrow. Driver isn't. The symbiosis lives in the structure, not the weights.
NONE OF THIS IS NEW
Nolan for Memento. Steinberger for soul .MD . Karpathy for the LLM-WIKI pattern.
What's new is the arrangement.
#symbiosis
MIT licensed. Full write-up in Karpathy
style idea MD that you can give to your agent to get started:


