Skip to main content

Brain-inspired long-term memory for AI agents โ€” zero LLM during ingest or retrieval

Project description

Slowave

One memory for every AI tool you use.

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

Slowave gives Claude Code, Cline, Cursor, Claude Desktop, Windsurf, and other MCP-compatible tools access to the same persistent memory.

Instead of each tool forgetting in isolation, Slowave gives them one shared memory layer that:

๐Ÿ‘‰ persists across sessions
๐Ÿ‘‰ follows you across tools
๐Ÿ‘‰ keeps project context outside any single assistant
๐Ÿ‘‰ reduces your token usage
๐Ÿ‘‰ evolves over time
๐Ÿ‘‰ costs $0 โ€” no LLM in the loop
๐Ÿ‘‰ runs locally on your CPU

Why try Slowave?

Most AI tools have isolated memory.

One assistant may know what happened yesterday, while another starts from zero. Even when a tool remembers something, that memory usually stays trapped inside that tool.

That means you keep repeating the same context every time you switch client, model, workspace, or session:

  • how your project is structured;
  • how tests and releases work;
  • what decisions were already made;
  • what preferences you have;
  • what previous debugging sessions discovered;
  • what should no longer be suggested.

Slowave gives AI tools a centralized memory layer.

The memory is local-first, but the product idea is broader: one memory substrate shared by all your AI tools.

Slowave is useful if you want:

  • one memory shared across multiple AI tools;
  • persistent memory across sessions;
  • context that survives switching clients or models;
  • local-first storage;
  • no LLM calls in the memory loop;
  • scoped project memory;
  • adaptive recall with reinforcement, decay, and supersession;
  • compact working-memory briefs instead of huge pasted context blocks.

In short:

Slowave helps every AI tool start from the same memory.

The big picture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   work with   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚            โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ถ โ”‚ Claude Code โ”‚ โ—€โ”€โ”€โ”€โ”
โ”‚            โ”‚               โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ”‚    (mcp)
โ”‚    You     โ”‚               โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”‚    context         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  (local)   โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ถ โ”‚    Cline    โ”‚ โ—€โ”€โ”€โ”€โ”ผโ”€โ”€โ–ถ remember  โ—€โ”€โ”€โ”€โ–ถ โ”‚  Slowave   โ”‚โ—€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚            โ”‚               โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ”‚    recall          โ”‚  (local)   โ”‚       โ”‚
โ”‚            โ”‚               โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”‚    procedure       โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜       โ”‚
โ”‚            โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ถ โ”‚   Cursor    โ”‚ โ—€โ”€โ”€โ”€โ”˜    feedback              โ”‚ evolves      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜               โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜                                โ”‚ decays       โ”‚
                                    โ”‚                                       โ”‚ reinforces   โ”‚
                                    โ”‚                                       โ”‚ consolidates โ”‚
                                    โ–ผ                                       โ”‚ learns       โ”‚
                              โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                                โ”‚ workflows    โ”‚
                              โ”‚    LLM     โ”‚                                โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                 
                              โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Install

pipx install slowave
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 โ†’

What makes Slowave different?

๐Ÿ‘Š Central memory across every AI tool.

Claude Code, Cline, Claude Desktop, Cursor, Windsurf, and any MCP-compatible client can read from and write to the same memory store. Fix a bug in Claude Code tonight โ€” Cline can recall the lesson tomorrow. Decide on an architecture in Claude Desktop โ€” it can surface in your next coding session. Context follows you across tools instead of dying inside one chat.

๐Ÿง  Adaptive memory, not just notes or a vector index.
Slowave memory changes with use: useful memories are reinforced, stale ones decay, and outdated ones can be superseded. Recall is shaped by salience, time, scope, and feedback โ€” not just raw vector similarity.

โš™๏ธ 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.

๐Ÿ’ฐ 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 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.

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, known gaps, and reproducibility.

On fact-recall benchmarks, Slowave reaches scores competitive with LLM-based memory systems โ€” with zero LLM calls. Gaps remain in implicit preference inference and behavioral style drift, which require LLM reasoning that Slowave deliberately avoids. See known gaps โ†’

Benchmark n Slowave Published / reported comparator Slowave LLM calls
LoCoMo (multi-session recall) 1 986 81% Zep 75.1% ยท LangMem 58.1% ยท GPT-4 fine-tuned ~76% 0
LongMemEval (full haystack) 500 93.4% Mem0 94.4%โ€  0
StaleMemory โ€” concrete preference driftโ€ก 900 86โ€“89% no published baseline 0

โ€  Mem0 uses GPT-5 as judge; Slowave uses keyword-overlap. The 1 pp LME gap falls within the expected difference between these two scoring protocols โ€” the gap would likely narrow on the same scorer, but this has not been directly measured. The LoCoMo gap is large enough to hold across any reasonable scorer. All Slowave runs: zero LLM calls, fully local. Full methodology โ†’

โ€ก Concrete-keyword subset of 1,200 total StaleMemory scenarios. Abstract behavioral drift (the remaining 300 scenarios) scores 0โ€“1% โ€” a structural limit of retrieval-only systems. See known gaps โ†’

How Slowave compares

Most agent-memory systems focus on extracting and retrieving memories for one LLM-based agent or application. Slowave takes a different path: it is a centralized, MCP-native memory substrate shared across tools, where the memory lifecycle itself โ€” recall, reinforcement, decay, supersession, feedback, and procedural reuse โ€” runs without an LLM in the loop.

MEMORY.md Plain RAG Mem0 / Zep / Graphiti Letta / LangMem Slowave
Persistent across sessions โœ… โœ… โœ… โœ… โœ…
Shared across MCP tools โš ๏ธ โš ๏ธ โš ๏ธ โš ๏ธ โœ…
Local-first by default โœ… โœ… โš ๏ธ โš ๏ธ โœ…
Adaptive recall over time โŒ โŒ โš ๏ธ โš ๏ธ โœ…
Reinforcement / decay without LLM calls โŒ โŒ โŒ โŒ โœ…
Supersession / stale-memory handling โŒ โŒ โœ… โš ๏ธ โœ…
Procedural memory / workflows โš ๏ธ โŒ โš ๏ธ โœ… โœ…
Zero memory API cost โœ… โœ… โŒ โš ๏ธ โœ…

โœ… = native or central capability.
โš ๏ธ = possible, partial, backend-dependent, or LLM-mediated.
โŒ = not a primary/default capability.

Dashboard

Keep Slowave always under control through the local dashboard.

dashboard.png

You use it, Slowave will start 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.5.6.tar.gz (200.6 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.5.6-py3-none-any.whl (212.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for slowave-0.5.6.tar.gz
Algorithm Hash digest
SHA256 2d4a207d92025af3830fb7f70c0d262d6b483f14c045512f6fd463440dfb599a
MD5 4d28e34f51ef02737e3a76a605ad3b31
BLAKE2b-256 c81bec6daca8ec1014480de87e5225230101efb2ed837712b736c0b35033ffc6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: slowave-0.5.6-py3-none-any.whl
  • Upload date:
  • Size: 212.0 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.5.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0f9502a8decf09fe2e796eb2d1e8a351e015e3d8e34f0884cae83ee254fdffce
MD5 0e78616b9dee14f5a82ff2379bd8f952
BLAKE2b-256 b230b9e39acec457978897d321bd460401c466da2c94bb03113d7fe44840956c

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