How do you control token and subscription costs?
15 posts
Playbook
Practitioners control costs by routing tasks to cheaper models, ending long sessions early, and auditing specific token usage.
- Tier subagents by model
Assign cheap models like Haiku for scouting, mid-tier for implementation, and top-tier for review to reduce expensive cache rebuilds . 1
- Audit and deduplicate usage
Use tools like ccusage to track tokens, deduplicating by message and request ID to avoid 87% double-counting errors . 2
- Clear sessions between tasks
Stop sessions at planned phase ends rather than token thresholds, as long sessions consume disproportionate usage [4, 10]. 410
- Implement model routing
Build a router to map task mixes and select models along the Pareto frontier, which can reduce median cost per thread . 5
- Match effort levels to tasks
Start with Medium effort levels and adjust based on specific task needs, as lower levels can achieve similar scores at lower cost . 7
Choosing between approaches
Routing to free endpoints like NVIDIA NIM offers $0 monthly cost but limits requests to 40 per minute and logs data, making it unsuitable for sensitive work 9.
Not covered yet
The material lacks standardized benchmarks for comparing cost savings across different agent frameworks or subscription tiers.
Posts
- Price every request: thinking was 7% and subagents 57%, so tier the subagentsThe author priced four months and 110,000 Claude Code requests at API rates: thinking was only 7% and subagents 57%, with cache re-reads and rewrites the bulk.

- ccusage over 20 days showed 95% of tokens were cache reads, so dedupe by message and request IDUsing ccusage across two tools for 20 days, the author found 95% of tokens were cache reads.

- A context-shunt plugin saved about 10% of cost, far less than the tokens suggestedThe author A/B tested Spotify's Claude Code context shunt plugin, whose hook intercepts large file reads and hands them to a small-model worker.

- Audit your own requests: two long sessions drove 72% of cache readsAfter a weekly limit ran out, the author audited about 19,000 of their own requests over two weeks and found two sessions, each alive six to fifteen days, accounted for 72% of cache reads.

- Match Gemini 4 models to tasks: Neon for coding, Hydrogen for speed, Carbon for long runsPhilipp Schmid assigns specific roles to Gemini 4 models based on cost and speed.

- Build a model router in Open SWE: map the task mix, pick on the Pareto frontier, route, verifyA LangChain product manager describes building a model router into the open-source coding agent Open SWE in four steps: use LangSmith traces to see the task mix, choose models along the Pareto frontier, route in the harness, then recheck with evals or A/B tests.

- Compare Markdown, HTML and visual HTML specs on three Gemini 3.5 Flash agents, tracking costThe author ran three Gemini 3.5 Flash Pi coding agents on the same task, one each with a Markdown, HTML and enhanced-visual HTML spec.

- Same project at five Claude Code effort levels: Low took 44 seconds, Max 40 minutes, same scoreBart Slodyczka had Claude Code build the same project at each of its five effort levels and graded each with 17 hidden tests.

- Fable plans and judges, GPT 5.5 writes code, and planning plus judging costs a few dollarsThe author uses Fable xhigh as planner and architect, GPT 5.5 xhigh on a subscription as coder, then Fable xhigh again as judge.
- Route Claude Code to Kimi K3 via a free NVIDIA NIM endpoint and local LiteLLMThe author connects Claude Code to the 2.8 trillion-parameter Kimi K3 model through NVIDIA's free NIM endpoint and a local LiteLLM translator, at $0 a month.

- Stop long sessions at planned phase ends instead of at a token threshold
- Cache the shared prompt prefix instead of the document to cut Bedrock costs
- Scope the design with Fable, then hand the brief to the cheaper GLM 5.2 to code
5 more posts to see