What Does an Accepted AI Code Change Cost? Kilo published a methodology for measuring what an accepted AI code change actually costs, arguing that token prices alone cannot compare models because they exclude failed attempts and human review time. Kilo's approach divides a batch's total inference charges, including abandoned patches and unsuccessful corrections, by the number of accepted changes; in a hypothetical 20-attempt batch, setup A spends $1.20 for four accepted changes ($0.30 each) while setup B spends $2.40 for twelve ($0.20 each). The guide recommends eight maintenance issues run in fresh sessions with identical files, tools and stopping rules, and comparing Kilo's Auto Efficient routing against a named fixed model. Include the corrections in the cost Suppose an inexpensive model produces a patch that needs two corrections, while another model finishes the same task on its first attempt. The token prices alone cannot tell you which cost less. You need the charges for every attempt, along with the time you spent getting each patch through review. Kilo’s Auto Efficient chooses models based on request difficulty and session context, using Kilo’s benchmarks https://kilo.ai/kilobench to guide routing. Compare that policy with a fixed model on the same coding tasks, then calculate what each setup spent per accepted change. Kilo Auto Model documentation https://kilo.ai/docs/code-with-ai/agents/auto-model Count a change as accepted only when it passes the criteria you set before the test. Keep the cost of failed attempts in the calculation, even when you discard their patches. Define an accepted change before running anything Choose a small batch of resolved issues from a repository you may use. Restore each issue’s code to its pre-fix state and remove material that reveals the solution. Keep the original patch elsewhere for review, while allowing a different implementation to pass if it meets the requirements. Write acceptance criteria you can check. For example, require a name field to reject blank input while preserving valid names and the existing public API. Add regression tests where needed, and review the diff for changes outside the task. Decide in advance which actions disqualify a patch, such as disabling a test or adding an unapproved dependency. Also define how much human repair you will allow before you score an attempt as a failure. Apply those rules regardless of the model’s price. Use the same task budget for both setups Start with eight maintenance issues covering work you encounter, such as input validation, an empty-state bug, a missing test, and an interface adjustment. Include awkward cases from the repository as well as straightforward fixes. Run Auto Efficient and a named fixed model in fresh sessions with identical starting files. Keep the instructions and available tools consistent, including permissions and dependency versions. Record the fixed model’s exact identifier and reasoning setting; for Auto Efficient, save the run date, any custom pool configuration https://kilo.ai/docs/code-with-ai/agents/auto-model custom-efficient-pools , and the routing details Kilo exposes. Kilo can change the models behind Auto server-side. Save the model and cost information shown in the expanded picker with each run so your results identify the configuration you actually tested review the Kilo Auto Model documentation https://kilo.ai/docs/code-with-ai/agents/auto-model . Give both setups the same stopping rule, such as twenty minutes and one follow-up containing the failed-check output. Start with one attempt per issue in each setup if your budget is limited. Repeating each issue five times produces forty runs per setup and lets you inspect variation across attempts. Keep failures in the calculation Divide the batch’s total inference charges by its accepted changes, including the charges for abandoned patches and unsuccessful corrections. If nothing passes, report zero accepted changes and the amount spent; cost per acceptance is undefined. For a hypothetical batch of twenty attempts per setup, suppose A spends $1.20 and produces four accepted changes, while B spends $2.40 and produces twelve. A costs $0.30 per acceptance; B costs $0.20. B spends twice as much overall but produces three times as many usable changes. These figures illustrate the arithmetic and do not report Kilo benchmark results. Use the billed session amounts https://kilo.ai/docs/getting-started/rate-limits-and-costs how-costs-are-calculated and note any credits, discounts, or cached-token effects. Report paid infrastructure separately from inference charges, and exclude unrelated work from the comparison. When one model fails and another finishes the task, charge both attempts to the same outcome. Carry the failed attempt’s cost forward when you switch models. Track your time without hiding it in a formula Track the minutes you actively spend reading output, answering questions, supplying corrections, and reviewing patches. Keep elapsed completion time separate: a model can work for ten minutes while you do something else, whereas ten minutes of repeated explanation requires your attention. If you convert your time into money, show the hourly rate and the minutes behind the calculation. Someone with a different rate should still be able to use your results. Keep a run log with the task identifier, attempt number, setup, acceptance outcome, inference charge, elapsed time, human minutes, and failure reason. Save the patch and test output with each entry so you can revisit a disputed score. Choose a default for each kind of task Group the results by task type. If your trial shows that Auto Efficient handles interface changes at a lower cost per acceptance while a fixed model completes difficult validation work with less intervention, use those findings to assign future tasks. Compare the two setups on each issue and alternate which runs first. If you report median completion time for successful attempts, show the failed-attempt count alongside it so readers can judge completion as well as speed. A difference of a few cents and one disputed acceptance calls for another test. When a category repeatedly needs rescue, rerun those tasks with a different model before changing your default for that category. Set a retry policy you can afford Use your results to set a starting model and correction budget for routine work. When an attempt reaches that limit, pass its failure evidence to the next model so it can work from what you have already learned. Stop switching models if the failures come from unclear requirements or a broken environment. Fix those conditions before spending on another attempt; the next model will otherwise face the same missing information. Keep the failed tasks for a repeat comparison after a model or routing update. Before adopting the new setup, check its total spend against the changes that passed review, then decide whether its demand on your time fits the work you need to do. A low price per token cannot answer that decision for you.