Skip to content
gentic.news — AI News Intelligence Platform
Connecting to the Living Graph…

Listen to today's AI briefing

Daily podcast — 5 min, AI-narrated summary of top stories

Developer terminal showing Claude Code /goal command with Haiku evaluator, Agent View interface for automated…
Products & LaunchesBreakthroughScore: 90

Claude Code /goal Uses Haiku Evaluator, Runs Unattended Until Condition Met

Claude Code /goal runs unattended until a condition is met, using Haiku evaluator. Agent View manages multiple background sessions. Requires v2.1.139.

·20h ago·3 min read··3 views·AI-Generated·Report error
Share:
Source: dev.tovia devto_claudecode, hn_claude_codeSingle Source
How does Claude Code's /goal command work?

Claude Code's /goal command runs unattended until a user-defined condition is met, checked each turn by a Haiku evaluator model that reads only session text. Agent View manages multiple background sessions. Requires v2.1.139.

TL;DR

/goal runs until a condition is met · Evaluator is Haiku, reads only session text · Agent View manages multiple background sessions

Claude Code's May 2026 update introduced /goal and Agent View for unattended multi-session workflows. The /goal evaluator uses Haiku by default, reading only session text to check completion.

Key facts

  • Requires Claude Code v2.1.139 or later
  • Evaluator is Haiku model by default
  • Condition limit: 4,000 characters
  • Agent View lists Running, Blocked, Done sessions
  • Agent View on Pro, Max, Team, Enterprise, API

Claude Code's May 2026 update added two features for running the terminal-based coding agent without constant supervision: the /goal command and Agent View. They are separate but complementary, enabling unattended multi-session workflows. [According to the source]

How /goal works

Users write a single completion condition — for example, /goal all tests in test/auth pass and the lint step is clean. After each turn, instead of stopping, Claude Code asks a separate evaluator model whether the condition is true. If no, it takes another turn using the reason as guidance. If yes, the goal clears and the terminal returns. Requires v2.1.139 or later. [Per the source]

The detail most posts skip: the evaluator is a small fast model (Haiku by default). It does not run commands or open files. It only judges the text already in the session. So the condition must be something Claude can prove by what it prints. "All tests in test/auth pass" works because test output lands in the transcript. "The code is good" never will. [Source]

A well-formed condition has one measurable end state, a stated check (how Claude proves it), and constraints that must not change. It can be up to 4,000 characters. The source advises adding a clause like "or stop after 20 turns" to prevent runaway token consumption.

Comparison to other modes

  • /goal: next turn after previous finishes; stops when a model confirms the condition.
  • /loop: next turn on a time interval.
  • Stop hook: your own script decides. /goal is actually a thin wrapper over a session-scoped Stop hook.
  • Auto mode: removes per-tool approvals inside a turn. Auto mode plus /goal means turns run unattended and keep coming until done. [Per the source]

Cover image for Claude Code /goal and Agent View, explained

Agent View

Agent View is one CLI screen listing all sessions: status, last response, when last touched. Open it with the left arrow from any session, or by running claude agents. Statuses are Running, Blocked (needs user input), and Done. Peek at a session, answer inline if blocked, press Enter to attach fully. [Source]

Background sessions connect the two: /bg sends the current session to the background, and claude --bg [task] starts one already detached. Start a few goals with turn limits, background them, watch the fleet in Agent View, and step in only on Blocked or Done. Agent View is a research preview on Pro, Max, Team, Enterprise, and Claude API plans. [Per the source]

The unique take: Claude Code is moving from a single-session tool to a multi-agent orchestrator. The Haiku evaluator is a cheap gatekeeper — it doesn't execute code, just reads output. This means /goal is only as reliable as the session transcript's signal. The architectural bet is that terminal output is sufficient ground truth for task completion, which works for deterministic tasks (tests passing) but fails for subjective goals (code quality).

What to watch

Watch for Anthropic to expand Agent View beyond research preview to all plans, and whether /goal adoption drives token consumption spikes in Pro/Max plan limits. Also watch for Haiku evaluator to be swapped for a cheaper model as Anthropic scales multi-session usage.


Source: gentic.news · · author= · citation.json

AI-assisted reporting. Generated by gentic.news from multiple verified sources, fact-checked against the Living Graph of 4,300+ entities. Edited by Ala SMITH.

Following this story?

Get a weekly digest with AI predictions, trends, and analysis — free.

AI Analysis

This is a meaningful architectural shift for Claude Code, moving from a single-session interactive tool to a multi-agent orchestrator. The key design decision is the Haiku evaluator — a cheap model that only reads session text, never executing code itself. This makes /goal reliable for deterministic tasks (tests passing, lint clean) but fundamentally unsuitable for subjective goals (code quality, design decisions). The trade-off is deliberate: Anthropic chose reliability over capability. The 4,000-character condition limit and the advice to add turn limits suggest Anthropic is aware of the risk of runaway token consumption. Agent View as a research preview on higher-tier plans indicates this is a premium feature, likely to drive plan upgrades. The comparison to /loop and Stop hooks shows Anthropic is building a layered autonomy system, not a single solution. The 80x user growth [reported May 17] may be driving the need for unattended operation.

Mentioned in this article

Enjoyed this article?
Share:

AI Toolslive

Five one-click lenses on this article. Cached for 24h.

Pick a tool above to generate an instant lens on this article.

Related Articles

From the lab

The framework underneath this story

Every article on this site sits on top of one engine and one framework — both built by the lab.

More in Products & Launches

View all