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 PyPI Status License: AGPL-3.0-or-later

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

๐Ÿ‘‰ persists across sessions
๐Ÿ‘‰ persists across tools
๐Ÿ‘‰ reduces your token usage
๐Ÿ‘‰ evolves over time
๐Ÿ‘‰ costs $0 โ€” no LLM in the loop
๐Ÿ‘‰ runs on your CPU

Why try Slowave?

Most AI tools forget everything when the session ends.

That means you keep repeating the same context:

  • 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 shared local memory layer.

It lets coding assistants, agents, chat clients, and MCP-compatible tools retrieve relevant context from previous sessions without replaying full history into every prompt.

Slowave is useful if you want:

  • persistent memory across sessions;
  • shared memory across multiple AI tools;
  • 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 AI tools stop starting from zero.

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?

๐Ÿ‘Š 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 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: 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 an LLM-based agent. Slowave takes a different path: it is a local, MCP-native memory substrate 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.1.tar.gz (194.4 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.1-py3-none-any.whl (205.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: slowave-0.5.1.tar.gz
  • Upload date:
  • Size: 194.4 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.1.tar.gz
Algorithm Hash digest
SHA256 e3f5bac1b8aaa65d867b7c0fb024a7145833e7242dd1a51cad84412e0a40da05
MD5 c17dbb0f0cf6f10ed743a01f847a5e5f
BLAKE2b-256 9ea498e46db2f0405d6c4ed0d4cc2be6005facf4e0823e5085be0b042725fb01

See more details on using hashes here.

File details

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

File metadata

  • Download URL: slowave-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 205.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 415042a317ebb6bb6170a59edd1cb8fdcdc538be737f530ea27769b84a97796a
MD5 7f8116495a994514e472cc749b31b33e
BLAKE2b-256 8b42f55d153e46cd87478a89397e6f56d754209bef0387eb0b292d705c79c08b

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