Add piia-engram-cross-tool-memory rules
Adds cursor rules for using piia-engram, an MCP-based local memory layer.
These rules help Cursor make full use of piia-engram's MCP tools (get_user_context / add_lesson / add_decision / wrap_up_session etc.) β without them, Cursor tends to forget to call the MCP server proactively and the cross-tool benefit is lost.
The rules also encode piia-engram's core governance: AI-proposed knowledge lands in staging and only becomes verified after explicit user approval. This is the structural difference from auto-capture memory tools (Mem0, Letta) β and the rules make sure Cursor respects it.
Tested with my own daily setup. piia-engram itself is Apache-2.0 (https://github.com/Patdolitse/piia-engram), v3.30.1 on PyPI, in MCP Registry, listed in punkpeye/awesome-mcp-servers + kyrolabs/awesome-agents.
Summary by CodeRabbit
- New Features
- AI assistant now supports persistent context storage with local-first memory management.
- Enhanced privacy safeguards prevent storage of sensitive information or chat history without explicit user approval.
- Improved cross-tool context sharing enables seamless workflow continuity across applications.
Adds a new cursor rules file ( piia-engram Cross-Tool Memory Rules π― 2 (Simple) | β±οΈ ~10 minutes π° A memory layer springs to life, βοΈ Tip: You can configure your own custom pre-merge checks in the settings.π Walkthrough
Walkthrough
rules/piia-engram-cross-tool-memory.mdc) defining operational guidance for AI use of a local-first MCP memory layer. The rules cover context loading at conversation start, memory classification into lessons and decisions with staging-tier approval, privacy boundaries, session wrap-up triggers, cross-tool consistency expectations, context separation mechanisms, and memory freshness maintenance.Changes
Layer / File(s)
Summary
Rule metadata and core purpose
rules/piia-engram-cross-tool-memory.mdcRule file configured to apply globally and always activate. Defines primary purpose of loading user context once at conversation start and avoiding repeated identity/preference re-asking.
Memory classification and governance
rules/piia-engram-cross-tool-memory.mdcDistinguishes lessons (reusable knowledge) from decisions (context-specific choices). Establishes staging tier governance routing all memory additions into pending state requiring explicit user promotion before verification.
Privacy boundaries and session behavior
rules/piia-engram-cross-tool-memory.mdcSpecifies privacy constraints excluding secrets, tokens, PII, and verbatim chat content from memory storage. Defines when to trigger session wrap-up for long-running tool sessions vs when to skip it for short sessions.
Context separation and memory maintenance
rules/piia-engram-cross-tool-memory.mdcEstablishes cross-tool consistency and resume behavior when switching tools mid-task. Clarifies separation of personal preferences from project state using appropriate storage mechanisms. Specifies
engram doctor usage for detecting stale or contradictory memory. Provides closing rationale emphasizing shared memory necessity to prevent repeated explanations.Estimated code review effort
Suggested reviewers
Poem
Cross-tools now share, without the strife,
Staging gates keep secrets tight,
Context loads at morning light,
No more re-askingβjust delight! β¨π₯ Pre-merge checks | β
4 | β 1
β Failed checks (1 inconclusive)
Check name
Status
Explanation
Resolution
Description check
β Inconclusive
The description explains the purpose and governance model of the rules, provides context about piia-engram, and includes source attribution and testing information. However, it does not formally fill out the required template sections (Summary, Contribution Type checkboxes, Added/Changed Files list, Quality Checklist).
Fill out the template sections including: mark the appropriate Contribution Type checkbox, list the added file with reasoning in Added/Changed Files, and verify all Quality Checklist items are addressed.
β
Passed checks (4 passed)
Check name
Status
Explanation
Title check
β
Passed
The title 'Add piia-engram-cross-tool-memory rules' is clear, concise, and directly summarizes the main change: adding a new Cursor rule file for piia-engram memory integration.
Docstring Coverage
β
Passed
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check
β
Passed
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
β
Passed
Check skipped because no linked issues were found for this pull request.
β¨ Finishing Touches
π§ͺ Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands and usage tips.