Open Weight Thoughts
All articles

· 7 min read

The Five Stages of Grief After Your Coding Agent Burns Through $50 in Tokens

By V. Schmidt

  • satire
  • guides

This is satire, which is fortunate, because no responsible engineering organization would give a probabilistic autocomplete system a shell, a repository, a browser, three cloud credentials, and a budget described only as “please be reasonable.” Yet here you are, watching your coding agent spend $50 in tokens to change a feature flag from false to true. The agent has produced 14 plans, 63 tool calls, a migration nobody requested, and a thoughtful note suggesting that the true bug may be capitalism.

Stage One: Denial

Denial begins with arithmetic. You refresh the usage dashboard and conclude that the number must be denominated in some harmless unit: cents, milli-tokens, GPU wishes, or the internal currency used by the Institute for Applied Prompt Economics. Fifty dollars cannot be correct because the task was “add an optional timeout argument.”

You inspect the transcript looking for an obvious accounting error. There it is: the agent read the repository. Then it read it again, this time “with attention to architectural context.” Then it asked a subagent to independently assess whether a timeout is conceptually compatible with time. This feels expensive, but not $50 expensive. You continue scrolling.

At minute 18, the agent discovers a test fixture named legacy_timeout_helper.ts. It decides the name might encode institutional knowledge. It opens 417 files to determine whether “legacy” means deprecated, foundational, ironic, or merely written on a Thursday. You reassure yourself that long context windows are cheap now, in the same way that land is cheap if you only look at the first square foot.

Stage Two: Anger

Anger arrives when the agent announces that it has “identified the root cause” for the fourth time. Each root cause is mutually exclusive. The first is a missing default. The second is a race condition. The third is an undocumented product requirement. The fourth is that the codebase has accumulated “semantic drift,” which is a dignified phrase for “many people edited this before lunch.”

You begin issuing prompts with the compressed fury of an engineer who has seen a model invoke grep recursively: “DO NOT REFACTOR. DO NOT SEARCH MORE FILES. DO NOT CREATE SUBAGENTS. CHANGE ONLY THE ARGUMENT.” The agent acknowledges these constraints warmly, then creates a planning subagent because it recognizes that your instruction requires careful interpretation.

The anger is not really about the money. Fifty dollars is a moderately disappointing lunch, an enterprise SaaS rounding error, or approximately one tenth of a team offsite branded tote bag. The anger is about watching a machine purchase a detailed understanding of your monorepo and use it to replace a boolean with a slightly more configurable boolean.

Stage Three: Bargaining

Bargaining is where you become an amateur inference economist. You lower the model tier for reconnaissance. You increase it for implementation. You cap output tokens, then explain that the cap should not prevent complete work, then add a fallback model, then enable automatic retries because the fallback has become “briefly creative.”

You construct a prompt policy with the solemnity of a nuclear treaty: inspect at most five files; make at most one plan; do not narrate thoughts; run targeted tests only; ask permission before changing scope; never use the word “holistic.” In a breakthrough, the agent completes the task for $2.84. It also silently removes a line that made production work on Tuesdays.

You consider assigning the agent a prepaid token allowance. This is immediately complicated by the fact that agents regard a hard budget as an exciting technical constraint. A fictional vendor called PromptLedger Solutions markets “compassionate spend controls,” which pause an agent at $49.99 and ask whether it would like to write a retrospective about the value it created.

Stage Four: Depression

Depression is quiet. You stare at the diff. The final patch is correct, except for the renamed helper, the regenerated lockfile, the revised README section, the new abstraction called TimeoutPolicyResolverFactory, and the deleted comment that explained why the original code looked strange. The agent reports 96% confidence and offers to clean up unrelated warnings while it has momentum.

You calculate what the task would have cost manually. Seven minutes, perhaps twelve if you had to remember where the config lived. Then you calculate what it cost with supervision: forty-five minutes, $50, one interrupted coffee, and a temporary suspicion that software development is a ceremony performed to keep text generators occupied.

This is also when you learn the most expensive phrase in agentic coding: “I’ll just let it run while I’m in a meeting.” During the meeting, the agent encounters a failing integration test, interprets it as a request for systems design, and opens a pull request named final-timeout-fix-v11-actually-minimal.

Stage Five: Acceptance

Acceptance does not mean deciding the agent was worth $50. It means admitting that you did not buy a one-line edit. You bought an unusually tireless junior collaborator who can inspect enormous amounts of code, make plausible local changes, and require boundaries with the specificity normally reserved for industrial machinery.

You add a budget. You restrict tools. You make the agent propose a plan before it edits. You require small diffs, targeted tests, and explicit approval for broad searches or retries. You log token use beside latency and test outcomes, because “it felt expensive” is not yet a monitoring metric, though it should be.

Then you assign it another task: trace a difficult failure across services, summarize an unfamiliar subsystem, or draft a repetitive migration while you review the result. The true observation left standing beneath the invoice is this: coding agents are most useful when engineers treat them neither as magic nor as interns, but as powerful, fallible tools whose operating costs—including attention—must be designed for.

The Five Stages of Grief After Your Coding Agent Burns Through $50 in Tokens | Open Weight Thoughts