Skip to main content

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

Project description

Slowave

A second brain for your AI, shared across every tool.

PyPI Python License: AGPL-3.0-or-later

Slowave gives your AI tools a central, private, local second-brain that:

  • persists across sessions
  • persists across tools
  • reduce your token usage (~86%)
  • evolves over time
  • costs 0$ (no LLM in the loop)
  • runs on your CPU
┌────────────┐   work with   ┌─────────────┐
│            │ ────────────▶ │ Claude Code │ ◀───┐
│            │               └─────────────┘     │    (mcp)
│    You     │               ┌─────────────┐     │    context         ┌────────────┐
│  (local)   │ ────────────▶ │    Cline    │ ◀───┼──▶ remember  ◀───▶ │  Slowave   │◀──────┐
│            │               └─────────────┘     │    recall          │  (local)   │       │
│            │               ┌─────────────┐     │    procedure       └─────┬──────┘       │
│            │ ────────────▶ │   Cursor    │ ◀───┘    feedback              │ evolves      │
└────────────┘               └─────────────┘                                │ decays       │
                                                                            │ reinforces   │
                                                                            │ consolidates │
                                                                            │ learns       │
                                                                            │ workflows    │
                                                                            └──────────────┘                 

Why Slowave?

👊 One memory, every AI tool.
Claude Code, Cline, Claude Desktop, Cursor, Windsurf, and any MCP-compatible client share the same local memory store. Fix a bug in Claude Code tonight — Cline knows the lesson tomorrow. Decide on an architecture in Claude Desktop — it surfaces in your next coding session. Context follows you across tools instead of dying when you close a chat.

🧠 Adaptive memory, not static notes.
Most AI memory is a pile of Markdown. Slowave behaves more like a brain: frequently recalled memories strengthen, stale ones fade, contradicted facts get superseded automatically. You never manually clean up a MEMORY.md file again.

⚙️ Procedural memory: workflows that stick.
Slowave stores reusable procedures — "how we do deploys in this repo", "steps to implement a new feature across projects" or simply "how this spaghetti recipe should be cooked". Recall them by goal and situation, not by keyword search. Your agents learn habits, not just facts.

🔒 Fully local, zero LLM calls.
Ingestion, consolidation, and recall run on your machine using embeddings, FAISS, and SQLite — no LLM in the memory loop, no API key, no data sent to a cloud memory backend. Memory operations cost $0 per query and work offline.

💰 86% fewer tokens than replaying history.
Slowave injects a compact working-memory brief instead of accumulating the full conversation. Over 20 sessions, raw history grew from 96 → 1,875 tokens while Slowave stayed flat at ~136 tokens — with 95% recall quality (the right memory surfaced in 19/20 sessions). Crossover happens at session 2. Measured with the real semantic encoder, not claimed. See the test →

Install

pipx install slowave
slowave setup           # automated configuration

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 →

[!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.

Full install guide →

What Slowave remembers

Anything that should survive across sessions: 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.

Memory is scoped flexibly: project:my-app, domain:cooking, relationship:alex — or unscoped for universal context.

Benchmarks

Alpha-stage numbers. Internal runs, not independently verified. See docs/benchmarks.md for per-category results, ablation details, and known gaps.

Numbers from the clean ablation sweep (17 variants, strict sample-size validation, zero LLM calls throughout). Full system = salience reranking + episodic consolidation enabled.

Benchmark n Cosine baseline Full system Δ LLM calls
LongMemEval 500 87.6% 87.8% +0.2 pp (saturation) 0
LoCoMo 1986 72.1% 83.5% +11.4 pp 0
DMR (MSC Self-Instruct) 500 93.6% 88.0% −5.6 pp ⚠ 0
StaleMemory (concrete attrs) 900 86–89% detection 0

DMR note: The full system's −5.6 pp on DMR is a protocol artefact — DMR uses keyword-overlap scoring, which penalises salience reranking and schema consolidation (abstractions that improve recall on conversational queries but reduce raw keyword matches). The cosine-only baseline (93.6%) is the fair DMR headline.

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, known gaps, reproducibility
docs/token_efficiency.md Token efficiency vs. history replay and static knowledge files
docs/limitations.md Honest limits: scale, language, unsolved categories
docs/cli.md CLI reference
docs/dashboard.md Local web UI (slowave dashboard)

Dashboard

Keep Slowave always under control through the local dahsboard.

dashboard.png

You use it, Slowave will start connecting the dots

dashboard_graph.png

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.4.8.tar.gz (164.9 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.4.8-py3-none-any.whl (174.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for slowave-0.4.8.tar.gz
Algorithm Hash digest
SHA256 23ad4617eef7db67ad6a1e5f20c17c56e827cfb569d2b3663ee2ce5d93746cc1
MD5 fe16729bd1801c4dd531ef8325933ce7
BLAKE2b-256 1ba240970d09d4f6de7bc33801a1c55911f78e718081d97c50b79041e1cb0c81

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for slowave-0.4.8-py3-none-any.whl
Algorithm Hash digest
SHA256 d978ebf742803369b483be966d83069f320791aa77cf6894f584d1eb00e2622c
MD5 28c6a9bc4eccd90bd9454d9473a091f8
BLAKE2b-256 427eda00afd7a65f34212feec62a520fd4f5fcc56d333b41e389f0b64eb9913e

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