subagent-delegation

Delegate expensive command workflows to appropriate subagents with dispatch-id spool retrieval.

4|1|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/jcdendrite/claude-config --skill subagent-delegation-jcdendrite
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: subagent-delegation
Source: https://github.com/jcdendrite/claude-config/tree/main/claude/.claude/skills/subagent-delegation
Command: npx skills add https://github.com/jcdendrite/claude-config --skill subagent-delegation-jcdendrite

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents token-heavy, context-damaging workflows by deciding when to delegate multi-step, output-intensive work to a subagent instead of running commands inline.

Core Features & Use Cases

  • Two-test delegation gate: Delegates when both the command’s output would be consumed for reasoning and the parent’s higher-judgment loop is required.
  • Right subagent selection: Routes check suites to check-runner, discovery to Explore/general-purpose, and implementation work to code-writer.
  • Operational guardrails: Uses objective dispatch prompts, absolute working directory, and a per-invocation dispatch-id to reliably map verdicts to spool output.
  • Blocked-path handling: Distinguishes settings denial, hook blocks, and unknown blocks to avoid unsafe fallback behavior.

Quick Start

Use subagent-delegation when you are about to run the second or third Bash command toward the same unknown target, and ask the assistant to dispatch the objective to the appropriate subagent with an explicit working directory and a unique dispatch-id.

Frequently Asked Questions about subagent-delegation

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

FAQPage Schema
How do I prevent long command outputs from consuming my context window?

Delegating heavy command workflows to a subagent prevents long outputs from consuming your context window. A two-test gate routes output-intensive tasks out of the parent session when both reasoning consumption and higher-judgment loops are required.

When should I delegate Bash commands to a subagent instead of running them inline?

You should delegate Bash commands to a subagent when you are about to run the second or third command toward the same unknown target. This applies to check-suite runs, broad codebase discovery, and multi-step diagnostics where parent context cost is significant.

How do I route codebase exploration tasks to the right subagent?

Route codebase exploration tasks to the right subagent by dispatching discovery objectives to Explore or general-purpose subagents. Use objective-based dispatch prompts with an absolute working directory and a unique dispatch-id to reliably map verdicts.

How does dispatch-id-based spool retrieval work for subagent task management?

Dispatch-id-based spool retrieval works by assigning a unique identifier to each subagent invocation. This per-invocation dispatch-id reliably maps blocked-path verdicts and spool output back to the correct delegated command workflow.

How do I handle hook blocks and settings denials when dispatching subagents?

Handle hook blocks and settings denials by explicitly distinguishing SETTINGS_DENIAL and HOOK_BLOCK verdicts. This prevents unsafe fallback behavior by ensuring blocked-path handling interrupts the delegated workflow instead of executing inline.

Can I use subagent delegation for multi-step test execution and check suites?

You can use subagent delegation for multi-step test execution by routing check suites to a dedicated check-runner subagent. This prevents output-heavy test runs from damaging the parent context while preserving the higher-judgment loop.