Cursor
Cursor gets session recording, memory at session start, memory for each prompt and the four memory tools. A prompt's memory arrives a little later than in Claude Code and Codex, after the first tool result of the turn.
What install changes
| What | File | How |
|---|---|---|
Memory tools (MCP server weavekeep) | ~/.cursor/mcp.json | Adds mcpServers.weavekeep |
| 5 hooks | ~/.cursor/hooks.json | Added next to any hooks you already have |
| The Weavekeep skill | ~/.agents/skills/weavekeep/SKILL.md | A new file, shared with Codex. Cursor reads your skills from this folder |
Every config file is backed up before it changes, as <file>.bak-<timestamp>.
The MCP server
{
"mcpServers": {
"weavekeep": {
"type": "stdio",
"command": "/usr/local/bin/node",
"args": ["/usr/local/lib/node_modules/@weavekeep/cli/dist/cli/index.js", "serve"]
}
}
}Other servers in the file are left as they are.
The hooks
| Cursor event | Weavekeep command | Timeout | What it does |
|---|---|---|---|
sessionStart | hook session-start --client cursor | 10 s | Adds memory to the session's context |
beforeSubmitPrompt | hook before-submit-prompt --client cursor | 10 s | Stores your prompt. Always lets the prompt through |
postToolUse | hook post-tool-use --client cursor | 10 s | Stores the tool call and its result. After the first tool call of a turn, adds the memory that matches your prompt |
afterAgentResponse | hook after-agent-response --client cursor | 10 s | Stores the agent's final message |
sessionEnd | hook session-end --client cursor | 5 s | Marks the session ended |
The session is filed under the first folder open in the Cursor window. With no folder open, nothing is recorded, and only memory you saved for every project is added at session start.
What works and what does not
| Feature | Works |
|---|---|
| Records sessions | Yes, when a folder is open |
| Memory at session start | Yes |
| Memory for each prompt | Yes, after the first tool result of the turn. A turn with no tool call gets none |
| Memory tools | Yes |
| Transcript backfill | No. Weavekeep only reads Claude Code transcripts |
| Reminder to save a rule on the prompt that states it | No. Cursor's prompt hook cannot add context. The skill and the Cursor rule still tell the agent to save your rules with remember |
Memory for each prompt
Cursor's prompt hook can only let a prompt through or block it; it cannot add context. So Weavekeep stores your prompt there and adds the matching memory one step later, after the first tool result of the turn, through the postToolUse hook. Cursor shows it to the agent as extra context after that result:
Weavekeep recall for the user's latest prompt:
- [fact 01a1600e-…] decision: Cart totals use integer cents, never floats.The same rules apply as in other agents: only this project's saved decisions and facts that closely match, at most two and about 600 characters, and nothing the session already saw; see Memory added to prompts. A turn in which the agent calls no tool, such as a plain question it answers at once, gets no prompt memory.
The agent can always search with the recall tool. The skill tells it when to call it.
The skill
The skill tells the agent when to use memory. When you state a lasting rule, preference or decision, the agent saves it to its own memory as usual and also calls remember, so your other agents learn it. It calls recall before asking you something you may have settled already, and forget when you take something back. It never stores secrets.
Install updates the skill when a newer Weavekeep changes it. If you edit the file, install leaves it as it is and warns you; delete it and run weavekeep install to get the current one.
Cursor also reads the skills in ~/.claude/skills, so with Claude Code connected too, Cursor may list the Weavekeep skill twice. Both copies say the same thing.
An optional project rule
If you also want a Weavekeep rule that is always on in a project, write it there:
weavekeep install --cursor-rule ~/code/shopThis creates ~/code/shop/.cursor/rules/weavekeep.mdc and changes nothing else. Running it again updates an outdated copy and backs up the old one. The rule says the same as the skill: remember when you state a rule, preference or decision, recall at the start of a task and before asking or re-deciding something, forget when you say a memory is wrong, and never store secrets.
Cursor and Claude Code hooks
Cursor can also run the hooks in ~/.claude/settings.json. If you use both agents, Weavekeep's Claude Code hooks notice when Cursor calls them and skip the event, so a Cursor session is recorded once, by the Cursor hooks.
Check that it works
weavekeep doctor✓ Cursor hooks: 5 of 5 hooks present
✓ Cursor hook command: /usr/local/bin/node and /usr/local/lib/node_modules/@weavekeep/cli/dist/cli/index.js exist
✓ Cursor memory tools: registered
✓ Cursor skill: ~/.agents/skills/weavekeep/SKILL.md is currentThen open a project folder in Cursor where you have saved a decision and start a new agent chat. The decision should be in the context from the start, and weavekeep recent should list the session with agent cursor.
weavekeep status shows "skill on" for Cursor when the skill is in place.
Uninstall
weavekeep uninstall removes the MCP entry, the hooks and the skill. The skill stays while Codex still uses it, and a skill you edited is kept. Uninstall does not remove a project rule; delete .cursor/rules/weavekeep.mdc yourself, and any Weavekeep text you pasted into Cursor Settings.