create-rule
Create Cursor rules for persistent AI guidance. Use when the user wants to create a rule, add coding standards, set up project conventions, configure…
Use when the user asks m0 recall, where were we, what did we do last time, catch me up, what is next, or to resume context from another tool. Reads the recent M0 operational thread per project, newest first, from local SQLite.
$ npx -y skills add coco-research/coco --skill m0-recall --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/m0-recallContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when the user asks m0 recall, where were we, what did we do last time, catch me up, what is next, or to resume context from another tool. Reads the recent M0 operational thread per project, newest first, from local SQLite.
name: m0-recall description: "Use when the user asks m0 recall, where were we, what did we do last time, catch me up, what is next, or to resume context from another tool. Reads the recent M0 operational thread per project, newest first, from local SQLite."
The read path for M0. Returns the most recent entries for a project, newest first, with the `next_step` and `last_verified` that were recorded when they were still true.
Retrieval is by project, kind and recency — there is no semantic search. That is the whole query model, and it is why this returns in milliseconds.
M0="${M0_BASE_URL:-http://127.0.0.1:8787}"
M0S="$HOME/.claude/skills/m0/scripts"
# The recent thread for a project
curl -s "$M0/api/brain/thread?project=acme-web&limit=10" | python3 -m json.tool
# Just the handoffs
curl -s "$M0/api/brain/thread?project=acme-web&kind=compact_checkpoint&limit=3"
# Without a server (same store)
python3 "$M0S/m0_server.py" read --project acme-web --limit 10If the MCP tools are wired (`/m0 mcp`), call `m0_recall` directly — it returns the same data already formatted for reading.
| Parameter | Default | Notes | |-----------|---------|-------| | `project` | all projects | Omit only when you genuinely want every project. | | `limit` | 20 | Capped at 500. | | `kind` | all kinds | `step_done`, `compact_checkpoint`, `session_end`, `lane_dispatched`, `lane_result`, `ambient_signal`. An unknown value is rejected. |
1. **Resolve the project key** the same way the write path does: `$M0_PROJECT`, else the repository or directory name. 2. **Start broad, then narrow.** `limit=10` with no `kind` filter shows what has been happening. If the thread is long, `kind=compact_checkpoint` gives the handoffs, which is usually the fastest way to orient. 3. **Read the newest entry first.** It carries the freshest `next_step`. Older `next_step` values have usually been superseded — do not act on a stale one. 4. **Summarise for the user in three lines:** where the work stands, what was last verified, and what the recorded next step is. Then say what you intend to do. 5. **Check `source_tool` and `branch`** on the entries you rely on. An entry written by another tool on another branch may not describe the tree you are looking at. 6. **Verify before building on a claim.** `last_verified` records what someone said they checked, at some earlier point. If it matters now, re-run it.
{
"project": "acme-web",
"count": 2,
"pending_sidecars": 0,
"degraded": null,
"entries": [ { "ts": "…", "kind": "step_done", "text": "…", "next_step": "…" } ]
}| Signal | What it means | |--------|---------------| | `count: 0` | Nothing recorded for that project. Check the project key before concluding the thread is empty — a typo reads as "no memory". | | `"pending": true` on an entry | It is still in the sidecar spool, not yet in the store. Real, and readable, but not durable until the next drain. | | `pending_sidecars > 0` | Some writes are spooled. Run `python3 "$M0S/m0_server.py" drain`. | | `degraded` set | The store could not be read — another process holds the lock — so the entries shown may be only the spooled ones. Say so; do not present a partial thread as complete. |
session in one editor can read what another wrote.
re-reading the whole history.
result, and whether it was verified.
compression, and only because someone wrote them.
unless a hook was installed (`/m0 hooks`).
For semantic retrieval over a knowledge graph, the cognee bundle is the right tool — see the comparison in `systems/m0/README.md`.
CoCo Super Intelligence is the orchestration layer that turns Claude Code, Cursor, or Codex into an engineering department: a routed advisory board, 226 skills, 386 commands, persistent state. Local. Open-core — MIT core; Super Intelligence is proprietary, own-use.
Repo: coco-research/coco
Create Cursor rules for persistent AI guidance. Use when the user wants to create a rule, add coding standards, set up project conventions, configure…
Guides users through creating effective Agent Skills for Cursor. Use when the user wants to create, write, or author a new skill, or asks about skill…
Create custom subagents for specialized AI tasks. Use when the user wants to create a new type of subagent, set up task-specific agents, configure code…
Convert 'Applied intelligently' Cursor rules (.cursor/rules/*.mdc) and slash commands (.cursor/commands/*.md) to Agent Skills format (.cursor/skills/). Use…
Modify Cursor/VSCode user settings in settings.json. Use when the user wants to change editor settings, preferences, configuration, themes, font size, tab…
Train and optimize AI agents using Microsoft's Agent Lightning framework with reinforcement learning. Use when setting up agent training, instrumenting agents…