← Reddit

Claude Code /goal Feedback

Reddit · isarmstrong · May 15, 2026
A user provided feedback on Claude Code's /goal feature, praising it as a helpful guardrail for agentic coding but requesting it work more like a mini plan with delayed execution. The feature's 4000-character limit and immediate execution conflict with the user's practice of including detailed XML prompts, requiring an awkward workaround of pasting content followed by an escape keystroke to submit both elements together. The user requested this workflow be simplified in the next release.

Detailed Analysis

A user on Reddit's r/Anthropic community has published structured feedback regarding the `/goal` feature recently introduced in Claude Code, Anthropic's agentic coding tool. The post, addressed directly to Anthropic, acknowledges the feature as a meaningful step forward in guiding agentic behavior while identifying a specific interaction design flaw that complicates usage for power users. The core issue centers on two constraints working in tension: the `/goal` command accepts a maximum of 4,000 characters and immediately triggers execution upon submission, which prevents users from pairing the goal with separately structured XML prompts in a clean, single workflow.

The user describes a cumbersome workaround that has become necessary to reconcile the `/goal` feature with Anthropic's own recommended prompting best practices. Because Anthropic's documentation strongly emphasizes XML-formatted prompts as a best practice for structured, high-quality outputs, experienced users routinely construct detailed XML prompt architectures for their agentic workflows. To combine both a goal and an XML prompt, the user must enter the goal text, hit enter, immediately paste the XML, and then hit the Escape key — a sequence that exploits a side effect of the ESC key behavior (canceling execution and returning to text entry) to bundle both inputs together before Claude acts. The user colorfully characterizes this sequence as a "Konami code for agentic workloads," invoking the iconic video game cheat code as a metaphor for an unnecessarily arcane multi-step interaction.

The feedback highlights a meaningful tension in the design of agentic AI tools: the drive toward frictionless, fast execution can conflict with the need for precise, structured user control. The `/goal` feature appears designed to give Claude a persistent north star during long agentic sessions — a guardrail against what the user calls "freelancing," meaning unsanctioned autonomous decision-making by the model. That function is genuinely valued by the user. The problem is that immediacy of execution, while intuitive in simple use cases, becomes a liability when users need to layer additional structured context on top of the goal before any action is taken.

This issue connects to a broader challenge in the agentic AI development space: designing interfaces that serve both casual and power users without forcing the latter into workarounds. As AI coding assistants move from simple code completion toward multi-step autonomous task execution, the prompting interface becomes increasingly critical infrastructure. XML-structured prompting, which Anthropic itself promotes as a best practice for its models, represents a more deliberate and precise mode of human-AI communication — one that assumes the user wants to be thorough before execution begins, not after. A feature like `/goal` that bypasses that deliberateness by immediately entering an execution loop is architecturally misaligned with that philosophy.

The user's suggested resolution is implicit but clear: introduce a staging or planning phase between goal submission and execution, during which additional structured input — such as XML prompts — can be incorporated before Claude takes any action. This would transform `/goal` from a simple directive mechanism into something closer to a mini planning contract between user and model. The request reflects a maturing user base that is developing sophisticated, repeatable prompt engineering workflows and expects the tooling to accommodate that sophistication rather than route around it.

Read original article →