Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

40 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Claude Code Multi-Agent

Claude Code Multi-Agent System

11 specialized AI agents + 7 productivity tools β€” all for Claude Code

License: MIT Python 3.8+ Rust Platform Claude Code Agents Tools Bilingual

ν•œκ΅­μ–΄ README Β· Setup Guide Β· Cheatsheet Β· Harness Guide Β· Integration Β· Contributing


What is this?

A drop-in enhancement for Claude Code that gives you:

  1. 11 specialized sub-agents β€” each laser-focused on one job (design, code, review, test, security, harness design, pipeline orchestration…)
  2. snippet β€” personal prompt manager; your best prompts one command away
  3. claude-handoff β€” save full session context and resume it in the next conversation
  4. claude-cost β€” estimate and track Claude API spend before you run a prompt
  5. claude-review-diff β€” generate a structured code review prompt from your git diff
  6. claude-remind β€” surface incomplete TODO items at session start
  7. claude-harness β€” validate and generate AI harness definitions for specialist agents
  8. claude-pipeline β€” track multi-stage pipeline execution with quality gates and run reports

All tools ship as Python CLIs and as Claude Code slash commands. The core tools also ship as a single compiled Rust binary (claude-tools).

Bilingual: All agents respond in the user's language β€” English and Korean (ν•œκ΅­μ–΄) both fully supported.

You                     Orchestrator
 β”‚                           β”‚
 └──► "Add OAuth login" ──► β”œβ”€β”€β–Ί planner         (architecture)
                             β”œβ”€β”€β–Ί database-expert  (schema)
                             β”œβ”€β”€β–Ί implementer      (code)
                             β”œβ”€β”€β–Ί reviewer         (code review)
                             └──► tester           (tests)

Why Harness Engineering? β€” Cost vs. Effectiveness

Benchmark scenario: fix a bug in a single TypeScript file. Dev rate: $60/hr Β· Pricing: Sonnet 4.6 $3/$15 Β· Opus 4.7 $5/$25 per 1M tokens.

At a glance

Metric Vanilla Claude CLI This Harness Change
PR diff size ~180 lines ~25 lines βˆ’86%
PR review time ~18 min ~4 min βˆ’78%
First-pass approval rate ~45% ~85% +89%
Rework rate ~40% ~10% βˆ’75%
Bug detection (reviewer stage) βœ— none βœ“ 42–48% caught +∞
API cost per task ~$0.039 ~$0.049 +26%
Total engineering cost (API + dev time) ~$0.32 ~$0.10 3.1Γ— cheaper

API cost goes up slightly β€” but review time and rework drop so much that total cost (API + human time) is 3Γ— lower per task.

Total cost breakdown

Vanilla Claude CLI  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  $0.32
                    β”œβ”€ API         β–ˆβ–ˆ  $0.04
                    β”œβ”€ Review time β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  $0.18
                    └─ Rework      β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  $0.10

This Harness        β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  $0.10
                    β”œβ”€ API         β–ˆβ–ˆβ–ˆ  $0.05
                    β”œβ”€ Review time β–ˆβ–ˆβ–ˆβ–ˆ  $0.04
                    └─ Rework      β–ˆ  $0.01

PR diff size

Vanilla  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  180 lines
Harness  β–ˆβ–ˆβ–ˆβ–ˆ  25 lines  (surgical edit protocol)

Review time

Vanilla  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  18 min
Harness  β–ˆβ–ˆβ–ˆβ–ˆ  4 min

Data sources: Google DORA Report 2025 Β· Anthropic Engineering Blog Β· Stripe PR velocity data Β· DevToolsAcademy AI code review benchmark 2025


Quick Start

1. Install Claude Code

npm install -g @anthropic-ai/claude-code
claude   # authenticate on first run

2. Install (choose one)

Option A β€” One-line installer (recommended, macOS / Linux)

curl -fsSL https://raw.githubusercontent.com/BcKmini/claude-code-use/main/install.sh | bash

Option B β€” Specific version

curl -fsSL https://raw.githubusercontent.com/BcKmini/claude-code-use/main/install.sh | bash -s -- --version v1.0.0

Option C β€” Clone and build from source

# Windows
git clone https://github.com/BcKmini/claude-code-use.git
cd claude-code-use
powershell -ExecutionPolicy Bypass -File setup-agents.ps1
# macOS / Linux
git clone https://github.com/BcKmini/claude-code-use.git
cd claude-code-use
make install            # agents + slash commands + Python tools
make install-rust       # optional: Rust binary (requires cargo)

4. Verify

claude
/agents          # β†’ 9 agents listed
/snippet list    # β†’ built-in snippets

Agent Roster

# Agent Model Job
00 orchestrator Opus Breaks down requests and delegates to sub-agents
01 planner Opus Architecture & design decisions β€” read-only
02 implementer Sonnet Writes and edits code
03 reviewer Sonnet Bug, security, quality, performance review β€” read-only
04 tester Sonnet Unit, integration, E2E test authoring
05 security-auditor Opus OWASP Top 10 audit β€” read-only
06 performance-optimizer Sonnet Bottleneck analysis and optimization
07 database-expert Sonnet Schema design, queries, migrations
08 documenter Haiku README, API docs, inline comments
09 harness-designer Opus Designs tight/loose/adaptive AI harnesses for automation
10 pipeline-orchestrator Opus Manages multi-stage pipelines with context isolation

All agents are bilingual β€” they detect the user's language and respond in English or Korean (ν•œκ΅­μ–΄).

Each agent carries only the context relevant to its role. Parallel execution (planner + security-auditor simultaneously) cuts wall-clock time.

See AGENT-CHEATSHEET.md for 24+ ready-to-use prompts.


Tools

Five productivity tools that fill the gaps Claude Code doesn't cover out of the box.

Slash commands overview

Command What it does
/snippet Run, save, list personal prompt templates
/handoff Save/load session context across conversations
/cost Estimate and track API spend
/review-diff Code review prompt from current git diff
/remind Surface pending TODO items at session start
/harness Design and validate AI harness definitions
/pipeline Run and track multi-stage AI pipelines

Tool 1 β€” snippet β€” Personal Prompt Manager

Save your best Claude prompts by name and recall them in one command.

snippet list                                   # all snippets
snippet run full-pipeline | claude             # pipe to Claude
snippet save myfix "Fix {{BUG}} in {{FILE}}"   # template variables
snippet search security
snippet export my-backup.json
/snippet list
/snippet run full-pipeline
/snippet search security

20 built-in snippets including full-pipeline, code-review, security-audit, write-tests, refactor, db-schema, and more. See snippets/defaults.json.


Tool 2 β€” claude-handoff β€” Session Continuity

Save the full context of a session and load it back in the next one.

claude-handoff save --note "OAuth done, next: email verification"
claude-handoff load | claude    # resume immediately
claude-handoff list
claude-handoff clean --days 30
/handoff save
/handoff load
/handoff list

What a handoff captures: git branch, last 5 commits, working-tree status, diff stat, TODO.md contents, your note, and a ready-to-paste Resume Prompt.


Tool 3 β€” claude-cost β€” Cost Estimator & Tracker

Know what a prompt will cost before you run it. Track actual spend from session logs.

claude-cost estimate --snippet full-pipeline --agents 9
claude-cost month
claude-cost set-budget 20.00
/cost estimate full-pipeline
/cost month
/cost agents
Model Input (per 1M) Output (per 1M)
Opus $15.00 $75.00
Sonnet $3.00 $15.00
Haiku $0.25 $1.25

Tool 4 β€” claude-review-diff β€” Code Review from Git Diff

Generate a structured code review prompt from your current git changes and pipe it straight into Claude.

claude-review-diff                       # review unstaged changes
claude-review-diff --staged              # review staged changes
claude-review-diff --base main           # compare branch to main
claude-review-diff --focus security      # security-only review
claude-review-diff | claude              # pipe directly to Claude
/review-diff
/review-diff --staged
/review-diff --base main --focus security

