ServicesCoding agents
LLM cost optimisation, with code quality checked at each step
We find out where your agent spend goes for each team and tool, and put defaults, budgets and routing in place that your platform team can run. Before a new default goes live, we replay merged changes to check that review effort and rework have not risen.
Where the savings come from
- A lower-cost default model for routine work, with no quality loss on your tests
- A limit on parallel runs for each team
- Fewer retries, and early stops for runs that make no progress
€49000 a month instead of €62000, and rework at 10% instead of 11%
What the bill is made of
A coding agent bill combines several kinds of cost. Each of Claude Code, OpenAI Codex, OpenCode, Cursor and GitHub Copilot can be bought as seats or subscriptions, as metered requests to a model or gateway, or as a combination. We break your spend down from the invoices, not from list prices. We also look at the usage limits that come with subscriptions, because being throttled, paying for overage or waiting on blocked work has a price as well.
- Seats and subscriptions
- Metered requests to models and gateways, tokens included
- Capacity you have reserved or committed to
- Runs that were retried or abandoned
The cost of an accepted change
A smaller token bill is worth little if more changes are rejected. We add seats, subscriptions and metered requests together with rework, reverts and review findings, and compare what each accepted change costs.
Freed capacity turns into cash only when the invoice changes. With seats or reserved capacity, that happens when a contract or an allocation changes. You learn which savings will reach an invoice, and from which month.
An estimate for your teams
Your agent spend now
€600,000 a year
Assuming a saving of 21%
€126,000 a year
The 21% matches the synthetic readout at the top of this page. Your own figure comes from replaying your merged work.
In a 30-minute call we work out which savings are realistic for your setup.
Seats, metered usage and caching
Seats and metered usage reward different habits. With a seat, one session a day costs as much as twenty. With metered billing, the cost rises with the size of the context, the number of retries and the runs in parallel. Prompt caching, where both the provider and the tool offer it, makes repeated context cheaper, for example instruction files or large source files sent with every request.
Before we change a plan or a default, we look at how your teams actually use their tools. Putting heavy users on metered billing, or occasional users on seats, raises the bill instead of lowering it.
What we set up with your platform team
Your platform team works on this with us, and we change only one model choice at a time.
- A catalogue of approved models, with someone named as its owner
- Default models and routing rules for each type of task, based on results from your own work
- Attribution by team at the gateway, matched against the providers' invoices
- Budgets and caps tested under parallel and streamed requests, since a limit that holds for one call can fail under load
- A written process for teams that need a higher limit
- Fallbacks for when a provider is slow or down, rehearsed in drills
OpenCode keeps the provider and the model in versioned configuration. Your contracts still decide the bill, so we check the configured endpoints against your invoices.
What multi-agent workflows cost
When a workflow adds a second model for review or runs agents in parallel, the same repository context is sent several times, and every retry sends it once more. We count these requests per accepted change and add the review time the workflow costs or saves your engineers. How we attribute the cost depends on how it is billed: by provider or gateway invoices for a tool such as Kilo, by comparing seats with actual metering, and by whatever your plan meters for cloud agent work, such as Devin sessions. Paying more per change can still make a workflow worth it.
Setting up Kilo · Handing tasks to Devin · Using pstack in Cursor
What stays with your platform team
- The model catalogue, the defaults for each task and the gateway configuration
- Spend broken down by team and matched to your invoices
- Runbooks for changing a default and for handling incidents
What the monthly figures show
- Spend for each team, tool and task
- The cost of an accepted change before and after every change to the setup
- Acceptance and rework next to cost, so a saving is reported only where quality held
Questions
Where does the 21% in the estimate come from?
From the synthetic readout at the top of this page. Your own figure comes from your merged work, which we replay together with your platform team before any default changes.
Will everyone end up on the cheapest model?
No. Quality on your own tasks decides the defaults, and cost comes second. If a cheaper model causes rework, that rework is added to its cost.
What is the first step?
A 30-minute call with one of our engineers, for which we need no access to your systems. Your usage data comes into it only once we work together, and then under a data processing agreement.
How is Claude Code paid for in a team?
There are seats on a Claude plan, usage-based API access from Anthropic or a cloud provider, and combinations of both. The cheaper route depends on how your engineers work with it, so we compare your invoices and usage data rather than list prices.
Related services
Evaluations on your repositories
Tools, models or settings tested side by side on changes you have already merged, before you commit to one.
Harness engineering
The setup that tells an agent how to build, test and change your code, kept in version control.
Coding agent adoption
Agents taken from a few pilot teams to the rest of engineering, with training and one shared setup.
From the blog
Coding agent context budgets
How to reduce the context a coding agent carries without dropping constraints that matter, and how to check on your own tasks that quality held.
pstack workflows
What the pstack plugin for Cursor contains, how its playbooks and model roles work, and how a team adopts it under its own controls.
Talk to an engineer
Bring one piece of work you would like to improve. The call takes 30 minutes and needs no access to your systems or your data.
Booking runs on Google Calendar.
Prefer to write first? Leave your email and a few lines, and we reply with times.
Look for the draft in your email program
Send it from there, and an engineer replies in person with times for a 30-minute call. If no draft has opened, write to us at miki@cloudsail.com.