Claude Code's Agent View, /goal Command, and Background Sessions: A Practical Guide
By EndOfCoding
Anthropic shipped a significant Claude Code update in May 2026 that fundamentally changes how developers manage AI-assisted work: Agent View, the /goal command, and background sessions. Together, these three features move Claude Code from a single-session coding assistant to a genuine multi-agent orchestration platform. Agent View gives you a real-time visual display of all active agents and their current tasks. The /goal command lets you describe a high-level objective and have Claude Code automatically decompose it into subtasks and execute them in sequence. Background sessions let you launch agents that run independently while you work on other things โ you get notified when they complete. For most Claude Code users, the day-to-day workflow changes substantially with these features. You're no longer limited to one thing at a time. You can set a goal, let Claude Code decompose and execute it, and simultaneously work on a different feature in a separate session โ with both running in parallel. This post is a practical guide to each feature: what it does, when to use it, and how to integrate it into your vibe coding workflow for maximum leverage.
What You'll Learn
You'll understand exactly how Agent View works and how to use it to monitor and manage multiple active agents, how to write effective /goal prompts that produce well-decomposed task execution rather than one large undifferentiated implementation, how background sessions work technically and how to structure your work to take advantage of parallel execution, the practical workflows that become possible with these features that weren't possible before, and common pitfalls and how to avoid them when orchestrating multiple Claude Code agents simultaneously.
Agent View: Monitoring Your Agent Fleet
Agent View is a persistent UI panel in Claude Code that displays all active agents, their current task, and their execution status. Before Agent View, managing multiple Claude Code sessions meant switching between terminal windows and losing track of what each agent was doing.
How Agent View works:
Agent View panel shows:
โโโ Agent name/ID: auto-generated or set with /agent-name [name]
โโโ Current task: what the agent is currently executing
โโโ Status: THINKING | READING | EDITING | WAITING | DONE | ERROR
โโโ Progress: subtask completion if launched via /goal
โโโ Duration: how long the current session has been running
โโโ Last action: most recent tool call (e.g., 'Read: src/app/page.tsx')
Opening Agent View:
โโโ Keyboard shortcut: Ctrl+Shift+A (Mac: Cmd+Shift+A)
โโโ Command: /agent-view
โโโ Auto-opens when you launch a background session
Agent statuses explained:
โโโ THINKING: model is reasoning, about to make a tool call
โโโ READING: agent is reading files (Glob, Grep, Read tool calls)
โโโ EDITING: agent is writing or editing files
โโโ WAITING: agent hit a checkpoint and is waiting for your input
โโโ DONE: agent completed its task successfully
โโโ ERROR: agent encountered an unrecoverable error (needs attention)
When an agent reaches WAITING or ERROR:
โโโ Agent View highlights it with a notification badge
โโโ You can click into the agent to see the context
โโโ Provide input or guidance and the agent resumes
โโโ Error agents show the specific error and suggested resolution
Practical use of Agent View:
Scenario: You have 3 agents running simultaneously
โโโ Agent 'auth': Implementing Supabase authentication (EDITING)
โโโ Agent 'tests': Writing acceptance tests for auth (READING)
โโโ Agent 'docs': Generating API documentation (DONE)
Your workflow:
โโโ Glance at Agent View โ 'auth' is editing, 'tests' is reading, 'docs' is done
โโโ Review 'docs' output while 'auth' and 'tests' are still running
โโโ When 'auth' hits WAITING (needs your input on RLS policy decision),
โ Agent View notifies you, you provide guidance, agent resumes
โโโ When 'tests' completes, Agent View shows DONE โ review and merge
Time saved: ~2-3 hours vs. sequential execution of the same 3 tasks
The /goal Command: High-Level Task Decomposition
The /goal command is the biggest workflow change in this update. Instead of prompting Claude Code with a specific implementation task, you describe a high-level engineering objective and Claude Code decomposes it into an ordered execution plan.
Syntax:
/goal [high-level objective]
Example:
/goal Add a comment system to the blog. Users can post comments,
reply to other comments, and upvote. Use Supabase. Include
RLS policies, TypeScript types, and component tests.
What Claude Code does with /goal:
1. Analyzes the objective against the current codebase
2. Generates a decomposed task list:
Task 1: Create Supabase migration for comments table + RLS policies
Task 2: Generate TypeScript types from Supabase schema
Task 3: Build CommentList, CommentItem, CommentForm components
Task 4: Implement upvote API route with rate limiting
Task 5: Wire components into blog post pages
Task 6: Write component tests for CommentList and CommentForm
3. Confirms the task list with you before executing
4. Executes tasks in sequence, surfacing blockers for your input
5. Reports completion with a summary of what was built
Writing effective /goal prompts:
Weak /goal prompt (underspecified):
/goal Add authentication
Result: Agent makes assumptions about:
โโโ Which auth provider to use
โโโ Which routes to protect
โโโ Whether to use sessions or JWTs
โโโ How to handle auth errors
Strong /goal prompt (well-specified):
/goal Add Supabase authentication to this Next.js app.
Requirements:
- Email/password login and Google OAuth
- Protected routes: /dashboard, /profile, /settings
- Redirect to /login if not authenticated
- Redirect to /dashboard after login
- Session persists across browser refresh
- Display user email in the header when logged in
Do NOT modify the existing API routes or database schema.
Result: Agent decomposes accurately:
โโโ Task 1: Configure Supabase auth providers (email + Google)
โโโ Task 2: Build login page and auth forms
โโโ Task 3: Add auth middleware for protected routes
โโโ Task 4: Update header component to show user email
โโโ Task 5: Test each auth flow end-to-end
Key elements of a strong /goal prompt:
โโโ Clear objective (what, not how)
โโโ Explicit constraints (what NOT to do)
โโโ Success criteria (what does 'done' look like?)
โโโ Technology choices specified (Supabase, not 'some auth provider')
โโโ Scope boundaries (which files/features to include or exclude)
Background Sessions: Agents That Run While You Work
Background sessions let you launch a Claude Code agent that executes independently while you continue working in your primary session. The agent runs in the background, uses the same file system, and notifies you when it completes or needs input.
Launching a background session:
Method 1: Explicit background flag
/goal --background Refactor the src/utils/ directory to use
TypeScript strict mode throughout. Fix all type errors. Don't
change any function signatures.
Method 2: Background command on existing prompt
> Write unit tests for all functions in src/utils/
/background (runs current prompt as background agent)
Method 3: Background from Agent View
โโโ Click 'New Background Agent' in Agent View panel
โโโ Enter the task description
โโโ Agent launches and appears in Agent View as THINKING
What happens during background execution:
โโโ Agent runs using Claude Opus 4.7 (same model as foreground)
โโโ Agent reads, analyzes, and edits files on your local file system
โโโ Changes are made directly to your working directory
โโโ If agent needs input, it sends a notification and enters WAITING
โโโ When done, notification appears: 'Agent [name] completed: [summary]'
โโโ You review the changes like a code review, accept or request revision
Important: background agents share your file system
โโโ Two agents editing the same file simultaneously = conflicts
โโโ Best practice: assign non-overlapping file scopes to each agent
โ Agent 1: src/components/ only
โ Agent 2: src/app/api/ only
โ Agent 3: src/utils/ only
โโโ Agent View shows which files each agent is currently editing
to help you avoid conflicts
Practical Workflow: Combining All Three Features
Here's how the three features work together in a real development session:
Scenario: Building a notification system for your app
Step 1: Set the primary goal
/goal Add a notification system. Users receive in-app notifications
for: new comments on their posts, replies to their comments, and
weekly digest. Notifications persist in Supabase. Mark as read
functionality. Notification bell in header with unread count badge.
Claude Code decomposes into 6 tasks. You review and approve.
Step 2: Launch parallel background agents
While the main agent (foreground) works on Supabase schema + RLS:
/goal --background Write the notification bell component
and mark-as-read UI. Use the Notification type from
src/types/notifications.ts (agent 1 will create this file).
Poll for updates every 30 seconds.
/goal --background Write acceptance tests for the notification
system. Test: unread count increments on new notification,
mark as read updates count, weekly digest sends at correct time.
Step 3: Monitor in Agent View
โโโ Foreground agent: EDITING (creating Supabase migration)
โโโ Background agent 1: READING (found types file, building component)
โโโ Background agent 2: THINKING (designing test structure)
Step 4: Handle the WAITING state
Foreground agent hits WAITING:
'Should weekly digest notifications be stored in the same
table as real-time notifications or a separate audit log table?'
You provide guidance: 'Same table, add a type column:
real-time | digest'
Agent resumes.
Step 5: Review completed agents
โโโ Background agent 2 (tests) completes first: DONE
โ Review: tests look comprehensive, merge to working branch
โโโ Foreground agent completes: DONE
โ Review: migration + types + API routes, all correct
โโโ Background agent 1 (component) completes: DONE
Review: component works, but uses wrong polling interval
Request revision: 'Change polling to 60s, not 30s'
Agent revises and marks DONE
Total wall-clock time: ~90 minutes
Sequential execution would have taken: ~4 hours
Setting Up for Background Sessions
Prerequisites:
โโโ Claude Code version 1.8+ (includes Agent View and /goal)
โ Update: npm update -g @anthropic-ai/claude-code
โโโ Active Claude Pro or Max subscription (background sessions
โ use Opus 4.7 and count toward your monthly usage)
โโโ CLAUDE.md configured with your project context
(background agents rely heavily on CLAUDE.md since they
can't ask clarifying questions as easily)
Recommended CLAUDE.md additions for multi-agent work:
---
# Agent execution context
## File scope
- This agent should only edit files in [YOUR_SCOPE]
- Do not edit files outside this scope without explicit permission
## Completion criteria
- Task is complete when: [YOUR_CRITERIA]
- If blocked on a decision, WAIT for input rather than guessing
- Always verify TypeScript compiles before marking complete
## Conflict avoidance
- Before editing a file, check if it appears in Agent View
as being edited by another agent
- If conflict detected, WAIT and report the conflict
---
Common Challenges
'Background agents keep editing the wrong files.' โ This is the most common issue when starting with background sessions. The fix is explicit scope boundaries in your /goal prompt and in CLAUDE.md. Add 'Only edit files in src/components/ โ do not touch any other directories' to every background agent prompt. Agent View shows which files each agent is editing; check it when you notice unexpected changes. 'The /goal decomposition doesn't match what I wanted.' โ This usually means your /goal prompt was underspecified. Review the decomposition before approving it: if a task is too broad ('implement the backend') or too narrow ('add a single validation check'), refine the /goal prompt and regenerate. It takes 2-3 tries to write /goal prompts that consistently produce good decompositions. 'Background sessions use too much of my API quota.' โ Background agents running Opus 4.7 are expensive on long tasks. For lower-stakes background work, use /model claude-sonnet-4-6 before launching the background session. Sonnet 4.6 is 3-4x cheaper and performs well on well-specified implementation tasks. 'Agent View shows ERROR โ what do I do?' โ Click into the errored agent to see the full error context. Most errors fall into three categories: (1) file not found โ the agent referenced a file that doesn't exist yet; (2) TypeScript error โ the agent's output doesn't compile; (3) tool timeout โ a network or filesystem operation took too long. In most cases, provide context and the agent recovers. If it can't, start a new session with what you learned from the error.
Advanced Tips
Name your agents for easier management. Use /agent-name [name] at the start of each session โ 'auth', 'tests', 'components'. Agent View becomes much more readable when you know which agent is doing what without reading the task description. Pre-write your CLAUDE.md agent sections before launching parallel agents. The more complete your CLAUDE.md is, the less often background agents will hit WAITING states requiring your input. A background agent that runs to completion without intervention is the goal. Use background sessions for tasks with clear, verifiable output. Background agents work best on tasks where 'done' is objectively measurable โ tests pass, TypeScript compiles, a specific file exists with specific content. They're less reliable on tasks that require aesthetic judgment ('make the UI look better') because there's no objective completion criterion. Chain goals for complex multi-phase projects. Use /goal for Phase 1, review the output, then use /goal again for Phase 2. Don't try to express a 3-day project as a single /goal โ the decomposition becomes too complex and agents make more mistakes. Treat /goal as a sprint planning tool: each goal is one sprint's worth of work, well-specified and bounded. The Vibe Coding Academy Module 11 (Multi-Agent Development) includes hands-on exercises for all three features โ Agent View, /goal, and background sessions. Complete walkthroughs from setup to parallel agent orchestration. Stay current on Claude Code updates at EndOfCoding โ we publish practical guides with every major Claude Code release. Reference workflows and prompt templates are in the Vibe Coding Ebook Chapter 5 (Tool Landscape), updated to reflect the May 2026 Claude Code release.
Conclusion
Agent View, /goal, and background sessions collectively represent the most significant Claude Code update since the product launched. Together they transform Claude Code from a smart single-session assistant into a lightweight multi-agent orchestration platform that any individual developer can use without infrastructure setup or additional tooling. The practical impact is immediate: tasks that used to take 4 hours now take 90 minutes when you can run 3 agents in parallel. The /goal command removes the overhead of breaking down complex features into prompts โ you describe the outcome, Claude Code handles the decomposition. And background sessions finally let you use the time AI agents are working on something, rather than waiting for them to finish. The learning curve is real โ effective multi-agent orchestration requires better specs, clearer scope boundaries, and more systematic verification than single-session vibe coding. But the payoff is proportional. The Vibe Coding Academy Advanced Track is updated with hands-on exercises for all three features. For ongoing Claude Code coverage and vibe coding technique updates, follow EndOfCoding.
SECOND OPINION ยท FREE
Shipping something an agent wrote?
Paste the session with your agent โ or the code it wrote โ and get what it claimed against what it actually showed, plus the questions that make it prove the rest. About twenty seconds, no account needed.
Check my code