Expand description
Agent-agnostic process spawning, tracking, and log capture.
Provides Spawner which manages the lifecycle of agent processes:
building commands from config templates, redirecting output to log files,
tracking running processes, and handling unit claim/release lifecycle.
Structs§
- Agent
Process - A running agent process tracked by the spawner.
- Completed
Agent - Result of a completed agent process.
- Spawner
- Agent-agnostic process spawner with tracking and log capture.
Enums§
- Agent
Action - What action an agent should perform.
Functions§
- build_
log_ path - Build the log file path for a unit spawn.
- find_
all_ logs - Find all log files for a unit, sorted oldest to newest.
- find_
latest_ log - Find the most recent log file for a unit.
- log_dir
- Return the log directory path, creating it if needed.
- substitute_
template - Replace
{id}and{model}placeholders in a command template. - substitute_
template_ with_ model - Replace
{id}and{model}placeholders in a command template.