Skip to main content

Crate lantern

Crate lantern 

Source
Expand description

Lantern: local-first memory engine for agent activity.

The library is split into small modules so the CLI can be a thin wrapper and tests can exercise each concern independently.

Modulesยง

chunk
Deterministic text chunker.
cli
Command-line interface for Lantern.
compact
Background maintenance for access metadata.
diff
Compare indexed filesystem sources against the current filesystem.
embed
Local-first dense embeddings backed by Ollama.
entities
Provenance-preserving entity layer.
export
Machine-readable dump of indexed content.
feedback
User-feedback signal for chunks.
forget
Explicit deletion of indexed sources (and their chunks).
ignore
Gitignore-style ignore rules for the ingest walker.
ingest
Ingest plain text and markdown files into the local store.
inspect
Store introspection for agents and humans.
jsonl
Transcript extraction for JSONL session files.
mcp
Model Context Protocol (MCP) server exposing Lantern as tools.
memory
First-class writable memory records.
query_success
Positive-only query-success signal for chunks.
reindex
Rebuild the full-text index from the canonical chunk rows.
search
Keyword search over ingested chunks, backed by SQLite FTS5.
sessions
Session-grouped chunk listing.
show
Display full provenance and chunk text for a single indexed source.
stash
Snapshot the current store to a dated tar.gz archive.
store
Local SQLite-backed store.