Skip to content
BENIBIX Learn

/goal Command

Also known as /goal, Completion condition, /goal clear

It keeps Claude working until a goal you set is met.

Think of it like

It is like a race with a finish line. You keep going until you cross it.

Example

Lucy moves a module to a new API. She sets /goal every call site builds and the tests pass, then goes to a meeting. Claude works through four turns and stops when both are true.

Why it matters

A long task no longer stops each turn to wait for you to say keep going.

Definition

/goal sets a finish line for the session, and Claude keeps working turn after turn until it is reached. After each turn, a separate model checks whether the goal holds. If not, Claude starts another turn instead of handing back to you. The goal ends when it is met, when the checker thinks it cannot be met, when an error needs you, or when you run /goal clear. A session has one goal at a time.

Example code

console
/goal all tests in test/auth pass and lint is clean
Keep going until the tests pass and lint is clean.
After each turn the goal is checked. Not met yet means one more turn.

Common mistake

Setting a goal no one can check, such as make the code better. The checker needs an end you can test, like tests that pass.

Key takeaways

  1. 1
    A finish line. You set it.
  2. 2
    Checked each turn. By a separate model.
  3. 3
    Ends on its own. Or with /goal clear.

Learn it properly