Claude Code subtasks inherit full session context
The /subtask command in Claude Code enables developers to spawn background process forks that inherit the primary session's entire context. These subtasks run with the same system prompt, tools, model configuration, and conversation history, returning only the final execution result back to the main interactive session.
Context-inheriting subtasks streamline background delegation but can quickly drain available context budgets.
- –Background execution prevents long-running commands from blocking the primary interface.
- –Inherited history provides subagents with immediate awareness of codebase context without duplicate setup prompts.
- –Pre-seeded context windows start partially filled, making token exhaustion a potential concern during extended multi-step runs.
DISCOVERED
46d ago
2026-08-07
PUBLISHED
46d ago
2026-08-07
RELEVANCE
AUTHOR
dani_avila7
