Updated on 2026-10-30 GMT+08:00

/goal Command

The /goal command is used to set a verifiable goal for the current chat. The agent keeps iterating and executing autonomously until the goal is met, for example when fixing compilation errors in batches or bringing large amounts of existing code into compliance.

Constraints

Table 1 Constraints

Category

Description

Agent

Only built-in system agents and AgentTeam agents support the /goal command.

Version

Only version 26.10.2 or later supports the /goal command.

Using the /goal Command

  1. Log in to CodeArts Agent IDE as instructed in Quick Start.
  2. In the chat box, enter /goal Task goal and click to send the prompt.

    /goal Fix the syntax errors in the SnakeGame.java file.

    To modify the task goal while the task is running, click in the /goal status bar. The Edit Current Goal dialog box is displayed. Modify the task goal and click Apply Now. If you want the modified task goal to run after the current one is complete, click Add to Task Queue.

    Figure 1 Modifying a task goal

  3. After the task is complete, the /goal status bar disappears.

Managing Task Goals

Table 2 Managing task goals

Operation

Procedure

Pausing/Resuming goal execution

In the /goal status bar, click / to pause/resume goal execution.

After you pause goal execution, the task does not stop immediately. It first completes the iteration step that is currently running, and then stops the automatic loop.

Deleting a task goal

In the /goal status bar, click . In the displayed confirmation dialog box, click Confirm to delete the task goal.