Memory management CLI for team collaboration with shared thoughts
Project description
mem8 - Claude Code Workspace Manager
A streamlined CLI tool for managing Claude Code customizations and documentation workflows. Create standardized project templates, manage thoughts/research documents, and enhance your Claude Code development experience.
๐ฏ Overview
mem8 is designed to work seamlessly with Claude Code, providing:
- ๐ป Rich CLI Interface - Manage Claude Code customizations and project templates
- ๐ Thoughts Management - Organize research, plans, and documentation in markdown
- ๐จ Dashboard - Optional web interface to browse your workspace and thoughts
- ๐๏ธ Template System - Cookiecutter templates for Claude Code configurations
โจ Core Features
๐ป CLI Commands
mem8 init --template claude-config # Initialize Claude Code workspace
mem8 status # Check workspace health
mem8 search "query" # Search across all thoughts
mem8 serve # Start the API server (port 8000)
๐ Template System
- claude-dot-md-template - Generate
.claude/[agents,commands]configurations - shared-thoughts-template - Create structured thoughts repositories
- Cookiecutter integration - Flexible, customizable project generation
๐ Thoughts Organization
thoughts/
โโโ shared/
โ โโโ research/ # Research documents
โ โโโ plans/ # Implementation plans
โ โโโ prs/ # PR descriptions
โ โโโ decisions/ # Technical decisions
โโโ {project}/ # Project-specific thoughts
๐ Quick Start
1. Install mem8
# Install with uv (recommended)
uv tool install mem8
# Or install from source
git clone https://github.com/killerapp/mem8.git
cd mem8
uv tool install --editable .
2. Initialize Your Workspace
# Create Claude Code configuration
mem8 init --template claude-config
# Create thoughts repository
mem8 init --template thoughts-repo
# Check everything is working
mem8 status
3. Optional: View Your Workspace
# Option A: Quick start with npm (development mode)
cd frontend && npm install && npm run dev
# Access at http://localhost:22211
# Option B: Full stack with Docker Compose (includes backend)
docker-compose --env-file .env.dev up -d
# Frontend at http://localhost:22211
# Backend API at http://localhost:8000
๐ Development Workflow
mem8 provides a structured inner loop for effective development:
The Research โ Plan โ Implement โ Commit Cycle
-
Research (
/research_codebase) - Understand existing patterns and architecture- Uses parallel sub-agents for comprehensive codebase analysis
- Creates timestamped research documents with metadata
- Integrates findings from both code and thoughts repository
-
Plan (
/create_plan) - Design your approach with concrete steps- Structured implementation plans with technical details
- Clear requirements analysis and integration points
- Breaks down complex features into actionable tasks
-
Implement (
/implement_plan) - Execute with progress tracking- Follows approved plans while adapting to reality
- Updates progress with todo lists and checkboxes
- Verification at natural stopping points
-
Validate (
/validate_plan) - Verify implementation completeness- Systematic checking against original plan
- Automated verification (build, tests, linting)
- Recommendations for missing or incomplete work
-
Commit (
/commit) - Create atomic, well-documented commits- Reviews session changes and creates logical groupings
- Focuses on "why" rather than just "what" changed
- Maintains clean git history
Benefits
- Thorough Understanding: Research first reduces bugs and technical debt
- Clear Direction: Plans provide roadmap before coding begins
- Progress Tracking: Todo lists and validation prevent incomplete work
- Quality Commits: Thoughtful commit messages improve team communication
Getting Started
After running mem8 init, these commands are available in Claude Code as /research_codebase, /create_plan, etc. The workflow works best when following the sequence, but individual commands can be used as needed.
๐ Templates
Claude Code Configuration (claude-config)
Generates .claude/CLAUDE.md with:
- Project-specific instructions
- Custom agents and commands
- Memory management settings
- Development workflows
Example Usage:
mem8 init --template claude-config
# Creates: .claude/CLAUDE.md, commands/, agents/
Thoughts Repository (thoughts-repo)
Creates structured documentation with:
- Research document templates
- Planning frameworks
- Decision logs
- Shared memory structure
Example Usage:
mem8 init --template thoughts-repo
# Creates: thoughts/shared/, thoughts/research/, etc.
๐๏ธ Configuration
Basic Setup
# Initialize in existing project
cd your-project
mem8 init --template claude-config
# Customize the generated .claude/CLAUDE.md
# Add project-specific instructions and workflows
Advanced Configuration
# Use custom cookiecutter configs
mem8 init --template claude-config --config-file custom-config.yaml
# Link shared thoughts across projects
mem8 sync --link-shared ~/shared-thoughts
๐ป Web Interface (Optional)
The mem8 web interface provides a browser-based viewer for your workspace:
Features
- Browse research and planning documents
- Search across all markdown files
- View file contents with syntax highlighting
- Navigate between different thought categories
Setup Options
Quick Start (Development)
# Install dependencies and start the web interface
cd frontend && npm install && npm run dev
# Access at http://localhost:22211
Docker Compose (Full Stack)
# Start all services (frontend, backend, database)
docker-compose up -d
# Services available at:
# - Frontend: http://localhost:22211
# - Backend API: http://localhost:8000
# - PostgreSQL: localhost:5432
Note: The web interface is a simple file viewer - no authentication or database required.
๐ง Project Structure
your-project/
โโโ .claude/
โ โโโ CLAUDE.md # Main Claude Code configuration
โ โโโ commands/ # Custom commands
โ โโโ agents/ # Custom agent definitions
โโโ thoughts/
โ โโโ shared/ # Shared documentation
โ โโโ research/ # Research documents
โ โโโ plans/ # Implementation plans
โโโ mem8-config.yaml # mem8 workspace settings
๐ ๏ธ Advanced Usage
Search Functionality
# Full-text search
mem8 search "authentication"
# Search in specific directories
mem8 search "API" --path thoughts/shared/research
# Search with filters
mem8 search "bug" --tags "urgent" --type "plans"
Sync and Sharing
# Sync with shared directory
mem8 sync
# Create symlinks to shared thoughts
mem8 sync --link ~/team-shared-thoughts
# Check sync status
mem8 status --verbose
Custom Templates
# Create new template from existing project
mem8 template create my-template --from .
# Use custom template
mem8 init --template ./my-custom-template
๐ Integration with Claude Code
Custom Agents
Place agent definitions in .claude/agents/:
# .claude/agents/researcher.md
You are a research assistant focused on technical documentation...
Custom Commands
Add commands in .claude/commands/:
# .claude/commands/analyze.sh
#!/bin/bash
echo "Analyzing codebase structure..."
Workspace Memory
Configure in .claude/CLAUDE.md:
# Project Context
- Use `thoughts/research/` for background research
- Store implementation plans in `thoughts/plans/`
- Document decisions in `thoughts/decisions/`
๐ Production Deployment
Quick Start with Docker
# Build and start all services
docker-compose up -d
# Test the deployment (Windows PowerShell)
./test-docker.ps1
# Test the deployment (Linux/Mac)
./test-docker.sh
# Services will be available at:
# - Frontend: http://localhost:22211
# - API: http://localhost:8000
# - API Docs: http://localhost:8000/docs
API Server (Standalone)
The mem8 serve command provides a clean, production-ready API server:
# Development mode with auto-reload
mem8 serve --reload
# Production mode with multiple workers
mem8 serve --workers 4 --port 8000
# With custom host/port
mem8 serve --host 0.0.0.0 --port 8080 --workers 2
Docker Deployment Options
Production Stack (docker-compose.prod.yml)
# Start full production stack
docker-compose -f docker-compose.prod.yml --env-file .env.prod up -d
# View logs
docker-compose -f docker-compose.prod.yml logs -f backend # API logs
docker-compose -f docker-compose.prod.yml logs -f frontend # Frontend logs
# Stop services
docker-compose -f docker-compose.prod.yml down
# Clean up (removes volumes)
docker-compose -f docker-compose.prod.yml down -v
Development Stack (with Hot Reloading)
# Start development environment with hot-reload enabled
docker-compose --env-file .env.dev up -d --build
# Frontend and backend will auto-reload on code changes
# View logs: docker-compose --env-file .env.dev logs -f
Architecture
The production deployment uses:
- mem8 serve: FastAPI backend with unified CLI entry point
- PostgreSQL: Primary database for storing thoughts and metadata
- Redis: Cache layer and websocket support
- Next.js: Frontend application on port 22211
๐งฐ Requirements
- Python 3.8+ - For mem8 CLI
- uv - Package manager (
curl -LsSf https://astral.sh/uv/install.sh | sh) - Node.js 18+ - For optional web interface
- Git - For sync functionality
๐ Workflow Examples
Research & Planning
# Start new research
mem8 init --template thoughts-repo
cd thoughts/research
# Create research-topic.md
# Plan implementation
cd ../plans
# Create implementation-plan.md
# Search for related work
mem8 search "similar feature" --type research
Claude Code Customization
# Set up Claude Code for new project
cd my-new-project
mem8 init --template claude-config
# Customize .claude/CLAUDE.md with:
# - Project-specific context
# - Custom agent definitions
# - Development workflows
# Test configuration
claude-code --help
๐ License
MIT License - see LICENSE file for details.
๐ค Contributing
Contributions welcome! Focus areas:
- New Templates - Create templates for different project types
- CLI Enhancements - Improve search and sync functionality
- Web Interface - Enhance the thoughts file viewer
- Documentation - Improve setup and usage guides
Designed for developers using Claude Code to enhance AI-assisted development workflows.
Project details
Release history Release notifications | RSS feed
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 mem8-2.7.0.tar.gz.
File metadata
- Download URL: mem8-2.7.0.tar.gz
- Upload date:
- Size: 2.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e54087621423ca9d3dfdecca56d48cead295f82879e26caa648898e564bb04af
|
|
| MD5 |
0c21545280abc715535485c843ec95ef
|
|
| BLAKE2b-256 |
10e484e60527f35b7cce5bb6bc46f88cb1472b19946864e85ae20a07d46f7aa5
|
File details
Details for the file mem8-2.7.0-py3-none-any.whl.
File metadata
- Download URL: mem8-2.7.0-py3-none-any.whl
- Upload date:
- Size: 146.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d053105023a454633fbb035f70de644b5a5094a027718fc6857291e886cecfd
|
|
| MD5 |
b8abe0837bee2aaabcbc33622e919476
|
|
| BLAKE2b-256 |
9adcf466b2ea9f33d5126c1d8fd30c0b3e1b7f2dcaeb8eb283e51f62e6ff67e6
|