Skip to main content

Brain-inspired long-term memory for AI agents — zero LLM during ingest or retrieval

Project description

Slowave

One private memory layer across your AI clients.

PyPI Python PyPI Status License: AGPL-3.0-or-later Downloads

Slowave gives every MCP-compatible tool a shared, persistent memory. No LLM in the loop, fully local, $0 per query.

Demo

See Slowave in action:

Demo

Cold start discovers project facts. Rule stored in Claude. Recalled days later in Cline — same memory, different sessions, different tools.

What makes Slowave different?

👊 Central memory across every AI tool.
Claude Code, Cline, Claude Desktop, Cursor, Windsurf, and any MCP-compatible client read from and write to the same memory store. Fix a bug in Claude Code tonight — Cline recalls the lesson tomorrow. Context follows you across tools instead of dying inside one chat.

🧠 Memory that learns from use.
Slowave runs a 5-verb cognitive cycle: activaterememberrecallreinforcecommit. Useful memories get stronger, stale ones decay, and outdated facts are superseded automatically. Recall is shaped by salience, time, scope, and feedback — not just raw vector similarity.

🔮 Zero-config cold start.
Drop Slowave into a new project and it auto-discovers key facts from CLAUDE.md, README.md, and other knowledge files. Your agents walk into context without you writing a single prompt.

⚙️ Behavioral memory: workflows that stick.
Memory is stored via remember() as typed schemas (constraint, fact, preference, etc.). Behavioral patterns emerge implicitly — recurring workflows strengthen prototype transition paths, and the TransitionModel surfaces "what tends to come next" during recall.

📐 Smart scoping.
Memory is scoped to exactly what matters: project:my-app, domain:cooking, relationship:alex — or unscoped for universal context. Cross-project bleed is prevented by default.

🔒 Fully local, zero LLM calls.
Ingestion, consolidation, and recall run on your machine using embeddings, FAISS, and SQLite — no API key, no cloud backend. Memory operations cost $0 per query.

💰 Compact context instead of history replay.
Slowave injects a small working-memory brief instead of replaying full chat history. In internal tests, this reduced context size by 86% over 20 sessions while preserving high recall quality. See the test →

What Slowave is — and isn't

Slowave is not a markdown file manager, not a static RAG system, and not an LLM wrapper over a vector database.

It's built on a single idea:

Memory consolidation does not require language.

Under the hood, Slowave has two layers:

  • Latent layer — pure geometry over embeddings. Consolidation, reinforcement, decay, supersession, and graph-based connections all run here. Zero LLM calls, ever.
  • Symbolic layer — the language interface. Text is stored and retrieved, but only rendered into natural language when an agent asks for it.

The LLM is an output channel — it verbalizes what memory already knows. It never operates on memory itself.

Design rationale →Architecture →

The big picture

Slowave flow

Install

pipx

pipx install slowave

Homebrew

brew tap mrsalty/slowave https://github.com/mrsalty/slowave
brew install slowave

Then run setup:

slowave setup --dry-run
slowave setup
slowave doctor

slowave setup detects your platform, wires every client it finds, injects lifecycle hooks, and starts the background worker. Idempotent and safe to re-run. See what gets modified →

[!NOTE] The default text encoder downloads its model from HuggingFace on first use (~45 MB); subsequent runs work fully offline.

[!IMPORTANT] Claude Desktop: after setup, paste the lifecycle block into Settings → General → Instructions for Claude. Cursor: after setup, paste the lifecycle block into Settings → Rules for AI. slowave setup prints the exact text and location for both. All other clients (Cline, Claude Code, Windsurf) are fully automated.

slowave doctor   # verify installation
slowave stats    # memory snapshot

Memory is stored at ~/.slowave/slowave.db. No Ollama, no vector database, no cloud service required.

Privacy: Slowave stores all memory (facts, episodes, embeddings, logs) locally in a plain SQLite database file. No memory leaves your machine — it's never sent to a cloud service, and the database file is unencrypted (you can inspect it with SQLite tools). If you store sensitive information, protect the database file using OS-level permissions or full-disk encryption.

Full install guide →

Benchmarks

87.8% LongMemEval · 76% LoCoMo · 86–89% stale-memory detection — all with zero LLM calls, fully local. Full benchmarks →

What Slowave remembers

Anything that should survive across sessions and tools: preferences, decisions, constraints, lessons learned, open questions, and reusable workflows — for work, research, or personal use. Each memory carries a timestamp, decays if never recalled, and strengthens when it proves useful. Contradictions are detected geometrically and old facts are superseded automatically — no LLM required.

Dashboard

Keep Slowave always under control through the local dashboard.

dashboard.png

Use it, and Slowave starts connecting the dots.

dashboard_graph.png

Documentation

docs/design the brain-inspired rationale behind Slowave
docs/architecture.md How memory consolidation works
docs/install.md Install, setup, per-client wiring, troubleshooting
docs/slowave_setup.md slowave setup command help
docs/manual_setup.md Step-by-step manual configuration guide
docs/benchmarks.md Per-category results, strengths, known gaps, reproducibility
docs/token_efficiency.md Token efficiency vs. history replay and static knowledge files
docs/limitations.md Capability gaps, design trade-offs, deployment limits
docs/cli.md CLI reference
docs/dashboard.md Local web UI (slowave dashboard)

Contributing

Slowave is open source under AGPL-3.0-or-later. Bug reports, install feedback, and focused improvements are welcome — read CONTRIBUTING.md before opening a PR. Commercial licensing terms may be offered in the future.

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

slowave-0.9.0.tar.gz (210.0 kB view details)

Uploaded Source

Built Distribution

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

slowave-0.9.0-py3-none-any.whl (225.3 kB view details)

Uploaded Python 3

File details

Details for the file slowave-0.9.0.tar.gz.

File metadata

  • Download URL: slowave-0.9.0.tar.gz
  • Upload date:
  • Size: 210.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for slowave-0.9.0.tar.gz
Algorithm Hash digest
SHA256 d29c2bb2f57b0bc87c38cabbab6507ad22370744f15f06a3d4e02984e5e819c9
MD5 651968b99be16f74236f7991d0a5bec2
BLAKE2b-256 1c1ed094a764c0e430b6fe5e4c09b9f47634012f1cc983e77ad310855e42a6ad

See more details on using hashes here.

File details

Details for the file slowave-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: slowave-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 225.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for slowave-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 66b89873955331cb14fc734c80b26ae32960e3cb78d79f6e248c9421edf80d02
MD5 51a63e57786e938dbaf57273a23b9173
BLAKE2b-256 337e27d4f293227165d4bfa26078bf02989b6e1d6e36f6396a5c8a2ddfc18679

See more details on using hashes here.

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