Run parallel coding agents with Claude Code agent view
Run several Claude Code agents at once with agent view: dispatch tasks, peek at progress, reply and review each branch in about 15 minutes.

What you need
Agent view is a research preview, so its screens and keys may still change.
Step 1: Update Claude Code
2 minAgent view only exists in recent versions, and the newest ones fix the most problems.
- In your terminal, run
claude --versionto see which version you have. - Run
claude updateto install the newest version. - Installed with Homebrew? Run
brew upgrade claude-codeinstead.
Run thisclaude --version claude update
You should see a message that Claude Code updated to a new version, or that it's already up to date.
The update fails on an npm install?
Run
npm install -g @anthropic-ai/claude-code@latestwithoutsudo. Skipnpm update -g, since it may not move you to the newest release.The native installer updates Claude Code in the background, so most people are already current.
- In your terminal, run
Step 2: Open agent view in your project
1 minNew sessions start in the folder you open agent view from, so open it at the top of your repo.
- In your terminal, go to your project folder.
- Run
claude agents. - If Claude Code asks whether you trust this folder, accept it.
Run thiscd [YOUR PROJECT FOLDER] claude agents
You should see a full-screen list with an input at the bottom and a row of key hints.
claude agentslists your subagents and exits?Your version doesn't have agent view yet. Run
claude update. If it still fails, check that thedisableAgentViewsetting isn't turned on.Step 3: Dispatch 2 separate tasks
3 minEach prompt starts its own background session, so 2 tasks run side by side.
- Type the first task in the input at the bottom and press
Enter. - Type the second task and press
Enteragain. This starts a new session, not a follow-up. - Pick tasks that touch different files, such as tests in one and docs in the other.
Your 2 prompts, sent one at a timeWrite unit tests for [FILE OR MODULE]. Run them and fix any that fail. Update the setup section of README.md so it matches the current install steps.
You should see 2 new rows under Working, each with a short name taken from its prompt.
Your prompt was turned down as too short?
Prompts under 4 characters are refused. Describe the task in a full sentence, and name the file or folder it covers.
From your shell,
claude --bg "[TASK]"starts the same kind of session. Add--nameto give it a label.- Type the first task in the input at the bottom and press
Step 4: Peek at a session and reply
3 minThe peek panel shows what a session is doing or asking, without opening the whole chat.
- Move to a row with the arrow keys and press
Spaceto open the peek panel. - For a row under Needs input, read the question the session is asking.
- Type a reply and press
Enter. For numbered choices, press the number, thenEnter.
You should see the session's latest status or question, and your reply sent without leaving the list.
Your reply doesn't clear a permission prompt?
Permission prompts can't be answered from the peek panel. Press
→to attach, answer the prompt, then press←on an empty prompt to go back.A reply of exactly
/stopstops that session at once.- Move to a row with the arrow keys and press
Step 5: Review the work and clean up
6 minEach session saves its work on its own branch, so you review it like any other change.
- Press
Enteron a row to attach and read the full chat. Press←on an empty prompt to leave. - When a session finishes, check the pull request number on its row, or ask it where the work is.
- Commit anything you want to keep, then press
Ctrl+Xtwice to delete the session.
You should see finished rows under Completed or Ready for review, each pointing to a branch or a pull request.
A session won't delete because of unpushed commits?
Push or merge the commits, then delete it again. Deleting a second time without pushing throws those commits away.
Claude commits and pushes its own branch when the repo has a remote. It never pushes to
mainormaster, and it never merges.- Press
You get
2 or more Claude Code agents working at once, each on its own branch, all watched from one screen
Try next
Did this guide work for you?
Thanks. It helps us fix the steps.
Sources
0 of 5Next: Update Claude Code


