Lexicon
Knowledge base with AI agents, especially for dynamic knowledge
We come across a lot of knowledge through different activities.
- Work with AI agents
- Our own notes
- Messages
- Meetings and chats
- URLs we or our friends are interested in
Our AI agents should help us organize this knowledge, and they should get much stronger with it. Especially when we want to clone ourselves as agents, this knowledge is critical input for them to work.
The key insight comes from Zettelkasten, a knowledge management methodology.
Principles
- Dump any data (missing data is more costly).
- Split source data (the dump) and curated data (for long-term search).
- Search curated data first. Go back to the source when we need more detail or missed something.
- Manage knowledge as statements. A statement is one claim or observation we can understand and check on its own.
- Organize statements into different areas. An area is a named domain of knowledge, such as a project or a recurring subject.
Memory = Knowledge (facts about the world) + Operational insights (how to work, records, state, rules). Across agents, share knowledge in Lexicon and how-to-work in Agent Deck playbooks. Everything else stays per-agent. Lexicon is the local Markdown knowledge base. Agent state, operating rules, and work tracking live outside it.
Solution Idea
- Data is dumped into the
Sources/directory.- Meeting transcripts
- Notes by humans and agents
- Clips from websites
- Agent chats
- Facts are accumulated in append-only
Evidence/.- Project decisions
- People
- Periodically, the owner reviews important decisions and adds, modifies, or deletes entries in
Synthesis/.- Directions
- Objectives
Key structure
| Layer | Path | Purpose |
|---|---|---|
| Sources | Sources/Chats/, Sources/Ideas/, Sources/Meetings/, Sources/Transcripts/, Sources/Clippings/ |
Keep raw agent chats, ideas to review, meeting notes, transcripts, and web clippings. |
| Evidence | Evidence/<area>/ |
Append dated statements with links to their sources. Record corrections as new statements. |
| Synthesis | Synthesis/<area>.md, Synthesis/Direction/<area>.md, Synthesis/Objectives.md, Synthesis/Objectives.evidence.md, and supporting notes |
Maintain current understanding, directions, and objectives with links to evidence. |
| Metadata | Metadata/pending/<id>.json |
Track triage approval items and outcomes in private Git. |
| Metadata | Metadata/recap/<area>/YYYY-MM.md |
Track monthly triage recaps by area in private Git. |
| Metadata | Metadata/review/YYYY-Www.md |
Track periodic objectives reviews by ISO week in private Git. |
Direction and Objectives are Synthesis notes. The owner reviews them, and edits default to require_approval. Metadata supports triage and sits outside the knowledge tiers. The three Metadata paths above are Git-tracked. Per-machine diagnostics and the QMD index live in the local user cache outside the vault.
Sync
Lexicon syncs the vault through private Git on a timer, even when Obsidian is closed. Captures and other engine writes sync immediately. Manual edits can take up to one timer interval to sync. If you use Obsidian, turn off the Git plugin's automatic commit, push, and pull, or remove it. Leave Obsidian Sync and other folder sync services disabled for this vault.
Install
curl -fsSL https://raw.githubusercontent.com/not-so-fat/lexicon/main/install.sh | sh -s -- --vault <your-private-vault-git-url> --path "$HOME/vault"
See Setup for requirements, new vaults, and upgrades.
Commands
The engine CLI covers the whole loop: lexicon setup, lexicon doctor, lexicon init, lexicon capture, lexicon search, lexicon read, lexicon triage, lexicon lint, lexicon sync, lexicon index, lexicon info, lexicon mcp, lexicon fetch, lexicon fireflies, lexicon hidock, and lexicon guide. Start hand-written notes from a packaged template with lexicon template <kind> (lexicon template --list lists the seven kinds); follow a packaged workflow with lexicon guide <name> (process_meeting, triage_area, weekly_review); templates and guides are served by the engine and never copied into the vault.
More details
See the redesign spec for the engine, search, and triage. Setup covers installing the engine and running your first triage pass; Updating covers engine upgrades; Memory model covers the tiers and lint rules; Objectives covers the review ritual. Publishing covers cutting a release, and the Changelog lists what changed. Adapters are optional harness-side pointers into the engine.
Metadata
Release files for lexicon-kb 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lexicon_kb-0.3.2.tar.gz | 267.2 kB | With provenance | Details for lexicon_kb-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lexicon_kb-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for lexicon_kb-0.3.2-py3-none-any.whl |
Total release size: 450.0 kB
Release files / lexicon_kb-0.3.2.tar.gz
| Download URL | lexicon_kb-0.3.2.tar.gz |
|---|---|
| Size | 267.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4f2312ea32c449eaeb68491378b2b2cd542749b66f54b3eae462561bd91834f
|
|
BLAKE2b-256 checksum How to use checksums |
04bd4690ca43ce0e456303dcf7f5055ad10a0f282da19f688a752ca59ba72ef6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.
Transparency logRelease files / lexicon_kb-0.3.2-py3-none-any.whl
| Download URL | lexicon_kb-0.3.2-py3-none-any.whl |
|---|---|
| Size | 182.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee5623fe5c1311fc7d0d24cee7f6a554b5f1554623feef842884d01a90a8a75e
|
|
BLAKE2b-256 checksum How to use checksums |
d9f5a5a14f1e481580f432bb4b933fd21094b578d822030ecc2bb2ea76cd049a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.
Transparency logSecurity for lexicon-kb 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for lexicon_kb-0.3.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.