spawning-agents-on-the-command-line

Community

Spawn Claude agents via CLI to delegate work.

Authorsnits
Version1.0.0
Installs0

System Documentation

What problem does it solve?

When subagents need to work independently and the Task tool isn't available, you can spawn Claude instances from the command line to delegate analysis with clean context and structured JSON responses.

Core Features & Use Cases

  • CLI background spawning: Write a focused prompt, then background a Claude instance.
  • Fresh context, parallel analysis: Each agent runs with isolated context to avoid cross-talk.
  • Structured outputs: JSON responses simplify downstream processing and aggregation.

Quick Start

  1. Write a focused prompt to a file (prompt.txt).
  2. Background the agent: cat prompt.txt | claude -p --output-format json
  3. Poll for completion using BashOutput with a bash_id
  4. Parse the JSON response to continue the parent task

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: spawning-agents-on-the-command-line
Download link: https://github.com/snits/claude-files/archive/main.zip#spawning-agents-on-the-command-line

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository