OpenMem — Codex CLI Memory Skill
Autonomous memory for Codex CLI, powered by OpenMem.
Commands
| Command | Description |
|---|---|
/mem or /mem help | Show help |
/mem status | System status |
/mem search <query> | Search memories |
/mem run | Run learning cycle |
/mem patterns | Show discovered patterns |
/mem skills | List auto-generated skills |
/mem stats | Statistics |
/mem profile | User profile |
/mem optimize | Run optimization |
/mem evolve | Run evolution |
Quick Start
/mem status # Check health
/mem run # Run learning cycle
/mem search python # Find Python memories
How It Works
- Indexing: Every conversation is automatically indexed to LanceDB
- Context: Memory context is injected into
.codex/context.md - Search: Semantic vector search finds relevant past conversations
- Learning: Patterns are discovered, skills auto-generated
- Evolution: Response strategies evolve over time
Installation
# From OpenMem root
python bin/launcher.py --install
python bin/launcher.py --skill codex_cli
Auto-Operation
Once initialized, OpenMem operates autonomously:
- 🕐 Every 2 hours: Learning cycle
- 📊 Every cycle: Pattern discovery, skill generation
- 🔄 Every cycle: Performance optimization
- 🧬 Every cycle: Evolution algorithm
- 🗑️ Weekly: Memory consolidation
Files
SKILL.md— This documentationlearner.py— Command handler for Codex CLIconfig.json— Agent-specific configuration