delegate-agent
Delegate Agent
Spawn sub-agents to handle independent subtasks in parallel or sequence. This enables multi-agent workflows where specialized agents handle different aspects of a complex task.
When to Use
- Parallel execution: Multiple independent tasks can run simultaneously
- Specialized handling: Different sub-tasks need different expertise/models
- Isolation: Sub-task failures shouldn't crash the main agent
- Parallel research: Gather information from multiple sources at once
Setup
No additional setup required. This skill works out of the box.
Usage
Spawn a Sub-Agent
{baseDir}/delegate-spawn.js "research-agent" "Find information about topic" --model claude-sonnet-4-20250514
Arguments:
name: Identifier for the sub-agent (for tracking)prompt: Task description for the sub-agent--model: Optional model override (defaults to main agent's model)--timeout: Optional timeout in seconds (default: 300)
Check Sub-Agent Status
{baseDir}/delegate-status.js <job-id>
List Active Sub-Agents
{baseDir}/delegate-list.js
Kill a Sub-Agent
{baseDir}/delegate-kill.js <job-id>
Examples
Parallel Research
// Research multiple topics in parallel
const topics = ["AI agents", "Rust programming", "Docker containers"];
const agents = topics.map(topic =>
spawnSubAgent(`research-${topic}`, `Find latest developments in ${topic}`)
);
// Wait for all to complete
const results = await Promise.all(agents.map(a => a.result));
Specialized Handling
// Use different models for different tasks
await spawnSubAgent("coder", "Write a REST API", { model: "claude-sonnet-4-20250514" });
await spawnSubAgent("writer", "Write documentation", { model: "claude-haiku-20240307" });
Architecture
The delegate tool:
- Creates a new job branch
delegate/<uuid>/<agent-name> - Writes the task prompt to
logs/<uuid>/job.md - Triggers GitHub Actions to run the sub-agent
- Polls for completion and returns results
- Cleans up the temporary branch
Security Considerations
- Sub-agents inherit the same permissions as the parent
- API keys are passed to sub-agents (filtered from LLM bash output)
- Sub-agents run in isolated containers
- Activity is logged for audit purposes
More from winsorllc/upgraded-carnival
vector-memory
Vector-based semantic memory using embeddings for intelligent recall. Store and search memories by meaning rather than keywords. Use when you need semantic search, similar document retrieval, or context-aware memory.
131model-router
Route requests between different LLM providers and models. Configure routing rules, fallback providers, and model-specific parameters inspired by ZeroClaw and OpenClaw model routing systems.
63rss-monitor
Monitor RSS/Atom feeds and blogs for new content using feedparser.
59rss-reader
Read and parse RSS/Atom feeds. Use when: user wants to subscribe to feeds, get latest articles, or monitor news sources.
54video-frames
Production-grade video frame extraction with thumbnail grids, GIF creation, and batch frame processing. Includes intelligent quality presets, progress tracking, and comprehensive error handling.
39elevenlabs-tts
Convert text to speech using ElevenLabs API. Use when you need to generate voice audio for messages, narrations, or accessibility.
25