← Reddit

How to keep /goal and /loop going ?

Reddit · SuperPoobman · June 13, 2026
Claude (opus 4.8) becomes stuck during extended goal assignments when the model declares it will wait for specific conditions, and remains unresponsive even with workarounds like scheduled wake functions or background sleep processes. The interruption prevents sustained execution of goal-driven task loops.

Detailed Analysis

The Reddit post surfaces a recurring friction point for users attempting to run Claude in extended autonomous or agentic modes using the `/goal` and `/loop` commands. The user describes assigning Claude Opus a long-horizon task — training a neural network — only to find that the model eventually reaches a pause state, emitting phrases like "now I'll wait for X," and fails to resume. Even when the model invokes a mechanism like `ScheduledWake`, that wake event never fires, leaving the task permanently stalled. Workarounds such as spawning a background `sleep 600` process to force periodic re-engagement also ultimately fail to sustain continuity.

This issue reveals a fundamental architectural tension in deploying large language models as persistent agents. Claude, like most transformer-based models, operates statelessly across inference calls — it does not maintain an internal clock, cannot self-initiate new inference runs, and has no native mechanism for autonomous re-awakening between turns. When a model "decides" to wait for an external event, it is expressing an intent within a single response, but the infrastructure required to honor that intent — persistent process management, scheduled callbacks, event listeners — must be implemented at the application or orchestration layer, not inside the model itself. The model has no ability to actually schedule its own future execution.

The broader context here is the rapidly evolving landscape of agentic AI frameworks. Tools like the Claude Agent SDK, Anthropic's Model Context Protocol (MCP), and third-party orchestration layers such as LangChain or AutoGen exist precisely to bridge this gap. These systems externalize the state management, scheduling, and re-prompting logic that the model cannot handle natively, essentially wrapping the stateless model in a stateful execution environment. The `/goal` and `/loop` commands in Claude.ai represent early, consumer-facing attempts to expose agentic capability without requiring users to build this infrastructure themselves — but they remain limited by the same underlying constraints.

The user's experience reflects a broader industry challenge: the gap between what agentic AI promises and what current infrastructure reliably delivers. Long-horizon tasks involving real compute work — like training a neural network — introduce unpredictable latency, external dependencies, and multi-step feedback loops that stress-test agentic frameworks far more than simple retrieval or summarization tasks. The model's tendency to anthropomorphize waiting ("I'll wait for X") creates a false expectation of continuity that the underlying system cannot fulfill. Until persistent agent runtimes with reliable event-driven re-invocation become standard and robust, users pushing Claude into deep agentic workflows will continue to encounter this class of failure.

This post ultimately illustrates why the most sophisticated deployments of Claude in production environments rely on purpose-built orchestration rather than built-in loop primitives. Reliable long-running agent behavior requires external watchdog processes, explicit continuation prompts triggered by real timers or event signals, and careful state serialization so the model can be re-initialized with full context after each inference call. Anthropic's ongoing development of the Agent SDK and MCP tooling suggests the company is aware of this gap and is working to close it at the platform level, but the user-facing `/goal` and `/loop` abstractions are not yet mature enough to handle the complexity of compute-intensive, dependency-laden tasks without significant manual scaffolding.

Read original article →