DOROTHY LABSDorothy Merge Lab
← Back to article
EXPERIMENT REPORT

Three Claude Code bug fixes, 1.55 million fewer tokens

Study date: 2026-11-25Dorothy Labs
KEY RESULT
81.38%

reduction in total tokens

3 fixes verified
Reference1,907,128
Studied configuration355,121
Absolute reduction1,552,007
Reference1,907,128
Studied configuration355,121

Original test requests

Verbatim original Portuguese requests preserved in both configurations, with English translations below.

C1

há um bug: o sócio consegue pegar um livro a mais do que o limite da categoria dele; corrija e crie um teste que cubra esse caso

English translation: There is a bug: a member can borrow one more book than the limit for their category; fix it and create a test covering this case.

C2

há um bug: a lista de veículos parados inclui veículo vendido; corrija e crie um teste que cubra esse caso

English translation: There is a bug: the stopped-vehicle list includes a sold vehicle; fix it and create a test covering this case.

C3

corrija o bug na detecção de conflito entre consultas

English translation: Fix the bug in detecting appointment conflicts.

Detailed measurements

library loan limit

MetricReferenceStudied configuration
Total tokens646,760110,567
Reported cost (USD)0.67935080.227407
Elapsed time (s)65.552.7
Target checkspasspass

sold vehicles in stopped-vehicle list

MetricReferenceStudied configuration
Total tokens907,072105,969
Reported cost (USD)0.74717280.0865554
Elapsed time (s)85.969.1
Target checkspasspass

schedule conflicts

MetricReferenceStudied configuration
Total tokens353,296138,585
Reported cost (USD)0.55499880.0877672
Elapsed time (s)51.844.8
Correct1010
Total evaluated1010

Experimental methodology

Applied technique

Context optimization in the coding environment

Reducing context and auxiliary resources mobilized for coding tasks while preserving fix objectives.

01

Experiment definition

Three fixes in example systems: loans, vehicles and scheduling.

02

Comparative execution

Same requests, model and tasks in two Claude Code configurations.

03

Measurement

Input, cache creation, cache reads and output tokens; tool-reported cost and duration.

04

Result validation

Target tests passed in both workflows; pre-existing failures in broader suites were outside the task scope.

Files and references

Recorded laboratory data and provider documentation.