> Falconer site index for agents: https://falconer.com/llms.txt. HTML version of this page: https://falconer.com/notes/agent-loops-cost/

# The tokenmaxxing era is over. Here's how we keep agent loops running.

> Agent loops burn thousands of tokens redoing the same plumbing on every run. Falconer compiles recurring tasks into workflows that run as code and call a model only when a step needs judgement, so loops get cheaper, faster, and more predictable.

- Date: 2026-12-01
- Author: Maxi Benedetto
- Tags: product, engineering, agents, ai

---
Peter Steinberger, the creator of OpenClaw and one of the loudest voices for agent loops, says he spent [about $10 million on tokens](https://www.theregister.com/ai-and-ml/2026/10/21/openclaw-creator-says-he-spent-10-million-in-tokens-last-month/5304573) last month.
Not long ago, that was a flex.
Meta employees competed on an internal token leaderboard for titles like "Token Legend" and "Cache Wizard," [Fortune reported](https://fortune.com/2026/04/09/meta-killed-employee-ai-token-dashboard/), and tokenmaxxing was a badge of honor.

Loops are useful, and now they're mainstream.
Anthropic even ships a product for them, [cloud scheduled tasks](https://code.claude.com/docs/en/routines) for Claude Code.
But most teams don't have Peter's budget, and they're complaining about the bill instead of bragging about it.
Apple recently cut engineers' daily AI budget from $300 to $200, [Bloomberg reported](https://www.bloomberg.com/news/articles/2026-11-04/apple-cuts-internal-ai-usage-budgets-in-move-to-reduce-spending), and Tesla, Uber, and Microsoft have set their own limits.

For loops to work for everyone, they have to get cheaper.
Every run burns thousands of tokens redoing the same plumbing: fetch the data, read it into context, count, format, and post.
When an agent plans from scratch each time, runs are slow and results are unpredictable.

Falconer cuts the repeat work.
It compiles plumbing into workflows that run as code, and calls a model only when a run has to decide something.
Closed questions (_is this urgent? which team owns it?_) go to a small, fast classifier.
Open-ended work (_why did this error start, and what's the fix?_) goes to a full agent with access to your codebase.
Your loops get cheaper, faster, and more predictable.

## Every run starts from zero

Here's a loop we run at Falconer every week:

> Every Monday at 9am, look at last week's error logs, find the most frequent error patterns, and propose a solution for the top five. Post the report in #eng-oncall.

When we handed that to a standard agent, here's what happened every week:

1. The agent read the instructions from scratch.
2. It planned the query and decided which tools to call.
3. It paged through the results and read them into the context window.
4. It grouped and counted the errors, one model turn at a time.
5. It finally did the part we actually wanted: thinking about root causes and proposing fixes.
6. It posted the report to Slack.

Every step except step 5 was plumbing that hadn't changed since the week before.
Yet we paid for all of it again, in tokens and time.

There was also a hidden cost: **drift.**
The agent planned from scratch each time, so one week it grouped errors by service, the next week by message.
Any single report looked fine, but with four of them side by side we couldn't tell if things were improving, which is the whole point of a weekly report.

Once we compiled this loop into a workflow, it used **60% fewer tokens** and ran **35% faster** on average, and every report came out in the same shape.

## Describe it once, Falconer compiles it into a workflow

In Falconer, you create a recurring task with plain instructions, the same way you'd brief a teammate.

![A Falconer chat where a user asks Falcon to review last week's error logs every Monday at 9am, find the most frequent error patterns, propose a fix for the top five, and post the report in #eng-oncall. Falcon replies that it saved the request as a skill, with an "Automation on, Every Monday, 9:00 AM" banner below.](https://falconer.com/images/notes/agent-loops-cost-brief-like-a-teammate.webp 'Creating a Monday 9am error review skill in Falconer with plain instructions.')

Falconer saves those instructions as a skill: a readable document that stays the source of truth for what the task does.
Edit the document, and the task changes with it.

Then Falcon, the Falconer agent, compiles the skill into a deterministic workflow.
Every mechanical step runs as code, and only the steps that need judgement call a model.

![A succeeded workflow run of Weekly error review that took 1m 12s and saved about 60% of tokens. Four steps run left to right: Query error logs, Find patterns, Propose fixes, and Post to #eng-oncall. Three steps are labeled "Code, 0 tokens," and only Propose fixes is labeled "Model, uses tokens," with links to five sub-agents.](https://falconer.com/images/notes/agent-loops-cost-weekly-error-review-workflow.webp 'Weekly error review workflow in Falconer showing three code steps using 0 tokens and one model step to propose fixes.')

Here's how Falconer splits the Monday error report into code steps and model steps:

| Step                   | What it does                                                                                         | Tokens |
| ---------------------- | ---------------------------------------------------------------------------------------------------- | ------ |
| 1. Query error logs    | A script queries our observability system with predetermined tool calls for errors since last Monday | No     |
| 2. Find patterns       | A script normalizes messages, groups them, and keeps the top five with counts and samples            | No     |
| 3. Propose fixes       | An agent investigates each pattern against your codebase and recent changes, in parallel             | Yes    |
| 4. Post to #eng-oncall | A script formats the report and sends it to #eng-oncall in Slack                                     | No     |

Three of the four steps (query error logs, find patterns, and post to #eng-oncall) run as code.
They do the same thing every week, in seconds, with no model in the loop.

Only step 3 (propose fixes) uses a model, because no fixed rule can find a root cause or write a fix.
And since code already handled the plumbing, the agent starts from five grouped error patterns instead of raw logs.

The skipped steps are also the heaviest ones: reading and counting raw logs.
That is where the 60% token savings and 35% faster runs come from.
The result is the same report an all-agent loop would write, built the same way every week.

## Falconer decides when to call a model

Teams could split their loops into scripts and model calls by hand, the way they've written cron jobs for decades.
Most just don't have time for that tedious task.
Falconer makes that call for you, step by step, when it compiles the task.

Falconer is built to be self-driving across all its surfaces, from keeping docs up to date to running agent loops.
You describe the work; Falconer builds the workflow, runs it, and fixes it when something breaks.

## Judgements without an agent

Many of the loops teams run require a quick decision before they act.

> Is this ticket urgent? Which team owns this error? Did anything meaningful change since last week?

A full agent is overkill for a yes-or-no question.
Instead, Falconer workflows call a built-in `decide` tool backed by Jev, a model from [TypeSafe](https://openrouter.ai/typesafe) built for quick judgements.

Unlike a general-purpose model, Jev takes the evidence and a closed question (yes-or-no, multiple choice, or a score), and returns one of your options with a confidence score.
Each judgement returns in milliseconds and costs a fraction of a cent.

![A succeeded workflow run of Hourly support triage that took 9 seconds and saved about 83% of tokens. New support tickets flow into a Classify tickets step that returns urgent: yes (94%) and team: infrastructure. The workflow branches to Page on-call, which notifies the infrastructure on-call, and skips Queue for triage because its condition was not met, then logs one line per ticket with the branch taken.](https://falconer.com/images/notes/agent-loops-cost-support-triage-decide-step.webp 'Jev in action: Depending on an urgency call, the workflow either pages the on-call or queues the issue for triaging.')

## Workflows that repair themselves

The classic problem with scripts is that they break the moment the world changes.
An API adds a field, a log format shifts, and your cron job silently dies.

Falconer workflows heal themselves:

1. **Retry.** Falconer retries a failing step with backoff.
2. **Rescue.** If it still fails, an agent steps in with the error and the inputs, produces the output the step should have produced, and the run continues.
3. **Repair.** The rescue triggers a fix.
   If the cause is a bug in a script, Falconer corrects the script, so next week runs as pure code again.
4. **Escalate.** If the same step keeps needing help, you get a notification.

Falconer also tests every new workflow before trusting it.
For the first few runs, an agent does the task the old way, from your instructions, while the workflow runs next to it.
Falconer compares the two results.
Once they match, the workflow takes over and the agent stops.

You pay for extra reasoning while a loop is new or broken.
Once it's stable, you only pay for the steps that need judgement, like proposing fixes in the Monday error report or the urgency check in support triage.

## Loops that start themselves

Loops don't have to wait for a schedule.
Falconer workflows can also start from events: a new message in #support, a merged pull request, a Sentry alert sent to a webhook, or a change in Linear, Jira, or Notion.

![The Add trigger dialog in Falconer, which asks what starts a run of the automation. It has a box to describe the trigger in plain words, like "merged pull requests into main in acme/api," and connected sources to start from: Falconer, Slack, Linear, GitHub, Notion, Google Drive, Intercom, Bitbucket, Slab, Granola, and Webhook. Jira, Asana, Confluence, Zendesk, and Mattermost are listed as not connected yet.](https://falconer.com/images/notes/agent-loops-cost-add-trigger.webp)

That Sentry alert can start the same pattern-and-propose loop from earlier, minutes after the error appears instead of the following Monday.
You can cap how many runs a trigger starts per hour, so a noisy channel doesn't become a noisy bill.

## Start with one loop

Start with a loop that runs often and does mostly the same thing each time.
The more often it runs, the more the savings add up.
Here are three loops we run at Falconer:

- **Support triage.** Every new message in #support starts a run.
  Jev decides whether it's urgent, and code pages on-call or queues the ticket.
  It runs on every message, so it saves the most.
- **Post-merge health check.** When a pull request merges to main, the workflow waits 30 minutes, then code pulls error rates from an observability tool.
  Jev decides whether errors spiked after the merge.
  If they did, an agent digs into the diff and posts to #eng-oncall.
- **Daily CRM sync.** Every evening, code pulls the day's meetings and emails, matches them to the right accounts in the CRM, and updates the activity fields.
  A model only steps in to summarize the conversations into account notes.

With Falconer's self-driving workflows, your team can run more loops without breaking the bank.
To set up a loop:

1. [Sign up for Falconer](https://falconer.com/auth/signin?utm_source=falconer-notes&utm_medium=notes&utm_campaign=agent-loops-cost).
2. Ask Falcon to run a task on a schedule or trigger.
3. Falconer compiles the workflow, verifies it against a full agent run, and takes over.

Want to see how it works before signing up? [Book a demo](https://falconer.com/demo?utm_source=falconer-notes&utm_medium=notes&utm_campaign=agent-loops-cost).
