Skip to main content

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

  1. Data is dumped into the Sources/ directory.
    • Meeting transcripts
    • Notes by humans and agents
    • Clips from websites
    • Agent chats
  2. Facts are accumulated in append-only Evidence/.
    • Project decisions
    • People
  3. 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 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.

MIT license.

Metadata

Release files for lexicon-kb 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lexicon-kb 0.3.0
File Size Uploaded Provenance Actions
lexicon_kb-0.3.0.tar.gz 240.6 kB With provenance Details for lexicon_kb-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lexicon-kb 0.3.0
File Interpreter ABI Platform Actions
lexicon_kb-0.3.0-py3-none-any.whl Python 3 none any Details for lexicon_kb-0.3.0-py3-none-any.whl

Total release size: 405.7 kB

Release files / lexicon_kb-0.3.0.tar.gz

Download URL lexicon_kb-0.3.0.tar.gz
Size 240.6 kB
Tags Source
SHA-256 checksum
How to use checksums
37282769dd107979acd2d29d9bb53099943ca854c2f7fb54876a783f10eed0e8
BLAKE2b-256 checksum
How to use checksums
e22552e4374569b645a17fac4b31788c78b7b54f350efae9da9d032c0b3b4138
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 2, 2026.

Transparency log

Release files / lexicon_kb-0.3.0-py3-none-any.whl

Download URL lexicon_kb-0.3.0-py3-none-any.whl
Size 165.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3d51bf4f5cb0cc41f6d8eed5612d7d75025b548b246a709aef9a7fe2444a37d9
BLAKE2b-256 checksum
How to use checksums
dd42dd8d479f5e4bd4c0937afddb55efa129fb7432b4e99e3b42f57081daf0d6
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 2, 2026.

Transparency log

Security for lexicon-kb 0.3.0

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.

Select from 2 files

Attestation for lexicon_kb-0.3.0.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 2, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page