Lesson 0001
Use Agents View as a work queue
Agents View is for running several independent Claude Code sessions in the background, seeing which ones need you, and stepping into a full conversation only when that is worth your attention.
The one idea
Treat Agents View like a task board for local background sessions. You dispatch independent tasks from the input, watch rows grouped by state, use Space to peek or reply, and use Enter only when you need the whole transcript. The official docs describe Agents View as one screen for background sessions: what is running, what needs input, and what is done.
claude --version before depending on it.
The operating loop
claude agents
DispatchType a task, press Enter
MonitorRead row state and summary
PeekSpace for recent output
AttachEnter for full session
DetachLeft Arrow on empty prompt
The main trap is thinking the bottom input is a follow-up box. It is not. A prompt entered there starts a new background session. To continue an existing task, select its row and peek or attach.
Your first run
-
Open from the right directory
In the project you want the session to see, run
claude agents. To scope the list to one project on supported versions, useclaude agents --cwd <path>. -
Dispatch a low-risk task
Type a task and press
Enter. For a first drill, use a read-only prompt:Summarize the current repo structure and tell me which commands look safe to run. Do not edit files. -
Watch the row, not the transcript
Rows are grouped so input-needed and review-ready sessions are easier to find. A row can be working, waiting for input, idle, completed, failed, or stopped. The summary tells you what changed recently.
-
Peek before attaching
Select the row and press
Space. The peek panel is usually enough: it shows recent output, questions, and pull request information. If the session asks a simple question, reply there. -
Attach only for real steering
Press
EnterorRight Arrowto enter the full session. When you are done, pressLeft Arrowon an empty prompt to detach. Detaching leaves the background session running. -
Preserve results before deleting
If a session edited files, Claude may have isolated those edits in a git worktree under
.claude/worktrees/. Commit, push, merge, or recover work you want before usingCtrl+Xtwice to delete a session.
Decision table
| Situation | Move |
|---|---|
| You need the newest output or a short answer is needed. | Press Space to peek and reply. |
| You need full context or normal Claude Code commands. | Press Enter or Right Arrow to attach. |
| You want another independent task started. | Type a new prompt in the bottom input. |
| You want to continue an existing task. | Select its row, then peek or attach. |
| You want a background task from your shell. | Run claude --bg "your task". |
| You want a background shell command with no model call. | Use ! in Agents View or claude --bg --exec 'command'. |
Practice: retrieve the essentials
Type the command or shortcut from memory, then check. This is deliberately small: durable recall matters more than rereading.
Primary source
- Read or skim the official page next: Manage multiple agents with agent view. Focus on Quick start, Monitor sessions, Dispatch new agents, Manage sessions from the shell, and Limitations.