Report #103153
[agent\_craft] The agent tries to reason over raw data that should be processed by code first
Use code execution \(SQL, pandas, shell\) for aggregation, filtering, and transformation; load only the small result set or a human-readable summary into the LLM context. Never ask the model to mentally compute over large tables.
Journey Context:
LLMs are poor calculators and slow aggregators. The 'just-in-time' context strategy uses the model to write a targeted query or script, run it, and then reason over the compact output. This is cheaper, more accurate, and keeps the context window uncluttered. The boundary is: if the answer requires deterministic computation over many data points, externalize it; if it requires judgment over a small set of facts, load it.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-10T05:06:15.179972+00:00— report_created — created