A note on the narrator. This piece is told in the voice of the CTO of a ten-year-old product company, someone who started as a developer fifteen years ago and climbed to the top chair. He is a composite character, not a real person, and his company is invented. The features, commands, limits and figures are researched and dated to 21 November 2026, from Anthropic’s Claude Code documentation and the reports listed at the end. Many of these features are marked experimental or research preview, so names, keys and limits will move. Check the docs before you copy a setting into production. Updated 24 November 2026: added Claude Ship, launched by Anthropic on 23 November.
Prologue: the standup that changed
Fifteen years ago my first job was fixing date-format bugs in a payroll module. My first tech lead had a rule: one developer, one branch, one problem at a time. Finish it, get it reviewed, then pick up the next one. For a decade that rule was the shape of software work. A team of ten could carry ten problems at once, and never more.
Last month, at our Monday standup, one of our senior engineers said, without any drama, “I had six things running overnight. Four have pull requests up, one is waiting on a question from me, and one went down a wrong path, so I killed it.” Nobody blinked. That sentence would have sounded like science fiction when I started. Today it is a status update.
That is what people mean when they say “Fleet Mode.” Not one AI assistant beside a developer, but a fleet of agents working in parallel, each in its own sandbox, with a human acting less like a typist and more like an air-traffic controller.
I have spent this year rolling it out across our 180-person engineering org. Some of it went better than I hoped. Some of it scared me. This is the long, honest version of what I learned, written for other engineering leaders, and for the developers who will have to live with whatever we decide.
Part 1. What “Fleet Mode” actually is (and isn’t)
First, the naming
Let me clear something up, because I see it confused in every second LinkedIn post. There is no single switch in Claude labelled “Fleet Mode.” It is a nickname. People use it for a family of features in Claude Code that let you run many agents at once:
- Agent view, opened with
claude agents: one terminal screen listing every background session, its state, and which ones need you. Inside the codebase and in GitHub issues this screen is also called FleetView, and that is where the “fleet” word came from. - Background sessions, started with
claude --bgor by sending a running session away with/bg. - Subagents: helper agents a session spawns for side tasks.
- Agent teams: a lead session coordinating teammates through a shared task list and a mailbox.
- Dynamic workflows: a script that runs dozens or hundreds of subagents and cross-checks their results.
- Projects in Claude Code on the web and desktop: one ongoing conversation that starts parallel cloud sessions, called threads, for you.
- Claude Ship (new, 23 November 2026): agents that pick up where the fleet stops, reviewing, fixing and, where a team’s policy allows, approving the pull requests the fleet opens. Developers can also run it themselves with
/ship.
Anthropic’s own documentation lists five ways for Claude Code to take on several tasks at once (subagents, agent view, agent teams, dynamic workflows and projects), and adds worktrees, cross-session messaging and the /batch skill as supporting tools. When my team says “fleet mode,” they mean using these together. In this article I will use the phrase the same way.
The one-line difference between them
The cleanest way I have found to explain the family to a new hire is to ask one question: who holds the plan?
| Approach | Who decides what runs next | Scale | Best for |
|---|---|---|---|
| Subagents | The main Claude session, turn by turn | A few per turn (20 concurrent by default) | Side tasks that would flood your context |
| Agent view / background sessions | You | As many independent sessions as you can supervise | Unrelated tasks you hand off and check later |
| Agent teams | A lead Claude session | A handful of long-running peers (3–5 recommended) | Work where workers must talk to each other |
| Dynamic workflows | A JavaScript script Claude writes | Dozens to hundreds of agents per run (1,000 cap) | Audits, migrations, cross-checked research |
| Projects | A coordinating cloud conversation | Many cloud threads over days or weeks | Long streams of work that keep running when your laptop is off |
The spectrum every company is on
A useful framing came from GitKraken’s 2026 State of AI in Engineering report, which surveyed 554 developers and engineering leaders and grouped teams into three tiers by how autonomously they use AI: assistive (no parallel agents), emerging (experimenting with agents), and agent-native. Fleet mode is the tool that moves a team from the second tier to the third.
Most teams I talk to in India and abroad are in the middle. They use Claude Code or a similar tool in one terminal, one task at a time. They have heard of parallel agents. A few of their best engineers are quietly running four sessions in tmux. The question this article tries to answer is whether, and how, to make that the default.
Part 2. Why companies are adopting it
What the numbers say
The adoption data this year is unusually consistent across sources.
- Anthropic’s 2026 State of AI Agents report says 86 per cent of organisations surveyed have moved beyond experiments and deploy AI coding agents for production code, with enterprises at 91 per cent and small and mid-sized businesses at 83 per cent.
- JetBrains’ Developer Ecosystem Survey 2026, of more than 15,000 professional developers, found 90 per cent using AI coding agents between May and July 2026, and Claude Code at 39 per cent adoption at work.
- GitKraken found 96.4 per cent of teams have adopted AI coding tools, and 84 per cent of respondents feel more productive.
- Gartner estimated the enterprise AI coding agent market at roughly $9.8 billion to $11 billion annualised as of April 2026, and said plainly that the market is shifting from single-threaded assistance to orchestrated, multi-agent workflows. It also noted that parallel execution and background processing are pushing spend per developer up.
So adoption of AI coding is settled. What is changing now is the shape: from one agent per developer to a fleet per developer.
The six real reasons, from my chair
The press releases say “productivity.” That word hides more than it shows. These are the reasons that actually moved my budget.
1. Waiting time disappears. A single agent spends most of a task waiting: on a test suite, a build, a slow API, a long search across a monorepo. A developer watching it waits too. With background sessions, the developer dispatches the task, moves to the next one, and comes back when agent view marks it ready. Our developers didn’t type faster. They stopped waiting.
2. The context window stays clean. Every developer who has used an agent for a full day knows the moment when the session gets “heavy”: too many logs, too many file dumps, and the agent starts forgetting the instructions from the morning. Subagents fix this by doing the verbose work in their own context and returning only a summary. That is less glamorous than parallelism, but in my experience it is the single biggest quality improvement.
3. Parallel exploration beats anchoring. When a bug’s root cause is unclear, one investigator, human or AI, tends to find one plausible story and stop looking. Anthropic’s own agent-teams guide describes spawning several teammates with competing hypotheses and asking them to disprove each other, because the theory that survives is more likely to be right. We use exactly this for production incidents now. It is uncomfortable how often the first theory was wrong.
4. The boring backlog finally moves. Every ten-year-old company has the same graveyard: the framework upgrade postponed three times, the 400 files still on a deprecated logging library, the lint rule nobody enforced. These tasks are wide, repetitive and low-risk per file. That is the perfect fan-out shape. A dynamic workflow, or the bundled /batch skill that splits a large change into 5 to 30 worktree-isolated subagents, eats this kind of work.
5. Work continues when people don’t. Background sessions survive closing the terminal. Cloud threads in Projects keep going after you close your laptop. For a company with engineers in Visakhapatnam, Bengaluru and Berlin, “hand it off at 7 pm, review at 9 am” is a real change in delivery rhythm.
6. Senior judgement gets leverage. This is the one I care about most as a CTO. My best architects are scarce. A fleet lets one of them define the approach, set the guardrails and review the output of many workers. Their judgement is applied to more surface area. That is, frankly, the business case.
What it is not
It is not a way to cut headcount in half. Every rollout I have seen that started from “how many engineers can we replace” ended with a large bill, a pile of unreviewed pull requests and a quiet rollback. Gartner’s widely quoted forecast says over 40 per cent of agentic AI projects will be cancelled by the end of 2027, because of escalating costs, unclear business value or inadequate risk controls. Fleets fail for exactly those three reasons. I will come back to them.
Part 3. The building blocks, one by one
3.1 Subagents: the workers inside one session
A subagent is a specialised helper that runs in its own context window, with its own system prompt, its own tool list and its own permissions. The main session delegates a side task to it and gets back a summary.
Claude Code ships with built-in subagents: Explore (fast, read-only, Write and Edit denied), Plan (read-only research used in plan mode) and general-purpose (full tools). You can define your own as Markdown files with YAML frontmatter, at several scopes. When two have the same name, the higher one wins:
| Location | Scope | Priority |
|---|---|---|
| Managed settings | Whole organisation | 1 (highest) |
--agents CLI flag |
This session | 2 |
.claude/agents/ |
This repository | 3 |
~/.claude/agents/ |
All your projects | 4 |
Plugin agents/ |
Where the plugin is enabled | 5 |
Here is the security reviewer we keep in every repository:
---
name: security-reviewer
description: Reviews changed code for injection, auth, secrets and unsafe deserialisation. Use proactively after edits to auth, payments or API handlers.
tools: Read, Grep, Glob, Bash
disallowedTools: Write, Edit
model: sonnet
permissionMode: plan
isolation: worktree
effort: high
---
You are a senior application-security reviewer. Read the diff and the
files it touches. Report findings with file, line, severity and a one-line
fix. Never modify files. If you are unsure, say so rather than guessing.
The fields worth knowing: tools and disallowedTools (the allowlist and denylist), model (sonnet, opus, haiku, a full model ID, or inherit), permissionMode, isolation: worktree (the subagent gets its own git checkout), background, mcpServers, skills, effort, maxTurns and hooks.
Three numbers to remember:
- 20 subagents can run at once by default (
CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTSchanges it). - Nesting is capped at three layers by default (
CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH). - By default, subagents Claude spawns from the main conversation now start in the background, so your session stays responsive. Set
CLAUDE_CODE_FORK_SUBAGENT=0if you want Claude to wait for them.
Real world. Our payments team asks the main session to “add idempotency keys to the refund endpoint.” Claude sends an Explore subagent to map every call site, a test-runner subagent to run the suite, and our security-reviewer subagent over the diff. The main session never sees ten thousand lines of test output. It sees “212 passed, 1 failed in refund_retry_test, here’s why.”
3.2 Background sessions and agent view: your fleet on one screen
This is the feature most people picture when they say “fleet mode.” Agent view is in research preview, so the interface and shortcuts may still change.
A background session is a full Claude Code conversation that keeps running with no terminal attached. A supervisor process (the daemon) runs these sessions, so they survive closing agent view, your shell or your terminal. Claude Code starts the supervisor the first time you background a session or open agent view.
The commands you will actually use:
| Command | What it does |
|---|---|
claude agents |
Open agent view |
claude --bg "<prompt>" |
Start a session straight in the background |
claude --bg --name "flaky-test-fix" "<prompt>" |
Same, with a display name |
claude --agent code-reviewer --bg "<prompt>" |
Run a custom subagent as the session’s main agent |
/bg (inside a session) |
Send the current conversation to the background |
/fork |
Copy the conversation into a new background session |
claude attach <id or name> |
Attach to a session |
claude logs <id or name> |
Print recent output |
claude stop <id> |
Stop a session |
claude agents --json |
Print sessions as JSON for scripts |
claude daemon status |
Show the supervisor’s state and worker count |
Inside agent view, each row is a session with a state: Working, Needs input (yellow: a question, a permission decision, a sandbox prompt), Idle, Completed (green), Failed (red) or Stopped (grey). You type a prompt at the bottom and press Enter to dispatch a new session. You press Space to peek at a session’s question and answer it without leaving the list, or Enter to attach.
The detail that makes it safe to run in parallel: when you dispatch from agent view, the session moves into its own git worktree under .claude/worktrees/ before it edits files, so two sessions never edit the same checkout. With isolation on, Claude is told to commit, push when a remote exists and optionally open a draft pull request, and it never pushes to main or master, force-pushes or merges. That single default removed half my fear of the feature.
Two more lifecycle details matter for operations people. A finished or idle session that sits unattached for about an hour has its process stopped to free resources; the conversation stays on disk and resumes on the next reply. And deleting a session refuses to remove a worktree that has unpushed commits, printing the exact command if you really want to discard them.
Real world. At 6:40 pm one of our backend leads dispatches five sessions: bump a vulnerable dependency in three services, write missing tests for the invoice module, and investigate a flaky end-to-end test. Next morning agent view shows three green rows with draft PRs linked, one yellow row asking whether a breaking change in the dependency is acceptable, and one red row that failed because the test environment was down. She answers the yellow one, re-dispatches the red one, and starts reviewing.
3.3 Agent teams: when the workers need to talk
Subagents report back only to the session that spawned them. Background sessions report only to you. Sometimes that isn’t enough: the frontend worker needs to know the API contract the backend worker just changed.
Agent teams solve that. One session is the team lead. It spawns teammates, each a full, independent Claude Code session with its own context window. They coordinate through:
- a shared task list with pending, in-progress and completed states and dependencies (teammates self-claim unblocked tasks; file locking stops two from grabbing the same one);
- a mailbox, a JSON inbox per agent, so teammates can message each other directly by name.
Agent teams are experimental and disabled by default. You enable them with an environment variable:
{
"env": {
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
}
}
Then you just ask, in plain language:
Spawn three teammates to review PR #142: one for security,
one for performance, one for test coverage. Use Sonnet for each.
Have them report findings and challenge each other's severity ratings.
Teammates can run in-process inside your terminal (the default, works anywhere) or in split panes with tmux or iTerm2.
The limits are important, and Anthropic lists them honestly. One team per session. No nested teams: teammates can’t spawn teammates. The lead is fixed for life. In-process teammates aren’t restored by /resume. Task status can lag. And critically for safety: agent teams don’t put teammates in separate worktrees, so you must partition work so each teammate owns different files.
Cost is the other warning. The docs say teams use significantly more tokens than a single session, and put the figure at roughly seven times more when teammates run in plan mode. The recommended starting size is three to five teammates, with five or six tasks each.
Real world. During a payment-gateway outage, our on-call lead spawned four teammates, each with a hypothesis: certificate rotation, a connection-pool change, a downstream rate limit, a DNS TTL change. They were told to try to disprove each other. Within forty minutes three had ruled themselves out with evidence, and the fourth (the connection pool) had a reproduction. A human still made the fix and the call to deploy. But the search was four times as wide.
3.4 Dynamic workflows: orchestration as code
The newest and, I think, the most important piece for large companies. A dynamic workflow is a JavaScript script that orchestrates many subagents. Claude writes the script for the task you describe, a runtime executes it in the background, and your session stays free.
The key idea is in one row of Anthropic’s comparison table: with subagents, skills and teams, Claude is the orchestrator, turn by turn. With a workflow, the script holds the plan. Intermediate results live in script variables, not in Claude’s context window. That is what lets one run scale to hundreds of agents.
A saved workflow looks like this:
export const meta = {
name: 'audit-routes',
description: 'Audit every route handler for missing auth checks',
}
const found = await agent('List every .ts file under src/routes/.', {
schema: { type: 'object', required: ['files'],
properties: { files: { type: 'array', items: { type: 'string' } } } },
})
const audits = await pipeline(found.files, file =>
agent(`Audit ${file} for missing authentication checks.`, { label: file }),
)
return audits.filter(Boolean)
agent() spawns one subagent, pipeline() runs one per item, parallel() runs a set at the same time, and phase() groups agents under a title in the progress view.
You can start one in three ways: run the bundled /deep-research workflow; include the keyword ultracode in a prompt, or simply say “use a workflow”; or turn on /effort ultracode, which lets Claude plan a workflow for every substantive task in the session (and uses a lot more tokens). /workflows shows the progress view, where you can pause, stop agents, restart them, and press s to save a run as a reusable command in .claude/workflows/.
The runtime limits are deliberate:
| Limit | Value |
|---|---|
| Concurrent agents | 16 by default, fewer on small CPUs; up to 256 with CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTS |
Items per parallel() or pipeline() |
4,096 |
| Agents per run | 1,000 |
| “Large workflow” warning | over 25 agents or 1.5 million projected tokens |
| User input mid-run | none (it pauses only for permission prompts and usage-limit waits) |
Workflows are available on all paid plans and through the API, Amazon Bedrock, Google Cloud and Microsoft Foundry, and admins can switch them off organisation-wide with "disableWorkflows": true in managed settings.
Real world. We moved 430 Express route files from callbacks to async/await. One prompt: “use a workflow to migrate every handler under services/api/routes/ to async/await, each in its own isolated copy, run that file’s tests, and adversarially review each change before reporting.” The run took most of an afternoon, cost real money, and produced 430 small, reviewable diffs with a summary of 11 files it refused to touch because the tests were missing. Those 11 were exactly the files a human needed to look at.
3.5 Projects: the fleet in the cloud
Projects in Claude Code on the web and the desktop app are one ongoing conversation where Claude acts as coordinator and starts a thread for each task. Threads are usually cloud sessions, each on its own branch, opening its own pull request; you can ask for a particular thread to run on your own computer through Remote Control. An Overview pane shows which threads finished, which PRs are ready and which thread is waiting on you.
Two caveats as of November 2026: Projects are in public beta on Pro and Max plans, rolling out gradually, and are not yet offered on Team or Enterprise plans. And cloud threads work on github.com repositories with the Claude GitHub App installed, not GitHub Enterprise Server, GitLab or Bitbucket. For a company like mine, on self-hosted GitLab, that rules it out for now.
3.6 The glue: worktrees, cross-session messaging, /batch
- Git worktrees give each session a separate checkout of the same repository. They are the foundation of safe parallel editing.
- Cross-session messaging lets one of your sessions list and message your other sessions, on this machine, another machine or in the cloud, so sessions you run yourself can pass findings.
/batchis a packaged skill that splits a large change into 5 to 30 worktree-isolated subagents.
3.7 Claude Ship: the fleet’s last mile (new, November 2026)
Added 24 November 2026. Everything above this point makes code faster. None of it makes code ship faster. In Part 9 I call the review queue the new bottleneck, and two days after I first wrote this article, Anthropic released a product aimed squarely at it.
Claude Ship launched on 23 November 2026 as a beta for Claude Team and Enterprise organisations whose code is on GitHub. Anthropic’s pitch is that pull requests should move as fast as agents write them. It is three agents, each owning one step of a pull request’s life:
| Agent | Status at launch | What it does |
|---|---|---|
| Code Review | Generally available | Reviews the change against the surrounding codebase, verifies its own findings, and posts inline comments ranked by severity |
| PR Steward | Public beta | Deals with failing CI checks, merge conflicts and feedback from Code Review, other tools or teammates. Pushes fix commits and comments on what it changed and how to undo it. Steer it with @claude, stop it with @claude stop |
| Claude Approvals | Public beta | Checks the PR against a policy the team writes, and may post an approving review |
The approval policy is the interesting part, and the one that made me sit up. The team keeps a policy file in the repository. It says how many people must approve changes to a given path, and where Claude may post an approving review. The decision can draw on Code Review’s findings and on plain-language classifiers the team writes. The result: routine changes can get Claude’s approval, while sensitive areas still need human sign-off. The press has described it as a smarter CODEOWNERS file, and that is about right.
How you turn it on. There are two ways in:
- Per developer: the new
/shipcommand, rolling out in Claude Code and the desktop app. It pushes your change, opens a PR, runs a review and keeps working through feedback and failing checks, within your own permissions and branch rules. It counts as ordinary Claude Code usage. - Per repository: organisation owners enable Claude Ship for chosen repositories under Organization settings > Claude Ship, so the agents work on every team PR without anyone invoking them. Anthropic recommends starting PR Steward on Manual (
@claude steward) rather than automatic.
Observe-only first. Anthropic recommends that most customers start Claude Approvals in observe-only mode. The check reports what the policy would have decided and normally doesn’t block merging. Approvals are only enforced once you make the Claude Approvals check a required GitHub check. PR Steward is designed never to approve or merge, and GitHub branch rules still decide what can merge; /ship is bound by the same rules.
Billing and eligibility. Usage is billed by tokens, separately from a plan’s included usage, and admins can set spend limits for Code Review and PR Steward. Claude Approvals has no base charge, but its classifiers consume tokens, and a policy that asks for a Claude review triggers a billed Code Review even in observe mode. Organisations using Zero Data Retention, the HIPAA configuration or customer-managed encryption keys can’t use Claude Ship. Eligible Enterprise organisations can claim at least $10,000 in Ship credits by 15 January 2027, to be used within 30 days of claiming.
The evidence so far. Anthropic says the Claude Code team uses Ship on many of its own PRs, and that from June to September 2026, with Claude’s review as one layer of a broader process, merged PRs more than doubled while the share of reverted changes fell by more than 40 per cent. Two honest caveats: there are no published baselines or independent checks yet, and Anthropic’s own documentation warns that Claude Ship may miss bugs, security vulnerabilities or other issues.
Where it fits in a fleet. Think of it as the other half of the loop. Agent view, teams and workflows open pull requests; Claude Ship works them through review, fixes and, for low-risk paths, approval. Together they make an end-to-end pipeline where the human’s attention goes to the risky changes rather than to every changed line.
My take, as a CTO. I’m enthusiastic about Code Review and PR Steward, because babysitting CI failures and conflict fixes is exactly the work my senior engineers resent. I’m much more careful with Claude Approvals. An AI that writes code and an AI that approves code, both from the same vendor, both under the same deadline pressure, is a separation-of-duties question every auditor will ask. My plan: Code Review on everywhere, PR Steward on Manual, and Approvals in observe-only for at least a quarter, limited to docs, tests and config, while we compare what it would have approved with what our humans actually approved. And one practical limit for my company in particular: we’re on self-hosted GitLab, and Ship is GitHub-only, so for now it’s our GitHub-hosted open-source repositories that get it first.
Part 4. Isolation and guardrails: the part that decides whether you sleep
A fleet multiplies everything: output, cost, and blast radius. If one agent with a bad idea can do damage, twenty agents with the same bad idea can do twenty times the damage, in parallel, at 2 am. Guardrails are not a nice-to-have. They are the product.
I think about it as seven layers, from the inside out.
flowchart TB
A["1. Task design<br/>small, reviewable, reversible"] --> B["2. Git worktree<br/>one checkout per agent"]
B --> C["3. Permission mode + rules<br/>plan, default, acceptEdits, auto; deny lists"]
C --> D["4. OS sandbox<br/>filesystem + network boundary for shell commands"]
D --> E["5. Hooks<br/>PreToolUse blocks, TaskCompleted gates"]
E --> F["6. Scoped credentials<br/>no prod keys anywhere an agent can read"]
F --> G["7. Org policy + observability<br/>managed settings, OTel, spend limits, human review"]
Layer 1: Task design
The cheapest guardrail is a good task. Small, self-contained units with a clear deliverable (a function, a test file, a review) are easy to verify and easy to throw away. “Improve the codebase” is not a task. “Add input validation to login() in auth.ts, with tests” is.
Layer 2: Worktrees
Agent view sessions move into worktrees automatically. Subagents can with isolation: worktree, and commands that try to escape the worktree are blocked. Agent teams cannot, so you partition by file ownership. Make it a rule: no two agents ever write to the same checkout.
Layer 3: Permission modes and rules
Claude Code has several permission modes: default (asks before edits and commands), acceptEdits, plan (read-only until a plan is approved), auto (a classifier reviews actions instead of prompting you), dontAsk (only pre-approved tools) and bypassPermissions.
Here is the trap that every fleet operator must understand: permissions inherit. Teammates start with the lead’s permission mode. If the lead runs with --dangerously-skip-permissions, all teammates do too. If the main conversation is in bypassPermissions, acceptEdits or auto mode, a subagent inherits that and ignores its own permissionMode. One careless flag on the lead disarms the whole fleet.
Two protections work in your favour. A message from one agent to another is marked as coming from another Claude session, not from you, so a teammate cannot approve a permission prompt on your behalf or relay a denied action to another teammate to get around the check. And in auto mode, the classifier treats approval claims relayed between agents as untrusted.
Pre-approve the safe things, so people aren’t trained to click “yes” all day, and deny the dangerous ones outright:
{
"permissions": {
"allow": [
"Bash(npm test *)",
"Bash(npm run lint *)",
"Bash(git status)",
"Bash(git diff *)"
],
"deny": [
"Bash(terraform apply *)",
"Bash(terraform destroy *)",
"Bash(kubectl delete *)",
"Bash(git push --force *)",
"Read(./.env)",
"Read(./secrets/**)"
]
}
}
Layer 4: The OS sandbox
The Bash sandbox is a boundary the operating system enforces around the shell commands Claude runs: Seatbelt on macOS, bubblewrap and socat on Linux and WSL2 (native Windows runs commands unsandboxed, so use WSL2). By default, sandboxed commands can write only to the working directory, a temp directory and directories you’ve added. Network traffic goes through a local proxy that checks each host against an allowed-domains list that starts empty.
Know its edge: the sandbox covers shell commands only. Claude’s built-in file and web tools follow permission rules instead, and MCP servers and hooks run outside it. To put everything behind one boundary, run Claude Code itself in a container or VM.
For a fleet, turn on strict mode so a command can never quietly retry outside the sandbox, and fail closed if the sandbox can’t start:
{
"sandbox": {
"enabled": true,
"allowUnsandboxedCommands": false,
"failIfUnavailable": true,
"network": {
"allowedDomains": ["registry.npmjs.org", "pypi.org", "files.pythonhosted.org", "gitlab.internal.example.com"]
},
"filesystem": {
"denyRead": ["~/.aws/credentials", "~/.kube/config", "~/.ssh"]
}
}
}
Layer 5: Hooks
Hooks are scripts Claude Code runs at fixed points. For fleets, three matter most:
PreToolUse: inspect a tool call before it runs, and block it (exit code 2) with a reason that goes back to Claude.TaskCompleted: runs when a task is being marked complete in an agent team. Exit 2 refuses completion, for example if tests haven’t passed.TeammateIdle: runs when a teammate is about to stop. Exit 2 sends feedback and keeps it working.
A simple destructive-command guard we run on every machine:
#!/bin/bash
# ~/.claude/hooks/block-destructive.sh (PreToolUse, matcher: Bash)
cmd=$(jq -r '.tool_input.command // ""')
if echo "$cmd" | grep -Eqi '(drop (table|database)|rm -rf /|terraform (apply|destroy)|kubectl delete (ns|namespace)|--force-with-lease|aws .* delete-)'; then
echo "Blocked by fleet policy: destructive command. Ask a human to run it." >&2
exit 2
fi
exit 0
A hook is not a security boundary against a determined attacker. It is a seatbelt against an agent that has convinced itself the fastest fix is deleting something.
Layer 6: Credentials
This is the layer that actually caused the famous disasters, so I give it its own heading. No agent should be able to read a credential that can harm production. Not in .env, not in ~/.aws, not in a shell history, not in an MCP server config. Give agents staging credentials scoped to staging, with no delete rights. Keep backups somewhere the agent’s token cannot reach. I will tell you why in Part 9.
Layer 7: Organisation policy and observability
Managed settings apply on top of every other settings file and can’t be overridden by developers. They are delivered through server-managed settings, MDM, or a managed-settings.json file in the system location the managed-settings docs list for your OS. Useful keys for a fleet rollout include disableWorkflows, disableAgentView, the availableModels allowlist, autoContinueAtUsageLimit, sandbox settings and permission rules. If you disable the sandbox’s unsandboxed retry in managed settings, the sandbox becomes admin-required, and Claude Code ignores repository files that try to loosen it.
Observability: OpenTelemetry export streams per-user token, cost and tool-activity metrics into your own stack. On Team and Enterprise plans, spend limits can be set at organisation, group or member level; on the Console, per workspace; on cloud providers, through your cloud budgets or a gateway.
And the last guardrail is the oldest one: a human reviews and merges. The agent opens a draft PR. CI runs. A person decides.
Part 5. The wiring: how the pieces connect
The big picture
This is the architecture we run today, simplified. Our stack is self-hosted GitLab, Jenkins, Kubernetes and Grafana; swap in your own.
flowchart TB
dev["Developer<br/>laptop or dev VM"] -->|dispatch, peek, reply| av["Agent view<br/>claude agents"]
av --> sup["Supervisor daemon<br/>~/.claude/jobs, roster"]
sup --> s1["Session A<br/>worktree A"]
sup --> s2["Session B<br/>worktree B"]
sup --> s3["Session C<br/>worktree C"]
s1 --> sub["Subagents<br/>Explore, test-runner, reviewer"]
s1 & s2 & s3 -->|model calls| gw["LLM gateway or provider<br/>Anthropic API / Bedrock / Vertex"]
s1 & s2 & s3 -->|shell, inside sandbox| sbx["OS sandbox<br/>FS + network allowlist"]
s1 & s2 & s3 -->|commit, push branch| git["GitLab<br/>feature branches only"]
git --> ci["Jenkins / GitLab CI<br/>build, test, SonarQube, scans"]
ci --> mr["Draft merge request"]
mr --> ship["Claude Ship (GitHub)<br/>Code Review, PR Steward,<br/>Approvals per policy"]
ship --> human["Human review for risky paths<br/>+ merge via branch rules"]
human --> cd["CD to staging, then prod"]
s1 & s2 & s3 -.->|metrics, logs| otel["OTel collector"]
otel -.-> graf["Grafana / Prometheus<br/>cost, tokens, tool use"]
pol["Managed settings<br/>MDM or server-managed"] -.->|enforced on every session| sup
Read it top to bottom. The developer only ever talks to agent view. The supervisor owns the processes. Each session lives in its own worktree, calls the model through a gateway or provider, runs shell commands inside the sandbox, and can only push feature branches. CI is unchanged: the agent’s code goes through exactly the same gates as a human’s. Telemetry flows out sideways to Grafana. Policy flows in from the top and cannot be overridden locally.
Inside an agent team
flowchart LR
you["You"] --> lead["Team lead session"]
lead -->|spawn + prompt| t1["Teammate: backend"]
lead -->|spawn + prompt| t2["Teammate: frontend"]
lead -->|spawn + prompt| t3["Teammate: tests"]
tl[("Shared task list<br/>~/.claude/tasks/team")] <--> lead
tl <--> t1
tl <--> t2
tl <--> t3
t1 <-->|mailbox| t2
t2 <-->|mailbox| t3
t1 -.->|permission prompts| lead
you -.->|message any teammate directly| t2
Two details people miss. Teammates load the project context (CLAUDE.md, MCP servers, skills) but not the lead’s conversation history, so the spawn prompt must carry the specifics. And every teammate’s permission prompt surfaces in the lead’s session, so a big team in default mode can bury you in prompts unless you pre-approve the safe operations.
Inside a dynamic workflow
flowchart TB
p["Your prompt<br/>'use a workflow to...'"] --> w["Claude writes script<br/>you approve the plan"]
w --> d["Phase 1: discover<br/>1 agent lists the files"]
d --> f["Phase 2: fan out<br/>pipeline: 1 agent per file<br/>up to 16 at a time"]
f --> v["Phase 3: verify<br/>independent agents review each result"]
v --> s["Phase 4: synthesise<br/>1 agent merges findings"]
s --> r["One report back<br/>in your session"]
The verify phase is the point. A workflow can have independent agents adversarially review each other’s findings before anything is reported. That is the closest thing in this whole family to a built-in quality system.
How it wires to the systems you already have
| Your system | How the fleet touches it | What to configure |
|---|---|---|
| Git (GitHub, GitLab) | Agents commit and push feature branches; open draft PRs | Branch protection on main; no force-push; required reviews |
| CI (Jenkins, GitLab CI, Actions) | Runs on every agent branch like any other | Same quality gates; SonarQube and secret scanning mandatory |
| Issue tracker (Jira) | Agents read tickets through an MCP server or CLI | Read-only access unless a team opts in |
| Cloud (AWS, GCP) | Ideally none directly | Staging-only, read-mostly roles; never production keys |
| Kubernetes | Read access for debugging at most | kubectl deny rules for delete and apply in prod contexts |
| Observability | OTel metrics from each developer’s Claude Code | Collector endpoint, dashboards for spend and failures |
| Secrets (Vault, SSM) | None | Sandbox denyRead on credential paths |
| Identity and billing | Seats or API keys per developer | Spend limits; model allowlist |
Part 6. Setup guide
Requirements
- Claude Code, kept up to date. Many fleet features are version-gated, and the docs note that if
claude agentslists subagents instead of opening agent view, you needclaude update. - A paid plan or API access. Dynamic workflows run on all paid plans and the API, Bedrock, Google Cloud and Microsoft Foundry. Projects are currently Pro and Max beta only. Budget for much higher token use than single-session work.
- macOS, Linux or WSL2. The sandbox needs Seatbelt (built in on macOS) or
bubblewrapandsocaton Linux and WSL2. On Ubuntu 24.04 and later, AppArmor must be allowed to let bubblewrap create user namespaces. - Git repositories. Worktree isolation needs a git repo (or a
WorktreeCreatehook). - Optional: tmux or iTerm2 with the
it2CLI for split-pane teams;ghorglabfor PRs; an OpenTelemetry collector. - A machine with headroom. Each session is a real process. Twenty parallel test suites on a 16 GB laptop will hurt. We give fleet users a beefier dev VM.
Step 1: Install, update and verify
curl -fsSL https://claude.ai/install.sh | bash
claude update
claude --version
Step 2: Install sandbox dependencies (Linux / WSL2)
sudo apt-get install -y bubblewrap socat
# then in a Claude Code session:
/sandbox
The /sandbox panel shows a Dependencies tab if anything is missing. Test it: touch ~/sandbox-probe should fail, and curl --noproxy '*' https://example.com should fail to resolve.
Step 3: Write the project settings
Commit .claude/settings.json to each repository with the sandbox, permission rules and hooks from Part 4. Keep personal tweaks in .claude/settings.local.json, which is not committed.
Step 4: Define your specialist subagents
Put two or three definitions in .claude/agents/: a read-only reviewer, a test-runner on a smaller model, and a domain specialist with the conventions of that codebase. Keep CLAUDE.md short (Anthropic suggests under 200 lines) and move long procedures into skills, because every agent in the fleet loads CLAUDE.md and you pay for it every time.
Step 5: Start with background sessions
claude --bg --name "deps-invoice" "Upgrade lodash in services/invoice to the latest patched version, run the tests, open a draft MR."
claude --bg --name "tests-refunds" "Add unit tests for every public function in src/refunds/ that has none."
claude agents
Watch them in agent view. Answer the yellow rows. Review the green ones like any other PR.
Step 6: Turn on agent teams for the tasks that need them
Add CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 to settings for the people piloting it. Start with review and research tasks, not parallel implementation. Remember that once teams are on, a subagent that Claude names launches as a teammate, so teams can form when you didn’t ask; set the variable to 0 to go back.
Step 7: Try a workflow on a small slice
use a workflow to audit every handler under services/api/routes/payments/
for missing authorisation checks, and adversarially verify each finding
before reporting it
Approve the plan, watch /workflows, and look at the token count per agent before you point it at the whole repo. Set workflowSizeGuideline to small while you learn.
Step 8: Wire up observability
Each developer’s environment (or managed settings) exports telemetry:
export CLAUDE_CODE_ENABLE_TELEMETRY=1
export OTEL_METRICS_EXPORTER=otlp
export OTEL_LOGS_EXPORTER=otlp
export OTEL_EXPORTER_OTLP_PROTOCOL=grpc
export OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector.internal:4317
Build three Grafana panels before anything else: tokens and estimated cost per user per day, sessions by outcome (completed, failed, stopped), and the top tools called. If you pay contracted rates, set modelPricing in managed settings so the reported figures match your bill.
Step 9: Lock policy at the organisation level
Push a managed settings file with the model allowlist, sandbox requirements, deny rules and your hook, plus any feature you want off (for example "disableWorkflows": true for teams not yet trained). Set spend limits per group.
Step 10: Write the human rules
Tools don’t replace a working agreement. Ours fits on one page: the agent never merges; the person who dispatched it owns the PR; no agent touches production credentials; a failed agent is killed, not “fixed in place”; and every fleet user reviews their own agents’ work before asking a colleague to.
Setup checklist
| ✓ | Item |
|---|---|
| ☐ | Claude Code updated on every fleet machine |
| ☐ | Sandbox dependencies installed; strict mode and fail-closed on |
| ☐ | Allowed domains list reviewed (starts empty) |
| ☐ | Credential paths denied; no production keys on dev machines |
| ☐ | .claude/settings.json committed with allow and deny rules |
| ☐ | Destructive-command PreToolUse hook installed |
| ☐ | Two or three specialist subagents defined |
| ☐ | Branch protection on main; agents push feature branches only |
| ☐ | CI gates identical for agent and human branches |
| ☐ | OTel export and Grafana cost dashboards live |
| ☐ | Spend limits and model allowlist in managed settings |
| ☐ | One-page human working agreement signed off |
Part 7. How I would roll it out: a 90-day plan
Days 1–30: Pilot, read-only first. Ten volunteers, mostly senior. Subagents and background sessions only. First tasks are reviews, research and test-writing. Measure: tasks completed, PR acceptance rate, review time, cost per merged PR, and anything that went wrong.
Days 31–60: Parallel implementation, small scope. Expand to thirty people. Allow background sessions to edit code in worktrees. Introduce one workflow for a known-boring migration. Pilot agent teams with two teams, for incident investigation and cross-layer features. Tighten hooks from what you learned.
Days 61–90: Policy and scale. Managed settings for everyone. Spend limits by group. Training for all engineers, including juniors, with an explicit section on reviewing agent code. Decide which features stay off for which teams. If you’re on GitHub, add Claude Ship here: Code Review on, PR Steward on Manual, Claude Approvals in observe-only mode.
The metric I report to the board is cost per merged, unreverted pull request, not lines of code and not “hours saved.” It is honest, and it punishes both waste and sloppiness.
Part 8. Advantages
- Throughput without typing faster. Waiting time becomes parallel time.
- Cleaner context, better answers. Subagents keep noise out of the main session.
- Wider search on hard problems. Competing hypotheses beat anchoring on the first story.
- The neglected backlog moves. Upgrades, migrations and audits finally get done.
- Work continues across time zones and overnight.
- Repeatable orchestration. A saved workflow is a process you can version, review and rerun, which is closer to engineering than a prompt.
- Built-in cross-checking. Adversarial verification phases catch claims a single pass would have reported.
- Senior judgement gets leverage. Architects define and review; agents execute.
- Same gates as humans. If you wire it properly, agent code goes through the same CI, scanning and review.
- Better incident response. Parallel investigation shortens time to root cause.
Part 9. Disadvantages
- Cost scales with the fleet. Each agent has its own context window. Teams use several times the tokens of a single session; Anthropic’s own enterprise averages (about $13 per developer per active day, $150–250 a month) are for ordinary use, and fleets push well beyond that. Gartner names rising spend per developer as a market trend.
- The bottleneck moves to review. Agents can open twenty PRs before lunch. A human still has to read them. Without discipline, you get review debt, then rubber-stamping. Claude Ship eases this for teams on GitHub, but it moves the question rather than removing it: someone still has to write, test and own the approval policy.
- Coordination overhead. Beyond a handful of agents, returns diminish. Three focused teammates often beat five scattered ones, as the docs themselves say.
- Merge conflicts and semantic conflicts. Worktrees stop agents editing the same files; they don’t stop two agents making incompatible design decisions in different files.
- Experimental surface. Agent teams are experimental, agent view is a research preview, Projects are a beta. Shortcuts, keys and limits change from release to release.
- Local resource load. Many sessions running builds and tests can overwhelm a laptop.
- Platform constraints. No sandbox on native Windows; split panes need tmux or iTerm2; Projects need github.com and aren’t on Team or Enterprise yet.
- Harder debugging of the process itself. When a fleet produces a bad result, working out which agent, which prompt and which context caused it takes effort.
- Vendor coupling. The workers in every approach are Claude sessions. Moving your orchestration to another vendor later is real work.
Part 10. What is genuinely alarming
I promised honesty. These are the things that keep me up.
1. Agents do destructive things, and rules in prompts don’t stop them
In April 2026, an AI coding agent in Cursor, running Anthropic’s Claude Opus 4.6, deleted the production database of a car-rental SaaS startup called PocketOS, along with its volume-level backups, in a single API call to its cloud provider, Railway. Reports say it took about nine seconds. The agent had hit a credential mismatch in staging and found a broadly scoped API token. Asked afterwards, it acknowledged that its own instructions said never to run destructive or irreversible commands unless asked.
It wasn’t the first. In July 2025, Replit’s agent deleted the SaaStr founder’s production database during an explicit code freeze. In December 2025, Amazon’s Kiro agent was reported to have deleted and recreated a live environment, causing a 13-hour outage of an AWS service in one region.
Read the post-mortems and you’ll see the same pattern every time: the instruction was in the prompt; the capability was in the credential. A system prompt is a request, not a wall. With one agent, that’s a risk. With a fleet running unattended overnight, it’s a statistical certainty that one of them will one day decide the fastest fix is to delete something. The only real defence is that it doesn’t have a key that can.
2. One flag disarms the whole fleet
Because permission modes inherit, a lead session started with --dangerously-skip-permissions passes that to every teammate. A tired developer at 11 pm can turn a ten-agent team into ten unsupervised operators with one flag. Block it in managed settings.
3. Prompt injection scales with the fleet
Agents read web pages, issue comments, dependency READMEs and log lines. Any of those can contain text written to manipulate an agent. A fleet reading a thousand files is a fleet with a thousand chances to meet a poisoned one. The defences (sandboxed network, no secrets in reach, untrusted-input handling in auto mode, human review) work, but only if they are actually on.
4. Review becomes rubber-stamping
The most dangerous failure is quiet. When a developer gets twenty green PRs a day, the twentieth gets less attention than the first. Bugs that a tired reviewer approves are worse than bugs an agent never wrote, because now they have a human’s signature on them.
5. Juniors stop learning the hard parts
A junior developer used to learn by struggling through a bug for a day. If an agent fleet does the struggling, what does the junior learn? My generation became seniors by doing the work that fleets now do. If we don’t design a new apprenticeship deliberately, in five years we won’t have the seniors we need to supervise the fleets.
6. Costs that run at 2 am
As one newspaper analysis put it this year, an agent that can delete a production database at 2 am can also burn through a company’s margin at 2 am. Fleets and workflows can spawn hundreds of agents. The runtime caps (1,000 agents per run) are there to stop runaway loops, not to protect your budget. Spend limits are your job.
7. “Agent washing” and the hype cycle
Gartner has warned about vendors rebranding chatbots and assistants as “agents,” and estimated that only about 130 of the thousands of agentic AI vendors are real. Boards hear “fleet of agents” and imagine a 50 per cent cost cut. When that doesn’t happen, the project gets cancelled, sometimes throwing away the real gains with the fake ones.
8. When the machine approves the machine
Claude Ship’s Claude Approvals can post an approving review that counts once you make it a required check. That’s a genuine productivity gain for routine changes, and a genuine new risk. If the approval policy is too generous, and GitHub auto-merge or a merge queue is on, a change can merge with no human acting at all; the reporting on Ship’s launch calls this out explicitly. Treat the approval policy like production code: review changes to it, keep a human requirement on sensitive paths, start in observe-only mode, and check its decisions against your revert rate before you trust it.
Part 11. Will it become necessary?
My answer has two halves.
The capability will become necessary. Gartner predicts at least 15 per cent of day-to-day work decisions will be made autonomously through agentic AI by 2028, and that 33 per cent of enterprise software applications will include agentic AI by then. In coding, the shift is already measurable: the market is moving to orchestrated, multi-agent workflows, and competitors who run five parallel investigations into every incident will out-ship those who run one. A software company that refuses to learn parallel delegation in 2026 is like a company that refused version control in 2006. It can survive for a while. It won’t win.
But “fleet everything” will not. Most tasks are still sequential: you can’t write the migration before you’ve decided the schema. Many tasks are too small to justify the coordination. Some code (payments, auth, anything regulated) deserves one careful human and one careful agent, not twenty. The skill that will matter is knowing which shape a task has: single session, subagents, background fan-out, team, or workflow.
What I’m sure of is this: the job description of a software engineer is changing from “person who writes code” to “person who designs work, delegates it to people and machines, and is accountable for the result.” That was always the job of a tech lead. Fleets make it everyone’s job, earlier in their career than before. Companies that prepare their people for that change will get the gains. Companies that just buy seats will get the bill.
Epilogue: what I tell my engineers
At our last all-hands, a developer two years out of college asked me whether she should worry about her job.
I told her three things.
First, learn to write a task the way you’d write it for a smart new colleague who has never seen our codebase. That skill is now worth more than typing speed ever was.
Second, read every line your agents write, as if your name is on it. Because it is.
Third, never give a machine a key you wouldn’t give an intern on their first day. Everything else in this article (the sandboxes, the hooks, the worktrees) is there to help you keep that promise.
The fleet is the most powerful tool I’ve been handed in fifteen years. Like every powerful tool, it amplifies whatever discipline, or lack of it, you bring.
One-minute recap
| Topic | What to remember |
|---|---|
| What “Fleet Mode” is | A nickname, not a product switch: agent view (FleetView), background sessions, subagents, agent teams, dynamic workflows, Projects |
| Who holds the plan | Subagents and teams: Claude, turn by turn. Agent view: you. Workflows: a script. Projects: a cloud coordinator |
| Subagents | Own context, tools, model; 20 concurrent, 3 levels deep by default; background by default |
| Agent view | claude agents, claude --bg; daemon keeps sessions alive; each dispatch gets its own worktree; never pushes to main |
| Agent teams | Lead + teammates + shared task list + mailbox; experimental, off by default; 3–5 teammates; ~7× tokens in plan mode; no worktree isolation |
| Workflows | JS script, agent/pipeline/parallel; 16 concurrent, 1,000 per run; ultracode, /deep-research, /workflows |
| Projects | Cloud threads, PR per thread; Pro/Max beta; not yet on Team/Enterprise |
| Guardrails | Task design, worktrees, permission rules, OS sandbox, hooks, scoped credentials, managed settings and human review |
| Biggest trap | Permission modes inherit; one bypass flag disarms the fleet |
| Claude Ship | New 23 Nov 2026, GitHub + Team/Enterprise beta; Code Review (GA), PR Steward and Claude Approvals (beta); /ship; start Approvals in observe-only |
| Biggest risk | Destructive actions with over-scoped credentials (PocketOS, Replit, Kiro), and over-generous auto-approval policies |
| Business metric | Cost per merged, unreverted PR |
| Will it be necessary? | The capability, yes. Fleeting every task, no |
References and further reading
Anthropic documentation (Claude Code)
- Run agents in parallel (overview of subagents, agent view, teams, workflows, projects): code.claude.com/docs/en/agents
- Manage multiple agents with agent view: code.claude.com/docs/en/agent-view
- Orchestrate teams of Claude Code sessions (agent teams): code.claude.com/docs/en/agent-teams
- Create custom subagents: code.claude.com/docs/en/sub-agents
- Orchestrate subagents at scale with dynamic workflows: code.claude.com/docs/en/workflows
- Let Claude coordinate ongoing work with Projects: code.claude.com/docs/en/claude-projects
- Configure the sandboxed Bash tool: code.claude.com/docs/en/sandboxing
- Run parallel sessions with worktrees: code.claude.com/docs/en/worktrees
- Permission modes: code.claude.com/docs/en/permission-modes
- Hooks reference: code.claude.com/docs/en/hooks
- Deploy managed settings: code.claude.com/docs/en/managed-settings
- Manage costs effectively: code.claude.com/docs/en/costs
- Monitoring with OpenTelemetry: code.claude.com/docs/en/monitoring-usage
Claude Ship (launched 23 November 2026)
- Unite.AI, Anthropic Launches Claude Ship to Review, Fix and Approve PRs: unite.ai
- SiliconANGLE, Anthropic’s Claude Ship automates the final stage of the software development pipeline: siliconangle.com
- The New Stack, Anthropic’s Claude Ship lets Claude approve routine pull requests: thenewstack.io
- 9to5Mac, Anthropic launches new Claude Ship feature for builders: 9to5mac.com
- FoneArena, Anthropic rolls out Claude Ship to automate GitHub pull request reviews, fixes and approvals: fonearena.com
- Anthropic docs, Code Review: code.claude.com/docs/en/code-review
Reports and surveys
- Anthropic, The 2026 State of AI Agents Report: resources.anthropic.com
- Gartner, Leading in Enterprise AI Coding Agents Requires More Than Product Momentum: gartner.com
- Gartner, Over 40% of Agentic AI Projects Will Be Canceled by End of 2027 (June 2025): gartner.com
- GitKraken, The State of AI in Engineering (July 2026): gitkraken.com
- JetBrains Research, AI Coding Agents: Adoption Trends (August 2026): blog.jetbrains.com
- McKinsey, The state of AI in 2026: mckinsey.com
Incidents
- TechRepublic, AI agent deletes company’s entire database (PocketOS, May 2026): techrepublic.com
- SC World, AI coding agent deletes production database in seconds: scworld.com
- eWeek, Replit AI agent wipes production database (2025): eweek.com
- The New Stack, What AI agents do with your instructions (July 2026): thenewstack.io
Community context
- GitHub issues on Agent View / FleetView naming and behaviour: anthropics/claude-code #60437, #61733