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.
git clone --depth 1 https://github.com/forsonny/Enhanced-Cursor-Memory-Bank-SystemWrote 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.
[](https://agentmods.dev/rules/forsonny/enhanced-cursor-memory-bank-system/003_mode_definitions)<a href="https://agentmods.dev/rules/forsonny/enhanced-cursor-memory-bank-system/003_mode_definitions"><img src="https://agentmods.dev/badge/rules/forsonny/enhanced-cursor-memory-bank-system/003_mode_definitions/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/forsonny/enhanced-cursor-memory-bank-system/003_mode_definitions"><img src="https://agentmods.dev/badge/rules/forsonny/enhanced-cursor-memory-bank-system/003_mode_definitions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.03235 |
| Opus 5.5 | $0.00000 | $0.01294 |
| Sonnet 5.5 | $0.00000 | $0.00647 |
| Haiku 4.5 | $0.00000 | $0.00324 |
Grade A, and why
003_mode_definitions 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 478 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Operational Mode Definitions
This rule defines distinct operational modes that change how I interact with the codebase and memory system. Each mode has specialized memory behaviors optimized for different phases of development.
Mode Switching Protocol
Mode switching requires two steps:
- UI Selection: First, manually select the mode from Cursor's UI dropdown menu
- Mode Confirmation: Then, signal your intent to the AI:
/mode <mode_name>
Example: Select "THINK" in the UI dropdown, then type /mode think to confirm
I will verify you're in the correct mode before proceeding.
Mode Overview
graph TD
T[THINK] -->|Exploration Complete| P[PLAN]
P -->|Plan Approved| I[IMPLEMENT]
I -->|Implementation Complete| R[REVIEW]
R -->|Issues Found| T
T -->|Small Change| I
R -->|Approved| D[DOCUMENT]
D -->|New Feature| T
style T fill:#f9f,stroke:#333,stroke-width:2px
style P fill:#bbf,stroke:#333,stroke-width:2px
style I fill:#bfb,stroke:#333,stroke-width:2px
style R fill:#fbb,stroke:#333,stroke-width:2px
style D fill:#ffb,stroke:#333,stroke-width:2px
Mode Definitions
THINK Mode
Purpose: Explore problems, research solutions, and understand requirements before implementation.
Memory Behavior:
- Requests access to architecture.md and patterns.md
- Suggests updating working_decisions.md with pros/cons of approaches
- Helps record research findings in session_notes.md
- Does not modify production code
Commands:
/think explore <topic>- Start guided exploration of a topic/think compare <options>- Analyze trade-offs between approaches/think research <query>- Research and document findings on a topic
Memory Files:
- Primary: working_decisions.md, session_notes.md
- Reference: architecture.md, patterns.md, project_brief.md
PLAN Mode
Purpose: Develop detailed implementation plans without making code changes.
Memory Behavior:
- Requests access to current_context.md and patterns.md
- Helps create structured implementation plans
- Suggests updates to current_context.md with task breakdown
- Validates plans against patterns.md and architecture.md
- Helps record planning decisions in decisions.md when finalized
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.
- 1mo ago First seen · 478 lines · 3,235 tokens per session scan A fc4ea7151dc4
003_mode_definitions is a cursor rule published in the GitHub repository forsonny/Enhanced-Cursor-Memory-Bank-System (36 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,235 tokens. 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.
Other cursor rules, from other repositories
compression-safety
Cursor rule "compression-safety" from yvgude/lean-ctx, covering compression safety — prevent lean-ctx marker corruption, the problem, rules for all agents, never write compressed content to files and file restoration commands.
honcho_rules
Honcho persistent memory — capture every conversation, recall past context, and build a growing model of the user. Activates on every conversation.
nauro-adopt
Seeds Nauro's project store from an existing repo. Use after nauro adopt has run locally. On filesystem-capable surfaces, reads docs (README, manifests, ADRs, Memory-Bank) for rationale and inspects code, config, tests, lockfiles, and recent git history for evidence, then surfaces targeted probes that turn evidence…
nauro-context
Writes durable shared context into Nauro's project store so other agents (a later session or a parallel one) can discover and pull it, finds and reads context another agent left, or captures a resumable brief so your own next session in this environment picks up cleanly. Three modes. Author writes a shared brief for…
memforge-auto-recall
Rules that make an AI assistant automatically retrieve and save team memories during conversations.
memforge-topology-trigger
A set of rules for creating and querying a visual map of how services and repositories in a product relate to one another. The map is shown in Memforge WebUI, a browser interface for viewing this information.