Why developers are moving from Prompt Engineering to Goal Engineering?
Goal Engineering instead of Prompt Engineering: how Claude works, automating iterations, verifying results, defining the end goal, and the importance of external validation

You ask a model to write code, run tests, find an error, go back to the chat, ask it to fix the problem, and repeat this cycle over and over. This is exactly where Goal Engineering begins. Its goal isn't to teach the model to provide better answers, but to remove the human from most of those intermediate iterations.
What does /goal do
The core idea behind the /goal team is very simple. Instead of telling a model exactly what to do right now, you describe the state in which a task is considered complete. From there, Claude decides which actions are necessary, verifies the results itself, and continues working until the goal is achieved.
This is fundamentally different from a standard prompt. A typical query always ends with the model's first response, after which control reverts to the user. In /goal mode, every iteration automatically becomes the start of the next. The agent evaluates its own output, determines what tasks remain, and continues working without needing new instructions.
Why the Goal Matters More Than the Prompt Itself
Most users make the same mistake: they describe an action instead of a result. Phrasings like "write a good review," "update the documentation," or "perform a refactor" make sense to a human, but they are useless for a model. Claude doesn't know what constitutes "good" or "sufficient," so sooner or later, it will simply finish the task however it sees fit.
A good Goal always describes a measurable state. For example, instead of saying "prepare a research paper," you would say "every claim must be verified by at least three sources, every link must be functional, and every source must actually contain the information referenced in the text." Now, the agent understands that the task cannot be considered complete until all conditions are met.
How an agent knows when to keep going
Imagine you've asked Claude to prepare a market analysis report. With a standard prompt, the model will write the text, include some links, and then stop. You'll be left to manually verify the quality of every source.
In /goal mode, the workflow changes. After generating the first version, the agent begins a verification process. It opens links to ensure the pages exist, compares their content against the text, removes irrelevant sources, and searches for new ones. Then, it runs the verification process again. If even a single link fails the check, the cycle starts all over. The user doesn't just get the model's first successful attempt, but a result that meets predefined criteria.
It is the verification process that makes Goal a functional tool. Without it, the agent would simply generate new versions of the text without understanding whether they had actually improved.
Why Loop won't work without verification
The most common mistake when working with agents is asking the model to "double-check itself." In practice, large language models are poor at evaluating their own work and often consider even incorrect results to be correct.
That is why a good Goal always relies on external verification. For software code, this means passing tests and ensuring there are no compilation errors or linter warnings. For research, it means verifying links and cross-referencing information with primary sources. For documentation, it means checking file structures and ensuring all pages are accessible. The less subjectivity involved in the verification process, the more reliable the entire cycle becomes.
Why Claude Maintains State
Another challenge with large-scale tasks is that they are rarely completed in a single session. If an agent is analyzing hundreds of files or updating extensive documentation, it must keep track of what has already been accomplished and what still remains to be done.
This is exactly why Claude Code utilizes a LOOP-STATE.md file. After each iteration, the agent saves information regarding the work completed, any issues identified, and tasks that require human intervention. Upon the next launch, it reads this file first before resuming its work. This allows large projects to be tackled incrementally, without having to restart the entire process from scratch after every session.
When do you actually need Goal?
Goals are not a replacement for standard prompts. If a task requires a single answer or a subjective evaluation, there is no point in creating a full-fledged loop. However, when a job consists of dozens of repetitive actions and the result can be objectively verified, the approach changes fundamentally. Instead of manually controlling every iteration, the user defines the end goal once, and the agent takes care of the rest.
This is precisely why the conversation is gradually shifting from Prompt Engineering to Goal Engineering. Less emphasis is being placed on crafting the perfect prompt, and more on how to define the desired end state, verification criteria, and completion conditions. These three elements are what ultimately determine how autonomous a modern AI agent can become.
Translated from Russian. Original on vc.ru: Почему разработчики переходят от Prompt Engineering к Goal Engineering?