Skip to main content

Overview

profClaw supports spawning multiple agent sessions that work in parallel, each with their own context, tools, and objectives. This enables complex workflows like researching multiple topics simultaneously, running parallel code reviews, or coordinating development tasks.

Spawning Sessions

Use the sessions-spawn tool to create parallel agent sessions:

Session Architecture

Each spawned session:
  • Gets its own execution context and tool access
  • Runs independently and in parallel
  • Can use all available tools (subject to security policy)
  • Reports results back to the parent session
  • Has configurable timeout via POOL_TIMEOUT_MS

API Usage

Spawn sessions via the REST API:

Concurrency Limits

Configure via:

Patterns

Fan-Out / Fan-In

Distribute work across multiple agents, then aggregate results:

Pipeline

Chain agents where each builds on the previous result:

Specialist Teams

Different agents with different provider/model configurations:

Resource Management

Each session consumes API tokens from the configured provider. Monitor costs with profclaw cost when running many parallel sessions.