delegation

Delegate tasks to specialized subagents for synchronous or asynchronous autonomous execution.

Updated Mar 8, 2026
One-click install
npx skills add https://github.com/BotchaVarun/EduBot --skill delegation-botchavarun
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: delegation
Source: https://github.com/BotchaVarun/EduBot/tree/main/.local/skills/delegation
Command: npx skills add https://github.com/BotchaVarun/EduBot --skill delegation-botchavarun

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Complex work often involves multiple independent tasks that would be slow to execute one by one in a single agent context. This Skill lets you offload tasks to specialized subagents that run autonomously, either blocking until results return or running in parallel in the background. ## Core Features & Use Cases - Synchronous delegation: Use subagent() to launch a subagent and block until it completes, returning a structured result with success status and output. - Asynchronous parallel execution: Use startAsyncSubagent() to launch multiple independent tasks simultaneously and collect results later with waitForBackgroundTasks. - Follow-up messaging: Use messageSubagent() for fire-and-forget follow-ups or messageSubagentAndGetResponse() when you need the subagent's answer before continuing. - Plan-driven workflows: Reference task IDs from a .local/session_plan.md file with fromPlan=True so subagents read full task context automatically. - Use Case: Given a session plan with tasks T002, T003, and T004, launch all three with startAsyncSubagent in parallel, then gather their results once instead of executing them sequentially. ## Quick Start Delegate the task "Fix the auth bug in src/auth.ts" to a subagent and print the returned result.

Frequently Asked Questions about delegation

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

FAQPage Schema
How do I run multiple tasks in parallel with subagents?▼

Call startAsyncSubagent once per independent task, optionally referencing task IDs from a session plan with fromPlan set to true. Each call returns immediately, and you collect all results later using waitForBackgroundTasks.

What is the difference between subagent and startAsyncSubagent?▼

subagent blocks until the subagent finishes and returns the full result directly. startAsyncSubagent returns immediately with an acknowledgment, and the result arrives later through waitForBackgroundTasks, making it suited for parallel background work.

When should I not delegate a task to a subagent?▼

Avoid delegation for simple tasks you can do directly, read-only operations like grep or glob, quick file edits, and analysis or debugging work such as code review. Tasks needing immediate user interaction should also stay in the main agent.

How do I send a follow-up message to a running subagent?▼

Use messageSubagent with the subagent's alias for asynchronous fire-and-forget follow-ups, or messageSubagentAndGetResponse with a timeout when you need the reply before continuing. Both require the alias returned when the subagent started.

Can a subagent use other skills during execution?▼

Yes, include the skill's SKILL.md path in the relevantFiles parameter when launching the subagent. The subagent can then access that skill documentation through code execution during its task.