choosing-task-vs-main-session

Choose between Task-based subagents and main-session workflows for complex operations.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/dragonkid/dotfiles --skill choosing-task-vs-main-session
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: choosing-task-vs-main-session
Source: https://github.com/dragonkid/dotfiles/tree/main/claude/skills/learned/choosing-task-vs-main-session
Command: npx skills add https://github.com/dragonkid/dotfiles --skill choosing-task-vs-main-session

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps decide whether to dispatch a Task subagent or work within the main session, optimizing for complex operations that benefit from exploration, parallel work, iterative refinement, or context-dependent implementation.

Core Features & Use Cases

  • Decision framework for selecting Task (Explore/Parallel) vs Main Session.
  • Handles complex operations (multi-file exploration, parallel subtasks, context-sensitive work) and when to involve user feedback mid-task.
  • Clear guidance to avoid common mistakes like overusing Task for context-dependent work.

Quick Start

Provide a description of a planned operation and ask the system to determine whether to use Task-based exploration, parallel tasking, or main-session work. Then implement the recommended flow and adjust based on user input.

Frequently Asked Questions about choosing-task-vs-main-session

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
When should I dispatch a Task subagent vs stay in the main session for complex operations?

Dispatch a Task subagent for codebase exploration or parallel subtasks, but stay in the main session for context-dependent implementation requiring iterative user feedback to minimize context loss.

How do I handle multi-file exploration without losing context in my workflow?

Handle multi-file exploration by dispatching an Explore Task subagent. This isolates the search process, returning only summarized results to the main session to preserve your working context.

What is the best way to execute parallel subtasks during a complex workflow?

Execute parallel subtasks by dispatching multiple specialized Task subagents simultaneously. This allows independent operations to run concurrently, aggregating results back into the main session workflow.

Why does overusing Task subagents cause problems for context-sensitive work?

Overusing Task subagents for context-sensitive work causes problems because delegated subagents lack the accumulated session context, leading to disjointed iterative refinement and potential context loss.

Does the main session workflow support iterative refinement better than Task dispatch?

Yes, the main session workflow supports iterative refinement better when user feedback is needed mid-task. It maintains continuous context, whereas Task dispatch isolates the process from ongoing collaboration.

How to choose between Task-based exploration and main-session work for a planned operation?

Choose between Task-based exploration and main-session work by evaluating if the operation needs parallel execution or context-dependent collaboration, then apply the decision pattern to recommend the optimal flow.