惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Vercel News
Vercel News
N
Netflix TechBlog - Medium
C
Check Point Blog
MyScale Blog
MyScale Blog
The GitHub Blog
The GitHub Blog
Blog — PlanetScale
Blog — PlanetScale
B
Blog RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
WordPress大学
WordPress大学
博客园 - Franky
MongoDB | Blog
MongoDB | Blog
I
InfoQ
Hugging Face - Blog
Hugging Face - Blog
Recent Announcements
Recent Announcements
人人都是产品经理
人人都是产品经理
腾讯CDC
V
Visual Studio Blog
Engineering at Meta
Engineering at Meta
T
The Blog of Author Tim Ferriss
V
V2EX
云风的 BLOG
云风的 BLOG
Microsoft Azure Blog
Microsoft Azure Blog
U
Unit 42
B
Blog

Forbes - Innovation

Why Do Humans Have Fingerprints? Hint: It’s Not What You Think Booking.com Confirms Data Breach, Reservation PIN Codes Changed Why Major News Sites Are Blocking The Internet Archive’s Wayback Machine iPhone Fold Release Date: New Report Details Frustrating Apple News Comet Tracker: How To See Pan-STARRS And Three Planets On Wednesday NYT Mini Crossword Today: Tuesday, April 14 Hints And Answers Today’s NYT Strands Hints, Spangram, Answers: Tuesday, April 14 (It’s A Little Unclear) Today’s Wordle #1760 Hints And Answer For Tuesday, April 14 Most Of The Microplastics In Urban Air Come From Tires Today’s Wordle #1759 Hints And Answer For Monday, April 13 NYT Mini Crossword Today: Monday, April 13 Hints And Answers NYT Pips Today: Hints, Answers And Walkthrough For Monday, April 13 The YC Chief Who Codes 10,000 Lines A Day Has A Simple Secret Samsung Expands One UI 8.5 Beta To More Galaxy Owners Why You Should Stop Using Your iPhone If It’s On This List Chamath Says Firms That Treat AI As A Strategy Hand Rivals Their Edge 3 Unexpected Habits Of Secure Couples, By A Psychologist The First Lamp That Folds Your Clothes Samsung’s Disappointing Price Update For Galaxy Phone Buyers 3 Subtle Signs Someone Is Falling In Love With You, By A Psychologist Do Mantis Shrimp See More Colors Than Humans? A Biologist Explains NYT Connections Answers Explained For Monday, April 13 (#1,037) NYT Connections Hints Today: Monday, April 13 Clues And Answers (#1,037) LEGO Luigi & Mach 8 (72050) Review: 2026’s Best Set Yet? Marc Andreessen Says AI Productivity Will Trigger A Hiring Boom 3D Printing Is The Ultimate Hack To Reduce Household Spending Apple iPhone Fold: Striking Design Revealed In Leaked Photos Apple Smart Glasses: New Leak Reveals A Major Design Twist To Beat Meta Tested: The AI Coming To The Rivian R2 Quordle Hints Today: Monday, April 13 Clues And Answers
The Architecture Behind Cost-Effective AI Agents
Aruna Veerap · 2026-05-22 · via Forbes - Innovation

Aruna Veerappan is Senior Director of Engineering at Upwork, leading Developer Enablement to reduce friction and boost team productivity.

getty

Engineering leaders are discovering that the hardest part of AI agents isn't the AI—it's the architecture underneath.

I learned this firsthand when a quarterly budget disappeared in weeks. Nothing was broken, the models worked and the engineers were strong. But the system hadn't been designed for cost, and the bill arrived before a single workflow reached production.

The root cause: we were pointing expensive models at every task. Verifying file existence. Checking ownership against APIs. Routing logic that could have been a single if-statement. Each call seemed reasonable. The cumulative cost was not.

I've come to call this the Agent Cost Spiral—and engineering teams across the industry are running into it right now.

"An Agent Cost Spiral isn't an AI problem. It's an architecture problem. And once you see it, you can't unsee it."

This pattern has a precedent. A decade ago, teams migrated to the cloud chasing savings, then watched their bills explode past on-premise costs. The architecture was the problem—not the technology. AI inference costs follow the same arc. The fix: stop treating it like a utility and start treating it like an engineering problem.​

Tiered Architecture Every Agentic System Needs

A well-built AI agent isn't a single model receiving a single prompt. It's a choreographed system where each task is matched to the minimum level of intelligence required to complete it well.

Tier 1: The Deterministic Skeleton—Just Use Code

If your process follows a fixed rule—"if a customer's order exceeds $5,000, route to a Senior Rep"—you don't need AI. You need a conditional statement. Enterprise teams routinely spend real money asking frontier models to handle basic routing logic, and the cost problem is the smaller concern. AI is probabilistic, which means even a capable model can get a simple rule wrong some percentage of the time. For business logic that must be consistent 100% of the time, probabilistic is another word for broken. Build your guardrails in code. Let AI operate within them.

Tier 2: The Workhorse Models—Cheap, Fast and Good Enough

Summarizing documents. Extracting fields from structured data. Reformatting outputs. These are real, valuable tasks—but they don't require a frontier model. Smaller "flash" models handle these workloads at roughly 1% of the cost of a premium model. If you're using a frontier model for this work, you're not just overpaying—you're slowing down your pipeline.

Tier 3: The Frontier Model—Reserve It For What It's Good At

Top-tier models are extraordinary at synthesis: taking conflicting information from multiple sources and producing nuanced, well-reasoned output. That's where the cost is justified. The mistake is giving them everything else too. When you feed a frontier model thousands of lines of raw, unfiltered context, two bad things happen—costs spike and quality drops. The right move is to let Tier 2 do the reading and summarizing, then hand a clean, pre-processed brief to your Tier 3 model. You're paying for reasoning, not retrieval.​

What This Looks Like In Practice

One of the most common enterprise headaches is keeping technical documentation current—most teams either let it stale or throw expensive engineering hours at it.

The Lazy Approach

Send the entire codebase to a premium model and ask for documentation. Cost: ~$15 per service. The model is overwhelmed by irrelevant code, hallucinates configuration details, misses security settings and gets version numbers wrong.

The Architected Approach

This approach can be divided into three tiers:​

Tier 1.

Code: automatically identify and extract the relevant configuration files—no AI needed, just pattern matching.

Tier 2.

Workhorse Model: summarize those files into a structured brief. Fast, cheap and accurate.

Tier 3.

Frontier Model: take the brief and write the final, polished documentation.

"Cost: $0.50 per service. Accuracy: measurably higher. That's a 30× cost reduction with better output—not a trade-off."

The quality improvement isn’t incidental—it’s structural. The frontier model performs better because it’s receiving cleaner input. You’ve set it up to succeed.​

The Staircase Scaling Rule

There's a second failure mode that hits teams who've already built something good. The agent tests well, confidence is high and someone makes the call to run it on everything at once.

High-cost failures almost always trace back to under-validated systems running at scale. The fix is Staircase Scaling—earning the right to scale by proving the system at each step before moving to the next.

Step 1.

The Quintet (n=5): run five samples and manually review every output. If the agent fails here, your debugging cost is $2, not $2,000.

Step 2.

The Squad (n=15): run a more diverse batch of fifteen. This is where edge cases surface.

Step 3.

Full Rollout: only when your Squad pass rate is consistently above 90% should you scale to the full dataset.

This sounds slow. It isn't. Teams that skip this process lose weeks to remediation. Teams that follow it reach production confidently within days.​

The Only Metric That Matters​

Here's what separates teams genuinely automating from teams just shifting work around: Cost per Successful Output (CSO)—not cost per API call or tokens consumed, but cost per output that clears your quality bar without human correction.

If a senior engineer spends three hours cleaning up AI-generated documentation that cost $500 to produce, nothing was automated. The work simply moved—with frustration on top. The real test is whether your CSO is lower than the cost of a human doing the same task well. Everything else is theater.

Engineering leaders getting this right share a shift: they stopped asking "Which model is smartest?" and started asking "What does each task need?" Costs start making sense. Failure modes become predictable. The architecture becomes something you can defend to a CFO.

You don't need the smartest model. You need the right model for each job—and the discipline to know the difference.

The Agent Cost Spiral is real. It isn't a reason to pull back—it's a reason to build deliberately. Get the architecture right first. The ROI will follow.​


Forbes Technology Council is an invitation-only community for world-class CIOs, CTOs and technology executives. Do I qualify?