Overview
Run several Claude Code sessions in parallel on your own machine, give each a separate task and branch, and review every diff before anything is merged.
Problem or Objective
- Which agents build a non-trivial feature with you?
- Which agents take on multi-step tasks in the background and report back when they finish or need approval?
More in Coding and Code Review
AI Agents and Models
Tools and Integrations
- Tools
- Claude Code · Git
- Prerequisites
- Claude Code: most surfaces require a Claude subscription or Anthropic Console account; the desktop app requires a paid subscription. A git repository and enough plan or API usage for several sessions at once.
How It Works
Split the work into tasks that touch different parts of the codebase, and write each one down with its goal, the files it may change and how to test it. Give each task its own git branch and its own working copy of the repository so two sessions never edit the same files. Start one Claude Code session per task, either side by side in the desktop app or as background agents you watch from one screen. Keep a shared CLAUDE.md in the repository with the coding standards and test command every session should follow. Check in on each session, answer its questions and approve the commands it asks to run. When a session finishes, review its diff and run the tests yourself, then merge branches one at a time, resolving conflicts before starting the next merge.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Claude Code.
- Connect the toolsConnect the tools this workflow relies on: Claude Code, Git.
- Check the prerequisitesClaude Code: most surfaces require a Claude subscription or Anthropic Console account; the desktop app requires a paid subscription. A git repository and enough plan or API usage for several sessions at once.
- Gather your detailsCollect what the prompt asks for: Repository, This session's task, Branch for this task, Files this session may change, Test command.
- Run the starter promptPaste the starter prompt below into Claude Code and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at code.claude.com before you rely on it.
Practical Starter Prompt: Work one task on its own branch
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
You are one of several sessions working on [Repository] in parallel. Your task only: [This session's task]. Work on the branch [Branch for this task] and change only files under [Files this session may change]. Follow CLAUDE.md and run [Test command] before you say you are done. Ask me before running any command that installs packages or deletes files. Do not merge, push or open a pull request; when finished, summarise the diff and the test result so I can review it.Give each session a different branch and set of files. Review every diff and run the tests yourself, then merge one branch at a time.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. Claude Code's overview says the desktop app runs multiple sessions side by side, that background agents let you run several full sessions in parallel and watch them from one screen, and that every session reads CLAUDE.md at the start. No cited page says how many parallel sessions a machine or plan handles well, so start with two or three and add more only if you can still review their work.
Limitations and Considerations
Every session draws on your plan or API usage, so check your limits before running many at once. Parallel sessions on the same files create merge conflicts; separate branches and working copies avoid most of them. Approve commands per session rather than granting broad permissions to all of them. You remain the reviewer: nothing is merged until you have read the diff and run the tests. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Official Website
The official site of the main tool or project in this use case.
Visit Website (opens in a new tab)code.claude.com
Related Videos
About anthropics/claude-code
The SECRET Claude Code Upgrade That Has Everyone Going Nuts (Full Guide) (opens in a new tab)
The title names the project, the description links the project website.
Watch on YouTube (opens in a new tab)About anthropics/claude-code
The only Claude Code guide you'll ever need (Opus 4.5) (opens in a new tab)
The title names the project, the description links the project website.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- Overview - Claude Code Docs (opens in a new tab)
Project documentation · code.claude.com · Undated · Source checked 25 Nov 2026, 11:57 UTC
What this source supports
- Review diffs visually, run multiple sessions side by side, schedule recurring tasks, and start cloud sessions.
- To run several full sessions in parallel and watch them from one screen, use background agents .
- CLAUDE.md is a markdown file you add to your project root that Claude Code reads at the start of every session.
- Most surfaces require a Claude subscription or Anthropic Console account.

