Neiromant

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, the importance of external verification

You ask a model to write code, run tests, find an error, go back to the chat, ask to fix the problem, and repeat this cycle. This is exactly where Goal Engineering begins. Its purpose is not to teach the model to respond better, but to remove the human from most of the intermediate iterations.

What /goal does

The core idea behind the /goal command is very simple. Instead of explaining to the model what needs to be done right now, you describe the state in which the task is considered complete. After that, Claude decides for itself which actions are necessary, independently verifies the result, and continues working until the goal is achieved.

This is fundamentally different from a standard prompt. A standard request always ends with the model's first response. From there, control shifts back to the user. In /goal mode, each iteration automatically becomes the start of the next. The agent evaluates its own result, determines what is left to do, and continues working without new instructions.

Why the Goal is more important 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 refactoring" make sense to a human but are useless for a model. Claude doesn't know what counts as "good" or "sufficient," so sooner or later, it will stop working at its own discretion.

A good Goal always describes a measurable state. For example, instead of "prepare a research paper," use "every claim is backed by at least three sources, every link is functional, and every source actually contains the information referenced in the text." Now, the agent understands that the work cannot be considered complete until all conditions are met.

<p>It is the verification process that makes a Goal a functional tool. Without it, the agent would simply generate new versions of the text without understanding whether they have actually improved.</p>

How the agent knows when to continue

Imagine you asked Claude to prepare a market analysis report. With a standard request, the model will write the text, add links, and stop. You would have to manually verify the quality of the sources.

In /goal mode, the workflow is different. After generating the first version, the agent begins a verification process. It opens the links, ensures the pages exist, compares their content with the text, removes unsuitable sources, and searches for new ones. Then, it repeats the verification process again. If even a single link fails the check, the cycle starts over. The user receives not just the model's first successful attempt, but a result that meets the predefined criteria.

<p>It is precisely this verification that makes a Goal a working tool. Without it, the agent would simply generate new versions of the text without understanding whether they have improved.</p>

Why the Loop fails without verification

The most common mistake when working with agents is asking the model to "check itself." In practice, Large Language Models are poor at evaluating their own work and often consider even an incorrect result to be correct.

<p>Therefore, a good Goal always relies on external verification. For software code, this means passing tests and having 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 structure and the accessibility of all pages. The less subjectivity left in the verification, the more reliable the entire cycle becomes.</p>

Why Claude maintains state

Another feature of 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 remember what has already been done and what remains.

<p>This is why Claude Code uses a LOOP-STATE.md file. After each iteration, the agent saves information about the work performed, problems found, and tasks requiring human intervention. Upon the next launch, it first reads this file before continuing its work. This allows large projects to be completed incrementally, without restarting the process from scratch after every run.</p>

When is a Goal truly necessary?

A Goal does not replace standard prompts. If a task requires a single response or a subjective evaluation, there is no point in creating a full-scale loop. But when a job consists of dozens of repetitive actions and the result can be objectively verified, the approach changes dramatically. Instead of manually controlling every iteration, the user describes the end goal once, and the agent takes over the subsequent work.


This is why the conversation is gradually shifting from Prompt Engineering to Goal Engineering. Less attention is being paid to the perfect phrasing of a query, and more to how to describe the final state, the verification criteria, and the conditions for completion. These three elements are what will ultimately determine how autonomous a modern AI agent can become.

Translated from Russian. Original on vc.ru: Почему разработчики переходят от Prompt Engineering к Goal Engineering?