Agent View For Managing Multiple Claude Code Sessions
Use Claude Code agent view (claude agents) to dispatch, monitor, peek, attach, and organize many background sessions from one terminal with state icons, PR labels, filters, and shell commands for fleet-style multitasking.
Open the source and read safety notes before installing.
Safety notes
- Background sessions run with the permission mode shown in the agent view header; review bypassPermissions and auto modes before dispatching unattended work.
- Deleting a session from agent view can remove Claude-created worktrees and uncommitted changes—commit or push first.
- Each dispatched session is a full Claude Code process; do not parallelize destructive tasks on the same checkout without isolation.
Privacy notes
- Agent view row summaries are generated by a Haiku-class model from session activity; treat summaries as operational hints, not sanitized exports for public sharing.
- Sessions started under different project directories appear in the default global list unless you filter with claude agents --cwd.
- Peek panels and attach mode expose full transcripts that may contain proprietary code, tokens, or customer data.
Prerequisites
- Claude Code v2.1.139 or later (check with claude --version).
- Multiple independent tasks that can run without watching every tool call.
- Agreement on which directories, branches, or worktrees each session may edit.
- Awareness that each background session consumes subscription quota independently.
Schema details
- Install type
- copy
- Reading time
- 9 min
- Difficulty score
- 52
- Troubleshooting
- Yes
- Breaking changes
- No
Full copyable content
Open agent view with claude agents, dispatch independent tasks as background rows, peek to answer blocked sessions, attach for full conversations, and use claude agents --json for scripting when you need fleet status without the TUI.About this resource
TL;DR
Agent view (claude agents) is one screen for many background Claude Code
sessions. Dispatch tasks as rows, watch state icons and PR labels, peek to reply
without opening full transcripts, attach when you need the full session, and use
shell commands such as claude attach, claude logs, and claude stop for
scripting.
Prerequisites & Requirements
- {"task": "Version check", "description": "Claude Code is v2.1.139+ for agent view research preview"}
- {"task": "Task queue ready", "description": "Independent tasks are written with clear done criteria"}
- {"task": "Directory plan", "description": "Each session knows its cwd, worktree, or @repo target"}
- {"task": "Quota awareness", "description": "Team understands parallel sessions bill independently"}
- {"task": "Merge owner", "description": "A human reviews PR labels before merging green rows"}
Core Concepts Explained
Background sessions vs interactive terminals
Official docs describe agent view sessions as full Claude Code conversations
hosted by a supervisor process, not tied to an open terminal. Interactive claude
sessions end when the terminal closes unless you background them with /bg or
← on an empty prompt.
Dispatch creates rows, not follow-ups
Each prompt entered in the agent view dispatch input starts a new background session. Follow-ups belong in peek, attach, or shell attach—not a second dispatch with the same intent.
State icons and PR labels are different signals
Row icons show working, needs input, idle, completed, failed, or stopped states.
A PR #N label at the row edge tracks pull requests the session opened and is
colored by CI/review status—not by session animation alone.
Peek vs attach
Peek (Space) shows recent output or blocking questions with quick replies.
Attach (Enter or →) replaces agent view with the full interactive session;
← on an empty prompt detaches without stopping work.
Step-by-Step Implementation Guide
Open agent view. Run
claude agentsfrom the directory that should own most dispatches, or pass--cwdto filter to one project tree.Dispatch parallel tasks. Enter one prompt per row (bug fix, review, test hunt). Use
@subagentor a leading subagent name when a custom agent should run the session.Triage blocked rows first. Sort groups put
Needs inputandReady for reviewaboveWorking. Answer permission or design questions via peek.Review PR labels. When a row shows green PR status, human-review the diff before merge; yellow means checks or review still pending.
Attach for deep work. Enter full-screen session mode for complex edits, then detach back to the fleet table.
Organize the fleet. Pin long-running monitors with
Ctrl+T, rename rows withCtrl+R, and stop or delete finished sessions withCtrl+X.Script status when needed. Run
claude agents --json --cwd ./my-appfor automation that listsworking,blocked, ordonestates without the TUI.Recover after shutdown. Failed rows after host shutdown may need
claude respawnor manual resume viaclaude --resumeper official docs.
Daily Workflow Example
# Morning: open fleet view scoped to one repo
claude agents --cwd ~/projects/my-app
# Dispatch three independent tasks (each Enter = new row)
# 1) Fix flaky test in pkg/auth
# 2) Review open dependency PR
# 3) Draft release notes from CHANGELOG
# Midday: peek blocked rows, answer permission prompts
# Space → reply → Enter
# Afternoon: attach to the auth fix for final edits
# Enter on row → work → ← to detach
# Script check before standup
claude agents --json --cwd ~/projects/my-app
Keyboard and Shell Reference
| Need | Agent view | Shell |
|---|---|---|
| Open fleet table | claude agents |
claude agents --cwd path |
| Quick status | Row icons + PR labels | claude agents --json |
| Reply without attach | Space, type, Enter |
claude logs ID |
| Full session | Enter / → |
claude attach ID |
| Stop work | Ctrl+X |
claude stop ID |
| Background current session | /bg or ← empty prompt |
claude --bg "task" |
Press ? inside agent view for the full shortcut list documented on
code.claude.com.
Troubleshooting
Too many rows across unrelated repos
Use claude agents --cwd ~/projects/my-app (v2.1.141+) to filter sessions to
one project tree.
Accidentally dispatched a follow-up as a new session
Use peek or attach on the original row; dispatch input always creates a new background session.
Row shows failed after laptop sleep or shutdown
Official docs note sessions persist through sleep but shutdown stops processes.
Use claude respawn ID or resume transcripts with claude --resume.
Deleted row removed uncommitted work
Deleting can remove Claude-created worktrees. Commit, push, or copy changes before
Ctrl+X delete confirmation.
Summaries look stale while working
Row summaries refresh at most every 15 seconds during active work plus once per turn—attach if you need live tool output.
Source Verification Notes
Verified against official Claude Code agent view documentation on 2026-06-16:
- Agent view opens with
claude agents, requires v2.1.139+, and lists background sessions with state icons, peek/attach flows, and keyboard shortcuts. - Each dispatch prompt starts a new session; sessions continue under a supervisor process without an attached terminal.
claude agents --cwd,--json,claude attach,claude logs,claude stop, andclaude respawnare documented shell companions to the TUI.- PR
#Nlabels and color states reflect GitHub pull request status separate from session working/needs-input icons.
Duplicate Check
This guide complements claude-code-desktop-parallel-sessions-workflow (Desktop
app windows and tabs) and using-worktrees-for-parallel-claude-code-sessions
(worktree isolation mechanics). The agent-view-fleet-operator-agent entry is a
reusable agent prompt, not a step-by-step guide. No existing guides entry walks
through the CLI agent view dispatch, peek, attach, and shell fleet workflow end
to end.
References
- Claude Code agent view - https://code.claude.com/docs/en/agent-view
- Claude Code sub-agents - https://code.claude.com/docs/en/sub-agents
Source citations
Add this badge to your README
Show that Agent View For Managing Multiple Claude Code Sessions is listed on HeyClaude. Paste this Markdown into your README — it renders the badge and links back to this page.
[](https://heyclau.de/entry/guides/agent-view-for-managing-multiple-claude-code-sessions)How it compares
Agent View For Managing Multiple Claude Code Sessions side by side with its closest alternative on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.
| Field | Agent View For Managing Multiple Claude Code Sessions Use Claude Code agent view (claude agents) to dispatch, monitor, peek, attach, and organize many background sessions from one terminal with state icons, PR labels, filters, and shell commands for fleet-style multitasking. Open dossier | Claude Code Desktop Parallel Sessions Workflow Run parallel Claude Code Desktop sessions safely: separate windows or tabs per workstream, branch ownership rules, notification hygiene, and handoffs between foreground and background jobs. Open dossier |
|---|---|---|
| Trust | ||
| Install risk | Review first | Review first |
| Notes | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ |
| Category | guides | guides |
| Source | source-backed | source-backed |
| Author | kiannidev | kiannidev |
| Added | 2026-06-16 | 2026-06-15 |
| Platforms | Claude Code | Claude Code |
| Source repo | — | — |
| Safety notes | ✓Background sessions run with the permission mode shown in the agent view header; review bypassPermissions and auto modes before dispatching unattended work. Deleting a session from agent view can remove Claude-created worktrees and uncommitted changes—commit or push first. Each dispatched session is a full Claude Code process; do not parallelize destructive tasks on the same checkout without isolation. | ✓Parallel desktop sessions on the same branch can race—use worktrees or separate branches. Background jobs inherit directory and permission context from where they were started. Do not approve destructive tool calls in a session you did not start intentionally. |
| Privacy notes | ✓Agent view row summaries are generated by a Haiku-class model from session activity; treat summaries as operational hints, not sanitized exports for public sharing. Sessions started under different project directories appear in the default global list unless you filter with claude agents --cwd. Peek panels and attach mode expose full transcripts that may contain proprietary code, tokens, or customer data. | ✓Desktop session titles and diffs may expose proprietary code during screen sharing. Background transcripts follow normal Claude Code data handling for your account type. Notification previews may leak ticket or branch names—configure OS privacy settings accordingly. |
| Prerequisites |
|
|
| Install | — | — |
| Config | — | — |
| Citations | ||
| Claim | Unclaimed | Unclaimed |
Signals
Loading live community signals…
A short, calm digest of reviewed Claude resources. Unsubscribe any time.