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.

Mission: Claude Code Agents View Reference: quick reference Source: official Claude Code docs

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.

Version check: Agents View is a research preview and requires Claude Code v2.1.139 or later. Run claude --version before depending on it.

The operating loop

Openclaude 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

  1. 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, use claude agents --cwd <path>.

  2. 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.
  3. 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.

  4. 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.

  5. Attach only for real steering

    Press Enter or Right Arrow to enter the full session. When you are done, press Left Arrow on an empty prompt to detach. Detaching leaves the background session running.

  6. 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 using Ctrl+X twice 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

Ask follow-up questions: Bring this lesson back to the agent if any command, shortcut, or safety rule feels fuzzy. The next useful lesson is usually either worktree safety or choosing between Agents View, subagents, and agent teams.