If you run an AI agent, your token bill lives in your source code — in prompts, tool

descriptions, and how much context you re-send every turn. And source code changes in pull

requests. So the natural place to catch a cost regression is the same place you catch a bug:

in CI, on the PR, before it merges.

I learned this the expensive way. We once