|
1 | | -# Lore |
| 1 | +<div class="legacy-home"> |
| 2 | + <canvas id="sparkles" aria-hidden="true"></canvas> |
2 | 3 |
|
3 | | -Lore is a local memory system for software projects. |
| 4 | + <div class="page"> |
| 5 | + <header class="cover"> |
| 6 | + <div class="sigil">📜</div> |
| 7 | + <h1>Lore</h1> |
| 8 | + <p class="subtitle">Keeper of the Chronicle</p> |
| 9 | + <p class="tagline">The spellbook for your codebase: chronicle decisions, context, and lessons your AI companions can actually read.</p> |
| 10 | + </header> |
4 | 11 |
|
5 | | -It captures decisions, facts, and lessons in plain files so your AI coding tools can use shared context across sessions. |
| 12 | + <section class="parchment"> |
| 13 | + <h2><span class="rune">✦</span> What is Lore?</h2> |
| 14 | + <p>AI coding tools are stateless. They do not remember why you chose PostgreSQL over SQLite, which safety rules cannot be bypassed, or what tradeoffs already shaped this codebase.</p> |
| 15 | + <p><strong>Lore</strong> fixes that. It is a local AI memory system for software projects. You capture knowledge once as plain files alongside your code, then export it into instruction files your tools can read automatically.</p> |
| 16 | + <p>No external database. No API keys. No cloud sync. Everything lives in <code>.lore/</code> next to your repo.</p> |
| 17 | + <div class="badge-row"> |
| 18 | + <span class="ver-badge">LOCAL YAML STORE</span> |
| 19 | + <span class="ver-badge">CHRONICLE FIRST</span> |
| 20 | + <span class="ver-badge">NO CLOUD SYNC</span> |
| 21 | + <span class="ver-badge">TOOL-AGNOSTIC</span> |
| 22 | + </div> |
| 23 | + </section> |
6 | 24 |
|
7 | | -## Start Here |
| 25 | + <section class="parchment"> |
| 26 | + <h2><span class="rune">⚜</span> The Three Artefacts</h2> |
8 | 27 |
|
9 | | -- [Install](install.md) |
10 | | -- [Core Concepts](concepts.md) |
11 | | -- [CLI Reference](cli.md) |
12 | | -- [FAQ](faq.md) |
| 28 | + <h3>Spell</h3> |
| 29 | + <p>A single piece of knowledge: a decision, a fact, a hard-won lesson, or a preference worth preserving.</p> |
13 | 30 |
|
14 | | -## How It Works |
| 31 | + <h3>Tome</h3> |
| 32 | + <p>A named collection of spells. Default tomes include <code>decisions</code>, <code>facts</code>, <code>preferences</code>, and <code>summaries</code>.</p> |
15 | 33 |
|
16 | | -1. Add memory entries with `lore add`. |
17 | | -2. Search memory with `lore search`. |
18 | | -3. Export context files with `lore export`. |
| 34 | + <h3>Relic</h3> |
| 35 | + <p>A raw artifact saved as-is for later distillation. Use relics when things are moving too fast to curate carefully in the moment.</p> |
| 36 | + </section> |
19 | 37 |
|
20 | | -## Quick Example |
| 38 | + <section class="parchment"> |
| 39 | + <h2><span class="rune">✧</span> How the Magic Flows</h2> |
| 40 | + <div class="scroll-diagram">Your decisions, facts and lessons |
| 41 | + ↓ lore add / lore relic |
| 42 | + .lore/ (plain YAML) |
| 43 | + ↓ lore export |
| 44 | +CHRONICLE.md ← full project memory |
| 45 | + ↓ referenced by lean adapters |
| 46 | +Copilot · Claude · Cursor · AGENTS · prompts |
| 47 | + ↓ |
| 48 | +Every AI tool reads your repo context</div> |
| 49 | + </section> |
21 | 50 |
|
22 | | -```bash |
23 | | -lore onboard |
24 | | -lore add decisions "Use PostgreSQL for row-level locking" |
25 | | -lore search "why did we choose postgres" |
26 | | -lore export |
27 | | -``` |
| 51 | + <section class="parchment"> |
| 52 | + <h2><span class="rune">✶</span> First Invocation</h2> |
| 53 | + <p>Start with onboarding. Lore walks through store setup, your first memory entry, and export flow in one guided ritual.</p> |
| 54 | + <div class="incantation">lore onboard</div> |
| 55 | + <ol class="ritual-steps"> |
| 56 | + <li><strong>Initialize the spellbook</strong> with a project description and local defaults.</li> |
| 57 | + <li><strong>Record real knowledge</strong> as decisions, facts, preferences, or summaries.</li> |
| 58 | + <li><strong>Export the chronicle</strong> so every supported AI tool inherits the same context.</li> |
| 59 | + <li><strong>Enable semantic search</strong> later with <code>lore setup semantic</code> if you want dense embeddings.</li> |
| 60 | + </ol> |
| 61 | + <div class="note">Requirements: Python 3.10+. Dense vector search is optional. Lore falls back to TF-IDF when needed.</div> |
| 62 | + </section> |
28 | 63 |
|
29 | | -## Notes |
| 64 | + <section class="parchment"> |
| 65 | + <h2><span class="rune">⌘</span> Start Here</h2> |
| 66 | + <div class="target-list"> |
| 67 | + <div class="target-item"> |
| 68 | + <strong><a href="install.md">Install</a></strong> |
| 69 | + Setup instructions for PyPI, local development, and semantic search extras. |
| 70 | + </div> |
| 71 | + <div class="target-item"> |
| 72 | + <strong><a href="concepts.md">Core Concepts</a></strong> |
| 73 | + Understand spells, tomes, relics, and the chronicle model. |
| 74 | + </div> |
| 75 | + <div class="target-item"> |
| 76 | + <strong><a href="cli.md">CLI Reference</a></strong> |
| 77 | + Learn the primary commands for capture, search, and export. |
| 78 | + </div> |
| 79 | + <div class="target-item"> |
| 80 | + <strong><a href="faq.md">FAQ</a></strong> |
| 81 | + Short answers to common questions about storage, AI tools, and workflow. |
| 82 | + </div> |
| 83 | + </div> |
| 84 | + </section> |
30 | 85 |
|
31 | | -If you are migrating existing docs, place markdown files in `docs/` and update navigation in `mkdocs.yml`. |
| 86 | + <section class="parchment"> |
| 87 | + <h2><span class="rune">🜏</span> Incantations</h2> |
| 88 | + |
| 89 | + <h3>Install via pip</h3> |
| 90 | + <div class="incantation">pip install lore-book</div> |
| 91 | + |
| 92 | + <h3>Local development</h3> |
| 93 | + <div class="incantation">pip install -e .</div> |
| 94 | + |
| 95 | + <h3>Cast your first spells</h3> |
| 96 | + <div class="incantation">lore add decisions "Use PostgreSQL for row-level locking" |
| 97 | +lore add facts "Auth service is the sole issuer of JWTs" |
| 98 | +lore export</div> |
| 99 | + </section> |
| 100 | + |
| 101 | + <section class="parchment"> |
| 102 | + <h2><span class="rune">📖</span> Grimoire of Commands</h2> |
| 103 | + <div class="command-columns"> |
| 104 | + <div class="command-item"> |
| 105 | + <strong>Store</strong> |
| 106 | + <p><code>lore onboard</code>, <code>lore init</code>, <code>lore add</code>, <code>lore list</code>, <code>lore remove</code></p> |
| 107 | + </div> |
| 108 | + <div class="command-item"> |
| 109 | + <strong>Search</strong> |
| 110 | + <p><code>lore search <query></code>, <code>lore index rebuild</code>, <code>lore setup semantic</code></p> |
| 111 | + </div> |
| 112 | + <div class="command-item"> |
| 113 | + <strong>Relics</strong> |
| 114 | + <p><code>lore relic capture</code>, <code>lore relic list</code>, <code>lore relic view</code>, <code>lore relic distill</code></p> |
| 115 | + </div> |
| 116 | + <div class="command-item"> |
| 117 | + <strong>Publishing</strong> |
| 118 | + <p><code>lore export</code>, <code>lore export --format prompt</code>, <code>lore config <key> <value></code></p> |
| 119 | + </div> |
| 120 | + </div> |
| 121 | + <div class="links"> |
| 122 | + <a class="link-rune" href="https://github.com/CptPlastic/lore-book">✦ Source Repository</a> |
| 123 | + <a class="link-rune" href="https://pypi.org/project/lore-book/">⚜ PyPI Package</a> |
| 124 | + </div> |
| 125 | + </section> |
| 126 | + |
| 127 | + <div class="divider">— ✦ — ✦ — ✦ —</div> |
| 128 | + |
| 129 | + <footer> |
| 130 | + LORE · CANONICAL DOCUMENTATION · FSL-1.1-MIT |
| 131 | + </footer> |
| 132 | + </div> |
| 133 | +</div> |
0 commit comments