Skip to content

TurboKach/claude-code-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Claude Code setup — parallel multi-agent starter kit

My Claude Code setup: an opinionated CLAUDE.md, plus a working parallel multi-agent system — a skill that orchestrates fan-out work and the role agents it spawns. Clone, run the installer, and you have a plan → execute → review → merge pipeline that fans out across background subagents (the default — in-process, isolated worktrees only where they write in parallel, no extra setup).

The default path uses ordinary background subagents and (optionally) Workflows — no experimental flags, no iTerm2. Named teammates in iTerm2 split panes are an experimental extra that's almost never needed — only to dialogue live with a delegated agent running in parallel; that's the only part that needs the feature flag + iTerm2 setup.

Fan-out uses significantly more tokens than a single session — use it for parallel research, review, and feature work, not routine tasks.

What's inside

Path What it is
CLAUDE.md Universal principles + workflow (think-before-coding, simplicity, surgical changes, the single-master feature workflow, the parallel-multi-agent trigger)
skills/agent-teams/SKILL.md The orchestration playbook — when to fan out, how to pick the mechanism (subagents / Workflows / teammates), the pipeline, models, worktree/merge flow, the plan-approval gate. Loads on demand.
agents/team-planner.md Writes the rough plan (headless); the lead refines it with /autoplan and surfaces it for your approval (Opus)
agents/team-prompt-smith.md Turns the approved plan into one spawn prompt per executor (Sonnet)
agents/team-executor.md Implements one unit as a background subagent (worktree, since units write in parallel) (Sonnet; Opus for hard units)
agents/team-reviewer.md Adversarially verifies each diff before merge — read-only, no worktree (Opus)
agents/team-merger.md Merges approved worktrees into the base branch, removes each worktree + branch after landing, reports done (Sonnet)
settings.example.json The two keys for the optional teammate path: the feature flag + teammateMode
install.sh Copies everything into ~/.claude (with backups); the settings keys it merges only matter if you use the teammate path
docs/agent-teams-setup.md macOS + iTerm2 walkthrough — only needed for the optional named-teammate path

How it works

Only the lead (your main session) spawns. Every step delegates to a subagent except the lead's own interactive /autoplan pass; the parallel execution step fans out into one background subagent per independent unit, each in its own worktree (because they write concurrently and merge later):

PLAN (planner drafts → lead runs /autoplan) → you approve ─┐   ← the only approval gate
PROMPTS (prompt-smith)                                     │   contracts baked into each prompt
EXECUTE (N executor subagents, parallel, in worktrees)  ← no cross-talk needed
REVIEW (reviewer, read-only — no worktree)                 │
MERGE (merger) → removes each worktree+branch, reports completion ───┘

Pick the fan-out mechanism by need: background subagents by default; Workflows for large/deterministic/resumable fan-outs; named teammates almost never (only to dialogue live with a delegated parallel agent — the experimental iTerm2 path). Worktree isolation is added only where agents write in parallel and merge — read-only fan-out (review, research) skips it.

Models follow a simple rule: Opus for judgment (plan, review), Sonnet for production work (prompts, execute, merge), with Opus available per-spawn for architecturally hard units.

Install

Recommended — let Claude Code install it (interactive wizard)

Open Claude Code and paste this:

Set up the Claude Code parallel-multi-agent kit from https://github.com/TurboKach/claude-code-setup — clone it to a temp directory, read INSTALL.md, and run it as an interactive install wizard. Detect what I already have and only install what's missing.

Claude checks your machine and walks you through it step by step: it offers to install only what you're missing (iTerm2, it2, gstack), enables the required settings, and copies the skill + agents with backups. Exactly what it does: INSTALL.md.

Alternative — non-interactive script

git clone https://github.com/TurboKach/claude-code-setup.git
cd claude-code-setup
./install.sh    # copies skill+agents+CLAUDE.md and merges settings; installs nothing else

The default path (background subagents + Workflows) needs no manual steps — once the files are copied, ask for parallel work and it fans out.

Manual steps — only for the optional named-teammate path

Skip these unless you want the experimental iTerm2 split-pane teammates:

  1. Restart iTerm2 (Cmd+Q, reopen) and approve the one-time API permission dialog.
  2. Restart Claude Code — cold start, inside iTerm2.
  3. /config → Default teammate model → Sonnet.

Full walkthrough: docs/agent-teams-setup.md.

Requirements

Default path (background subagents + Workflows):

  • Claude Code v2.1.186 or newer (claude --version) — use the latest. v2.1.186 is the practical floor: from there, background subagents surface permission prompts in your session (earlier versions silently auto-denied them). The underlying features are older — Workflows shipped in v2.1.154 and /goal (the built-in command driving the post-approval tail in CLAUDE.md) in v2.1.139; no install required for either.
  • That's it — no flags, no iTerm2.

Optional named-teammate (iTerm2 split-pane) path adds:

  • macOS + iTerm2 (split panes need tmux or iTerm2)
  • uv or pip (for it2)
  • the two settings.example.json keys (the installer merges them)

Recommended for the full workflow:

  • gstack (optional) — the lead runs /autoplan and the workflow references /ship, /context-save, etc. Install:
    git clone --single-branch --depth 1 https://github.com/garrytan/gstack.git ~/.claude/skills/gstack \
      && cd ~/.claude/skills/gstack && ./setup
    Without gstack the team still works — substitute plan mode for /autoplan and plain git/PR commands for the ship steps.

Notes

  • The installer never overwrites an existing ~/.claude/CLAUDE.md and backs up any skill/agent files it replaces (under ~/.claude/.backup-<timestamp>). It merges only the two settings keys, with a settings.json.bak safety copy.
  • settings.example.json is intentionally minimal — your real settings.json is personal; never commit it (it tends to hold emails, tokens, and private paths).

Credits

Workflow and parallel multi-agent system by @TurboKach. gstack by Garry Tan. Built for Claude Code. MIT licensed.

About

Claude Code agent-teams starter kit: opinionated CLAUDE.md, an agent-teams orchestration skill, role agents, and macOS/iTerm2 setup.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages