AI & Machine Learning

Why I'm Obsessed With Cost-Per-Performance in AI Right Now, and What It Means for Your Projects

A

Adil Sher

Author

Nov 12, 2026
4 min read
0 views
Why I'm Obsessed With Cost-Per-Performance in AI Right Now, and What It Means for Your Projects

I spent three hours last week optimizing a feature that reduced our API costs by $12 a month. My CTO looked at me like I'd wasted my afternoon. Then we deployed an AI-assisted debugging tool that cost $400 to run once on a production issue. Suddenly everyone cared about efficiency. This disconnect between how we think about infrastructure costs and how we think about AI costs has been bothering me, and a recent benchmark result made it impossible to ignore.

AgenC Core just scored 84.5% on Terminal-Bench 2.1 for $27. Let that number sit for a second. Every official leaderboard entry cost at least $134. The top scorer spent over $1,000. We're not talking about marginal differences here, we're talking about 28x cost reduction while losing only 2.9 percentage points on performance. That's not a rounding error. That's a completely different way of thinking about building AI systems.

The Benchmark That Actually Matters

Terminal-Bench measures something I care about: can an AI agent actually do my job? It's not generating essays or answering trivia questions. It's debugging async code, fixing security vulnerabilities, and solving real terminal-based tasks. This is production-adjacent work.

The benchmark gave both the official entries and this independent run the same constraints: 89 tasks, 5 trials each, official timeouts, official resources. No cheating. The difference was the model choice and the harness implementation. AgenC Core paired DeepSeek V4.1 Flash with a smart agent harness that made every token count.

Here's what fascinates me: the cost breakdown was $27.21 for 1.2 billion tokens with a 97% cache hit rate. That's about $0.06 per trial. Most of that cost advantage came from two things, a genuinely cheap model and aggressive prompt caching. Not magic. Engineering.

What I Actually Care About: The Harness, Not Just The Model

The article mentions something briefly that I think is the real story: the harness is everything. AgenC Core isn't the model. It's the scaffolding around the model, the tools it can call, how it retries, when it knows a task is done, how it manages context.

The original run exposed three categories of bugs in the harness itself. Services died unexpectedly because the shell tool killed background processes without telling the model. Safety policies blocked commands the model needed to run. And the agent would quit tasks prematurely without verification. These aren't model problems. These are engineering problems.

This matters to me because I've built similar systems. You can have a brilliant model behind a terrible harness and get worse results than a decent model with smart engineering. The harness is where full-stack developers actually add value in AI projects.

My Take: Why This Changes How I Think About AI ROI

Here's my honest reaction: I've been thinking about AI costs all wrong. I was comparing models on benchmark leaderboards like they're playing the same game. But the real game is optimizing the entire system, model selection, prompt engineering, caching strategy, retry logic, and graceful failure handling.

The caveats in the article matter, and I appreciate they included them. This isn't an official leaderboard entry, so there's no third-party validation. The model is cheap per token, which other teams might not have access to or might not choose for other reasons. There are no uncertainty margins on this run, so the 0.7-point gap to the official second-place might not be statistically significant.

But here's what I can't dismiss: if I ran a terminal-based debugging service in production, would I rather pay $27 or $1,000 per benchmark run? Would I optimize for that? Absolutely.

What I'd do differently: I'd run this experiment on our own infrastructure with models we actually use in production. I'd measure not just cost-per-accuracy but cost-per-latency and cost-per-reliability. I'd instrument the harness to understand where time and tokens are actually spent, not just the aggregate numbers.

The Engineering Question That Stays With Me

This result is loud about one thing: harness design matters more than we talk about it. We obsess over model weights and training data, but the code that wraps the model often decides whether it's useful or expensive.

In my projects, I'm now asking: Where could we cache prompts? What retries are actually helping versus wasting tokens? Which tools is the model actually using effectively? These aren't model questions. They're architecture questions, and they're where I think developers can actually win.

What are you optimizing for in your AI projects? Cost, accuracy, latency, or something else? And more importantly, are you measuring the harness as carefully as you measure the model?

Source: This post was inspired by "How our open source coding agent scored 84.5% on Terminal-Bench 2.1 for $27" by Dev.to. Read the original article

Share this article

Written by Adil Sher

Full stack developer building high-traffic platforms, AI services, and custom web applications. Explore my portfolio, learn about my background, or get in touch.

Related Articles