memory-bank

memory-bank is a cursor rule for Cursor from alexeyleshchenko/fast-mcp-telegram. It costs 1,623 tokens per session, scanned A, a copy of memory-bank, MIT.

A project-documentation system for coding work when the agent does not retain memory between sessions. It stores the project’s purpose, technical context, working patterns, current state, and progress in a set of files.

In plain words
What is it for?
Use it to record project goals, architecture patterns, technology choices, active work, and completed progress. The memory files are read at the start of each task.
Why use it?
It gives a new session the background needed to continue work without relying on remembered conversation. Keeping this information in the repository also makes the project’s decisions easier to inspect.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to record project goals, architecture patterns, technology choices, active work, and completed progress. The memory files are read at the start of each task.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/alexeyleshchenko/fast-mcp-telegram/memory-bank
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/alexeyleshchenko/fast-mcp-telegram

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 memory-bank

README.md
[![agentmods](https://agentmods.dev/badge/rules/alexeyleshchenko/fast-mcp-telegram/memory-bank/github.svg)](https://agentmods.dev/rules/alexeyleshchenko/fast-mcp-telegram/memory-bank)
Your own site
<a href="https://agentmods.dev/rules/alexeyleshchenko/fast-mcp-telegram/memory-bank"><img src="https://agentmods.dev/badge/rules/alexeyleshchenko/fast-mcp-telegram/memory-bank/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 memory-bank

Your own site · 80×15
<a href="https://agentmods.dev/rules/alexeyleshchenko/fast-mcp-telegram/memory-bank"><img src="https://agentmods.dev/badge/rules/alexeyleshchenko/fast-mcp-telegram/memory-bank.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,623 This file is loaded in full into every session.
When invoked 1,623 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.01623 $0.01623
Opus 5 $0.00812 $0.00812
Sonnet 5 $0.00325 $0.00325
Haiku 4.5 $0.00162 $0.00162

Measured 8d ago against content hash 2851b8905441, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

memory-bank 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 8d 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.

Origin

This is a copy

100% identical to memory-bank — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.cursor/rules/memory-bank.mdc · 182 lines

How it starts

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

You are an expert software engineer with a unique characteristic: your memory resets completely between sessions. This isn't a limitation - it's what drives you to maintain perfect documentation. At the beginning of each dialogue, you rely ENTIRELY on your Memory Bank to understand the project and continue work effectively. You MUST read ALL memory bank files at the start of EVERY task - this is not optional.

Memory Bank Structure

The Memory Bank lives in .cursor/memory-bank/ at the project root. It consists of core files and optional context files, all in Markdown format. Files build upon each other in a clear hierarchy with distinct areas of responsibility:

flowchart TD PB[projectbrief.md] --> PC[productContext.md] PB --> SP[systemPatterns.md] PB --> TC[techContext.md]

PC --> AC[activeContext.md]
SP --> AC
TC --> AC

AC --> P[progress.md]

subgraph ".cursor/memory-bank/"
    PB
    PC
    AC
    SP
    TC
    P
end

Core Files (Required) - Clear Areas of Responsibility

The core files live in .cursor/memory-bank/:

  1. .cursor/memory-bank/projectbrief.md - Foundation & Scope

    • Foundation document that shapes all other files
    • Created at project start if it doesn't exist
    • Defines core requirements and goals
    • Source of truth for project scope
    • AOR: What the project is and what it should accomplish
  2. .cursor/memory-bank/productContext.md - Why & How

    • Why this project exists
    • Problems it solves
    • How it should work
    • User experience goals
    • AOR: Product vision, user needs, and experience design
  3. .cursor/memory-bank/activeContext.md - Current Focus & Decisions

    • Current work focus (1-2 main items)
    • Active decisions and considerations
    • Important patterns and preferences
    • Next immediate steps (3-5 items max)
    • AOR: What we're working on right now and why
  4. .cursor/memory-bank/systemPatterns.md - Architecture & Design

    • System architecture
    • Key technical decisions
    • Design patterns in use
    • Component relationships
    • Critical implementation paths
    • AOR: How the system is structured and why

Read the full file on GitHub · 182 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. 8d ago First seen · 182 lines · 1,623 tokens per session scan A 2851b8905441

Subscribe to this mod's changes

memory-bank is a cursor rule published in the GitHub repository alexeyleshchenko/fast-mcp-telegram (2 stars, last pushed 18d ago), licensed MIT. It adds 1,623 tokens to every session, about $0.0081 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to memory-bank, differing in 0 lines, and is treated as a copy.