Skip to content

agent

agent owns the core agent runtime.

  • ReAct turn execution.
  • Context loading, compaction, pruning, and prompt preparation.
  • Steering and deferred user input handling.
  • Sub-agent runtime primitives and tracking.
  • Agent-side cache helpers and execution state.
  • Tool implementations live in tools.
  • Model client implementations live in llm.
  • File-backed state and app services live in core.
  • Foreground/background orchestration belongs in runner.