Skip to main content

Persistent memory standard for AI agents — local, portable, zero config

Project description

rememb

Persistent memory for AI agents — local, portable, zero config.

rememb demo

AI agents (Windsurf, Cursor, Claude, Continue) forget everything between sessions.
rememb gives them a structured memory that lives in your project, belongs to you, and works with any agent.


The problem

Every developer using AI agents hits this wall:

Session 1: "We're using PostgreSQL, the auth module is at src/auth/, prefer async patterns."
Session 2: Agent starts from zero. You explain everything again.
Session 3: Same thing.

Existing solutions (Mem0, Zep, Letta) require servers, API keys, cloud accounts, and framework lock-in.
You just want the agent to remember your project.


The solution

.rememb/
  entries.json   ← structured memory (project, actions, systems, user, context)
  meta.json      ← project metadata

That's it. A JSON file in your project. Your agent reads it at the start of every session.


Install

pip install rememb

For semantic search support:

pip install rememb[semantic]

For PDF import support:

pip install rememb[pdf]

Quickstart

# Memory is global by default (~/.rememb/) — no init needed
# Use --local to keep memory in the current project

# Write memories
rememb write "Project uses FastAPI + PostgreSQL + async patterns" --section project
rememb write "User prefers direct answers, no filler text" --section user
rememb write "Auth module lives at src/auth/, JWT-based" --section systems --tags auth,jwt

# Read everything (for the agent)
rememb read --agent

# Filter by section
rememb read --section project

# Search semantically
rememb search "authentication"
rememb search "authentication" --agent   # agent-friendly output

# Import files into memory
rememb import ~/notes/ --section context --dry-run   # preview first
rememb import ~/notes/ --section context             # then import
rememb import ~/notes/ --recursive --section context # include subfolders

# Edit and delete entries
rememb read --section actions                       # find the ID
rememb edit a1b2c3d4 --section systems              # move to another section
rememb edit a1b2c3d4 --content "Updated text"       # update content
rememb delete a1b2c3d4                              # delete (asks confirmation)
rememb delete a1b2c3d4 --yes                        # delete without confirmation

# Get ready-to-use rules for your editor
rememb rules          # list available editors
rememb rules windsurf
rememb rules cursor
rememb rules claude
rememb rules continue
rememb rules vscode

Agent integration

Configure once. Works forever.

Run rememb rules <editor> to get the instructions for your editor, then paste them once. From that point on, your agent automatically reads and writes memory on every session.

rememb rules windsurf   # Windsurf / Cascade
rememb rules cursor     # Cursor
rememb rules claude     # Claude Code
rememb rules continue   # Continue.dev
rememb rules vscode     # VS Code + Copilot
Editor Where to paste
Windsurf / Cascade .windsurfrules at project root — or Settings → Cascade → Custom Instructions
Cursor .cursorrules at project root — or Settings → Rules for AI
Claude Code CLAUDE.md at project root (auto-read every session)
Continue.dev config.jsonmodels[].systemMessage
VS Code + Copilot .github/copilot-instructions.md at project root (auto-read by Copilot)

Memory sections

Section What to store
project Tech stack, architecture, goals
actions What was done, decisions made
systems Services, modules, integrations
requests User preferences, recurring asks
user Name, style, expertise, preferences
context Anything else relevant

Commands

rememb init              Initialize .rememb/ in current project
rememb write <text>      Write a memory entry (--section, --tags)
rememb read              Read all entries (--section, --agent, --raw)
rememb search <query>    Semantic search (falls back to keyword)
rememb delete <id>       Delete a memory entry by ID (--yes to skip confirmation)
rememb edit <id>         Edit a memory entry (--content, --section, --tags)
rememb import <folder>   Import .md/.txt/.pdf files into memory (--section, --recursive, --dry-run)
rememb rules [editor]    Print agent rules for windsurf/cursor/claude/continue/vscode

How search works

rememb search uses sentence-transformers for semantic similarity search locally.
No API calls. No embeddings sent to the cloud. Falls back to keyword search if the model isn't available.


Design principles

  • Local first — everything is a JSON file in your project
  • Portable — copy .rememb/ and it works anywhere
  • Agnostic — works with any agent that can run CLI commands
  • Zero configpip install rememb && rememb init and you're done
  • No lock-in — plain JSON, read it with anything

Roadmap

Planned

  • MCP server (rememb mcp) — native IDE integration, no CLI required
  • rememb sync — sync ~/.rememb/ across machines via private git
  • rememb web — local browser UI to manage memories visually
  • VS Code / Windsurf extension
  • rememb export — export memory to Markdown / Obsidian / Notion

Contributing

git clone https://github.com/LuizEduPP/rememb
cd rememb
pip install -e ".[dev]"

PRs welcome. Issues welcome. Stars welcome. 🌟


License

MIT

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

rememb-0.1.9.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

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

rememb-0.1.9-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file rememb-0.1.9.tar.gz.

File metadata

  • Download URL: rememb-0.1.9.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for rememb-0.1.9.tar.gz
Algorithm Hash digest
SHA256 67896a72f1d13ec079dc45e38e60e4d2e0dd1e96f03f785934c306c3c0c2e639
MD5 c4ac922b8c9e7a707042c7bf9df16f2b
BLAKE2b-256 6b805d5674e43fd3e8ecd8f5cf7ea02e6f77f9f93b094ac7b4dd0794dcc31fe3

See more details on using hashes here.

File details

Details for the file rememb-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: rememb-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for rememb-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 b771714202bd7407962b371ba4a90d4aaa236dc00a7ad2d0370e31756f001892
MD5 c0a59d7c32acfc343acbb503da6a0c9d
BLAKE2b-256 c9da18c758642cfb4c4dfc454646148132d00d7d18b0cf479756c03a1da25b24

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