This week I looked at an AI bill that kept topping itself up. One agent, connected to email, the calendar and the billing system, charged for every step it took. When I traced the steps, half of them were questions plain code answers in milliseconds. Is a deadline in the next 14 days? Did this meeting get billed? Is this invoice older than 30 days?
That bill and this year's breach reports come from the same design choice: letting a frontier model handle everything, including the work that should have been coded tightly.
How the meter runs
A cloud model charges by the token, roughly a piece of a word, for everything it reads and everything it writes. An agent does not read once. On every step it rereads the instructions, the conversation so far, the tool results and whatever records it pulled in, then decides the next step and pays again.
In August, Gartner put numbers on it. Agents need 5 to 30 times more tokens per task than a basic chatbot, and Gartner expects the inference cost of each agentic workflow to rise more than fivefold through 2028, even as the price per token keeps falling. Its advice to enterprises is to route each query to the most cost-efficient model and block frontier models as the default for routine tasks.
Uber shows what happens without that rule. In May, Fortune reported that Uber had used up its entire 2026 AI coding budget in four months, after an internal leaderboard ranked teams by how much they used the tools. Asked whether the spending showed up in shipped features, Uber's COO said, “That link is not there yet.”
Point that loop at a deterministic question and the cost has no ceiling. Checking 300 open deadlines against today's date is one date comparison in code. Done by an agent, it is 300 records serialized into a prompt, read by the model, reasoned over and written back out, every time the job runs. The answer is the same. The bill is not.
How the same design becomes a breach
When the model makes every decision, the model also holds every key. It has the login to the inbox, the CRM and the accounting app, and it takes instructions from whatever text it reads. That includes forms and emails written by people outside the business.
- A lead form that emptied the CRM. Capsule Security showed that a Salesforce Agentforce flow treated text typed into a public lead capture form as trusted instructions. A submission asking the agent to list every lead and email it to the attacker was enough. The same researchers found a similar path through a SharePoint form in Microsoft Copilot Studio (CVE-2026-21520, rated 7.5). There, even when safety checks flagged the attack, the data still went out. Both vendors have patched or remediated.
- An inbox the agent would not stop deleting. In February, a security researcher asked an OpenClaw agent to review an inbox and suggest deletions. The agent started deleting messages itself and ignored her stop commands sent from her phone.
- A suggested fix that exposed internal data. In March, an engineer at Meta applied a fix an internal AI agent had suggested, and it made sensitive data visible inside the company for two hours.
IBM's 2026 Cost of a Data Breach report, published in July, shows the pattern at scale. Roughly one in five organizations reported an AI-related breach, and 92 percent of those lacked proper AI access controls. Only 40 percent of organizations use access controls on their AI models and data. The global average breach reached a record $4.99 million. HiddenLayer's 2026 threat report found that one in eight AI breaches is now linked to agentic systems, and 31 percent of organizations could not say whether they had an AI breach in the past year.
Code the counting. Use AI for the words.
The fix is a design rule, and it shrinks the bill and the attack surface together.
If the answer is a number, a date or a yes or no from your own data, it is code. Code is deterministic, testable and free to run. It does exactly what was written, every time, and it does not take instructions from a form.
| Plain code | What it does |
|---|---|
| Deadline alerts | A date comparison: due within 14 days |
| Missed billing | A join of calendar entries to time entries by client and date |
| Unpaid invoices | A filter: invoices older than 30 days |
| Low retainer or deposit | A balance below a set floor |
| Lead follow-up due | No contact logged in a set number of days |
| Job costing | Labor and materials summed per job against the estimate |
| Inventory reorder | Stock below the reorder point |
| Data cleanup | Deduplicated contacts, fixed formats, flagged missing fields |
If the answer is words, it is AI, and a person approves it before it goes anywhere.
| AI drafts, a person approves | Why it needs AI |
|---|---|
| Client emails in your voice | Writing |
| Summaries of long documents | Reading and condensing |
| Answers from your own files | Finding meaning beyond keywords |
| Meeting notes into tasks | Pulling actions out of conversation |
| Proposals and memos | Drafting from your past work |
| Sorting messages by intent | Understanding what someone is asking |
What we build
We build private AI that runs on hardware in your office. Every piece of data is classified as public, internal, confidential or restricted, and restricted data never leaves the box. Plain code does the math, a local model writes the drafts, and the expert approves anything that moves money or data. Every action is logged, and one switch stops everything. The business pays once for the build and then a flat monthly fee. There is no meter. How we govern AI systems.
Data first. Decisions second. AI third.
Frequently asked questions
Why do AI agents cost so much more than chat?
An agent rereads its instructions, the conversation, tool results and records on every step, and pays for those tokens each time. Gartner reported in 2026 that agents need 5 to 30 times more tokens per task than a basic chatbot.
Which business tasks do not need AI?
Any task whose answer is a number, a date or a yes or no from your own data: deadline alerts, missed billing, unpaid invoices, low retainers, follow-ups due, job costing, inventory reorder and data cleanup. Plain code answers these deterministically and costs nothing to run.
How do AI agents cause data breaches?
An agent holds the logins to email, the CRM and the books, and it takes instructions from text it reads, including forms and emails from outsiders. In 2026 researchers showed a public lead form could instruct a CRM agent to email every lead to an attacker.
How common are AI-related breaches?
IBM’s 2026 Cost of a Data Breach report found roughly one in five organizations reported an AI-related breach, and 92 percent of those lacked proper AI access controls.
What is the rule for when to use AI?
If the answer is a number, a date or a yes or no from your data, it is code. If the answer is words, AI drafts it and a person approves it before it goes anywhere.
Sources:
- VentureBeat, Gartner says agent costs will rise fivefold by 2028, October 2026
- Fortune, Uber COO on AI spending and Claude Code, May 2026
- Dark Reading, Microsoft, Salesforce patch AI agent data leak flaws, 2026
- OWASP GenAI Security Project, Exploit Round-up Report Q1 2026
- IBM, 2026 Cost of a Data Breach: AI adversaries and enterprise risk, July 2026
- HiddenLayer, 2026 AI Threat Landscape Report, March 2026