Focus options: security Β· performance Β· correctness Β· style Β· tests Β· all

Output groups findings by severity: Critical β†’ Major β†’ Minor β†’ Nit


Tool 5 β€” claude-remind β€” Session Start Reminder

Scan TODO.md / TASKS.md / CLAUDE.md for incomplete checkboxes and print a session-start prompt.

claude-remind                # show all pending tasks + resume prompt
claude-remind --quiet        # count only
claude-remind | claude       # pipe to Claude to resume
/remind
/remind --quiet

Typical end-of-session / start-of-session workflow:

# End of session
claude-handoff save --note "Auth done, next: email verification"

# Start of next session
claude-remind | claude         # see pending tasks
claude-handoff load | claude   # full context restore

Tool 6 β€” claude-harness β€” Harness Validator & Template Generator

Validate agent harness definitions and generate harness templates from the command line.

claude-harness check-all                         # validate all agents in agents/
claude-harness validate agents/09-harness-designer.md   # validate one agent
claude-harness template tight my-specialist      # print a tight harness template
claude-harness template adaptive my-orchestrator # print an adaptive harness template
/harness design automate slow query detection and patching
/harness validate agents/03-reviewer.md
/harness types

Checks performed on each agent:

  • Role is clearly scoped
  • Output format is constrained
  • Forbidden actions are listed
  • Tools list is minimal
  • Bilingual language support present

Tool 7 β€” claude-pipeline β€” Pipeline Tracker & Reporter

Track multi-stage AI pipeline execution, log stage results, and generate Markdown run reports.

claude-pipeline init slow-query-fix              # create and activate pipeline
claude-pipeline stage "detection" start
claude-pipeline stage "detection" pass --note "found 3 slow queries"
claude-pipeline stage "patch-gen" start
claude-pipeline stage "patch-gen" warn --note "1 query had no safe fix"
claude-pipeline status                           # show live status
claude-pipeline report                           # markdown run report
claude-pipeline list                             # all saved pipelines
/pipeline run analyze slow queries and generate patches with review loop
/pipeline status
/pipeline stages

Rust binary β€” claude-tools

All tools compiled into one zero-dependency binary β€” no Python required.

cd rust && cargo build --release
# or: make install-rust

claude-tools snippet list
claude-tools handoff save --note "done"
claude-tools cost month
claude-tools watch              # live cost monitor (real-time)
claude-tools watch --interval 5
claude-tools env                # environment health check

claude-tools env output:

Claude Code Environment

  βœ“ ANTHROPIC_API_KEY   sk-ant-…abcd
  βœ“ ~/.claude/           exists
  βœ“ ~/.claude/agents/    9 agents installed
  βœ“ ~/.claude/commands/  5 commands: snippet, handoff, cost, review-diff, remind
  βœ“ handoffs             3 saved, latest: 20250608-143022.md
  βœ“ sessions             4 projects, 12 session files

Makefile

make help           # list all targets
make install        # agents + slash commands + Python tools
make install-rust   # build and install Rust binary
make build          # cargo build --release
make test           # all tests
make lint           # clippy + ruff
make fmt            # rustfmt + ruff format
make status         # git log + tool install check
make env            # Claude environment health check
make clean          # remove build artifacts

Repository Layout

