Keeper of the Chronicle
"The spellbook for your codebase — chronicle decisions, context,
and lessons your AI companions can actually read."
AI coding tools are stateless. They don't remember why you chose PostgreSQL over SQLite, that the auth layer must never bypass JWT validation, or that the frontend team deprecated the v1 API six months ago. You end up re-explaining the same context in every session.
Lore fixes that. It is a local AI memory system for software projects. You capture knowledge once as plain YAML alongside your code — then Lore publishes it as instruction files that GitHub Copilot, Claude, Cursor, Codex, and other AI tools read automatically.
By default, Lore exports CHRONICLE.md plus lean adapter files so the same project description, security preamble, and memory entry points stay consistent everywhere.
No external database. No API keys. No cloud sync. Everything lives in .lore/ next to your code.
A single piece of knowledge: a decision, a fact, a hard-won lesson. Short, specific, retrievable by semantic search.
A named collection of spells. Default tomes: decisions, facts, preferences, summaries. Add your own in .lore/config.yaml.
A raw artifact saved as-is for later distillation — a pasted session log, a git diff, a Slack thread. It lands in .lore/relics/ untouched until you're ready to extract spells from it.
New users should start with onboarding. Lore walks through the store layout, security policy, your first spell, and publishing in one guided ritual.
lore setup semantic if you want embeddings beyond TF-IDF fallback.Lore uses a two-layer export model: one canonical chronicle, then thin instruction files that point back to it. That keeps token overhead low while preserving full project memory when needed.
/lore prompt in Copilot Chat to pull chronicle context on demand.
.lore/config.yaml.
Lore ships a retro phosphor-green terminal browser — a full interactive TUI for browsing, searching, writing, and exporting your spellbook without leaving the command line.
.lore/ on disk and updates instantlyOpen it in a split pane while you code — your full project memory, always one glance away.
When things are moving too fast to curate, capture the raw artifact first. Relics preserve noisy context as-is, then let you distill the verified parts into proper spells later.
Paste notes, import a file, snapshot a git diff, read from clipboard, or pipe in text from another tool.
Walk the artifact spell by spell, choose the right tome, and keep a traceable link back to the source relic.
Lore is designed for layered trust. The chronicle should be reviewed, reliable memory. Raw intake belongs in relics first.
CHRONICLE.md when a fact or decision is reviewed and ready for everyone to inherit.lore relic capture, then distill only verified points into spells.verified, needs-review, or deprecated to express trust clearly.lore trust refresh and explain one score with lore trust explain <id>.Install a post-commit hook that can extract knowledge from commits and regenerate all export files automatically.
Watch .lore/ for changes and export the moment the memory store changes.
Verify store readability, semantic search mode, endpoint reachability, and spell counts in one command.
Run a clean isolated CLI smoke test before publishing to catch packaging and command regressions.
lore onboard, lore init, lore add, lore list, lore remove
lore search <query>, lore index rebuild, lore setup semantic
lore relic capture, lore relic list, lore relic view, lore relic distill
lore export, lore export --format prompt, lore config <key> <value>
lore security, lore trust refresh, lore trust explain <id>
lore hook install, lore awaken, lore slumber, lore doctor, lore ui