@cleocode/cleo 2026.3.6 → 2026.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -38
- package/dist/cli/index.js +30154 -28866
- package/dist/cli/index.js.map +4 -4
- package/dist/mcp/index.js +26793 -24026
- package/dist/mcp/index.js.map +4 -4
- package/drizzle/20260302163443_free_silk_fever/migration.sql +1 -0
- package/drizzle/20260302163443_free_silk_fever/snapshot.json +2618 -0
- package/drizzle/20260302163457_robust_johnny_storm/migration.sql +1 -0
- package/drizzle/20260302163457_robust_johnny_storm/snapshot.json +2628 -0
- package/drizzle/20260302163511_late_sphinx/migration.sql +1 -0
- package/drizzle/20260302163511_late_sphinx/snapshot.json +2638 -0
- package/package.json +6 -3
- package/packages/ct-skills/profiles/core.json +2 -2
- package/packages/ct-skills/profiles/recommended.json +2 -2
- package/packages/ct-skills/skills/_shared/subagent-protocol-base.md +3 -1
- package/packages/ct-skills/skills/ct-cleo/SKILL.md +6 -4
- package/packages/ct-skills/skills/ct-cleo/references/{rcsd-lifecycle.md → loom-lifecycle.md} +23 -14
- package/packages/ct-skills/skills/ct-orchestrator/SKILL.md +8 -6
- package/packages/ct-skills/skills/manifest.json +1 -1
- package/packages/ct-skills/skills.json +20 -1
- package/server.json +4 -4
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<p
|
|
1
|
+
<p alis|version-[0-9]\+\.[0-9]\+\.[0-9]\+-|version-2026.3.10-|g|version-[0-9]\+\.[0-9]\+\.[0-9]\+-|version-2025.3.10-|gn="center">
|
|
2
2
|
<img src="docs/images/banner.png" alt="CLEO banner" width="900">
|
|
3
3
|
</p>
|
|
4
4
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
<p align="center">
|
|
13
13
|
<img src="https://img.shields.io/badge/License-BSL%201.1-blue" alt="License: Business Source License 1.1">
|
|
14
|
-
<a href="CHANGELOG.md"><img src="https://img.shields.io/badge/version-
|
|
14
|
+
<a href="CHANGELOG.md"><img src="https://img.shields.io/badge/version-2025.3.10-blue.svg" alt="Version"></a>
|
|
15
15
|
<a href="docs/mintlify/developer/specifications/LLM-AGENT-FIRST.mdx"><img src="https://img.shields.io/badge/design-LLM--Agent--First-purple.svg" alt="LLM-Agent-First"></a>
|
|
16
16
|
<a href="tests/"><img src="https://img.shields.io/badge/tests-passing-brightgreen.svg" alt="Tests"></a>
|
|
17
17
|
</p>
|
|
@@ -98,8 +98,8 @@ CLEO is composed of four interdependent systems:
|
|
|
98
98
|
|
|
99
99
|
| State | What It Means |
|
|
100
100
|
|------|----------------|
|
|
101
|
-
| **Shipped** | TypeScript CLI + MCP server, SQLite storage (`tasks.db`), atomic operations, four-layer anti-hallucination, RCASD-IVTR+C lifecycle gates, session management,
|
|
102
|
-
| **
|
|
101
|
+
| **Shipped** | TypeScript CLI + MCP server, SQLite storage (`tasks.db` + `brain.db`), atomic operations, four-layer anti-hallucination, RCASD-IVTR+C lifecycle gates, session management, 3-layer BRAIN retrieval (`brain.search/timeline/fetch`), BRAIN observe writes, NEXUS dispatch domain wiring (12 operations), LAFS envelopes |
|
|
102
|
+
| **In Progress / Planned** | Embedding generation + vector similarity pipeline (`T5158`/`T5159`), PageIndex traversal/query API (`T5161`), reasoning/session integration (`T5153`), `nexus.db` migration from JSON registry, full claude-mem automation retirement hooks (`T5145`) |
|
|
103
103
|
|
|
104
104
|
### MCP Server
|
|
105
105
|
|
|
@@ -142,7 +142,7 @@ Or if installed globally (`npm install -g @cleocode/cleo`):
|
|
|
142
142
|
|
|
143
143
|
Supports: Claude Code, Claude Desktop, Cursor, Gemini CLI, Kimi, Antigravity, Windsurf, Goose, OpenCode, VS Code, Zed, Codex
|
|
144
144
|
|
|
145
|
-
- Canonical MCP contract: [`docs/
|
|
145
|
+
- Canonical MCP contract: [`docs/specs/MCP-SERVER-SPECIFICATION.md`](docs/specs/MCP-SERVER-SPECIFICATION.md)
|
|
146
146
|
- MCP source: [`src/mcp/`](src/mcp/) (gateways, domains, engine)
|
|
147
147
|
- Operation matrix: `src/mcp/gateways/query.ts` and `src/mcp/gateways/mutate.ts`
|
|
148
148
|
|
|
@@ -153,7 +153,7 @@ Your AI agent gets two tools: `cleo_query` (read) and `cleo_mutate` (write). Eac
|
|
|
153
153
|
```bash
|
|
154
154
|
# Read operations (never changes anything)
|
|
155
155
|
cleo_query domain=tasks operation=find params={"query": "auth"}
|
|
156
|
-
cleo_query domain=
|
|
156
|
+
cleo_query domain=admin operation=dash
|
|
157
157
|
cleo_query domain=tasks operation=next
|
|
158
158
|
|
|
159
159
|
# Write operations (creates or modifies data)
|
|
@@ -162,15 +162,15 @@ cleo_mutate domain=tasks operation=complete params={"taskId": "T1234", "notes"
|
|
|
162
162
|
cleo_mutate domain=issues operation=add.bug params={"title": "...", "body": "...", "dryRun": true}
|
|
163
163
|
```
|
|
164
164
|
|
|
165
|
-
10 canonical domains,
|
|
165
|
+
10 canonical domains, 198 operations (110 query + 88 mutate) across tasks, sessions, memory, check, pipeline, orchestration, tools, admin, nexus, and sharing. See the [MCP Usage Guide](docs/guides/mcp-usage-guide.mdx) for beginner-friendly walkthroughs.
|
|
166
166
|
|
|
167
167
|
### Source of Truth Hierarchy
|
|
168
168
|
|
|
169
169
|
1. [`docs/concepts/vision.md`](docs/concepts/vision.md) - immutable product vision
|
|
170
|
-
2. [`docs/
|
|
170
|
+
2. [`docs/specs/PORTABLE-BRAIN-SPEC.md`](docs/specs/PORTABLE-BRAIN-SPEC.md) - canonical normative contract
|
|
171
171
|
3. [`README.md`](README.md) - operational public contract
|
|
172
|
-
4. [`docs/
|
|
173
|
-
5. [`docs/
|
|
172
|
+
4. [`docs/specs/CLEO-STRATEGIC-ROADMAP-SPEC.md`](docs/specs/CLEO-STRATEGIC-ROADMAP-SPEC.md) - phased execution plan
|
|
173
|
+
5. [`docs/specs/CLEO-BRAIN-SPECIFICATION.md`](docs/specs/CLEO-BRAIN-SPECIFICATION.md) - detailed capability model
|
|
174
174
|
|
|
175
175
|
---
|
|
176
176
|
|
|
@@ -204,7 +204,7 @@ cleo list | jq '.tasks[0].id' # Parse with jq
|
|
|
204
204
|
# Human-readable when you need it (developer-friendly)
|
|
205
205
|
cleo list --human # Formatted text output
|
|
206
206
|
|
|
207
|
-
# Exit codes for programmatic branching (
|
|
207
|
+
# Exit codes for programmatic branching (82 unique codes across 13 ranges)
|
|
208
208
|
cleo exists T042 --quiet && echo "Found"
|
|
209
209
|
```
|
|
210
210
|
|
|
@@ -516,7 +516,7 @@ cleo start <TAB> # Shows pending/active task IDs
|
|
|
516
516
|
<details>
|
|
517
517
|
<summary><h2>Command Reference</h2></summary>
|
|
518
518
|
|
|
519
|
-
###
|
|
519
|
+
### 86 Commands Across 5 Categories
|
|
520
520
|
|
|
521
521
|
| Category | Commands | Purpose |
|
|
522
522
|
|----------|----------|---------|
|
|
@@ -772,7 +772,7 @@ cleo list --format text # Same as --human
|
|
|
772
772
|
|
|
773
773
|
### Exit Codes
|
|
774
774
|
|
|
775
|
-
|
|
775
|
+
82 unique exit codes across 13 ranges for programmatic handling:
|
|
776
776
|
|
|
777
777
|
| Range | Purpose | Examples |
|
|
778
778
|
|-------|---------|----------|
|
|
@@ -912,17 +912,17 @@ CLEO_FORMAT=json # Force output format
|
|
|
912
912
|
~/.cleo/ # Global installation
|
|
913
913
|
├── nexus.db # Cross-project network: registry, graph, permissions (gated)
|
|
914
914
|
├── config.json # Global CLEO configuration
|
|
915
|
-
├── skills/ # Modular agent skills (
|
|
915
|
+
├── skills/ # Modular agent skills (15 skills)
|
|
916
916
|
│ ├── manifest.json # Skill registry with versions
|
|
917
917
|
│ ├── ct-epic-architect/ # Epic creation skill
|
|
918
918
|
│ ├── ct-orchestrator/ # Workflow coordination
|
|
919
|
-
│ └── ... #
|
|
919
|
+
│ └── ... # 13 more skills
|
|
920
920
|
├── templates/ # Starter templates
|
|
921
921
|
└── docs/ # Documentation
|
|
922
922
|
|
|
923
923
|
your-project/.cleo/ # Per-project instance
|
|
924
924
|
├── tasks.db # Project work: tasks, sessions, lifecycle, audit (SQLite)
|
|
925
|
-
├── brain.db # Memory & cognition: observations, patterns, learnings (
|
|
925
|
+
├── brain.db # Memory & cognition: observations, patterns, learnings, decisions, links (shipped)
|
|
926
926
|
├── config.json # Runtime settings: policies, validation, session behavior
|
|
927
927
|
├── project-info.json # Project identity: projectHash, schema versions, health
|
|
928
928
|
├── project-context.json # LLM agent metadata: language, framework, conventions
|
|
@@ -1030,7 +1030,7 @@ CLEO uses a **2-tier subagent architecture** for multi-agent coordination:
|
|
|
1030
1030
|
|
|
1031
1031
|
> **Architecture Reference**: See [CLEO-SUBAGENT.md](docs/architecture/CLEO-SUBAGENT.md) for complete documentation.
|
|
1032
1032
|
|
|
1033
|
-
CLEO includes
|
|
1033
|
+
CLEO includes 15 modular skills for AI agent workflows:
|
|
1034
1034
|
|
|
1035
1035
|
### Token Injection System (v0.60.0+)
|
|
1036
1036
|
|
|
@@ -1045,21 +1045,17 @@ The token injection system provides validated placeholder replacement for skill
|
|
|
1045
1045
|
|
|
1046
1046
|
Token validation prevents hallucinated or malformed values from reaching skill templates.
|
|
1047
1047
|
|
|
1048
|
-
### Orchestrator Automation
|
|
1049
|
-
|
|
1050
|
-
The `orchestrator_spawn_for_task()` function consolidates subagent spawning into a single call:
|
|
1048
|
+
### Orchestrator Automation
|
|
1051
1049
|
|
|
1052
|
-
|
|
1053
|
-
# Programmatic spawning (from lib/orchestrator-spawn.sh)
|
|
1054
|
-
source lib/orchestrator-spawn.sh
|
|
1055
|
-
prompt=$(orchestrator_spawn_for_task "T1234") # Default protocol
|
|
1056
|
-
prompt=$(orchestrator_spawn_for_task "T1234" "ct-research-agent") # Specific protocol
|
|
1050
|
+
Subagent spawning is handled via the MCP orchestration domain:
|
|
1057
1051
|
|
|
1058
|
-
|
|
1059
|
-
#
|
|
1052
|
+
```
|
|
1053
|
+
# Spawn a subagent for a task (via MCP)
|
|
1054
|
+
cleo_mutate orchestrate.spawn { taskId: "T1234" }
|
|
1055
|
+
cleo_mutate orchestrate.spawn { taskId: "T1234", skill: "ct-research-agent" }
|
|
1060
1056
|
```
|
|
1061
1057
|
|
|
1062
|
-
|
|
1058
|
+
The spawn pipeline (implemented in `src/core/skills/orchestrator/spawn.ts`) automates: task validation, context loading, token injection, template rendering, and prompt generation.
|
|
1063
1059
|
|
|
1064
1060
|
### Installed Skills (Protocol Identifiers)
|
|
1065
1061
|
|
|
@@ -1067,20 +1063,21 @@ Automates: task validation, context loading, token injection, template rendering
|
|
|
1067
1063
|
|
|
1068
1064
|
| Skill Protocol | Purpose |
|
|
1069
1065
|
|----------------|---------|
|
|
1070
|
-
| `ct-
|
|
1071
|
-
| `ct-
|
|
1066
|
+
| `ct-cleo` | Core CLEO protocol and session management |
|
|
1067
|
+
| `ct-contribution` | Contribution workflow protocol |
|
|
1068
|
+
| `ct-dev-workflow` | Developer workflow automation |
|
|
1072
1069
|
| `ct-docs-lookup` | Documentation search via Context7 |
|
|
1073
|
-
| `ct-docs-write` | Documentation generation |
|
|
1074
1070
|
| `ct-docs-review` | Documentation compliance review |
|
|
1071
|
+
| `ct-docs-write` | Documentation generation |
|
|
1072
|
+
| `ct-documentor` | Documentation orchestration |
|
|
1073
|
+
| `ct-epic-architect` | Create epics with task decomposition |
|
|
1074
|
+
| `ct-grade` | Quality grading and assessment |
|
|
1075
|
+
| `ct-orchestrator` | Multi-agent workflow coordination |
|
|
1075
1076
|
| `ct-research-agent` | Multi-source research protocol |
|
|
1076
|
-
| `ct-
|
|
1077
|
+
| `ct-skill-creator` | Create new skills |
|
|
1077
1078
|
| `ct-spec-writer` | Technical specification writing |
|
|
1078
|
-
| `ct-
|
|
1079
|
+
| `ct-task-executor` | Generic task execution protocol |
|
|
1079
1080
|
| `ct-validator` | Compliance validation |
|
|
1080
|
-
| `ct-skill-creator` | Create new skills |
|
|
1081
|
-
| `ct-skill-lookup` | Search prompts.chat skills |
|
|
1082
|
-
| `ct-library-implementer-bash` | Bash library creation |
|
|
1083
|
-
| `ct-documentor` | Documentation orchestration |
|
|
1084
1081
|
|
|
1085
1082
|
### Skills Installation
|
|
1086
1083
|
|
|
@@ -1176,7 +1173,7 @@ See [docs/PLUGINS.md](docs/PLUGINS.md) for extension development.
|
|
|
1176
1173
|
| Problem | Solution |
|
|
1177
1174
|
|---------|----------|
|
|
1178
1175
|
| `command not found` | Check `~/.local/bin` in PATH, run `source ~/.bashrc` |
|
|
1179
|
-
| `Permission denied` |
|
|
1176
|
+
| `Permission denied` | Check `~/.local/bin` permissions, ensure CLEO binaries are executable |
|
|
1180
1177
|
| `Invalid JSON` | `cleo validate --fix` or `cleo restore` |
|
|
1181
1178
|
| `Duplicate ID` | `cleo validate --fix` or `cleo restore` |
|
|
1182
1179
|
| `Checksum mismatch` | `cleo validate --fix` |
|