news

Claude Code's Code Mode, tested: about 22% cheaper on two of three tasks

bestagent.dev ran three tasks three times each on Claude Code 2.1.325 with Opus 5.5, Code Mode on and off. A feature-with-tests job fell from $0.45 to $0.35 a run; a broken-link check from $0.20 to $0.16. A 20-file edit barely moved.

Published 2026-11-15Source: bestagent.dev
bestagent.dev source artwork

Why it matters

Same model, same tasks, about a fifth off the bill on two of them. The cut came from the harness: Claude was given 3 tool definitions, not 16, so the opening request shrank from about 38,000 tokens to 22,000, and that base rides along on every later request.

Tokenmaxxing read

The usual cost fix is a cheaper model. This one is fewer round trips: the feature task took 6 to 8 requests, down from 10 to 13, and cache reads more than halved, to 211,000–274,000 tokens from as many as 678,000. Count requests per task before you trade down on model quality.

Source takeaway

Mind the limits. The mode is experimental, needs an environment variable, runs solely in a live terminal session, and switches off computer use, Claude in Chrome and Remote Control. The test covered one model on tasks that ran under two minutes.

Topic links

Related projects

Tools that match this angle

#4In spirit
Agents

LangGraph

langchain-ai/langgraph

A framework for building resilient stateful agents with explicit graphs, persistence, human-in-the-loop flows, and controllable execution.

45.2K7.8KMIT
agentsstateworkflows
#1Direct
Routing

LiteLLM

BerriAI/litellm

An OpenAI-compatible gateway and SDK for calling many model providers with budgets, logging, load balancing, guardrails, and cost tracking.

63.6K13.4KSource-available
gatewaycost-trackingrouting
#2Direct
Observability

Langfuse

langfuse/langfuse

Open-source LLM engineering platform for observability, traces, metrics, evals, prompt management, datasets, and playground workflows.

37.7K4.3KSource-available
tracesevalscosts
Related feed

More source-linked context

XDA source artwork
long-formX
long-form

Dropping Claude Code from High to Medium effort cut output tokens 45%

XDA's Mahnoor Faisal ran five coding jobs on Sonnet 5 twice from an identical starting codebase, changing only the effort level. High spent about 26,000 output tokens; Medium finished the same work on roughly 14,300.

coding-agentstoken-consumptionai-spend
Read note
Anthropic source artwork
newsA
news

Introducing Claude Fable 5.2 and Claude Mythos 5.2

Anthropic released Claude Fable 5.2 and Mythos 5.2 on Nov. 9, priced at $8 per million tokens in and $40 per million out, which it calls a lower price. An optional fast mode generates up to 2.5 times quicker at exactly double both rates.

tokenmaxxingpricingmodel-routing
Read note
XDA source artwork
long-formX
long-form

Claude Code was using 51,000 tokens before I even typed a prompt — I fixed it

Mahnoor Faisal opened a new Claude Code session, ran /context, and found 51,400 tokens already loaded. Disabling four test plugins and auto-memory got the starting context down to roughly 41,400 before any real prompt.

coding-agentstoken-consumptiontoken-waste
Read note