Enable Hands-Free Autonomous Coding with /goal and Auto-Approval
Use the /goal command to complete complex coding tasks autonomously.
Deploy the `/goal` command to initiate autonomous coding sessions where the AI handles multi-step tasks without requiring manual approval for every action.
The Scenario
You need to implement a complex feature across multiple files that involves repetitive boilerplate and unit testing. Instead of manually approving every small change, you want the AI to handle the sequence autonomously until the objective is met.
Before & after
Manually implementing a multi-step feature requires writing code, running tests, fixing errors, and repeating the cycle for each file. This typically takes 1-2 hours of deep focus.
Use the `/goal` command in Qwen Code. The agent will autonomously execute sub-tasks and handle routine steps using the Auto Approval LLM classifier, reducing your active work to about 2-3 minutes of oversight.
The Prompt
/goal [DESCRIPTION_OF_COMPLEX_CODING_TASK] --auto-approve
Qwen Code v0.16.0 introduced the /goal command which keeps agents running to completion. It features an independent judge model to detect impossible goals and an Auto Approval system that uses an LLM classifier to skip human confirmation for routine operations.
Source
Blog | Qwen Code Docs"/goal autonomous coding, Auto Approval hands-free... Auto Approval uses an LLM classifier to decide whether human confirmation is needed."
