awesome-cursorrules icon indicating copy to clipboard operation
awesome-cursorrules copied to clipboard

Add piia-engram-cross-tool-memory rules

Open Patdolitse opened this issue 6 months ago β€’ 1 comments

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.

Review Change Stack

Patdolitse avatar May 28 '26 01:05 Patdolitse

πŸ“ Walkthrough

Walkthrough

Adds a new cursor rules file (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

piia-engram Cross-Tool Memory Rules

Layer / File(s) Summary
Rule metadata and core purpose
rules/piia-engram-cross-tool-memory.mdc
Rule 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.mdc
Distinguishes 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.mdc
Specifies 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.mdc
Establishes 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

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • PatrickJS

Poem

🐰 A memory layer springs to life,
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
πŸ§ͺ Generate unit tests (beta)
  • [ ] Create PR with unit tests

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.

❀️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

coderabbitai[bot] avatar May 28 '26 01:05 coderabbitai[bot]