claude-code - 💡(How to fix) Fix [DOCS] `/goal` docs do not explain evaluator waits for background shells or delegated subagents

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Root Cause

That missing detail matters because changelog v2.1.143 says:

RAW_BUFFERClick to expand / collapse

Documentation Type

Missing documentation (feature not documented)

Documentation Location

https://code.claude.com/docs/en/goal

Section/Topic

How evaluation works and the turn-completion semantics for /goal

Current Documentation

The docs currently say:

The /goal command sets a completion condition and Claude keeps working toward it without you prompting each step. After each turn, a small fast model checks whether the condition holds. If not, Claude starts another turn instead of returning control to you. The goal clears automatically once the condition is met.

And later:

/goal is a wrapper around a session-scoped prompt-based Stop hook. Each time Claude finishes a turn, the condition and the conversation so far are sent to your configured small fast model, which defaults to Haiku.

Related docs also say:

Background subagents run concurrently while you continue working.

What's Wrong or Missing?

The /goal page explains that evaluation happens after each turn, but it does not define whether a turn is considered finished while Claude still has in-flight background shell commands or delegated subagents.

That missing detail matters because changelog v2.1.143 says:

Fixed /goal evaluator firing while background shells or delegated subagents are still running

So the actual behavior is more specific than the current docs imply: /goal should wait for outstanding delegated/background work to finish before the evaluator checks whether the condition is met.

Without that clarification, users cannot tell whether /goal may evaluate success too early, whether background shells and delegated subagents count as part of the active turn, or whether they need to avoid those workflows when using /goal.

Suggested Improvement

Add a short note under How evaluation works that makes the turn boundary explicit. For example:

/goal evaluates only after the turn is actually complete. If Claude still has a background shell command or delegated subagent running, the evaluator waits for that work to finish before checking the goal condition.

Also consider adding one sentence near the command overview clarifying that long-running delegated/background work can delay goal evaluation until it completes or is stopped.

Impact

Medium - Makes feature difficult to understand

Additional Context

Affected Pages:

PageLine(s)Context
https://code.claude.com/docs/en/goal13, 61, 125Defines /goal evaluation as happening after "each turn" / when Claude "finishes a turn", but does not explain how outstanding background shells or delegated subagents affect that boundary
https://code.claude.com/docs/en/commands71/goal summary says Claude keeps working across turns until the condition is met, with no note about delegated/background work
https://code.claude.com/docs/en/sub-agents669-674Explains that background subagents run concurrently, which makes the /goal turn boundary ambiguous when delegated work is still active

Total scope: 3 pages affected

Version context: Changelog v2.1.143 says: Fixed /goal evaluator firing while background shells or delegated subagents are still running

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [DOCS] `/goal` docs do not explain evaluator waits for background shells or delegated subagents