Skip to content

agent

Agent owns execution planning and model/tool orchestration.

Language: rust

Path: crates/agent

Owns:

  • Agent
  • execution input and output
  • tool registry consumption
  • event production

Must Not:

  • own daemon lifecycle
  • write durable storage directly
  • render UI
  • parse UI picker state

Inputs:

  • Model
  • allowed tools
  • user message
  • SkillContext

Outputs:

  • Event stream
  • final run output

Depends On:

  • event
  • model
  • skill
  • tool

Used By:

  • chat
  • run

Verify:

  • cargo check -p agent