update-memory-bank

update-memory-bank is a cursor rule for Cursor from mehmetdemirci/comb-ai. It costs 701 tokens per session, scanned A, original, MIT.

A project rule for automatically updating a memory bank, a set of files that records project context and decisions, when work reaches a completion point.

In plain words
What is it for?
Use it to update project progress, active context, sprint records, archives, and architecture notes after relevant work is finished.
Why use it?
It reduces the need to remember to document completed tasks, fixes, features, and milestones by hand.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc). Also seen: mentions Cursor.

Good fit Use it to update project progress, active context, sprint records, archives, and architecture notes after relevant work is finished.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/mehmetdemirci/comb-ai/update-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/mehmetdemirci/comb-ai

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

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/mehmetdemirci/comb-ai/update-memory-bank"><img src="https://agentmods.dev/badge/rules/mehmetdemirci/comb-ai/update-memory-bank.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 701 This file is loaded in full into every session.
When invoked 701 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 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.00701 $0.00701
Opus 5 $0.00351 $0.00351
Sonnet 5 $0.00140 $0.00140
Haiku 4.5 $0.00070 $0.00070

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

Security

Grade A, and why

update-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 10d 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.

templates/skills/cursor/update-memory-bank.mdc · 98 lines

How it starts

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

Memory Bank Auto-Update — Cursor Rule

Always active. This rule ensures the AI automatically updates the memory bank when task completion is detected. No manual trigger required.

Manual override: User says "update memory bank" for a full-scope review.

Automatic Trigger Conditions

AI MUST detect task completion and automatically execute memory bank update when:

  • Task implementation completed (code changes committed or ready)
  • Sprint task marked complete
  • Bug fix implemented
  • Feature implementation finished
  • Architectural decision made

Completion Signal Detection

AI MUST monitor for these signals to trigger auto-update:

  • User says: "done", "finished", "complete", "task completed"
  • After implementing and testing code changes
  • After fixing bugs
  • After architectural decisions documented
  • At end of sprint milestone
  • When user asks "What's next?" or "Next task?"

Scope Detection

Determine scope automatically based on what changed:

  • Minimal: Single task completed → sprint-tracker + active-context
  • Standard: Feature implemented → + progress
  • Full: Sprint completed or major milestone → + archive + arch/tech files
  • Architecture: Architecture decision made → + arch/patterns-overview + decisions-summary
  • Tech Stack: New dependency or technology → + relevant tech/*.md

Update Priority Order

  1. core/sprint-tracker.md → Task status, actual hours, completion percentage
  2. core/active-context.md → Current work, next steps, resolved blockers
  3. core/progress.md → What works, what's left, overall status (standard/full only)
  4. project-rules.md dynamic zone → Recent patterns catalog, sprint context
  5. tech/*.md → If tech stack changed
  6. arch/*.md → If architecture changed

Report Format

After updating, report concisely:

Memory Bank Updated

Scope: [minimal/standard/full/architecture/tech-stack]
Trigger: [task description]

Updated:
- core/sprint-tracker.md → [what changed]
- core/active-context.md → [what changed]

Next steps:
- [what's next]

Read the full file on GitHub · 98 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. 10d ago First seen · 98 lines · 701 tokens per session scan A 6c757c8b3113

Subscribe to this mod's changes

update-memory-bank is a cursor rule published in the GitHub repository mehmetdemirci/comb-ai (13 stars, last pushed 6mo ago), licensed MIT. It adds 701 tokens to every session, about $0.0035 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.