005_memory_events

005_memory_events is a cursor rule for Cursor from forsonny/Enhanced-Cursor-Memory-Bank-System. It costs 0 tokens per session (1,763 once invoked), scanned A, original, MIT.

Rules for recording development events, such as file changes, builds, tests, and commits, through explicit memory commands.

In plain words
What is it for?
Use them when a user reports an event with a command like `/memory event build_success "All tests passing"`.
Why use it?
They give reported events a consistent format and make it possible to suggest which project memories should be updated.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use them when a user reports an event with a command like /memory event build_success "All tests passing".

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/forsonny/enhanced-cursor-memory-bank-system/005_memory_events
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.

Clone the repo
git clone --depth 1 https://github.com/forsonny/Enhanced-Cursor-Memory-Bank-System

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 005_memory_events

README.md
[![agentmods](https://agentmods.dev/badge/rules/forsonny/enhanced-cursor-memory-bank-system/005_memory_events/github.svg)](https://agentmods.dev/rules/forsonny/enhanced-cursor-memory-bank-system/005_memory_events)
Your own site
<a href="https://agentmods.dev/rules/forsonny/enhanced-cursor-memory-bank-system/005_memory_events"><img src="https://agentmods.dev/badge/rules/forsonny/enhanced-cursor-memory-bank-system/005_memory_events/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.

agentmods 80×15 button for 005_memory_events

Your own site · 80×15
<a href="https://agentmods.dev/rules/forsonny/enhanced-cursor-memory-bank-system/005_memory_events"><img src="https://agentmods.dev/badge/rules/forsonny/enhanced-cursor-memory-bank-system/005_memory_events.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,763 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00000 $0.01763
Opus 5.5 $0.00000 $0.00705
Sonnet 5.5 $0.00000 $0.00353
Haiku 4.5 $0.00000 $0.00176

Measured 3mo ago against content hash acdb2907b993, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

005_memory_events 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 3mo 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.

example/cursor/rules/005_memory_events.mdc · 254 lines

How it starts

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

Memory Events System

This rule defines how I should respond to user-reported development events and suggest appropriate memory updates based on these events.

Event Reporting

Since automatic event detection isn't possible within Cursor's environment, I rely on users to report significant events using:

/memory event <event_type> <description>

For example:

/memory event commit "Implemented user authentication flow"

Supported Event Types

I recognize and respond to these event types:

File Events

Event Type Description Example
create New file added /memory event create "Created auth middleware"
modify File modified /memory event modify "Updated login component"
delete File removed /memory event delete "Removed legacy auth"

Build Events

Event Type Description Example
build_success Build completed successfully /memory event build_success "All tests passing"
build_failure Build failed /memory event build_failure "Auth module failing"

Test Events

Event Type Description Example
test_success Tests passed /memory event test_success "Auth tests passing"
test_failure Tests failed /memory event test_failure "Login tests failing"

Git Events

Event Type Description Example
commit Code committed /memory event commit "Implemented authentication"
branch Branch changed /memory event branch "Switched to feature/auth"
merge Branches merged /memory event merge "Merged auth branch to main"

Session Events

Event Type Description Example
session_start Beginning development session /memory event session_start "Starting auth work"
session_end Ending development session /memory event session_end "Completed login feature"

Read the full file on GitHub · 254 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. 3mo ago First seen · 254 lines · 1,763 tokens per session scan A acdb2907b993

Subscribe to this mod's changes

005_memory_events 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 1,763 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.

Related

005_memory_events compared with cursor rules from other repositories

005_memory_events next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
005_memory_eventsforsonny/Enhanced-Cursor-Memory-Bank-SystemCursor rule361y agoMITA0Cursor
compression-safetyyvgude/lean-ctxCursor rule4.0k3d agoApache-2.0A399Cursor
nauro-adoptNauro-AI/nauroCursor rule10todayApache-2.0A89Cursor
honcho_rulesmatthewdcage/llm-swarm-routerCursor rule2719d agoMITA1,412Cursor
nauro-contextNauro-AI/nauroCursor rule10todayApache-2.0A272Cursor
compendiumhocestnonsatis/CompendiumCursor rule028d agoMITA564Cursor
memforge-auto-recallzql0805/memforgeCursor rule25mo agoMITA7,463Cursor