Claudecode-Agent/
β”œβ”€β”€ Makefile                          ← build / install / test / clean
β”œβ”€β”€ setup-agents.ps1                  ← Windows quick installer
β”œβ”€β”€ setup-agents.sh                   ← macOS / Linux quick installer
β”‚
β”œβ”€β”€ agents/                           ← agent definitions β†’ ~/.claude/agents/
β”‚   β”œβ”€β”€ 00-orchestrator.md
β”‚   β”œβ”€β”€ 01-planner.md
β”‚   β”œβ”€β”€ 02-implementer.md
β”‚   β”œβ”€β”€ 03-reviewer.md
β”‚   β”œβ”€β”€ 04-tester.md
β”‚   β”œβ”€β”€ 05-security-auditor.md
β”‚   β”œβ”€β”€ 06-performance-optimizer.md
β”‚   β”œβ”€β”€ 07-database-expert.md
β”‚   β”œβ”€β”€ 08-documenter.md
β”‚   β”œβ”€β”€ 09-harness-designer.md        ← NEW harness architect
β”‚   └── 10-pipeline-orchestrator.md  ← NEW pipeline manager
β”‚
β”œβ”€β”€ .claude/commands/                 ← slash commands β†’ ~/.claude/commands/
β”‚   β”œβ”€β”€ snippet.md
β”‚   β”œβ”€β”€ handoff.md
β”‚   β”œβ”€β”€ cost.md
β”‚   β”œβ”€β”€ review-diff.md
β”‚   β”œβ”€β”€ remind.md
β”‚   β”œβ”€β”€ harness.md                    ← NEW /harness
β”‚   └── pipeline.md                   ← NEW /pipeline
β”‚
β”œβ”€β”€ snippets/
β”‚   └── defaults.json                 ← 20 built-in prompt templates
β”‚
β”œβ”€β”€ tools/
β”‚   β”œβ”€β”€ snippet.py                    ← prompt manager CLI
β”‚   β”œβ”€β”€ claude-handoff.py             ← session continuity CLI
β”‚   β”œβ”€β”€ claude-cost.py                ← cost estimator CLI
β”‚   β”œβ”€β”€ claude-review-diff.py
β”‚   β”œβ”€β”€ claude-remind.py
β”‚   β”œβ”€β”€ claude-harness.py             ← NEW harness validator + template gen
β”‚   β”œβ”€β”€ claude-pipeline.py            ← NEW pipeline tracker + reporter
β”‚   β”œβ”€β”€ install-tools.ps1             ← Windows tool installer
β”‚   └── install-tools.sh              ← macOS/Linux tool installer
β”‚
β”œβ”€β”€ rust/claude-tools/src/
β”‚   β”œβ”€β”€ main.rs
β”‚   β”œβ”€β”€ snippet.rs
β”‚   β”œβ”€β”€ handoff.rs
β”‚   β”œβ”€β”€ cost.rs
β”‚   β”œβ”€β”€ watch.rs                      ← live cost monitor
β”‚   β”œβ”€β”€ env.rs                        ← NEW environment health check
β”‚   └── colors.rs
β”‚
└── docs/
    β”œβ”€β”€ SETUP.md / SETUP.ko.md
    β”œβ”€β”€ AGENT-CHEATSHEET.md / .ko.md
    β”œβ”€β”€ HARNESS-GUIDE.md / .ko.md      ← NEW harness design guide
    β”œβ”€β”€ INTEGRATION.md / .ko.md
    β”œβ”€β”€ CONTRIBUTING.md / .ko.md
    └── CLAUDE.md / .ko.md

Context Cost Tips

Situation Command
After finishing a step /compact
Switching tasks completely /clear
Check current spend /cost
Watch live cost claude-tools watch
Check environment claude-tools env
Resume with pending tasks claude-remind | claude
Full session restore claude-handoff load | claude

Troubleshooting

Agents not showing in /agents

ls ~/.claude/agents/*.md   # files must be present
# Restart Claude Code after installing

Agent Teams not working

# Windows β€” should print 1
[System.Environment]::GetEnvironmentVariable("CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS","User")
# macOS / Linux β€” should print 1
echo $CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS

Tool not found after make install-tools

echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc

make not available on Windows

winget install GnuWin32.Make

Contributing

  • New tool idea? β†’ Feature Request
  • Bug? β†’ Bug Report
  • New snippet? β†’ add to snippets/defaults.json and send a PR

See CONTRIBUTING.md for the full guide.


License

MIT

Releases

Packages

Contributors

Languages