Skip to main content

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

Each memory is one piece of info — max 2000 chars. If your save is longer, split it into 2+ memories, each one specific fact.

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
deja setup windsurf        # Windsurf

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

deja_cli-0.2.1.tar.gz (113.9 kB view details)

Uploaded Source

Built Distribution

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

deja_cli-0.2.1-py3-none-any.whl (139.2 kB view details)

Uploaded Python 3

File details

Details for the file deja_cli-0.2.1.tar.gz.

File metadata

  • Download URL: deja_cli-0.2.1.tar.gz
  • Upload date:
  • Size: 113.9 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

Hashes for deja_cli-0.2.1.tar.gz
Algorithm Hash digest
SHA256 063c654c97d7be738be82d5157be8515b2adab28a34810a74b4994438e37d63d
MD5 79c1dce4394ce7c2a46f37fdf19d6e56
BLAKE2b-256 b2d9cd3905f5c039dd91644fccc175f75ca568282158b9c73420f3a44f5d365f

See more details on using hashes here.

File details

Details for the file deja_cli-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: deja_cli-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 139.2 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

Hashes for deja_cli-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 46d9c034f6b55fdc73039fecc5026a7e0d3e0d3934d6c0f533d06c9567490ce6
MD5 eb9317df2990dadd15ff4890f22e9489
BLAKE2b-256 6dec4375343de1a35b5738a3aa2c5dd360b6b91e7783e0603e70b7939c5f389e

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