spawn-subagent

Spawn subagents to run long-running tasks in separate processes.

5|1|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/netanel-abergel/pa-skills --skill spawn-subagent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spawn-subagent
Source: https://github.com/netanel-abergel/pa-skills/tree/main/skills/spawn-subagent
Command: npx skills add https://github.com/netanel-abergel/pa-skills --skill spawn-subagent

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Subagents provide a safe way to run long-running, complex, or blocking tasks outside the main session, keeping the primary agent responsive and interactive.

Core Features & Use Cases

  • Isolation: executes tasks in separate subagents to prevent main session stalls.
  • Auditability: maintains logs and an audit trail for external actions and decision points.
  • Configurable orchestration: supports timeouts, model selection, and parallel execution for multi-step workflows.

Quick Start

Spawn a subagent to handle a long-running task with a defined timeout and report completion back to the main session.

Frequently Asked Questions about spawn-subagent

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

FAQPage Schema
How do I run long tasks asynchronously to keep my main agent session responsive?

To keep your main agent session responsive, you can spawn subagents to run long-running or blocking tasks in a separate process. This isolation prevents main session stalls while maintaining interactive responsiveness.

When should I delegate tasks to a subagent instead of running them in the main session?

You should delegate tasks to a subagent when operations exceed 30 seconds, involve multiple sequential steps, or risk blocking the main agent. This includes parallel execution of complex workflows.

Can I configure a timeout for asynchronous subagent task execution?

Yes, you can configure subagent task execution using the configurable runTimeoutSeconds setting. This enforces safety and observability by preventing indefinite blocking during long-running operations.

How do I maintain an audit trail for external actions executed by spawned subagents?

To maintain an audit trail for subagents, the system logs external actions and decision points automatically. This observability ensures you can track task execution and maintain safety protocols.

Does subagent orchestration support parallel execution and model selection?

Yes, subagent orchestration supports parallel execution for multi-step workflows and allows model selection. These configurable controls let you manage complex task delegation effectively.