John Wall (juanwall)Builder, GitHub issue authorMoon Banking
Repetitive agent tasks run through the TypeScript SDK.
GitHub, anthropics/claude-agent-sdk-typescript, published Read the write-up (opens GitHub, anthropics/claude-agent-sdk-typescript in a new tab)
Observation
Moon Banking's builder rolled back from SDK 0.1.60 to 0.1.30 when logged costs tripled; Anthropic replied that the older versions had undercounted client-side costs while billing stayed correct.
- Takeaway
- Budget from the Anthropic console or billing, not the SDK's client-side cost figures, which undercounted in older versions and sent this builder into a downgrade.
- What happened
- John Wall ran the same repetitive tasks before and after upgrading @anthropic-ai/claude-agent-sdk from 0.1.30 to 0.1.60 and reported that LLM cost tripled, consistently; downgrading to 0.1.30 cut the reported cost by two thirds (GitHub issue, Dec 6, 2025). Anthropic's reply of Dec 15, 2025 closed the issue: older versions undercounted client-side costs because of a bug, since fixed, and the Anthropic console and billing always gave the correct value.
- Public practitioner write-up (GitHub issue)
- Vendor reply on the issue
Deployment details
Repetitive agent tasks run through the TypeScript SDK.
- Public practitioner write-up (GitHub issue)
- Vendor reply on the issue
- Team
- Moon Banking
- Workload
- The same repetitive tasks before and after the upgrade
- Product version
- @anthropic-ai/claude-agent-sdk 0.1.60, rolled back to 0.1.30
- Measurement
- Logged cost tripled on 0.1.60; Anthropic says 0.1.30 undercounted it and billing was always correct
In SignalsCounted once, as the author's own issue. In the record



