Skip to main content

Module agents

Module agents 

Source
Expand description

Unified agent runner — single entry point for spawning Claude Code (or any future provider) used by BOTH the interactive agent pane and the headless drone Agent block.

The full design + 5-PR migration plan lived in a Phase-1.5 lineage spec that was retired in #1928 (“remove legacy pre-Drone Workflows lineage specs”); this module is what shipped from it.

This is Phase 1.5 PR 0: types + skeleton. PR 1 wires the agent pane through this module; PR 2 wires the drone Agent block.

Re-exports§

pub use types::TokenCounts;

Modules§

failure
Classification of agent (Claude CLI) run failures into a small, stable taxonomy with a human-readable explanation.
limit_reset
When an agent’s usage limit lifts: AgentFailure::resets_at_ms and limit_window, filled in when a UsageLimit failure is stored (docs/specs/SPEC_UNRESPONSIVE_AGENTS_2026_10_23.md §3.4).
loop_guard
Two loops an agent can be in without anyone noticing, read off the harness’s stream (docs/specs/SPEC_ROUTE_AGENT_BRAKES_2026_11_10.md section 5):
runner
Unified agent runner — one-shot Claude Code spawn for the drone Agent block.
tool_limit
What a Drone Agent block’s one-shot claude may use (docs/specs/SPEC_DRONE_REAL_WORLD_JOBS_2026_11_11.md §5).
translator
Provider frame → unified AgentEvent translation.
types
Unified agent types shared between the agent pane (interactive) and the drone Agent block (headless). The design rationale lived in a Phase-1.5 lineage spec retired in #1928.