Claude Code agent view: run and manage background sessions

Claude Code agent view is one screen for all your background sessions. Open it with claude agents, dispatch tasks, read state icons and use the key shortcuts.

By the Kipt team · Updated 24 November 2026 · 8 min read

What is Claude Code agent view?

Agent view is one terminal screen that lists all your background Claude Code sessions: what is running, what needs your input and what is done. You open it with claude agents. Each background session is a full Claude Code conversation that keeps running without a terminal attached.

As of 24 November 2026, the official agent view page carries this banner: "Agent view is in research preview. The interface and keyboard shortcuts may change as the feature evolves." Treat the keys and labels below as a snapshot. The docs say to use agent view "when you have several independent tasks Claude can work on without you watching every step", and it runs sessions on your machine.

This guide covers how to open it, how to start sessions, what the icons and keys mean, how files are kept apart, and the limits you should know about before you run many sessions at once.

How do I open agent view and start my first session?

Run this in a project folder:

claude agents

Type a prompt and press Enter. Each prompt starts a new session, not a follow-up to an earlier one. The docs list these steps for a first run:

  1. Select a row with the arrow keys and press Space to open the peek panel. Type a reply and press Enter.
  2. Press Enter or the right arrow to attach to a session. Press the left arrow on an empty prompt to detach.
  3. To bring an existing conversation in, run /bg inside a session, or press the left arrow on an empty prompt. That backgrounds the session and opens agent view.

In a regular claude session the footer shows ← for agents for ten seconds after the session opens. It then shows counts such as ← 2 agents while sessions wait for you.

If you want claude with no arguments to open agent view, turn on the setting in /config:

/config defaultToAgentsView=true

After that, start a regular session by passing a prompt, for example claude "fix the login test". Claude Code asks you to accept the workspace trust dialog for the folder first. If you decline, it exits without opening agent view. If claude agents lists subagents instead of opening the screen, run claude update.

How do I run several tasks at once?

Dispatch each task from agent view, or start them from your shell with --bg. These are the shell forms from the agent view docs:

claude --bg "investigate the flaky SettingsChangeDetector test"
claude --agent code-reviewer --bg "address review comments on PR 1234"
claude --bg --name "flaky-test-fix" "investigate the flaky SettingsChangeDetector test"
claude --bg --exec 'pytest -x'

--bg cannot be combined with -p or --print. Claude Code prints a short confirmation with the session ID and the commands to follow it: claude agents, claude attach <id>, claude logs <id> and claude stop <id>.

A simple three task run looks like this. Open agent view and dispatch three separate prompts: one to investigate a failing test, one to update a README, one to review a branch. Each lands in its own row and its own worktree. Check back later and read the summaries instead of watching each terminal.

To set defaults for every session you dispatch from agent view, pass them when you open it:

claude agents --permission-mode plan --model opus --effort high

The docs also list --agent, which sets the subagent used when a dispatch prompt does not name one. Inside the dispatch input you can type /model opus before a prompt and /model sonnet before the next, so each session gets its own model. If you name a custom subagent with @name or as the first word, it runs as the main agent for that session.

Useful dispatch prefixes:

Input Effect
<agent-name> <prompt> Runs a custom subagent as the main agent
@<repo> Runs the session in that repository
/<command> Dispatches a skill or command as the prompt
! <command> Runs a shell job instead of a Claude session
#<number> or a PR or MR URL Selects the existing session working on it

To move a conversation you are already in, type /bg with an optional prompt, such as /bg run the test suite and fix any failures. /fork copies the conversation into a new background session while the original keeps running.

What do the state icons and keys mean?

Sessions are grouped by state, with pinned sessions and those that need you at the top. This is the table of states from the docs, checked 24 November 2026.

State Icon colour Meaning
Working Animated Running tools or generating a response
Needs input Yellow Waiting for an answer, a permission decision, or another prompt only you can answer
Idle Dimmed Ready for your next prompt
Completed Green Finished successfully
Failed Red Ended with an error
Stopped Grey Stopped with Ctrl+X or claude stop, ended externally, or ended while the background service was off

A #1234 label at the right edge of a row links to a pull request, and !1234 to a GitLab merge request. The terminal tab title shows a line such as 2 awaiting input · claude agents when sessions need you.

The keys worth learning first:

Key Action
↑ / ↓ Move between rows
Space Open or close the peek panel
Enter or → Attach to the session
Ctrl+T Pin or unpin
Ctrl+S Switch grouping between state and directory
Ctrl+R Rename
Ctrl+F Find by name
Ctrl+X Stop; press again within two seconds to delete
Esc Close peek, clear input, or exit
? Show all shortcuts

Permission and sandbox dialogs cannot be answered from the peek panel. Attach with the right arrow to answer them. You can also filter the list, for example s:blocked a:reviewer shows blocked sessions for the reviewer agent.

