Module runner

Module runner 

Source
Expand description

Extension runner for tools and agent spawning

Provides:

  • Tool execution via registered functions
  • Async agent spawning without tmux
  • Bounded concurrent execution (mapWithConcurrencyLimit pattern)

Structs§

AgentResult
Result from an agent execution
AgentRunner
Runner for managing multiple concurrent agent executions
ConcurrentSpawnConfig
Configuration for bounded concurrent spawning
ConcurrentSpawnResult
Result from a concurrent spawn operation
ExtensionRunner
Extension runner for executing extension-provided tools
SpawnConfig
Configuration for spawning an agent
ToolCallResult
Result from a tool call execution

Enums§

AgentEvent
Event emitted during agent execution
ExtensionRunnerError
Error type for extension runner operations

Functions§

load_agent_config
Load and resolve agent configuration for a task
map_with_concurrency_limit
Execute async operations with bounded concurrency (mapWithConcurrencyLimit pattern)
map_with_concurrency_limit_ordered
Execute async operations with bounded concurrency, preserving input order
spawn_agent
Spawn a single agent as an async subprocess
spawn_agents_concurrent
Spawn multiple agents with advanced concurrency control
spawn_agents_with_limit
Spawn multiple agents with bounded concurrency
spawn_subagent
Subagent spawn helper for use within extensions