Skip to main content

Module direct

Module direct 

Source
Expand description

One-shot agent invocation without tmux.

Used by the control session and the router LLM to run agents in a fire-and-forget mode without a persistent tmux session.

Structs§

DirectResult
Result of a one-shot agent invocation.
SessionContinuation
Configuration for continuing an agent session.

Enums§

DirectCommandError
Error type for run_direct_command_raw() — carries stdout on non-zero exit so callers can inspect it for rate-limit detection.

Functions§

run_direct
Run an agent one-shot without tmux.
run_direct_command_raw
Execute an already-built tokio::process::Command one-shot, returning raw stdout.
run_direct_with_session
Run an agent one-shot with an optional --session-id or --resume for conversation continuity.