✓ Verified 💻 Development ✓ Enhanced Data

Subagent Spawn Command Builder

Build sessions_spawn command payloads from JSON profiles.

Rating
4.5 (481 reviews)
Downloads
26,480 downloads
Version
1.0.0

Overview

Build sessions_spawn command payloads from JSON profiles.

Complete Documentation

View Source →

subagent-spawn-command-builder

Generate sessions_spawn payload JSON from profile config. This skill does not execute sessions_spawn; it only builds payload/command JSON.

Files

  • Profile template: state/spawn-profiles.template.json
  • Active profile config: state/spawn-profiles.json
  • Builder script: scripts/build_spawn_payload.mjs
  • Builder log: state/build-log.jsonl

Supported sessions_spawn parameters

  • task (required)
  • label (optional)
  • agentId (optional)
  • model (optional)
  • thinking (optional)
  • runTimeoutSeconds (optional)
  • cleanup (keep|delete, optional)

Setup

bash
cp skills/subagent-spawn-command-builder/state/spawn-profiles.template.json \
   skills/subagent-spawn-command-builder/state/spawn-profiles.json

Then edit spawn-profiles.json.

Generate payload

bash
skills/subagent-spawn-command-builder/scripts/build_spawn_payload.mjs \
  --profile heartbeat \
  --task "Analyze recent context and return a compact summary" \
  --label heartbeat-test

The script prints JSON directly usable for sessions_spawn.

Merge/priority rule

Value resolution order is:

  • CLI option (--model, --thinking, etc.)
  • Profile value (profiles..*)
  • Defaults value (defaults.*)
task always comes from CLI --task.

CLI options

Note: this builder is Node.js (.mjs) based. If generated tasks include Python execution steps, write commands with python3 (not python).

  • --profile (required)
  • --task (required)
  • --label
  • --agent-id
  • --model
  • --thinking
  • --run-timeout-seconds
  • --cleanup keep|delete

Installation

Terminal bash

openclaw install subagent-spawn-command-builder
    
Copied!

💻Code Examples

skills/subagent-spawn-command-builder/state/spawn-profiles.json

-skillssubagent-spawn-command-builderstatespawn-profilesjson.txt
Then edit `spawn-profiles.json`.

## Generate payload
example.sh
skills/subagent-spawn-command-builder/scripts/build_spawn_payload.mjs \
  --profile heartbeat \
  --task "Analyze recent context and return a compact summary" \
  --label heartbeat-test

Tags

#web_and-frontend-development #json

Quick Info

Category Development
Model Claude 3.5
Complexity Multi-Agent
Author nextaltair
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
🧠

Ready to Install?

Get started with this skill in seconds

openclaw install subagent-spawn-command-builder