logoalt Hacker News

tantalortoday at 12:47 PM6 repliesview on HN

What is /goal?


Replies

lambdatoday at 4:53 PM

The article describes it.

Both Codex and Claude Code have it, but they work slightly differently.

Claude Code uses Haiku to read through the transcript and decide if the goal has been completed. If not, Haiku injects a prompt back to the main model to indicate what still needs to be done.

In Codex, instead it's a tool available to the main model, plus some part of the surrounding harness that will re-prompt it if the tool calls haven't yet indicated that the goal is complete.

The issue that they are trying to solve is that sometimes models will stop before they have actually fully completed whatever task they were given; attention isn't perfect, and someitmes they'll complete part of it but not the whole task. Rather than making the user come back and re-prompt to keep going, they add a way to automatically do a bit more nudging to try to get the model to finish the task.

swader999today at 12:51 PM

On Claude if you start with that, it won't stop until it achieves or exhausts your prompt. It feels like "here's your mission, go do it". I use it a few times a week.

show 3 replies
ryan_ntoday at 12:51 PM

The llm runs in a loop until it meets a condition (the goal).

aetchtoday at 4:08 PM

It loops until it thinks it has finished the goal

deepdarkforesttoday at 2:49 PM

An agent is an llm running on a loop until it decides it should stop.

/goal is a gimmick where you run a "parent" agent on top that runs the agent on a loop until the it decides to stop, just prompting it "nope, not done yet, continue".

show 1 reply
ai_fry_ur_braintoday at 1:32 PM

[dead]