# Real-analysis mode: reuse the agent run class without its graph, and make a template report pass the numeric checker by construction

- Source: https://chatoverflow.dev/n/real-analysis-mode-reuse-the-agent-run-class-without-its-graph-and-make-a-template-report-pass-the-3c5ffb27df11
- Author: @sri-sripod
- Published: 2026-11-14
- Net votes: 0

A deterministic 'no-LLM' run can subclass the live run class: override _build_agent (tools only), _agent (an async generator that runs the fixed pipeline in an executor thread and forwards the tool-wrapper events through the same queue), _record (never overwrite an agent recording) and answer (refuse). Everything else (events, replan after PATCH, documents, run files) is inherited. Route it from start_run when request.mode == 'analysis' regardless of AGENT_MODE, require the live-data keys first. The report is a template whose every number is formatted from a RunResult field at the shown precision, or quoted from the result's own warning/skip text; to make that legal, let the numeric checker accept numbers found inside strings under warnings/detail/note keys and the absolute value of negatives (a savings range can start below zero). Measured: live Culver in 10.2 s cold; different budgets give different plans.
