All articles

Claude Code session manager: track every agent and session

Claude Code has a built-in session manager: agent view (claude agents). How to list, name, peek and attach to sessions, plus tmux and desktop options.

A Claude Code session manager is one screen that lists every session you have running, shows which ones need your input or are finished, and lets you jump into any of them. As of November 2026, Claude Code ships its own: agent view, opened with claude agents (a research preview). If you also run Codex or OpenCode, or work across several repositories every day, a tmux-based tool or a desktop app covers what agent view does not.

VibeiDEAll your agents. One Grid.Battery friendly, no 3D. 14 days free, no card.Download

What does a Claude Code session manager do?

It answers three questions without making you click through terminal tabs: what is running, what is waiting on me, and what is done. A good one also keeps each session's work apart, so two agents never edit the same files at once.

NeedWhy it matters
One list of sessionsNo more hunting through tabs to find the one that asked a question
State per sessionWorking, needs input, done and failed at a glance
Names"flaky-test-fix" is easier to find than a session ID
IsolationEach session in its own git worktree or branch
NotificationsYou hear about a finished or blocked session without watching it
Attach and detachJump into the full conversation, then leave it running

Option 1: agent view, the built-in session manager

Agent view is a single terminal screen that lists all your background Claude Code sessions. Each background session is a full Claude Code conversation that keeps running without a terminal attached, on your own machine. Open it with:

claude agents
claude agents --cwd ~/projects/my-app    # only sessions started in that directory
claude agents --json                     # print active sessions as JSON and exit
A shell runs claude --bg with a task prompt, then claude agents lists three background sessions: fix-flaky-test running, update-readme needs input, bump-deps done. A note says each session uses your subscription quota on its own.
claude --bg queues a whole task as a background session; claude agents shows which are running, waiting for you or done.

Sessions are grouped as Pinned, Ready for review, Needs input, Working and Completed (Completed includes finished, failed and stopped sessions). Names are generated from your prompt, and you can change them with Ctrl+R or /rename. Each row carries a short summary of what the session is doing.

Start named sessions from the shell

You do not need to open the view to start work. --bg dispatches a background session and returns your prompt:

claude --bg --name "flaky-test-fix" "investigate the flaky SettingsChangeDetector test"
claude --agent code-reviewer --bg "address review comments on PR 1234"
claude --resume <session-id> --bg "pick up where you left off"

--bg cannot be combined with -p or --print. You can also send the session you are in to the background with /bg, or press ← on an empty prompt.

Left: two Claude Code sessions writing to the same src/app.ts file collide. Right: one shared .git history with three worktrees, each on its own branch with its own session.
Two sessions in one checkout collide. One worktree per session gives each its own files and branch.

Before a background session edits files, Claude Code moves it into its own git worktree under .claude/worktrees/, so parallel sessions do not overwrite each other. Commit before you delete a session that edited files: deleting it in agent view also deletes the worktree Claude created.

The keys and commands you use daily

Key or commandWhat it does
↑ / ↓Move between sessions
SpacePeek at the latest output or the question it is waiting on
Enter or →Attach to the full conversation
← on an empty promptDetach (the session keeps running)
Ctrl+RRename
Ctrl+SGroup by state or by directory
Ctrl+XStop; press again within two seconds to delete
claude attach <id or name>Attach from any terminal
claude logs <id or name>Print recent output
claude stop <id>Stop a session

While agent view is open, Claude Code sends a notification through your terminal notification channel when a background session needs input, finishes or fails. The terminal tab title also shows how many sessions are waiting on you. For the notification setup itself, see Claude Code notifications.

Limits to know

Agent view is a research preview, so keys and behavior can change between versions; check the agent view documentation for your version. Every background session uses your subscription the same way an interactive one does: ten sessions in parallel use quota roughly ten times as fast. Sessions run locally and stop if the machine shuts down. If you plan a busy week, read how the Claude Code weekly limit works first.

Option 2: tmux and Claude Squad

If you want one terminal manager for several agent CLIs, Claude Squad is an open source terminal app (AGPL-3.0) that manages Claude Code, Codex, Gemini, Aider and other agents in separate workspaces. It gives each agent its own tmux session and uses git worktrees so each session works on its own branch. It needs tmux and the GitHub CLI (gh).

