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.8.1.tar.gz (208.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.8.1-py3-none-any.whl (223.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: slowave-0.8.1.tar.gz
  • Upload date:
  • Size: 208.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.8.1.tar.gz
Algorithm Hash digest
SHA256 0b58c2acc126ee5b1d847862a5b972f901638b7d3f29ca2a263d0b5ea8f912e3
MD5 68122cd79c030a7ee650a6fbc1dd7f0a
BLAKE2b-256 251144885e90535f5b38418eacbd265ee6663144beed29d8cffb4e14cd830754

See more details on using hashes here.

File details

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

File metadata

  • Download URL: slowave-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 223.2 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.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 43e7545803971f050965b60e9b0acda828f0afc4ae35907e4fe72fb7d82f39f3
MD5 c48f7fb40df4597bd240e668c06de4d3
BLAKE2b-256 da1b710b791385dea4c128163155bb1d3652833fcbd8b3ba6081aae50d7b51f3

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