hn.today

Agentic coding is a financial trap

frugaast.dev5 points1 comments
Screenshot of Agentic coding is a financial trap

Agentic coding refers to autonomous LLM-driven tools that crawl codebases and self-prompt in multi-step loops, and the core claim is that they create a hidden, often crippling, pay-per-token cost model compared with predictable flat subscriptions. The piece shows how "bring your API key" setups turn developers into real-time pay meters: repeated context sweeps and iterative loops rapidly burn tokens and dollars. A concrete example walks through a typical debug loop using large frontier models - loading 120k tokens of context, repeating six loops, and producing 15k output tokens - resulting in roughly $12 billed to fix a single off-by-one, because the agent re-reads the full context every iteration. Engineers report similar $10-$200 surprises; there’s even a suggestion that bloated, hard-to-take-over code amplifies token spend whether by design or sloppiness.

The recommended alternative is deterministic, agentless workflows that enforce strict, manual scoping of context and single-turn diffs: pick exact files, use fast local models for scaffolding, and reserve costly API calls for deep reasoning. Replacing autonomous loops with Git diffs restores cost predictability and control, and limits hallucination-induced churn. The argument warns that as vendor subsidies end and token pricing stabilizes upward, relying on open-ended agentic loops is a reckless engineering spend; prioritizing deterministic tools and local models yields far better unit economics.

Read on frugaast.dev1 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in AI

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.