Skip to main content

Zero-infrastructure persistent memory for any LLM

Project description

memboot

CI CodeQL Python 3.11+ License: MIT

Zero-infrastructure persistent memory for any LLM.

Index your codebase, store decisions, and search everything with vector similarity — all local, all SQLite, no API keys needed.

Features

  • Smart chunking — AST-aware Python extraction, Markdown heading splits, YAML/JSON key-level, sliding window fallback
  • Local embeddings — Built-in TF-IDF (zero deps), optional sentence-transformers for semantic search
  • Episodic memory — Store decisions, patterns, observations alongside your code index
  • Context builder — Token-budgeted markdown blocks ready for LLM prompts
  • MCP server — Expose memory as tools for Claude Code, Cursor, and other MCP clients (Pro)
  • File ingestion — Ingest external files, PDFs, and web pages into project memory

Install

pip install memboot

Optional extras:

pip install memboot[embed]  # sentence-transformers for semantic embeddings
pip install memboot[mcp]    # MCP server support
pip install memboot[pdf]    # PDF ingestion
pip install memboot[watch]  # File watching for auto-reindex
pip install memboot[web]    # Web page ingestion

Quick Start

# Index a project
memboot init /path/to/your/project

# Search for relevant code and memories
memboot query "authentication flow" --project /path/to/your/project

# Store a decision
memboot remember "Use JWT for API auth, sessions for web" --type decision --project /path/to/your/project

# Get formatted context for an LLM prompt
memboot context "database schema" --project /path/to/your/project --max-tokens 4000

# Check license status
memboot status

CLI Commands

Command Description
memboot init Scan, chunk, embed, and index a project
memboot query Search project memory by similarity
memboot remember Store an episodic memory (decision, note, observation, pattern)
memboot context Export a formatted context block with token budget
memboot status Show license tier and available features
memboot reset Clear all indexed data and memories
memboot ingest Add external files, PDFs, or URLs to memory
memboot watch Watch project and auto-reindex on changes
memboot serve Start MCP stdio server (Pro)

How It Works

Project Files ──→ Chunker ──→ Embedder ──→ SQLite Store
                   (AST)      (TF-IDF)     (~/.memboot/)
                                                │
Query Text ─────→ Embedder ──→ Cosine Sim ──→ Results
                                                │
Memories ───────→ Embedder ──→ Store ───────→ Searchable
  1. Index — Recursively discover files, chunk by language (Python AST, Markdown headers, etc.), embed with TF-IDF, store in SQLite
  2. Query — Embed your query, compute cosine similarity against all chunks and memories, return top-K
  3. Remember — Store episodic memories (decisions, patterns, observations) with embeddings for later retrieval
  4. Context — Build token-budgeted markdown blocks with source attribution for LLM consumption

Each project gets its own SQLite database at ~/.memboot/{hash}.db. No servers, no API keys, no network calls.

Architecture

src/memboot/
├── models.py        # Pydantic v2 data models
├── store.py         # SQLite WAL backend (numpy BLOB serialization)
├── chunker.py       # Language-aware chunking (Python/MD/YAML/JSON/window)
├── embedder.py      # TF-IDF (built-in) + sentence-transformers (optional)
├── indexer.py       # Discovery → chunk → embed → store pipeline
├── query.py         # Cosine similarity search
├── memory.py        # Episodic memory CRUD
├── context.py       # Token-budgeted context builder
├── licensing.py     # Free/Pro tier management
├── cli.py           # 8 Typer CLI commands
├── mcp_server.py    # MCP stdio server (3 tools)
└── ingest/          # External file/PDF/web ingestion

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

memboot-0.2.0.tar.gz (45.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

memboot-0.2.0-py3-none-any.whl (30.4 kB view details)

Uploaded Python 3

File details

Details for the file memboot-0.2.0.tar.gz.

File metadata

  • Download URL: memboot-0.2.0.tar.gz
  • Upload date:
  • Size: 45.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for memboot-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1218f00606013d5a4c3cd0d8c394d3f79a9fa3430ccaf75b256afc73232ff856
MD5 e39e9141749370f2ef3fbd406a93da35
BLAKE2b-256 9787e6d3c3290534b66f5ce55baa3eaadae8e01355beee20b9c3cbf4a05d5b64

See more details on using hashes here.

Provenance

The following attestation bundles were made for memboot-0.2.0.tar.gz:

Publisher: release.yml on AreteDriver/memboot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file memboot-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: memboot-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 30.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for memboot-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eff8769131023979568d65ce3f18773e89ea00b78ef66371ef5c5398cb49584a
MD5 044baed959bf82b6cb243fd10561e1a9
BLAKE2b-256 e05ac35ee83d5a8e33b63d4ce18eb0f9692b477721cc72357a534017f81c641b

See more details on using hashes here.

Provenance

The following attestation bundles were made for memboot-0.2.0-py3-none-any.whl:

Publisher: release.yml on AreteDriver/memboot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page