Enable Autonomous Coding with the /goal Command
Let an autonomous agent handle multi-file coding tasks instantly.
Use the /goal command to trigger an autonomous coding session where Qwen Code plans, executes, and verifies multi-file changes using a judge model.
The Scenario
You need to implement a complex feature or refactor code that touches multiple files in a large repository and want the AI to handle the file navigation and editing for you.
Before & after
Developers manually read code, plan changes in their head or on paper, and then manually find and edit multiple files. This usually takes 30-60 minutes depending on project size.
Type /goal in the terminal, and the agent uses a judge model to verify the plan and autonomously edit files across your project. This takes 2-4 minutes for complex refactors.
The Prompt
/goal [DESCRIBE_YOUR_CODING_TASK_E.G._REFACTOR_THE_LOGIN_LOGIC_TO_USE_JWT]
Qwen Code's /goal feature includes an independent judge model and impossible-goal detection to ensure the autonomous agent doesn't get stuck or make hallucinated changes.
Source
Qwen Code Blog: AI Coding Updates and Guides | Qwen Code Docs"Qwen Code v0.16.0 follows suit—plus an independent judge model and impossible-goal detection."
