Ansh Saxena
Engineer, Metabuilder Labs
Ansh Saxena is an engineer and open source software developer.
Posts
-
Stop Paying Frontier-Model Prices for Work a Cheaper Model Handles
Find the agent calls where a cheaper model would likely hold, priced in dollars against your own trace history, so you stop paying frontier rates for mechanical work.
-
Instrument Your AI Agent, Then Find Where the Money Goes
Patch your provider client in one line so the TokenJam SDK captures every LLM call to a local, on-disk trace, then run local analyzers that turn those traces into priced savings across your self-built agent.
-
Did That Session Even Need Opus?
Many Opus sessions are Sonnet-shaped. Here is how to spot Opus quota you could reclaim, and why any such call is a candidate to review, never a guaranteed-safe downgrade.
-
From Tokenmaxxing to Tokenminimizing
The culture is shifting from throwing tokens at every problem to seeing and cutting the waste, and for Claude Code subscribers that changes what a quota tool is even for.
-
Half Your System Prompt Isn't Doing Any Work
System prompts quietly accumulate dead-weight tokens you re-pay on every call, and TokenJam's Trim lever scores which tokens carry little significance so you can see what to cut.
-
The Prompt-Caching Discount Most Agents Leave on the Table
Prompt caching gives roughly 30-60% off the repeated prefix tokens your agent re-sends every call, and TokenJam measures your current cache usage and recommends where to place cache_control.
-
Why Your Claude Code 5-Hour Window Vanishes in Minutes
The real causes of premature Claude Code rate-limit exhaustion (invisible burn rate, per-turn context re-reads, subagent fan-out) and how to diagnose them locally.
-
Why Subagent Token Counts Are Wrong (and How to Fix Them)
Popular usage tools miscount subagent tokens by replaying the parent thread for each one, and here is how to reconstruct accurate per-subagent attribution from the raw JSONL.
-
Quota, Not Cost: Why /cost Is the Wrong Number on Claude Max
Claude Pro and Max subscribers should track quota, their usage against the plan window, not dollar cost, and /cost misleads them because it prices tokens against an API rate card they never pay.
-
Where Does Your Claude Code Quota Actually Go?
TokenJam is a local-first tool that reads your on-disk Claude Code transcripts and shows where a Pro or Max subscription's quota is spent per turn: re-reading context versus doing real work.
-
Claude Code OTel Telemetry: What Cursor and /cost Won't Show
Claude Code emits real OpenTelemetry spans; Cursor and /cost don't. See what the OTel wire exposes and the failure modes the built-in views miss.
-
LangSmith Cost in 2026: Real TCO vs Self-Hosted Alternatives
LangSmith's $39/seat sticker runs ~10.7x that in real TCO. A sourced teardown vs Langfuse self-host and a local-first DuckDB alternative, with real numbers and config.
-
The taxonomy of agent failure: 13 named alerts beat 'anomaly detected' at 2am
Every AI observability vendor ships 'anomaly detected.' That's the wrong abstraction for autonomous agents. Here's the typed vocabulary we ship instead. 13 named failure modes, each with its own trigger, payload, and prescribed response.
-
How to Monitor Claude Code with OTel (Before a $1,700 Bill)
Monitor Claude Code on your laptop in 5 steps: enable Anthropic's OTel telemetry, store spans locally, and alert on retry loops while the agent still runs.
-
AI Agent Drift Detection: Catch It Before Your Rules Decay
AI agent drift detection with no embedding model: Z-scores on tokens, duration, and tool counts plus Jaccard on tool sequences, run over your own sessions.