Multitask Effortlessly Using Background Parallel Agents
Run /fork to delegate background tasks without stopping your workflow.
Utilize the /fork background agent feature to spin up sub-agents for secondary tasks or parallel explorations while maintaining focus on your main terminal session.
The Scenario
While you are in the middle of a major feature build, you notice a small but annoying UI bug that needs fixing immediately without derailing your main workflow.
Before & after
You have to stop your current coding flow, create a new git branch manually, and switch context to address the bug. This context switching and manual setup takes 10–15 minutes.
Use the /fork command to branch off a sub-agent that works on the fix in the background while you continue your primary task. This setup takes about 1 minute.
The Prompt
/fork [DESCRIBE_SUBTASK_OR_BUG_FIX, E.G., FIX_THE_CSS_ALIGNMENT_IN_THE_FOOTER]
The /fork command in Qwen Code v0.18.0 allows for background agents. This is particularly useful for developers who need to explore parallel solutions or handle side tasks without losing their place in the main conversation or project.
Source
Qwen Code Blog: AI Coding Updates and Guides | Qwen Code Docs"Qwen Code v0.18.0-preview launches /fork background agents, /skills visual skill management, user-level cross-project memory."
