claudemem-orchestration

claudemem-orchestration is a skill for Claude Code from MadAppGang/claude-code. It costs 45 tokens per session (2,580 once invoked), scanned C, original, MIT.

A workflow for coordinating several agents while investigating the same codebase with claudemem, a tool that builds a searchable structural view of code. It creates one shared analysis result for the agents to use.

In plain words
What is it for?
Use it for parallel code investigations, consensus-based analysis, role-based command planning, and sharing one codebase overview among agents.
Why use it?
It avoids repeating the same expensive code analysis and helps different agents compare findings consistently.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool; positional $N argument.

Part of the code-analysis plugin — 12 skills, 2 commands, 1 agent shipped together

Good fit Use it for parallel code investigations, consensus-based analysis, role-based command planning, and sharing one codebase overview among agents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/madappgang/claude-code/claudemem-orchestration
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.

Any agent
npx skills add MadAppGang/claude-code --skill claudemem-orchestration
Clone the repo
git clone --depth 1 https://github.com/MadAppGang/claude-code

Made for: Claude Code.

Or install code-analysis, the plugin that ships this one along with the rest of its 12 skills, 2 commands, 1 agent.

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 claudemem-orchestration

README.md
[![agentmods](https://agentmods.dev/badge/skills/madappgang/claude-code/claudemem-orchestration/github.svg)](https://agentmods.dev/skills/madappgang/claude-code/claudemem-orchestration)
Your own site
<a href="https://agentmods.dev/skills/madappgang/claude-code/claudemem-orchestration"><img src="https://agentmods.dev/badge/skills/madappgang/claude-code/claudemem-orchestration/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 claudemem-orchestration

Your own site · 80×15
<a href="https://agentmods.dev/skills/madappgang/claude-code/claudemem-orchestration"><img src="https://agentmods.dev/badge/skills/madappgang/claude-code/claudemem-orchestration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,580 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00045 $0.02580
Opus 5.5 $0.00018 $0.01032
Sonnet 5.5 $0.00009 $0.00516
Haiku 4.5 $0.00005 $0.00258

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

Security

Grade C, and why

claudemem-orchestration scanned grade C with 1 finding 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf "$SESSION_DIR"
plugins/code-analysis/skills/claudemem-orchestration/SKILL.md · 331 lines

How it starts

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

Claudemem Multi-Agent Orchestration

Version: 1.1.0 Purpose: Coordinate multiple agents using shared claudemem output

Overview

When multiple agents need to investigate the same codebase:

  1. Run claudemem ONCE to get structural overview
  2. Write output to shared file in session directory
  3. Launch agents in parallel - all read the same file
  4. Consolidate results with consensus analysis

This pattern avoids redundant claudemem calls and enables consensus-based prioritization.

For parallel execution patterns, see: orchestration:multi-model-validation skill

Claudemem-Specific Patterns

This skill focuses on claudemem-specific orchestration. For general parallel execution:

  • 4-Message Pattern - See orchestration:multi-model-validation Pattern 1
  • Session Setup - See orchestration:multi-model-validation Pattern 0
  • Statistics Collection - See orchestration:multi-model-validation Pattern 7

Pattern 1: Shared Claudemem Output

Purpose: Run expensive claudemem commands ONCE, share results across agents.

# Create unique session directory (per orchestration:multi-model-validation Pattern 0)
SESSION_ID="analysis-$(date +%Y%m%d-%H%M%S)-$(head -c 4 /dev/urandom | xxd -p)"
SESSION_DIR="/tmp/${SESSION_ID}"
mkdir -p "$SESSION_DIR"

# Run claudemem ONCE, write to shared files
claudemem --agent map "feature area" > "$SESSION_DIR/structure-map.md"
claudemem --agent test-gaps > "$SESSION_DIR/test-gaps.md" 2>&1 || echo "No gaps found" > "$SESSION_DIR/test-gaps.md"
claudemem --agent dead-code > "$SESSION_DIR/dead-code.md" 2>&1 || echo "No dead code" > "$SESSION_DIR/dead-code.md"

# Export session info
echo "$SESSION_ID" > "$SESSION_DIR/session-id.txt"

Why shared output matters:

  • Claudemem indexing is expensive (full AST parse)
  • Same index serves all queries in session
  • Parallel agents reading same file = no redundant computation

Pattern 2: Role-Based Agent Distribution

After running claudemem, distribute to role-specific agents:

Read the full file on GitHub · 331 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 · 331 lines · 45 tokens per session scan C ff992cb503a8

Subscribe to this mod's changes

claudemem-orchestration is a skill published in the GitHub repository MadAppGang/claude-code (291 stars, last pushed 8mo ago), licensed MIT. It adds 45 tokens to every session and 2,580 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

claudemem-orchestration compared with skills from other repositories

claudemem-orchestration next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
claudemem-orchestrationMadAppGang/claude-codeSkill2918mo agoMITC45Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82kyesterdayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill332k6d agoMITA21Claude Code