memory-bridge

memory-bridge is an agent for Claude Code from catlog22/Claude-Code-Workflow. It costs 12 tokens per session (973 once invoked), scanned A, original, MIT.

A documentation coordinator that updates CLAUDE.md files across all modules in a project. It processes modules from the deepest folders upward and tracks each update.

In plain words
What is it for?
Use it to coordinate large, multi-module updates to CLAUDE.md files, run the updates in limited parallel batches, and verify the resulting file changes.
Why use it?
It removes the manual work of finding every module and updating its project instructions in the right order. It also checks that the process changed only the intended documentation files.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md; names the TodoWrite tool; mentions Codex.

Good fit Use it to coordinate large, multi-module updates to CLAUDE.md files, run the updates in limited parallel batches, and verify the resulting file changes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/catlog22/claude-code-workflow/memory-bridge
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/catlog22/Claude-Code-Workflow

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/catlog22/claude-code-workflow/memory-bridge/github.svg)](https://agentmods.dev/agents/catlog22/claude-code-workflow/memory-bridge)
Your own site
<a href="https://agentmods.dev/agents/catlog22/claude-code-workflow/memory-bridge"><img src="https://agentmods.dev/badge/agents/catlog22/claude-code-workflow/memory-bridge/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-bridge

Your own site · 80×15
<a href="https://agentmods.dev/agents/catlog22/claude-code-workflow/memory-bridge"><img src="https://agentmods.dev/badge/agents/catlog22/claude-code-workflow/memory-bridge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 973 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.00012 $0.00973
Opus 5.5 $0.00005 $0.00389
Sonnet 5.5 $0.00002 $0.00195
Haiku 4.5 $0.00001 $0.00097

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

Security

Grade A, and why

memory-bridge 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.

.claude/agents/memory-bridge.md · 96 lines

How it starts

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

You are a documentation update coordinator for complex projects. Orchestrate parallel CLAUDE.md updates efficiently and track every module.

Core Mission

Execute depth-parallel updates for all modules using ccw tool exec update_module_claude. Every module path must be processed.

Input Context

You will receive:

- Total modules: [count]
- Tool: [gemini|qwen|codex]
- Module list (depth|path|files|types|has_claude format)

Execution Steps

MANDATORY: Use TodoWrite to track all modules before execution

Step 1: Create Task List

# Parse module list and create todo items
TodoWrite([
  {content: "Process depth 5 modules (N modules)", status: "pending", activeForm: "Processing depth 5 modules"},
  {content: "Process depth 4 modules (N modules)", status: "pending", activeForm: "Processing depth 4 modules"},
  # ... for each depth level
  {content: "Safety check: verify only CLAUDE.md modified", status: "pending", activeForm: "Running safety check"}
])

Step 2: Execute by Depth (Deepest First)

# For each depth level (5 → 0):
# 1. Mark depth task as in_progress
# 2. Extract module paths for current depth
# 3. Launch parallel jobs (max 4)

# Depth 5 example (Layer 3 - use multi-layer):
ccw tool exec update_module_claude '{"strategy":"multi-layer","path":"./~/.ccw/workflows/cli-templates/prompts/analysis","tool":"gemini"}' &
ccw tool exec update_module_claude '{"strategy":"multi-layer","path":"./~/.ccw/workflows/cli-templates/prompts/development","tool":"gemini"}' &

# Depth 1 example (Layer 2 - use single-layer):
ccw tool exec update_module_claude '{"strategy":"single-layer","path":"./src/auth","tool":"gemini"}' &
ccw tool exec update_module_claude '{"strategy":"single-layer","path":"./src/api","tool":"gemini"}' &
# ... up to 4 concurrent jobs

# 4. Wait for all depth jobs to complete
wait

# 5. Mark depth task as completed
# 6. Move to next depth

Step 3: Safety Check

# After all depths complete:
git diff --cached --name-only | grep -v "CLAUDE.md" || echo "✅ Safe"
git status --short

Read the full file on GitHub · 96 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. 1mo ago First seen · 96 lines · 12 tokens per session scan A 641446df7ae3

Subscribe to this mod's changes

memory-bridge is an agent published in the GitHub repository catlog22/Claude-Code-Workflow (2,125 stars, last pushed 4mo ago), licensed MIT. It adds 12 tokens to every session and 973 once invoked, about $0.0000 per session on Opus 5.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.

Related

Other agents, from other repositories

curate-memory

Curate the m3-memory store — clean, dedupe, supersede stale entries, consolidate overlapping notes. Triggered by "curate memory", "tidy memory", "dedupe memory", "consolidate memory", or after long sessions where many writes accumulated.

skynetcmd/m3-memory · 59 tokens

curate-chatlog

Curate the m3-chatlog store — clean, dedupe, decay ephemeral turns, prune abandoned conversations, promote high-signal chunks to long-term memory. Triggered by "curate chatlog", "tidy chatlog", "dedupe chatlog", "consolidate chatlog", or after long agentic-coding sessions where many turn writes accumulated.

skynetcmd/m3-memory · 79 tokens

Knowledge Linker

Scans vault for unlinked notes and suggests wikilink connections between related content.

onebrain-ai/onebrain · 20 tokens

im-local-db_knowledge-extractor

Expert in iterative knowledge extraction from extremely long chat logs. It processes contexts.md in chunks (approx. 500 lines each) and uses a "Previous Result + New Segment = Merged Result" logic to update the output file incrementally while maintaining state in task YAML files.

cafe3310/public-agent-skills · 63 tokens

context-promoter

Reviews unpromoted journal entries and helps the owner promote them into curated context. Use when the owner says "promote journal", "review my journal", "update my context memory", or runs the promotion workflow. Read-and-suggest only: this agent NEVER writes curated files itself.

dkritarth/context-kernel · 61 tokens

memory-writer

Updates project vault files after a work session. Invoke with a structured summary of what happened. Handles STATUS.md, DECISIONS.md, and CONTEXT.md using native file tools. Use this instead of updating vault files inline to keep the main session context clean.

jmsmrgn/claude-stow · 56 tokens