query.ts 10-Step Loop
- Entity ID:
ent-20260419-0847d810164d - Type:
concept - Scope:
shared - Status:
active - Aliases: 10-step iteration, agentic loop iteration, query.ts per-iteration steps
Description
Fully dissected per-iteration structure of the query.ts state-machine while-loop: 10 ordered steps from context compression through continue/exit decision, implemented as a state machine (not recursion) to avoid stack overflow on hundreds of tool calls.
Key claims
- query.ts is a 10-step state machine, not recursion
- QueryEngine is a conversation wrapper, not the execution engine
- All Claude Code interfaces route through the same queryLoop() in query.ts
Relations
- query.ts 10-Step Loop --[implements]--> query.ts
- Nine Continue Points --[contains]--> query.ts 10-Step Loop
- Reactive Compact Circuit Breaker --[implements]--> query.ts 10-Step Loop
- Source-File-Mapped 7-Component Architecture --[depends_on]--> query.ts 10-Step Loop
- queryLoop() Shared Execution Path --[implements]--> query.ts 10-Step Loop