Do background sessions touch my working copy?

By default they do not. When you dispatch a session from agent view or start one with claude --bg, Claude moves it into an isolated git worktree under .claude/worktrees/ before it edits files. Parallel sessions can read the same checkout, but each writes to its own. Our Claude Code worktrees guide explains the underlying feature.

The docs name cases where Claude skips this: the session was backgrounded from an open session, it is already in a linked worktree, or it is outside a git repository without a WorktreeCreate hook. To turn isolation off for a project, put this in .claude/settings.json:

{
  "worktree": {
    "bgIsolation": "none"
  }
}

The docs also say a background session in a worktree commits and pushes its branch when the repository has a remote, and opens a draft pull request when the task calls for it. It never pushes to main or master, force-pushes or merges. Your own git instructions take precedence.

Deleting a session is not harmless. Pressing Ctrl+X twice removes the worktree Claude created, including uncommitted changes. Commit what you want to keep first. claude rm keeps the worktree if it has uncommitted changes. Transcripts stay available through claude --resume.

How do background sessions keep running?

A separate supervisor process runs them, so they continue after you close agent view or your terminal. It starts the first time you background a session or open agent view. Per the docs:

  • Idle sessions that stay unattached for about an hour are stopped to free resources. The conversation stays on disk, and pinning with Ctrl+T keeps the process running.
  • Sessions that exit unexpectedly are restarted by the supervisor.
  • Sessions survive sleep and reconnect on wake, but shutting down the machine stops running sessions.

From the shell you can manage sessions without opening the screen:

Command Purpose
claude agents --json Print sessions as JSON and exit
claude attach <id|name> Attach in this terminal
claude logs <id|name> Print recent output
claude stop <id> Stop a session
claude respawn <id> Restart a session
claude rm <id> Remove it from the list
claude daemon status Supervisor state

For the broader picture of how sessions are stored and resumed, see Claude Code sessions.

How is agent view different from subagents, agent teams and Remote Control?

The docs point to a separate page, Run agents in parallel, for a full comparison. From the agent view page itself, these differences are clear:

Feature What the agent view docs say
Agent view Several independent sessions that you dispatch and watch from one screen, on your machine
Subagents Spawned by a session and not listed as separate rows
Agent teams Teammates a session spawns also do not get rows
Cloud sessions For parallel sessions in the cloud, the page points to Projects

Remote Control is not covered on the agent view page, so this guide does not compare them. Check the official docs if you need that answer.

What are the limits and what does it cost?

The Limitations section of the docs is short, and the first point matters most:

  • Rate limits apply. Background sessions consume your subscription usage the same as interactive sessions, so running ten agents in parallel uses quota roughly ten times as fast as running one.
  • Sessions are local. They survive sleep but stop if the machine shuts down.
  • Worktrees go with the session. Commit changes before deleting a session that edited files in its own worktree.

Check Claude Code rate limits before you plan a big parallel run. On macOS, background sessions run as their own process, so you may need to grant access to Desktop, Documents or Downloads in System Settings under Privacy & Security. If .claude/worktrees/ fills up, list leftovers with git worktree list and remove each with git worktree remove <path>.

To turn the feature off, set the disableAgentView setting to true or set the CLAUDE_CODE_DISABLE_AGENT_VIEW environment variable. Administrators can enforce it through managed settings. The leftArrowOpensAgents setting turns off the left arrow shortcut in foreground sessions.

If you reuse the same dispatch prompts, such as a review checklist or a test triage brief, keep them in a prompt library like Kipt so each background session starts from the same wording.

Questions

Run claude agents in your terminal. From inside a session you can also press the left arrow key on an empty prompt, or type /bg to send the conversation to the background and open agent view. Press Esc to return to your shell.

A background session is a full Claude Code conversation that keeps running without a terminal attached, and it gets its own row in agent view. Subagents and teammates that a session spawns are not listed as separate rows.

Usually not. Before editing files, a dispatched session moves into its own git worktree under .claude/worktrees/. Sessions you background from an open session are one exception, and you can turn isolation off with worktree.bgIsolation set to none.

Set the disableAgentView setting to true, or set the CLAUDE_CODE_DISABLE_AGENT_VIEW environment variable. Administrators can enforce this through managed settings.

The docs say 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. The docs list no separate charge.

More in Claude Code

All guides

Your prompts and skills, one keystroke away.

Explore

Use it from your agent.

Save it to Kipt, in your own GitHub, then ask your agent for it by name while you work.

  • Claude Code
  • Codex
  • Cursor
  • VS Code
  • Claude
  • ChatGPT
  • Gemini CLI
  • Windsurf
  • and any MCP client
Get started