delegation

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Managing multiple complex or independent coding tasks sequentially slows down development workflows. This Skill lets you offload tasks to specialized subagents that execute autonomously, either blocking until completion or running in parallel in the background. ## Core Features & Use Cases - Synchronous Delegation: Use subagent() to launch a subagent and block until it returns the full task result. - 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 immediately. - Session Plan Integration: Reference tasks by ID from .local/session_plan.md so subagents read full task context automatically. - Use Case: You have a session plan with three independent tasks (T002, T003, T004). Launch all three in parallel with startAsyncSubagent, then collect their results together instead of executing them one by one. ## Quick Start Ask the agent to delegate task T003 from the session plan to a subagent and run it in the background while you continue working.

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 task completes and returns the full result, while startAsyncSubagent returns immediately and runs the task in the background. Use subagent when you need the output before continuing.

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 immediately. Both require the subagentId returned at launch.

When should I not use task delegation?▼

Avoid delegation for simple tasks you can do directly, quick file edits, read-only operations like grep or glob, and analysis or debugging work. Delegation adds overhead that only pays off for autonomous or parallelizable tasks.

Can subagents access skills and run workflows?▼

Subagents can use file operations, bash commands, LSP diagnostics, and skills if you include the skill's SKILL.md path in relevantFiles. They cannot run or restart workflows, check logs, or preview the app.