Local-first persistent memory CLI for coding agents
Project description
deja
Local-first persistent memory CLI for coding agents. Memories accumulate across sessions, deduplicate automatically, and stay on your machine.
Install
uv tool install deja-cli
Quick Start
deja init # first-time setup
deja setup claude-code # inject memory instructions into Claude Code
Core Commands
Save a memory:
deja save "Always use explicit error handling over try/catch" --type preference
deja save "Auth tokens stored in localStorage, not cookies" --type decision --project myapp
deja save "Prisma migrations fail silently if DB_URL has wrong port" --type gotcha --project myapp
Load at session start:
deja load --project myapp --context "what you're working on"
Search mid-session:
deja search "authentication" --project myapp
Extract memories from a session:
deja save-session --project myapp
Memory Types
| Type | When to use |
|---|---|
preference |
How you like to code — style, tools, habits |
pattern |
Reusable solution that applies across contexts |
decision |
Non-obvious architectural choice with reasoning |
gotcha |
Bug, trap, or non-obvious issue to avoid |
progress |
Current state of in-progress work |
procedure |
Ordered steps for a recurring task |
Setup for Coding Agents
deja setup claude-code # Claude Code — global config + recall hooks
deja setup gemini-cli # Gemini CLI
deja setup codex # Codex CLI
deja setup cursor # Cursor
MCP Server
claude mcp add --scope user deja -- ~/.local/bin/deja-mcp
Registers memory_load, memory_save, and memory_search as native tools in every Claude Code session.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deja_cli-0.1.2.tar.gz.
File metadata
- Download URL: deja_cli-0.1.2.tar.gz
- Upload date:
- Size: 59.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7898679461d153992b2fc825846705f77e606b2b146e0120381951ace8f016cb
|
|
| MD5 |
5937506912c69a594e6cfc760bd7c917
|
|
| BLAKE2b-256 |
0f72c5c86f6b3e65776fcae4c24907cdc582fe63f0439c73cd77fa3a769887d7
|
File details
Details for the file deja_cli-0.1.2-py3-none-any.whl.
File metadata
- Download URL: deja_cli-0.1.2-py3-none-any.whl
- Upload date:
- Size: 72.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12b2ebf22206d3388051ddda60e95804135a2e75bcd3f6c3638bee85049ca49b
|
|
| MD5 |
18a8400f1e13fdd116af8db2af89bd79
|
|
| BLAKE2b-256 |
53ddb2acee7594373c2a104bc4d2de625ab9e88276327c31da625932487f2b55
|