graphiti_cursor_rules

graphiti_cursor_rules is a cursor rule for coding agents from gifflet/graphiti-mcp-server. It costs 484 tokens per session, scanned A, original, MIT.

Rules for using Graphiti, a memory system exposed through MCP tools. They require searching stored preferences, procedures, and facts before starting work, then saving new or changed information afterward.

In plain words
What is it for?
Searching project memory, filtering results by type, reviewing matching records, and recording user preferences, procedures, and factual relationships.
Why use it?
They help the agent reuse relevant instructions and known relationships instead of repeating mistakes or ignoring established preferences. They also make newly learned requirements available for future tasks.

Cursor rule

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/gifflet/graphiti-mcp-server/graphiti_cursor_rules
Clone the repo
git clone --depth 1 https://github.com/gifflet/graphiti-mcp-server

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for graphiti_cursor_rules

README.md
[![agentmods](https://agentmods.dev/badge/rules/gifflet/graphiti-mcp-server/graphiti_cursor_rules.svg)](https://agentmods.dev/rules/gifflet/graphiti-mcp-server/graphiti_cursor_rules)
Your own site
<a href="https://agentmods.dev/rules/gifflet/graphiti-mcp-server/graphiti_cursor_rules"><img src="https://agentmods.dev/badge/rules/gifflet/graphiti-mcp-server/graphiti_cursor_rules.svg" alt="Measured on agentmods" height="20"></a>
Per session 484 This file is loaded in full into every session.
When invoked 484 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00484 $0.00484
Opus 5 $0.00242 $0.00242
Sonnet 5 $0.00097 $0.00097
Haiku 4.5 $0.00048 $0.00048

Measured 4d ago against content hash 18c36d5fa786, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

graphiti_cursor_rules scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

graphiti_cursor_rules.mdc · 39 lines

How it starts

The opening of the file, as written. The whole thing — 39 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Instructions for Using Graphiti's MCP Tools for Agent Memory

Before Starting Any Task

  • Always search first: Use the search_nodes tool to look for relevant preferences and procedures before beginning work.
  • Search for facts too: Use the search_facts tool to discover relationships and factual information that may be relevant to your task.
  • Filter by entity type: Specify Preference, Procedure, or Requirement in your node search to get targeted results.
  • Review all matches: Carefully examine any preferences, procedures, or facts that match your current task.

Always Save New or Updated Information

  • Capture requirements and preferences immediately: When a user expresses a requirement or preference, use add_memory to store it right away.
    • Best practice: Split very long requirements into shorter, logical chunks.
  • Be explicit if something is an update to existing knowledge. Only add what's changed or new to the graph.
  • Document procedures clearly: When you discover how a user wants things done, record it as a procedure.
  • Record factual relationships: When you learn about connections between entities, store these as facts.
  • Be specific with categories: Label preferences and procedures with clear categories for better retrieval later.

During Your Work

  • Respect discovered preferences: Align your work with any preferences you've found.
  • Follow procedures exactly: If you find a procedure for your current task, follow it step by step.
  • Apply relevant facts: Use factual information to inform your decisions and recommendations.
  • Stay consistent: Maintain consistency with previously identified preferences, procedures, and facts.

Best Practices

  • Search before suggesting: Always check if there's established knowledge before making recommendations.
  • Combine node and fact searches: For complex tasks, search both nodes and facts to build a complete picture.
  • Use center_node_uuid: When exploring related information, center your search around a specific node.
  • Prioritize specific matches: More specific information takes precedence over general information.
  • Be proactive: If you notice patterns in user behavior, consider storing them as preferences or procedures.

Read the full file on GitHub · 39 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 39 lines · 484 tokens per session scan A 18c36d5fa786

Subscribe to this mod's changes

graphiti_cursor_rules is a cursor rule published in the GitHub repository gifflet/graphiti-mcp-server (144 stars, last pushed 1y ago), licensed MIT. It adds 484 tokens to every session, about $0.0024 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.