A free guide by Marino Merlini (@marinoautomates)
Founder of Meet Blaine
The Claude Code 100-Agent Swarm Setup Guide & /ultracode Command Pack
Configure Claude Code in your terminal to spawn 100 communicating sub-agents from a single slash command.
Running a business? We set this up for you. Book a 30-min call
Part 1: Open Claude Code in Your Terminal (Not Web Chat)
You must run this workflow in the Claude Code terminal application rather than Claude Web Chat because only the terminal version can directly create, edit, and test files on your computer.
Install or update Claude Code
Open your computer's terminal (Terminal on Mac or PowerShell on Windows). Run the standard npm install command from https://code.claude.com to get the latest version. Claude Code has over 17M weekly downloads on npm and 156k GitHub stars on the anthropics/claude-code repository as of November 2026.
Open your project folder
Use the cd command to move into the folder where you want your software built. Create a new empty directory if you are starting a fresh project from scratch.
Start a live session
Type claude in your terminal and press Enter. Log in with your Anthropic account when prompted so the terminal has permission to run Claude Code Dynamic Workflows.
mkdir my-swarm-app && cd my-swarm-app && claude
Related guide: The Everything Claude Code (ECC) Setup Guide
Part 2: Install the /ultracode Custom Slash Command
Adding a custom markdown command file at .claude/commands/ultracode.md lets you trigger a 100-agent dynamic workflow anytime by typing /ultracode.
Understand native vs. custom triggers
Out of the box, Claude Code Dynamic Workflows trigger when you type /effort ultracode or start a prompt with the ultracode: keyword. Creating a custom slash command file makes /ultracode work as a direct shortcut in every session.
Create the commands directory
Inside your project root folder, create a hidden folder named .claude and a subfolder inside it named commands. You can also place this in your home folder at ~/.claude/commands/ so it works across every project on your computer.
Save the ultracode.md file
Create a new file at .claude/commands/ultracode.md and paste the exact template below. This file instructs Claude Code to split any task into the 4 core pipeline stages (per Claude Code Dynamic Workflows documentation) and coordinate worker sub-agents.
--- description: Launch a multi-agent dynamic workflow across Research, Design, Build, and Test phases --- ultracode: Execute the following request using a coordinated dynamic workflow: $ARGUMENTS Organize all spawned sub-agents into 4 core pipeline stages: 1. Research: Audit requirements, dependencies, data models, and edge cases. Produce technical briefs. 2. Design: Define folder structure, component layouts, API contracts, and database schemas. 3. Build: Write production code across frontend, backend, auth, and database layers in parallel. 4. Test: Run automated checks, lint, and integration tests. Message Build agents directly to resolve any bugs before finishing.
Related guide: The CLAUDE.md Behavior Skills Setup Guide
Part 3: How the 4-Stage Pipeline & 16-Worker Batching Work
Claude Code divides your 100 sub-agents across 4 core pipeline stages and executes them in dynamic batches of 16 concurrent workers by default.
The 4 core pipeline stages
Per the Claude Code Dynamic Workflows documentation, the engine breaks complex software jobs into 4 core pipeline stages: Research, Design, Build, and Test. Research agents pass briefs to Design agents, Design agents hand layouts to Build agents, and Test agents run checks on the compiled code.
Direct agent-to-agent bug fixing
When a Test sub-agent hits an error or failed check, you do not need to copy and paste the error back into the terminal. The Test agent messages the responsible Build agent directly, waits for the code patch, and re-runs the test until it passes.
How 100 agents run without crashing your rate limit
Per the Claude Code Dynamic Workflows documentation, a single workflow run supports up to 1,000 sub-agents, so a 100-agent crew is well within the ceiling. To protect your Anthropic API rate limits and avoid token quota blowouts, the engine runs 16 parallel workers at a time by default, cycling through all 100 sub-agents in dynamic batches as tasks finish.
Related guide: The Claude Code Coordinator Playbook & Command Cheat Sheet
Part 4: Prompt Templates to Spawn 100 Sub-Agents
You can control the exact size of your agent crew by stating the number of sub-agents directly after your /ultracode command.
Set your team size explicitly
If you do not specify a headcount, Claude Code chooses a small default crew based on the prompt length. Adding 'spawn 100 sub-agents' forces the planner to break your build into 100 granular tasks across the 4 stages.
Paste the full-stack build prompt
Copy the prompt below into your Claude Code terminal session and replace the bracketed details with your app idea. The planner will map out all 100 sub-agents before writing the first file.
Let it run in the background
Once the workflow starts, the 100 sub-agents will pass tasks through the 16 parallel worker lanes automatically. On Marino's last full build, the swarm ran autonomously for 90 minutes straight in the background while he stepped away from his desk.
/ultracode Spawn 100 sub-agents and build a complete production web application for [DESCRIBE YOUR APP, e.g., a client portal with Stripe billing, role-based auth, and a live analytics dashboard]. Split the 100 sub-agents across the 4 core pipeline stages: - 20 Research sub-agents: Map every user flow, database table, API endpoint, and security rule. - 20 Design sub-agents: Create the UI component specs, state management plan, and API schemas. - 40 Build sub-agents: Code the frontend, backend routes, authentication, and database migrations. - 20 Test sub-agents: Write and execute unit and integration tests for every feature, messaging Build sub-agents directly to fix any failures until all checks pass.
Part 5: Alternative Native Commands (Zero-File Setup)
If you are working on a temporary machine and have not added the .claude/commands/ultracode.md file yet, you can trigger the exact same engine with two built-in Claude Code commands.
Use the /effort ultracode mode switch
Type /effort ultracode inside any active Claude Code terminal session and press Enter. Your session is now locked into dynamic workflow mode for the next prompt you submit.
Use the ultracode: inline prefix
Start any regular terminal message with the word ultracode: followed by your instructions and desired agent count. Claude Code recognizes the prefix and routes the prompt straight into the multi-agent orchestrator.
ultracode: spawn 100 sub-agents across Research, Design, Build, and Test to audit this entire repository, fix all failing tests, and refactor duplicated components.
Mistakes to avoid
- Typing /ultracode inside Claude Web Chat at claude.ai instead of the Claude Code terminal CLI. The browser chat cannot access your local directory or edit project files.
- Typing /ultracode as a slash command before saving .claude/commands/ultracode.md (or without using the native /effort ultracode command or ultracode: prefix).
- Forcing all 100 sub-agents to run simultaneously instead of letting Claude Code batch them through its default 16 parallel worker lanes, which causes API rate-limit errors.
- Giving a vague one-line app idea without specifying your tech stack or asking Test sub-agents to verify the build before closing the run.
Questions people ask
Why does typing /ultracode say 'command not found' on a fresh install?
Native Claude Code triggers dynamic workflows via '/effort ultracode' or the 'ultracode:' prompt keyword. To use '/ultracode' as a direct slash command, add the custom command markdown file at '.claude/commands/ultracode.md' from Section 2.
Do all 100 sub-agents run at the exact same second?
No, Claude Code runs 16 parallel workers at a time by default, per the Claude Code Dynamic Workflows documentation. It queues all 100 sub-agents and cycles them dynamically through those 16 active lanes across the Research, Design, Build, and Test phases so you do not hit token rate limits.
What is the maximum number of sub-agents Claude Code can spawn?
Claude Code Dynamic Workflows support up to 1,000 sub-agents in a single workflow run, per the official documentation at code.claude.com/docs/en/workflows. A 100-agent swarm is large enough for full multi-folder applications while keeping token usage manageable.
Can I run a 100-agent swarm inside the regular Claude browser chat?
No, you must use Claude Code in your computer's terminal. The terminal application has direct read, write, and execution access to your local project files, whereas Claude Web Chat runs in an isolated browser window.
Watch the video
Watch on Instagram
Want this built for you?
If you run a 7, 8, or 9-figure company and want custom AI employees and automations plugged straight into the software your team already uses, Meet Blaine builds and supports the entire system for you. Book a quick call to see how we can implement it for your operation.
- You walk us through your week. Where the hours go and what keeps falling through.
- We show you what to hand off first. Which jobs an AI employee can take over, and what stays with you.
- You leave with a clear next step. Whether or not we end up working together.
Calendar not loading? Open it in a new page
Book a 30-min call: api.leadconnectorhq.com