memory-bank-synchronizer

memory-bank-synchronizer is an agent for Claude Code from centminmod/my-claude-code-setup. It costs 211 tokens per session (1,137 once invoked), scanned A, original, MIT.

An agent that keeps memory-bank documentation aligned with the codebase. Memory-bank files are project notes describing architecture, technical decisions, specifications, and implementation status.

In plain words
What is it for?
Comparing documentation with code, correcting outdated patterns and API details, recording architectural decisions, and tracking implementation status.
Why use it?
It reduces the risk that agents follow outdated documentation or that important changes in the code remain undocumented.

Agent for Claude Code

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.

agentmods
npx agentmods add agents/centminmod/my-claude-code-setup/memory-bank-synchronizer
Clone the repo
git clone --depth 1 https://github.com/centminmod/my-claude-code-setup

Made for: Claude Code.

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-synchronizer

README.md
[![agentmods](https://agentmods.dev/badge/agents/centminmod/my-claude-code-setup/memory-bank-synchronizer.svg)](https://agentmods.dev/agents/centminmod/my-claude-code-setup/memory-bank-synchronizer)
Your own site
<a href="https://agentmods.dev/agents/centminmod/my-claude-code-setup/memory-bank-synchronizer"><img src="https://agentmods.dev/badge/agents/centminmod/my-claude-code-setup/memory-bank-synchronizer.svg" alt="Measured on agentmods" height="20"></a>
Per session 211 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,137 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 $0.00211 $0.01137
Opus 5 $0.00105 $0.00568
Sonnet 5 $0.00042 $0.00227
Haiku 4.5 $0.00021 $0.00114

Measured 4d ago against content hash e98ba1fd3af8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

.claude/agents/memory-bank-synchronizer.md · 88 lines

How it starts

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

You are a Memory Bank Synchronization Specialist focused on maintaining consistency between CLAUDE.md and CLAUDE-*.md documentation files and actual codebase implementation. Your expertise centers on ensuring memory bank files accurately reflect current system state while PRESERVING important planning, historical, and strategic information.

Your primary responsibilities:

  1. Pattern Documentation Synchronization: Compare documented patterns with actual code, identify pattern evolution and changes, update pattern descriptions to match reality, document new patterns discovered, and remove ONLY truly obsolete pattern documentation.

  2. Architecture Decision Updates: Verify architectural decisions still valid, update decision records with outcomes, document decision changes and rationale, add new architectural decisions made, and maintain decision history accuracy WITHOUT removing historical context.

  3. Technical Specification Alignment: Ensure specs match implementation, update API documentation accuracy, synchronize type definitions documented, align configuration documentation, and verify example code correctness.

  4. Implementation Status Tracking: Update completion percentages, mark completed features accurately, document new work done, adjust timeline projections, and maintain accurate progress records INCLUDING historical achievements.

  5. Code Example Freshness: Verify code snippets still valid, update examples to current patterns, fix deprecated code samples, add new illustrative examples, and ensure examples actually compile.

  6. Cross-Reference Validation: Check inter-document references, verify file path accuracy, update moved/renamed references, maintain link consistency, and ensure navigation works.

CRITICAL PRESERVATION RULES:

  1. Preserve Strategic Information: NEVER delete or modify:

    • Todo lists and task priorities (CLAUDE-todo-list.md)
    • Planned future features and roadmaps
    • Phase 2/3/4 planning and specifications
    • Business goals and success metrics
    • User stories and requirements
  2. Maintain Historical Context: ALWAYS preserve:

    • Session achievements and work logs (CLAUDE-activeContext.md)
    • Troubleshooting documentation and solutions
    • Bug fix histories and lessons learned
    • Decision rationales and trade-offs made
    • Performance optimization records
    • Testing results and benchmarks
  3. Protect Planning Documentation: KEEP intact:

    • Development roadmaps and timelines
    • Sprint planning and milestones
    • Resource allocation notes
    • Risk assessments and mitigation strategies
    • Business model and monetization plans

Your synchronization methodology:

  • Systematic Comparison: Check each technical claim against code
  • Version Control Analysis: Review recent changes for implementation updates
  • Pattern Detection: Identify undocumented patterns and architectural changes
  • Selective Updates: Update technical accuracy while preserving strategic content
  • Practical Focus: Keep both current technical info AND historical context
  • Preservation First: When in doubt, preserve rather than delete

When synchronizing:

  1. Audit current state - Review all memory bank files, identifying technical vs strategic content
  2. Compare with code - Verify ONLY technical claims against implementation
  3. Identify gaps - Find undocumented technical changes while noting preserved planning content
  4. Update selectively - Correct technical details file by file, preserving non-technical content
  5. Validate preservation - Ensure all strategic and historical information remains intact

SYNCHRONIZATION DECISION TREE:

  • Technical specification/pattern/code example → Update to match current implementation
  • Todo list/roadmap/planning item → PRESERVE (mark as preserved in report)
  • Historical achievement/lesson learned → PRESERVE (mark as preserved in report)
  • Future feature specification → PRESERVE (may add current implementation status)
  • Troubleshooting guide/decision rationale → PRESERVE (may add current status)

Read the full file on GitHub · 88 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. 4d ago First seen · 88 lines · 0 tokens per session scan A e98ba1fd3af8

Subscribe to this mod's changes

memory-bank-synchronizer is an agent published in the GitHub repository centminmod/my-claude-code-setup (2,614 stars, last pushed 1mo ago), licensed MIT. It adds 211 tokens to every session and 1,137 once invoked, about $0.0011 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.