chocksy/cems-server

By chocksy

Updated about 14 hours ago

Image
0

2.0K

chocksy/cems-server repository overview

CEMS — Continuous Evolving Memory System

CEMS

Continuous Evolving Memory System

Persistent memory for AI coding assistants. Your agent remembers what you teach it — across sessions, projects, and teams.

License: MIT Python 3.12+ Docker Hub MCP Compatible Recall@5: 98%

Works with Claude Code · Cursor · Codex · Goose · any MCP-compatible agent


How It Works

How CEMS Works — You code, CEMS watches, Memories stored, Context recalled

  1. You code — CEMS hooks into your IDE (Claude Code, Cursor, Codex, Goose)
  2. CEMS watches — Every prompt is enriched with relevant memories. Session learnings are extracted automatically.
  3. Memories stored — Preferences, conventions, architecture decisions, debugging fixes
  4. Context recalled — Next session, relevant memories are injected so your agent already knows your codebase

No manual tagging. No copying context. It just works.


Architecture

CEMS Architecture — Developer machines connect to Docker server


Quick Start

1. Deploy the server
# Download the compose file
curl -fsSLO https://raw.githubusercontent.com/chocksy/cems/main/deploy/docker-compose.yml

# Create .env
cat > .env << 'EOF'
POSTGRES_PASSWORD=your_secure_password
OPENROUTER_API_KEY=sk-or-your-key
CEMS_ADMIN_KEY=cems_admin_random_string
EOF

# Start
docker compose up -d

# Run migrations
for f in migrate_docs_schema.sql migrate_soft_delete_feedback.sql migrate_conflicts.sql; do
  curl -fsSL "https://raw.githubusercontent.com/chocksy/cems/main/scripts/$f" | \
    docker exec -i cems-postgres psql -U cems cems
done
2. Create users
cems admin --admin-key $CEMS_ADMIN_KEY users create alice
# Returns the API key — save it, shown only once!
3. Install the client

Each developer runs:

curl -fsSL https://getcems.com/install.sh | bash

Prompts for server URL and API key, then configures your IDE. Done.


Documentation

DocWhat's inside
Deployment GuideDocker Compose, Kubernetes, env vars, backups, production checklist
Client SetupInstall options, CLI commands, skills, hooks, updating, troubleshooting
ArchitectureStorage, search pipeline, maintenance, observer daemon, MCP
API ReferenceAll REST endpoints with examples

Development

git clone https://github.com/chocksy/cems.git && cd cems
uv pip install -e ".[dev]"
pytest

License

MIT

Tag summary

Content type

Image

Digest

sha256:2921ab18c

Size

118.2 MB

Last updated

about 14 hours ago

docker pull chocksy/cems-server