Expand description
Core agent loop: LLM ↔ tool execution cycle.
Phase 1: simple loop (no task planning). Phase 2: task-planning-aware loop + run_command + LLM summarization.
Ported from Python AgenticLoop._run_openai. Single implementation
that works for both CLI and RPC via the EventSink trait.
Sub-modules:
planning— pre-loop setup, LLM task-list generation, checkpoint savingexecution— tool-call batch processing, progressive disclosure, depth limitsreflection— no-tool response handling, hallucination guard, auto-nudgehelpers— shared low-level utilities (tool execution, result processing, …)
Functions§
- run_
agent_ loop - Run the agent loop.