spawn-agents

Spawn Loop 3 and Loop 2 agents with validation and dry-run support.

14|2|Updated Sep 23, 2025
One-click install
npx skills add https://github.com/masharratt/claude-flow-novice --skill spawn-agents
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spawn-agents
Source: https://github.com/masharratt/claude-flow-novice/tree/main/.claude/cfn-loop-orchestration-v2/lib/orchestrator/src/helpers/spawn-agents.ts
Command: npx skills add https://github.com/masharratt/claude-flow-novice --skill spawn-agents

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Provides a TypeScript module to spawn Loop 3 and Loop 2 agents with validation, context, and dry-run support.

Core Features & Use Cases

  • Validation: Ensures agent types are loop3/loop2.
  • Dry-run support: Logs commands without executing.
  • Contextual injection: Attaches task and iteration info.

Quick Start

Call spawnAgents with taskId, loop, and agents array; can test via dry-run.

Frequently Asked Questions about spawn-agents

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

FAQPage Schema
How do I spawn Loop3 and Loop2 agents in TypeScript?

Spawn agents by calling the spawnAgents function with a taskId, loop type (loop3 or loop2), and agents array. The module validates agent types, injects task and iteration context, and supports dry-run mode for testing before execution.

What validation does agent spawning perform?

Agent spawning validates that agent types are either loop3 or loop2, ensuring only supported loop implementations are orchestrated. Invalid types are rejected before container execution.

Can I test agent spawning without executing containers?

Yes, dry-run mode logs spawn commands and agent configurations without executing them, letting you verify task context injection and agent selection before live deployment.

How does context injection work when spawning agents?

Context injection attaches task and iteration metadata to spawned agents, ensuring each agent receives the required information for consensus collection and product owner decision flow in CFN Loop orchestration.

What container orchestration does agent spawning support?

Agent spawning coordinates docker-based CFN Loop workflows with Redis-backed state management, managing parallel execution across Loop3 implementers and Loop2 validators with configurable timeouts and error handling.

What happens after agents are spawned?

Spawned agents execute tasks, report confidence levels, trigger gate checks, and aggregate consensus for GOAP-driven product owner decisions based on configured thresholds and adaptive agent selection.