Skip to main content

Module agent

Module agent 

Source
Expand description

Agent adapter layer.

Each coding agent (Claude Code, Codex CLI, Aider) is wrapped in an adapter that knows how to:

  • Build the command to spawn the agent in a PTY
  • Provide prompt detection patterns for its output
  • Format input to inject into the agent’s stdin

The supervisor uses this trait to control agents without knowing their specific CLI conventions.

Modules§

claude
Claude Code adapter.
codex
Codex CLI adapter.
kiro
Kiro CLI adapter.

Structs§

SpawnConfig
Configuration for spawning an agent process.

Enums§

BackendHealth
Health state of an agent backend.

Constants§

KNOWN_AGENT_NAMES
Known agent backend names (primary aliases only).

Traits§

AgentAdapter
Trait that all agent adapters must implement.

Functions§

adapter_from_name
Look up an agent adapter by name.
health_check_by_name
Check backend health for a named agent.