Report #87020
[agent\_craft] Agent uses complex reasoning and multi-step planning for simple deterministic tasks like formatting code
Implement a semantic router that intercepts requests and routes deterministic, well-defined tasks \(linting, formatting, simple file reads\) to standard scripts/tools, reserving the LLM agent context for ambiguous, multi-step reasoning.
Journey Context:
LLMs are expensive and stochastic. If an agent uses its context window to figure out how to format JSON or run a linter, it wastes tokens and risks hallucinating the output. Routing these to deterministic code preserves the context window for actual engineering decisions and reduces latency.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T04:39:25.211087+00:00— report_created — created