Learning resourcesReviewed · Anthropic

Claude Code agent view: manage multiple background agents

This is Anthropic's documentation for agent view in Claude Code, a terminal screen for dispatching and monitoring many background coding sessions at once, written for developers who already use Claude Code, and its main catch is that the feature is a research preview that runs only on your own machine and spends subscription quota for every session. The page covers the claude agents command, session states, peeking and replying, attaching, worktree isolation, shell controls, hosting by a supervisor process, troubleshooting and a version history.

Researched 13 Nov 2026

In short.

This is Anthropic's documentation page for agent view in Claude Code, a terminal screen opened with the command claude agents that lets developers dispatch several background Claude Code sessions and see which are working, which need input and which are done; the main catch is that it is a research preview whose interface may change, its sessions run only on your machine and stop on shutdown, and each session uses subscription quota independently. The page explains how to dispatch sessions from the screen or with claude --bg, how to peek, reply, attach and detach, how newly dispatched sessions normally isolate edits in git worktrees, with documented exceptions, how a supervisor process keeps sessions alive, which shell commands manage them, and what can go wrong. Nothing was run for this review, so every behaviour below is as documented by the source and has not been confirmed in practice.

Researched and written by an AI model and checked by a second AI model. How it works

The review covers the complete selected page at [https://code.claude.com/docs/en/agent-view.md], captured as one file, including its quick start, monitoring, dispatch, shell command, hosting, troubleshooting, limitations and version history sections. Pages linked from it, such as the parallel agents comparison, worktrees, permissions, settings reference, errors, subagents and cloud sessions, were excluded and are not assessed. No licence or notice file was captured, so rights to reuse the text are unknown. Nothing was installed or executed, so none of the described commands, flags, keyboard shortcuts, notifications or isolation behaviour has been tested, and the quality of the work the sessions produce is unknown.

The overview

What this resource is

The resource is a single documentation page titled Manage multiple agents with agent view, published at [https://code.claude.com/docs/en/agent-view.md] as part of the Claude Code documentation. It describes one feature of the Claude Code command-line tool: agent view, opened with claude agents, which is one screen for all background sessions. The page states that each background session is a full Claude Code conversation that keeps running without a terminal attached, so you can open it, reply and leave whenever you want.

The page is documentation, not software you install on its own. It teaches a feature of a separate product, which is why it is classed as a learning resource. The page itself says agent view is in research preview and that the interface and keyboard shortcuts may change. The author is not named beyond the Claude Code documentation site, and the page carries no licence notice in the captured text.

Overall assessment

As a reference, the page is thorough and specific. It gives exact commands, flags, keyboard shortcuts, state meanings, error messages and the Claude Code version in which behaviours were added, and it is candid about limits such as quota use, local-only sessions and worktree deletion. That makes it a strong source for someone deciding whether to adopt agent view, and a useful checklist for someone already using it.

The feature it describes looks most valuable for people with several independent tasks, such as a bug fix, a pull request review and a flaky-test investigation, who want to watch their state at a glance. It is less suited to work where tasks edit the same files without a git repository, to anyone who needs sessions to survive a machine shutdown, or to anyone who cannot afford to use subscription quota faster. This assessment rests on the documentation alone. No session was started, and how well Claude performs the dispatched tasks is not covered by the page and is unknown.

Who it is for

The page is aimed at developers who already run Claude Code in a terminal and want to run more than one task at a time. The stated use case is several independent tasks that Claude can work on without you watching every step: dispatch them as rows, keep working in another window, and check back when a row shows it needs you or has a result.

Beginners can follow the quick start, which walks through opening agent view, dispatching a prompt, peeking, attaching and bringing in an existing session. Experienced developers get detail on scripting with claude agents --json, the supervisor process, worktree behaviour, gateway and provider environment forwarding, hooks and the Notification hook types, and keybinding customisation. Administrators are told they can disable the feature through managed settings. The page does not say who should avoid it beyond its listed limitations.

What agent view can do

Monitoring: the screen lists every background session grouped by state (Pinned, Ready for review, Needs input, Working, Completed), or grouped by directory with Ctrl+S. Each row has a state icon, a name, a one-line summary and an age. Rows for sessions that opened a pull request or GitLab merge request show a linked number coloured by status. The list can be filtered with a:, s:, n: and o: prefixes, a pull request number or a URL.

Dispatching: type a prompt to start a new session, mention a custom subagent with @name, mention a repository with @repo, start with / to dispatch a skill or command, or start with ! to run a shell command as a background job. Pasting an image is supported. From the shell, claude --bg starts a session directly, with optional --agent, --name, --model and --resume. You can also move a session you already have open with /background or /bg, or by pressing the left arrow on an empty prompt, and copy one with /fork.

Interacting: Space opens a peek panel where you can read the question or result and reply without leaving the list, including numbered choices and a suggested reply. Enter or the right arrow attaches to the full conversation, and the left arrow detaches. Some commands such as /model, /effort, /rename and /usage run immediately on a working session; other replies queue.

Control and automation: claude attach, logs, stop, respawn, rm and daemon status manage sessions from the shell, and claude agents --json (with --all) prints session state as a JSON array for scripts or status bars. While agent view is open, Claude Code sends a notification through your configured terminal notification channel, and fires the Notification hook with the agent_needs_input or agent_completed type, when a local background session starts needing your input, finishes or fails. The page makes an exception for sessions that run on a schedule, such as /loop sessions: they notify only when they need your input, not when they finish or fail. Dispatch defaults for permission mode, model, effort and agent can be set when opening the view, and /model, /effort and /fast can be set inside it.

Using it

What you need

You need Claude Code installed and signed in, since the page says the supervisor and its sessions use the same stored credentials as interactive sessions, or an API key or provider configuration. The page does not state minimum system specifications, supported subscription plans or exact prices. It does say agent view was introduced in v2.1.139, and many flags and behaviours need later versions. For example, /effort and /fast in the dispatch input need v2.1.299, the n: filter needs v2.1.287, and claude attach by name needs v2.1.290. If claude agents only lists subagents and exits, the page says to run claude update and then check whether agent view has been disabled.

Git is needed for the default isolation: sessions move into a git worktree under .claude/worktrees/ before editing files. Outside a git repository, sessions write directly to the working directory unless a WorktreeCreate hook is configured. The directory must pass the workspace trust dialog, and if you decline, Claude Code exits without opening agent view. The page includes troubleshooting for macOS (folder access and Local Network permission), Windows (key handling and lock files) and Linux and WSL (terminal host process failures), so macOS, Linux and Windows are all referenced. Which plans or providers allow the feature is not stated beyond mentions of third-party providers, gateways, Amazon Bedrock, Google Cloud, and Microsoft Foundry for row summaries.

How it works

A separate background service, called the supervisor, runs the sessions. Claude Code starts it the first time you background a session or open agent view. Each session is its own Claude Code process under the supervisor, so you can close agent view or your shell and the work continues. The supervisor keeps a process running while a session is working, paused on a dialog or attached. It stops the process of a finished or waiting session after about an hour unattached to free resources, and resumes it from the saved conversation on the next attach or reply. Pinning a session with Ctrl+T keeps its process running. The page says sessions are preserved across machine sleep but stop on shutdown.

State is stored under the Claude Code config directory: daemon.log holds the supervisor log, daemon/roster.json lists running background sessions so they can be reconnected after a restart, jobs/<id>/state.json holds per-session state, and jobs/<id>/tmp/ is a per-session scratch directory. Each session's CLAUDE_JOB_DIR variable points to its jobs/<id> directory. The page warns that the per-session files under jobs/<id>/ are not a stable interface and recommends reading session state through claude agents --json instead. For the supervisor itself, it separately documents claude daemon logs, which follows daemon.log, and claude daemon status for inspecting the supervisor's state, version, socket directory and worker count.

Row text is mostly the session's own recent output, refreshed at most every 15 seconds without a model request, and a Haiku-class model writes a fresh summary when each turn ends and every few minutes during long turns. The same kind of model writes the automatic session name from the prompt.

For file isolation, a session dispatched from agent view or claude --bg moves into a git worktree before editing. The page lists the cases where it skips this, such as sessions you backgrounded from an open conversation, sessions already inside a linked worktree, or non-git directories with no hook. Setting worktree.bgIsolation to none in project settings turns isolation off. In a worktree Claude entered, Claude is instructed to commit without asking, push the branch if there is a remote, and open a draft pull request when the task calls for it, never pushing to main or master, force-pushing or merging. The page says your own git instructions in the task, CLAUDE.md or memory take precedence.

Setup and first use

The documented quick start is five steps. Run claude agents in your shell; accept the workspace trust dialog if shown. Type a prompt and press Enter to dispatch a session, noting that every prompt entered in that input starts its own new session rather than sending a follow-up. Select a row and press Space to peek and reply. Press Enter or the right arrow to attach, and the left arrow on an empty prompt to detach. To bring in an existing session, run /bg inside it or press the left arrow on an empty prompt, which backgrounds it and opens agent view.

To open agent view whenever you run claude with no arguments, turn on Open agents view by default in /config or run /config defaultToAgentsView=true. To start a normal session while that is on, pass a prompt. To restrict the list to one project, use claude agents --cwd with a path. To turn the feature off entirely, set disableAgentView to true or set the CLAUDE_CODE_DISABLE_AGENT_VIEW environment variable.

Configuration flags such as --settings, --setting-sources, --add-dir, --plugin-dir, --mcp-config and --strict-mcp-config can be passed to claude agents and are forwarded to dispatched sessions. The page notes that --add-dir and --mcp-config must come after agents, and that repeated values need the flag repeated rather than space-separated lists. No installation steps for Claude Code itself are on this page.

Worked example from the page

The page's own example for starting a session straight from the shell is: claude --bg --name "flaky-test-fix" "investigate the flaky SettingsChangeDetector test". It says Claude then prints a line such as backgrounded, a short ID and the name, followed by the commands claude agents, claude attach <id>, claude logs <id> and claude stop <id>. You would then open claude agents, watch the row move between Working, Needs input and Completed, press Space to read its question or result, and attach if you want the full conversation.

For model choice, the page shows typing /model opus, then a prompt such as refactor auth, then /model sonnet, then another prompt such as run the test suite in the dispatch input, so that the first session starts on Opus and the next on Sonnet. For defaults across the whole view it shows claude agents --permission-mode plan --model opus --effort high. These are quoted from the documentation and were not run for this review, so output and timing on a real project are unknown.

Assessment & evidence

Limitations and risks

The page lists three limits itself: rate limits apply because every session uses your subscription quota; sessions are local, preserved across sleep but stopped by shutdown; and Claude-created worktrees are deleted with the session in agent view, so you should commit first. It also notes a research-preview warning that the interface and shortcuts may change.

Other documented constraints: interactive sessions in other terminals do not appear until you background them; subagents and teammates are not listed as separate rows; a permission prompt, sandbox prompt or MCP input request cannot be answered from the peek panel, and you must attach with the right arrow; a few built-in commands are not available in agent view and must be run after attaching; a prompt shorter than four characters is rejected; shell jobs started with ! or --exec keep output only in memory and the row cleans up about five minutes after the command exits.

Operational risks the page describes include sessions failing after a shutdown (restartable by attaching or replying, with a 48 hour cut-off after which they show as stopped), the supervisor stalling, gateway variables not reaching sessions started from another directory, macOS protected-folder and local-network permission prompts, and leftover directories in .claude/worktrees/. Deleting a session can discard uncommitted changes or, after confirmation, unpushed commits. Unattended sessions started in permissive modes can act without approval, and the page requires acceptance of a disclaimer for bypassPermissions. Without a git repository or hook, parallel sessions are not isolated and can edit the same files, so the page advises against dispatching them on the same files. Quality of results is not covered and is unknown.

Why this is worth reading

The strongest reason to read it is precision. It separates behaviours that are easy to confuse: dispatching versus replying, peeking versus attaching, deleting a session versus its worktree, backgrounding a session versus forking it. It also explains permission-mode inheritance, which is a safety-relevant detail when sessions run unattended, and it records which Claude Code version introduced each behaviour, which helps people on older installs.

The main reservation is that it documents a moving research preview, and the version history shows frequent changes between v2.1.139 and v2.1.299. Advice about shortcuts, flags and edge cases may date quickly. The page also describes only the feature's own behaviour; it contains no benchmarks, user reports or independent comparative evaluation, so claims about productivity gains are not supported by this evidence and should not be assumed.

Alternatives and related options

The page itself points to several related ways to run Claude in parallel. Run agents in parallel, at [https://code.claude.com/docs/en/agents.md], compares agent view with subagents, agent teams and worktrees. Agent teams coordinate multiple sessions that message each other, and cross-session messaging lets sessions pass findings to each other. Use Claude Code in the cloud, at [https://code.claude.com/docs/en/claude-code-on-the-web.md], runs sessions in a managed cloud environment instead of locally. Projects, at [https://code.claude.com/docs/en/claude-projects.md], has Claude start and track parallel cloud sessions from one conversation and tell you which need you.

The page briefly contrasts agent view, which runs sessions on your machine with you dispatching each one, with Projects, where Claude starts and tracks parallel sessions in the cloud from one conversation. Those linked pages were outside the selected scope, so their details are not assessed here. Other vendors' parallel coding agent tools are not mentioned in the evidence and are not assessed.

Evidence base

This report rests on the captured text of the documentation page at [https://code.claude.com/docs/en/agent-view.md], captured on 13 November 2026. The captured text covers the page's quick start, monitoring, dispatch, shell management, hosting, troubleshooting, limitations and version history sections.

The evidence is first-party documentation. It supports what the feature is documented to do. It does not show that the feature was run, measured or reviewed by independent users, and no benchmark, test result or third-party report is included. Everything stated here about behaviour is therefore a documented claim, not a verified observation.

Access & freshness

Costs

The page states no price for agent view itself and no subscription price. It says background sessions consume your subscription usage the same as interactive sessions, so ten agents in parallel use quota roughly ten times as fast as one. Whether any plan has a separate quota or extra charge for background sessions is not stated, so the dollar cost is unknown.

Row summaries add small extra requests. Each end-of-turn summary and each mid-turn rewrite is one short request through your normal provider, billed and handled under the same data usage terms as the session. On a third-party provider or gateway, they use the model in ANTHROPIC_DEFAULT_HAIKU_MODEL if set, otherwise the provider's background-task model. The size of this overhead is not given. Pinned sessions also keep a process running, which uses machine resources. A “possibly low memory” startup note is a hypothesis based on a silent process exit and reported low host memory, not a confirmed cause.

Rights and data handling

The captured page contains no licence, copyright notice or reuse terms for the documentation text, and it does not state a licence for Claude Code. The rights to copy, redistribute or adapt the page are therefore not established by this evidence. Readers should check the terms of the source site before reusing its text.

On data handling, the page says row summaries are billed and handled under the same data usage terms as the session itself and links to Anthropic's data usage page, which was not captured. Session transcripts remain on your local machine and stay available through claude --resume after a session is deleted from the list, and session state lives under your Claude Code config directory. The page does not describe what is sent to Anthropic beyond the summaries note, so wider data handling is not assessed here.

Freshness

The captured page was retrieved on 13 November 2026. Its version history runs from v2.1.139, when agent view was introduced as a research preview, to v2.1.299, the most recent entry, which added /effort and /fast in the dispatch input and changed how --bg is read in prompts. The page does not give publication dates for individual entries, so how current it is relative to the latest Claude Code release is unknown.

Because the page calls the feature a research preview and shows frequent changes, details such as keyboard shortcuts, flags and notice wording may differ in newer or older versions. The page itself warns that behaviour on older Claude Code versions may differ and that claude agents rejects unsupported flags with an unknown option error.

Suggested next steps

If you use Claude Code, confirm which version you have installed before relying on a particular flag or behaviour, since the page ties many of them to specific releases. If claude agents prints a count followed by your configured subagents and then exits instead of opening agent view, the page says to run claude update; if agent view still does not open after updating, check whether it has been turned off by the disableAgentView setting or the CLAUDE_CODE_DISABLE_AGENT_VIEW environment variable. Try agent view first in a throwaway or low-risk git repository, with a small task, to see how worktree isolation, commits and draft pull requests behave in your setup before you trust it with important work.

Before dispatching many sessions, consider your quota, since each session uses it independently. Decide on a permission mode deliberately by using the --permission-mode flag or your defaultMode setting, and avoid bypassPermissions for unattended sessions unless you accept the risk. Commit or push anything you want to keep before deleting a session, and check git worktree list now and then for leftovers. If you want to script it, read state through claude agents --json rather than the files under the jobs directory. Read the linked parallel-agents comparison page before choosing between agent view, subagents, agent teams and cloud sessions.

Evidence for this report

selected-page.txtselected · checked 2026-11-13