Delegate Large-Scale Refactoring to Autonomous Coding Agents
Use the /goal command to trigger autonomous, multi-file code refactoring.
Activate autonomous coding by using the /goal command, allowing the AI to browse your codebase, plan changes, and execute them with minimal manual guidance.
The Scenario
You need to perform a complex refactor or implement a new feature that touches multiple files in a large, unfamiliar project.
Before & after
Manually searching through a large codebase to identify every file that needs a specific update and then applying those changes line-by-line can take 30–90 minutes.
Entering the `/goal` command allows the AI to autonomously navigate the codebase and execute the change in 2–5 minutes while you oversee the progress.
The Prompt
/goal [DESCRIBE_YOUR_CODING_OBJECTIVE, E.G., REFACTOR THE AUTHENTICATION LOGIC TO USE JWT INSTEAD OF SESSIONS]
The `/goal` command triggers an autonomous mode where Qwen Code uses an independent judge model to detect if a goal is possible and then proceeds to execute the code changes across multiple files without constant manual intervention.
Source
Qwen Code Blog: AI Coding Updates and Guides | Qwen Code Docs"/goal autonomous coding, Auto Approval hands-free... plus an independent judge model and impossible-goal detection."