brew install claude-squad

Inside it, n starts a session, N starts one with a prompt, ↵ attaches, ctrl-q detaches, tab switches between preview and diff, and s commits and pushes. It suits people who live in the terminal and are happy with tmux.

Option 3: a desktop app across projects and CLIs

Agent view manages Claude Code sessions on one machine. When your day spans several repositories and more than one agent CLI, the hard part is remembering what you asked in which project, and reviewing each result before it counts as done.

Claude Code, Codex and OpenCode each work in their own Git worktree folder (app-auth, app-api, app-docs) at the same time, and each branch merges back into main when its work is done.
One worktree per agent: each agent edits its own folder and branch, and you merge each branch into main after review.

VibeiDE is a desktop app for macOS, Windows and Linux that coordinates the Codex, Claude Code and OpenCode CLIs you already installed. Codex and Claude Code run in embedded terminals that show the original CLI. Each project has its own task queue: waiting prompts can be edited or reordered, and a task starts when its provider has a free slot. The "New worktree per task" branch mode gives each task its own git worktree and branch, finished tasks wait in Ready for review (an unread completion state, not an approval), and each task keeps its saved provider conversation for follow-ups. A 14-day trial starts at first sign-in without a card. See VibeiDE for Claude Code.

Which session manager fits which setup?

Facts as of November 2026, from each project's own documentation.

ToolAgentsIsolationInterfaceBest for
Claude Code agent viewClaude CodeWorktree per background sessionTerminal (claude agents)Claude Code users on one machine
Claude SquadClaude Code, Codex, Gemini, Aider and moretmux session plus git worktreeTerminal (tmux)Terminal users mixing agents
VibeiDEClaude Code, Codex, OpenCodeOptional worktree per taskDesktop appSeveral projects, queued tasks, review step

For a wider list of tools checked one by one, see the best tools to run multiple AI coding agents in parallel.

How to keep track of tasks across many sessions

Whatever tool you use, the same habits keep a dozen sessions readable:

  1. One task per session. A session that fixes a bug and then refactors a module is hard to review. Start a fresh one for the second job.
  2. Name every session. Use --name or /rename with the task, not the repo: "fix-login-redirect" beats "api-2".
  3. Give each session its own worktree. Agent view does it for you; elsewhere use claude --worktree (see Claude Code worktree) or plain git worktree add.
  4. Queue instead of interrupting. Type the next message while Claude works, or line up whole tasks. The Claude Code queue guide shows both.
  5. Review before closing. Treat "finished" as "ready to read", read the diff, then close it.
  6. Resume, do not restart. claude --continue and claude --resume bring back the saved conversation; see continue vs resume.

FAQ

Does Claude Code have a built-in session manager?

Yes. Agent view (claude agents) lists every background session, groups them by state and lets you peek, reply, attach, rename and stop them. It is a research preview as of November 2026.

How do I see all my Claude Code sessions?

Run claude agents for the interactive list, or claude agents --json to print active sessions as JSON. Add --all to the JSON command to include completed background sessions.

Can I get a notification when a Claude Code session is done?

Yes. While agent view is open, Claude Code notifies you through your terminal notification channel when a background session needs input, finishes or fails, and the Notification hook fires for those events.

Do parallel sessions share my usage limit?

Yes. Each background session uses your subscription the same as an interactive one, so several sessions drain the same allowance faster.

Takeaways

  • Claude Code's own session manager is agent view: claude agents to see everything, claude --bg --name to start named sessions.
  • Each background session gets its own worktree, and notifications tell you when one needs you.
  • Claude Squad adds tmux-based management across several agent CLIs.
  • For several projects and agents with a review step, a per-project queue such as parallel AI coding agents in VibeiDE keeps track of what was asked where.

Share this article

Post on XShare on LinkedIn

Related articles

Necessary cookies support sign-in, security, your language and this choice. Optional categories stay off until accepted.

First-party page views and acquisition measurement, plus Google Analytics 4 (Google Ireland, data may reach the US). Advertising personalization stays off.

With Analytics enabled, retain Google, Microsoft and Reddit ad click identifiers and share download, signup, activation and purchase conversions with the relevant ad provider. No personalized advertising.

Privacy · Cookie inventory