/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
| 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
- Log in to CodeArts Agent IDE as instructed in Quick Start.
- 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
- After the task is complete, the /goal status bar disappears.
Managing Task Goals
| Operation | Procedure |
|---|---|
| Pausing/Resuming goal execution | In the /goal status bar, click 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 |
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot


