Overview
CEMS provides skills (slash commands) that enable AI assistants to search and store persistent memories across sessions. Skills are available in Claude Code, Cursor, Codex, and Goose with slight variations based on IDE capabilities.Available Skills
/recall - Search Memories
Search your memories for relevant information using semantic search. Usage:- Detects the current project from git remote (e.g., “Chocksy/cems”)
- Converts your query to embeddings using text-embedding-3-small
- Searches both personal and shared memory (by default)
- Boosts same-project results, penalizes cross-project noise
- Ranks results by relevance score with time decay
- Returns the most relevant matches
memory_search with:
query: Your search text (required)scope: “personal”, “shared”, or “both” (default: both)max_results: Maximum results (default: 10, range: 1-20)max_tokens: Token budget for results (default: 4000)enable_graph: Include related memories via graph traversal (default: true)enable_query_synthesis: Expand query with LLM for better retrieval (default: true)project: Auto-detected from git remote (org/repo format)raw: Debug mode to bypass relevance filtering (default: false)
...), fetch the full document:
/remember - Add Personal Memory
Add a memory to your personal memory store. Usage:memory_add MCP tool automatically:
- Extracts atomic facts from your input
- Checks for existing similar memories
- Decides whether to ADD (new), UPDATE (modify existing), or skip (duplicate)
- Stores with timestamp and access tracking
memory_add with:
content: Your input (required)scope: “personal” (automatic for /remember)category: Category for organization (default: “general”)- Available: preferences, conventions, architecture, decisions, workflow, errors, learnings, general
tags: Array of tags for filteringsource_ref: Project reference (auto-detected as “project:org/repo”)
- Get git remote:
git remote get-url origin - Extract org/repo from URL:
- SSH:
[email protected]:org/repo.git→org/repo - HTTPS:
https://github.com/org/repo.git→org/repo
- SSH:
- Pass as
source_ref: "project:org/repo"
/share - Add Team Memory
Add a memory to the shared team memory store. Usage:- Team conventions and standards
- Architecture decisions (ADRs)
- Deployment processes
- Codebase patterns
- Onboarding knowledge
CEMS_TEAM_ID configured for shared memory to work.
Options:
memory_add with:
content: Your inputscope: “shared”category: Default “general” or specifiedtags: As specified
/forget - Remove Memory
Remove a memory from the system. Usage:- They won’t appear in searches
- They can be recovered if needed
- They’re preserved for audit purposes
--hard for permanent deletion when you want the memory completely removed.
Finding Memory IDs:
Memory IDs are returned when you:
- Add a memory (
/remember) - Search memories (
/recall) - List memories via CLI
memory_forget with:
memory_id: The ID to remove (required)hard: true for permanent deletion (default: false)
/context - Show Memory Status
Show the current memory system status and context. Usage:- Current user ID
- Team ID (if configured)
- Storage location
- Memory counts by scope
- Category breakdown
- Scheduler status
memory://status- System statusmemory://personal/summary- Personal memory summarymemory://shared/summary- Shared memory summary
Foundation Guidelines Skill
View foundation guidelines (rules, principles, constraints) stored in CEMS memory. Usage: When invoked or when the user asks about project rules/guidelines:- Detect the current project from git remote
- Search for foundation guidelines via MCP:
- Filter results to only include memories that:
- Have tags containing “foundation” or “constitution”
- OR have category “guidelines”
- Coding standards and conventions
- Project-specific constraints
- Team agreements and principles
- Quality gates and review criteria
IDE-Specific Implementations
Claude Code
Locations:- Skills:
~/.claude/skills/cems/ - Commands:
~/.claude/commands/ - 6 hooks, 6 skills, 2 commands
- MCP server config in
~/.claude.json
/recall- Search memories/remember- Add personal memory/share- Add team memory/forget- Delete memory/context- Show status- Memory guide skill for proactive usage
Cursor
Locations:- Skills:
~/.cursor/skills/ - 3 hooks, 5 skills
- MCP config in
~/.cursor/mcp.json
cems-recall- Search memoriescems-remember- Add memorycems-forget- Delete memorycems-share- Share with teamcems-context- Memory status
Codex
Locations:- Commands:
~/.codex/commands/ - Skills:
~/.codex/skills/ - 3 commands, 2 skills
- MCP config in
~/.codex/config.toml
recallcommand - Search memoriesremembercommand - Add memoryfoundationcommand - View guidelinesrecallskill - Search memoriesrememberskill - Add memory
Goose
Location:- MCP extension config in
~/.config/goose/config.yaml
memory_searchmemory_addmemory_forgetmemory_updatememory_getmemory_maintenance
Search Tips
- Always pass project: Auto-detect from git remote to filter cross-project noise
- Use natural language: “how do we handle authentication” > “auth”
- Be specific: “Python backend database conventions” > “conventions”
- The system uses semantic matching, not just keywords
- Results include relevance scores and time decay ranking
- Use
raw: trueto debug retrieval when results seem wrong
What to Store
Good candidates for memory:- User preferences and style choices
- Project conventions and naming patterns
- Architecture and infrastructure decisions
- Debugging insights and solutions to recurring problems
- Workflow patterns and deployment processes
- Session-specific context (current task, temporary state)
- Information already in the codebase
- Build output or error messages being debugged right now
- Speculative conclusions from a single observation
Related Pages
- CLI Usage - Command-line interface reference
- Memory Management - Memory lifecycle and best practices
- Observer Daemon - Background session learning