Back to library
AI
tutorial

Boost Multitasking Efficiency Using Background Agents via /fork

Run non-blocking background AI tasks using the /fork command.

Use the /fork command to delegate secondary tasks to background agents, allowing you to maintain productivity in your primary terminal window.

Qwen

The Scenario

You are in the middle of a coding session and realize you need to run a full project audit or a long documentation task without stopping your current flow.

Before & after

The old way

You wait for one AI task to finish (like a long refactor) before starting the next one, or you open multiple terminal windows manually. This wastes 15–20 minutes in idle time.

With AI

Type /fork during a session to spin up background agents that work on separate tracks without blocking your main terminal. This takes 1 minute to set up.

The Prompt

/fork [DESCRIBE_BACKGROUND_TASK]

The v0.18.0-preview introduced /fork, allowing developers to spawn background agents to handle secondary tasks while continuing work in the main session.

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."