Check out "cursor-mirror", this extended Anthropic Skill I've developed as a part of MOOLLM, which will tell you all about how cursor assembles its context:
cursor-mirror skill: https://github.com/SimHacker/moollm/tree/main/skills/cursor-...
cursor-mirror
See yourself think. Introspection tools for Cursor IDE — 47 read-only commands to inspect conversations, tool calls, context assembly, and agent reasoning from Cursor's internal SQLite databases.
By Don Hopkins, Leela AI — Part of MOOLLM
The Problem
LLM agents are black boxes. You prompt, they respond, you have no idea what happened inside. Context assembly? Opaque. Tool selection? Hidden. Reasoning? Buried in thinking blocks you can't access.
Cursor stores everything in SQLite. This tool opens those databases.
The Science
"You can't think about thinking without thinking about thinking about something." — Seymour Papert, Mindstorms: Children, Computers, and Powerful Ideas (Basic Books, 1980), p. 137
Papert's insight: metacognition requires concrete artifacts. Abstract introspection is empty. You need something to inspect.
This connects to three traditions:
Constructionism (Papert, 1980) — Learning happens through building inspectable artifacts. The Logo turtle wasn't about drawing; it was about making geometry visible so children could debug their mental models. cursor-mirror makes agent behavior visible so you can debug your mental model of how Cursor works.
Society of Mind (Minsky, 1986) — Intelligence emerges from interacting agents. Minsky's "K-lines" are activation patterns that recall mental states. cursor-mirror lets you see these patterns: which tools activated, what context was assembled, how the agent reasoned.
Schema Mechanism (Drescher, 1991) — Made-Up Minds describes how agents learn causal models through Context → Action → Result schemas. cursor-mirror provides the data for schema refinement: what context was assembled, what action was taken, what result occurred.
What You Can Inspect:
Conversation Structure
Context Assembly
Tool Execution
Server Configuration
MCP Servers
Image Archaeology
Python Sister Script CLI Tool: cursor_mirror.py
cursor_mirror.py: https://github.com/SimHacker/moollm/blob/main/skills/cursor-...
Here is the design and exploration and hacking session in which I iteratively designed and developed it, using MOOLLM's Constructionist "PLAY-LEARN-LIFT" methodology:
cursor-chat-reflection.md: https://github.com/SimHacker/moollm/blob/main/examples/adven...
Look at the "Scene 19 — Context Assembly Deep Dive" section and messageRequestContext schema, and "Scene 23 — Orchestration Deep Dive" section!
PR-CURSOR-MIRROR-GENESIS.md: https://github.com/SimHacker/moollm/blob/main/designs/PR-CUR...
play-learn-lift skill: https://github.com/SimHacker/moollm/tree/main/skills/play-le...
MOOLLM Anthropic compatible extended meta skill skill: https://github.com/SimHacker/moollm/tree/main/skills/skill
Specifically you can check out ORCHESTRATION.yml and other "YAML Jazz" metadata in the directory:
ORCHESTRATION.yml: https://github.com/SimHacker/moollm/blob/main/skills/cursor-...
Currently only supports Cursor running on Mac, but I'd be happy to accept PRs for Linux and Windows support. Look at the cursor-chat-relection.md document to see how I had Cursor analyze its own directories, files, and sqlite databases and JSON schemas. Also looking for help developing mirrors and MOOLMM kernel drivers for other orchestrators like Claud Code, etc.
DATA-SCHEMAS.yml: https://github.com/SimHacker/moollm/blob/main/skills/cursor-...