ccc-multi-repo

ccc-multi-repo is a command for Claude Code from KevinZai/commander. It costs 48 tokens per session (1,300 once invoked), scanned A, original, MIT.

A workflow for working with several Git repositories in one Claude Code session, such as an API server, web client, and mobile app.

In plain words
What is it for?
Use it for API contract changes, shared-library updates, and refactoring that spans multiple repositories.
Why use it?
It keeps coordinated changes in related repositories visible together instead of requiring separate sessions and manual context switching.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths; mentions CLAUDE.md; names the AskUserQuestion tool.

Good fit Use it for API contract changes, shared-library updates, and refactoring that spans multiple repositories.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/kevinzai/commander/ccc-multi-repo
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/KevinZai/commander

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 ccc-multi-repo

README.md
[![agentmods](https://agentmods.dev/badge/commands/kevinzai/commander/ccc-multi-repo/github.svg)](https://agentmods.dev/commands/kevinzai/commander/ccc-multi-repo)
Your own site
<a href="https://agentmods.dev/commands/kevinzai/commander/ccc-multi-repo"><img src="https://agentmods.dev/badge/commands/kevinzai/commander/ccc-multi-repo/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 ccc-multi-repo

Your own site · 80×15
<a href="https://agentmods.dev/commands/kevinzai/commander/ccc-multi-repo"><img src="https://agentmods.dev/badge/commands/kevinzai/commander/ccc-multi-repo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 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,300 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.00048 $0.01300
Opus 5.5 $0.00019 $0.00520
Sonnet 5.5 $0.00010 $0.00260
Haiku 4.5 $0.00005 $0.00130

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

Security

Grade A, and why

ccc-multi-repo 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.

commands/ccc-multi-repo.md · 111 lines

How it starts

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

/ccc-multi-repo — one change, several repos

CC Commander · /ccc-multi-repo · coordinated edits, branches and checks across every repository in the session.

Usage

/ccc-multi-repo                    # guided setup for a cross-repo change
/ccc-multi-repo add <path>         # add a repository to this session
/ccc-multi-repo status             # branch and working state of every repo
/ccc-multi-repo verify             # run each repo's checks and report

Arguments: $ARGUMENTS. With no subcommand, run the guided setup.

Adding repositories

Start a session with extra repositories:

cd ~/projects/api-server
claude --add-dir ~/projects/web-client --add-dir ~/projects/mobile-app

Inside a running session, the user adds one with the built-in /add-dir <path>. For /ccc-multi-repo add <path>:

  1. Check the path is a git repository: git -C <path> rev-parse --show-toplevel. On failure, report it and stop.
  2. Tell the user to run /add-dir <path> (the assistant cannot type built-in slash commands), then confirm access by reading a file from it.
  3. Run status to show the new set.

Added directories support reading, editing and creating files, running shell commands and tests in that directory, installing dependencies, and git operations (each repo keeps its own git). --add-dir does not merge git histories, create symlinks, share node_modules, or change the other repo's .claude/settings.json.

Refer to files by absolute path (~/projects/web-client/src/types.ts) or name the repo first ("in web-client, read src/types.ts").

Status

For the primary working directory and every added directory:

git -C <repo> rev-parse --show-toplevel
git -C <repo> branch --show-current
git -C <repo> status --short

Report one row per repo: path, primary or added, branch, clean or the count of changed files.

Guided setup

  1. Ask the user for the change and the repos it touches, or read it from $ARGUMENTS.
  2. Run status. If any repo has uncommitted changes, report them and do not overwrite them.
  3. Order the repos by dependency: shared types and schemas first, then services, then clients. Start editing in the most foundational repo.
  4. Before creating branches, ask with AskUserQuestion (Codex: a plain-text question):
    • 🟢 Same branch everywhere — create feat/<name> in each repo with git -C <repo> checkout -b feat/<name>
    • Use existing branches — work on each repo's current branch
    • Cancel — stop without changes
  5. Make the change repo by repo, keeping each repo's edits to its part of the contract.
  6. Run verify.

Read the full file on GitHub · 111 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 Changed · -118 lines · +34 tokens per session 8af51adc808e
  2. 1mo ago First seen · 229 lines · 14 tokens per session scan A 209eaba835f1

Subscribe to this mod's changes

ccc-multi-repo is a command published in the GitHub repository KevinZai/commander (6 stars, last pushed today), licensed MIT. It adds 48 tokens to every session and 1,300 once invoked, about $0.0002 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-09-04.