Repository navigation
feat: deliver memory to Cursor as a reflex-memory skill (#76) - #152
Merged
Merged
Conversation
Cursor keeps user rules in its app settings, not a file, so the memory target is a skill: ~/.cursor/skills/reflex-memory/SKILL.md, front matter plus the same marked block the other agents get. The file is owned wholly by Reflex: a file without Reflex's markers is never overwritten, memory off deletes it (and its folder, when no other skill needs it), and other skills in the folder are untouched. Refreshed after every scan like the other targets.
This was referenced Nov 20, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed and why
memoryTargets()wrote memory only to Claude Code and Codex; Cursor — often where most sessions happen — got nothing, because Cursor keeps user rules in its app settings, not a file. The delivery for Cursor is a skill:~/.cursor/skills/reflex-memory/SKILL.md, owned by Reflex the same way the blocks are.The file: front matter that makes Cursor load it (
name: reflex-memory, a description of what it holds) plus the same marked block the other agents get — so the markers, the "edits inside this block are replaced" contract, and the rendering stay identical across all three targets.memory onwrites it,add/forgetupdate it, it refreshes after every scan (the samesyncMemorycall), andmemory off/resetdelete it.Ownership rules (the issue's "owned the same way"):
reflex-memory/SKILL.mdthat does not carry Reflex's markers is never overwritten — reported as "exists and is not Reflex's";~/.cursor/skillsare never touched;offremoves the file and its folder only when the folder is empty;MemoryTargetgains akind("block"|"skill") so the delivery difference is explicit rather than an id string-compare, andsyncMemorypasses the active entries through so the skill is rendered from the rules themselves (no render-then-re-parse round trip, which could corrupt a rule that legitimately ends in "(N sessions)").memory on's wording now says what Cursor gets, and its "nothing found" message includes~/.cursor.Docs
docs/security.md(the Agent memory row: the Cursor skill, whole-file ownership, the not-ours guard),docs/commands.md(thememoryline), README (feature list, command table, FAQ entry).Testing
pnpm lint,pnpm typecheck,pnpm build,pnpm test: 749 passed, 18 skipped.memory.test.tsgains: the skill written with front matter and the block while a sibling skill stays byte-identical;add/forgetupdate it; a rescan refreshes it;offdeletes the file and the emptied folder while the sibling survives; and a foreignreflex-memoryskill is skipped, not overwritten.