CLEO is a comprehensive task management and agent orchestration system designed for AI-powered software development workflows. It provides structured task tracking, session management, memory systems, and multi-provider AI integration through a unified interface.
CLEO stands for Contextual Language Engine & Orchestrator. It's built to solve the coordination challenges that arise when working with multiple AI coding assistants across complex software projects.
- Task Management: Hierarchical task tracking with dependencies, priorities, and lifecycle states
- Session Management: Contextual work sessions with automatic state persistence
- Agent Orchestration: Multi-agent coordination with protocol compliance
- Memory Systems: Persistent knowledge storage with brain-like retrieval
- Multi-Provider Support: Works with Claude Code, OpenCode, Cursor, and more
- MCP Server: Full Model Context Protocol integration for AI assistants
This monorepo contains 6 packages that work together to provide the complete CLEO ecosystem:
| Package | Purpose | Description |
|---|---|---|
@cleocode/contracts |
Type Definitions | Domain types, interfaces, and contracts - the foundation of the type system |
@cleocode/core |
Business Logic | Task management, sessions, memory, orchestration, and lifecycle management |
@cleocode/adapters |
Provider Integration | Unified adapters for Claude Code, OpenCode, Cursor, and other AI providers |
@cleocode/agents |
Agent Protocols | Subagent templates and protocol definitions for autonomous execution |
@cleocode/skills |
Skill Definitions | Pre-built skills and capabilities for common development workflows |
@cleocode/cleo |
CLI & MCP Server | Command-line interface and Model Context Protocol server |
# Install globally for CLI access
npm install -g @cleocode/cleo
# Or use with npx (no installation required)
npx @cleocode/cleo init# Navigate to your project
cd my-project
# Initialize CLEO
cleo init
# Or use the shorthand
cleo init --with-examples# Add a task
cleo add "Implement user authentication" --priority high
# List tasks
cleo list
# Start a work session
cleo session start "Authentication Feature"
# Show current task context
cleo current
# Complete a task
cleo complete T1234CLEO includes a full MCP (Model Context Protocol) server for AI assistants:
# Start the MCP server
cleo mcp
# Or configure in your MCP settings (Claude Desktop, etc.)
{
"mcpServers": {
"cleo": {
"command": "cleo",
"args": ["mcp"]
}
}
}- Node.js >= 24.0.0
- pnpm >= 10.30.0 (package manager)
# Clone the repository
git clone https://github.com/cleocode/cleo.git
cd cleo
# Install dependencies
pnpm install
# Build all packages
pnpm build
# Run tests
pnpm test# Build a specific package
pnpm build:contracts
pnpm build:core
pnpm build:cleo
# Type checking
pnpm typecheck
# Linting
pnpm lint
pnpm lint:fix# Generate migrations
pnpm db:generate
# Open Drizzle Studio
pnpm db:studio┌─────────────────────────────────────────────────────────────┐
│ @cleocode/cleo │
│ CLI + MCP Server Entry Point │
└─────────────────────────────────────────────────────────────┘
│
┌─────────────────────────────────────────────────────────────┐
│ @cleocode/core │
│ Tasks • Sessions • Memory • Orchestration • Lifecycle │
└─────────────────────────────────────────────────────────────┘
│
┌─────────────────────┼─────────────────────┐
│ │ │
┌───────▼───────┐ ┌────────▼────────┐ ┌────────▼────────┐
│ adapters │ │ memory │ │ orchestration │
│ sessions │ │ brain │ │ phases │
│ tasks │ │ sticky │ │ lifecycle │
│ compliance │ │ inject │ │ release │
└───────────────┘ └─────────────────┘ └─────────────────┘
│
┌─────────────────────────────────────────────────────────────┐
│ @cleocode/contracts │
│ Types • Interfaces • Contracts │
└─────────────────────────────────────────────────────────────┘
│
┌─────────────────────┼─────────────────────┐
│ │ │
┌───────▼───────┐ ┌────────▼────────┐ ┌────────▼────────┐
│ adapters │ │ agents │ │ skills │
│ (providers) │ │ (protocols) │ │ (definitions) │
└───────────────┘ └─────────────────┘ └─────────────────┘
- Hierarchical tasks with parent-child relationships
- Priority levels and sizing estimates
- Dependency tracking and blocker identification
- Automatic sequencing and critical path analysis
- Archive and restore functionality
- Contextual work sessions with automatic persistence
- Session notes and progress tracking
- Safe stop and checkpoint mechanisms
- Briefing generation for context handoff
- Brain-like knowledge storage with semantic search
- Sticky notes for ephemeral context
- Memory bridges for cross-session persistence
- Context injection for AI assistants
- Subagent spawning with protocol compliance
- Wave-based parallel execution
- Consensus workflows for multi-agent decisions
- LOOM (Logical Order of Operations Methodology) lifecycle
- Claude Code integration with statusline sync
- OpenCode adapter with spawn hooks
- Cursor support
- Extensible adapter architecture
CLEO provides 80+ commands organized into domains:
| Domain | Commands |
|---|---|
| Tasks | add, list, show, find, complete, update, delete, archive, start, stop, current, next |
| Session | session, briefing, phase, checkpoint, safestop |
| Memory | memory, memory-brain, observe, context, inject, sync, sticky, note |
| Check | validate, verify, compliance, doctor, analyze |
| Pipeline | release, lifecycle, promote, upgrade, specification, roadmap, plan |
| Orchestration | orchestrate, ops, consensus, contribution, decomposition, implementation |
| Research | research, extract, web, docs |
| Nexus | nexus, init, remote, push, pull, snapshot, export, import |
| Admin | config, backup, skills, migrate, grade, map, commands |
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Run tests (
pnpm test) - Commit with conventional commits (
feat:,fix:,docs:, etc.) - Push to your fork
- Open a Pull Request
- TypeScript with strict mode enabled
- Biome for linting and formatting
- Conventional commit messages
- Comprehensive test coverage with Vitest
If CLEO helps your workflow, consider supporting development:
MIT License - see LICENSE for details.