cursor_rules_sync

cursor_rules_sync is a cursor rule for Cursor from markmhendrickson/neotoma. It costs 38 tokens per session (788 once invoked), scanned A, original, MIT.

A synchronization rule and automated check for keeping source rule and command files aligned with their local copies.

In plain words
What is it for?
Updating local agent rules and commands when their source files change.
Why use it?
It catches unsynchronized changes during commits and helps prevent agents from using outdated instructions.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions Cursor.

Not installable on its own: it runs a file from its repository that does not travel with it. Clone the repository, or install whatever ships that file. The line is ./foundation/scripts/setup_cursor_copies.sh.

Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

Made for: Cursor.

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 cursor_rules_sync

README.md
[![agentmods](https://agentmods.dev/badge/rules/markmhendrickson/neotoma/cursor_rules_sync.svg)](https://agentmods.dev/rules/markmhendrickson/neotoma/cursor_rules_sync)
Your own site
<a href="https://agentmods.dev/rules/markmhendrickson/neotoma/cursor_rules_sync"><img src="https://agentmods.dev/badge/rules/markmhendrickson/neotoma/cursor_rules_sync.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 788 The whole file, excluding the scripts and references it only reads on demand.
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.1 $0.00038 $0.00788
Opus 5 $0.00019 $0.00394
Sonnet 5 $0.00008 $0.00158
Haiku 4.5 $0.00004 $0.00079

Measured 2d ago against content hash ff1eba639af5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

cursor_rules_sync 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 2d 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.

.cursor/rules/cursor_rules_sync.mdc · 75 lines

How it starts

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

⚠️ DO NOT EDIT THIS FILE DIRECTLY

This is a copy of: foundation/agent_instructions/cursor_rules/cursor_rules_sync.mdc

Source of truth: foundation/agent_instructions/cursor_rules/cursor_rules_sync.mdc

To edit this rule:

1. Edit the source file: foundation/agent_instructions/cursor_rules/cursor_rules_sync.mdc

2. Run '/setup_cursor_copies' to sync changes

This file will be overwritten when running setup_cursor_copies.

Cursor Rules Sync Rule

Ensures .cursor/rules/ and .cursor/commands/ remain synchronized with their source files in docs/ or foundation/agent_instructions/.

Implementation

Automated: Rule and command syncing is enforced by a pre-commit hook that runs when source files change.

Hook: scripts/linters/cursor_rules_sync_pre_commit.sh (configured in .pre-commit-config.yaml as cursor-rules-sync)

How it works:

  1. When files matching docs/**/*.mdc or foundation/agent_instructions/cursor_rules/**/*.mdc or foundation/agent_instructions/cursor_commands/**/*.md are staged, the hook runs automatically
  2. Script executes foundation/scripts/setup_cursor_copies.sh (or repo equivalent)
  3. Updated .cursor/rules/ and .cursor/commands/ files are staged automatically
  4. Commit proceeds with synced files

Manual execution:

# Run the setup script directly
./foundation/scripts/setup_cursor_copies.sh

# Or via command
/setup_cursor_copies
/sync_cursor_files copies

Agent Actions

Agents do NOT need to manually run /setup_cursor_copies after editing rule sources — the pre-commit hook handles this automatically.

When creating or modifying rule/command sources:

  1. Edit source files only — in docs/ or foundation/agent_instructions/, never .cursor/
  2. Commit changes — pre-commit hook will sync .cursor/ automatically
  3. If editing outside of a commit (rare), run the setup script manually

Source File Locations

Foundation rules and commands:

  • Source: foundation/agent_instructions/cursor_rules/*.mdc, foundation/agent_instructions/cursor_commands/*.md
  • Copies: .cursor/rules/, .cursor/commands/ (synced via setup script)

Read the full file on GitHub · 75 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. 2d ago First seen · 75 lines · 38 tokens per session scan A ff1eba639af5

Subscribe to this mod's changes

cursor_rules_sync is a cursor rule published in the GitHub repository markmhendrickson/neotoma (31 stars, last pushed 2d ago), licensed MIT. It adds 38 tokens to every session and 788 once invoked, about $0.0002 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-09-03.