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

推荐订阅源

Cisco Talos Blog
Cisco Talos Blog
V
V2EX
C
Check Point Blog
GbyAI
GbyAI
D
Docker
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog RSS Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
N
Netflix TechBlog - Medium
T
Troy Hunt's Blog
博客园 - Franky
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Microsoft Security Blog
Microsoft Security Blog
P
Privacy & Cybersecurity Law Blog
WordPress大学
WordPress大学
The Cloudflare Blog
S
SegmentFault 最新的问题
Latest news
Latest news
Microsoft Azure Blog
Microsoft Azure Blog
P
Proofpoint News Feed
I
InfoQ
博客园 - 【当耐特】
NISL@THU
NISL@THU
A
About on SuperTechFans
T
Tailwind CSS Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
The Hacker News
The Hacker News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Scott Helme
Scott Helme
雷峰网
雷峰网
C
CXSECURITY Database RSS Feed - CXSecurity.com
Security Latest
Security Latest
V
Vulnerabilities – Threatpost
Security Archives - TechRepublic
Security Archives - TechRepublic
A
Arctic Wolf
Hacker News: Ask HN
Hacker News: Ask HN
N
News and Events Feed by Topic
IT之家
IT之家
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
aimingoo的专栏
aimingoo的专栏
T
Threat Research - Cisco Blogs
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
阮一峰的网络日志
阮一峰的网络日志
SecWiki News
SecWiki News
大猫的无限游戏
大猫的无限游戏
S
Security Affairs
The Register - Security
The Register - Security
www.infosecurity-magazine.com
www.infosecurity-magazine.com
L
LINUX DO - 热门话题
T
Tor Project blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
AI Agent Cost Is a Runtime Signal | Focused Labs
Austin Vance · 2026-06-17 · via DEV Community

AI agent cost management fails when cost is treated as a monthly bill as opposed to a runtime signal.

A coding agent spends money differently than a bill. The agent could spend money by selecting a model for a specific task, using dragged-in context from past tasks, calling tools along the way from past tasks as well as other subagents that are passed work to complete. And the spending happens in a loop of retry and re-evaluation and passing of work until a harness or developer stops the agent from running more.

First, LangChain concisely outlined the problem with spend from coding agents in its June 15 post about making coding-agent spend predictable: a heavy user can spend thousands per week before anyone notices. Anthropic's 2026 coding-agent report gives the other side of the same pressure. Developers already use AI in roughly 60% of their work while fully delegating only 0 to 20% of tasks. So even if the behavior of an agent could be made predictable and therefore controllable, the agents are already active enough that they consume tokens, pay for tools, and pay for reviewer time.

The bill arrives after the behavior

The spend is treated as finance information and finance sees the spend after the system has already behaved. Engineering owns the behavior of the coding agent.

A normal cloud bill has a simple shape. One can attribute the cost to a service, environment, team, or cluster. The spend of coding agents has a different shape. An expensive coding agent can have a simple spend behavior, for example a retry policy, a growing context window over the lifetime of a task, or a fallback policy that promotes a cheap model call to an expensive reasoning model. The cost of a coding agent is heavily influenced by the tool loops that it executes, especially search that stops only when a confidence threshold is reached.

Orq defined an AI agent FinOps framing that points at the right unit. Agent costs are determined by runtime behavior. When finance and agents come together, the useful metric is cost per outcome rather than cost per token. A five dollar workflow that produced the correct fix for a support case can be cost efficient compared to a fifty cent workflow that opened trace after trace of garbage work for a human to resolve.

The monthly invoice cannot tell the difference.

This is why the cost conversation has to happen next to traces, evals, owner fields, and policy changes. We have been making this point for months, just in different words: traces have to become operational evidence, not mere exhaust. Cost is another field in that evidence.

Runtime spend signal loop showing an agent request flowing through an LLM gateway, model and tool calls, trace spans with cost attribution, eval results, and harness policy changes.

Cost control works when spend, traces, outcomes, and harness policy sit in one loop.

Caps are crude without traces

This same approach shows up in LangChain's internal rollout of cost control to coding agent usage, using LangSmith LLM Gateway budgets scoped by organization, workspace, user, and API key. That system includes monthly, weekly, daily, and hourly budgets, with allowances for users and projects in special circumstances to spend more than a default window allows. Treat those as production controls, not account codes.

The same simple monthly budget can be killed by one expensive task while the rest of the month looks fine. That same hourly limit that stops the expensive task in its tracks can cut into a long-running cheap task that is producing value. A cap only helps when the team has a good sense of the cost's runtime path.

The good question here is mundane and hard to pull off: which trace went over budget; what model route did it use; who or what workflow triggered it; which tool calls were involved; what retry or eval loop drove up the cost; and was the outcome worth the burn?

Similarly, tracing the harness or agent for a single run is the same information required to debug a pipeline rather than a single prompt. A prompt trace alone will not expose enough information to diagnose the run. The trace of the harness shows whether the agent cost more because it was doing hard work, stuck in a failure-and-retry loop, or carrying junk in the context backpack.

Budget windows should expose the loop

Agent cost controls fail when they are simply yes or no.

Instead of simply approving or denying cost, the budget window has to do a real job. It warns early; attributes the trace that is blowing through the money; throttles expensive loops with no end; permits named exceptions; and preserves enough detail for the next time the harness sees the same shape.

Budget windows versus runaway loop diagram showing hourly, daily, weekly, and monthly budget controls with warning, throttle, exception, and hard-stop paths around the same coding-agent workflow.

The budget window should expose the loop before the invoice does.

A coding-agent workflow can include searching for code in the repository, writing and running tests, setting up packages, opening a browser, and asking a stronger model for more reasoning around a failure. Once agents and models get integrated into developer work, the cost of running that agent starts to matter alongside the developer's time.

Finout's 2026 spending analysis shows volatility in individual inference calls. A single call can vary by model choice, context length, and agentic workflow shape. Small changes in routing or context can create large changes in cost with little change in the feature being built. Aggregate spend hides the actual path.

The path is the product.

The harness owns the budget

Spend ownership lands in the harness.

The harness determines the model route to be used for the agent. The harness determines the retries for the agent. The harness determines if the context retrieved from storage should be trimmed, summarized, retrieved in full, or left untouched for future retrieval. The harness determines if subagents should be spawned to perform subtasks. The harness determines which tools the agent may use to complete a task. The harness determines what to do with the failing eval: retry, escalate, open a ticket, or stop.

That is why cost policy belongs in the harness around the model. A proxy that sits alone is too thin. It can only say yes or no.

There is a large variance between a cheap model and an expensive model. A cheap model can end up being far more expensive due to the way it is used to complete tasks, namely looping on the same task. Conversely, an expensive model can end up being cost effective because it completes tasks quickly and does not have to be called again. Retrieval steps work the same way. They may save money by reducing context, or they may waste money by including irrelevant information. Tools can eliminate token churn, or they can create retry storms because the API contract for the tool is mushy.

Cost policy has to understand the architecture of cost. Let incident work cost more for customers. Stop refactoring work that costs too much after an hourly window crosses a threshold. Use stronger models only after cheaper models fail in specific ways. Stop retrying, even if retry is configured, after the same error in the same trace occurs three times. File an issue if the same workflow suddenly and repeatedly costs more over time.

This does not belong in a spreadsheet. Put it in the harness. The harness already controls model selection and usage for the agent workflow.

Cost per outcome is the only number that travels

Token counts are useful until they become a proxy for value.

Reducing tokens is a good thing right until the cheaper answer is still a bad answer. Caching prompts, trimming context, selecting a different model, or reducing evals all decrease token counts, but the work still has to execute successfully.

And for cost per outcome: for each outcome the customer wants, how much did the system have to spend to produce it? Cost per merged PR, cost per resolved ticket, cost per validated migration, cost per successful workflow, cost per human escalation avoided. Those are easier to take into a budget conversation than a pile of token counts. A lower token number says the team reduced tokens. Fine. The answer still has to work.

Honeycomb's stance on OpenTelemetry for AI makes sense because it highlights a real market tension. Richer dimensions of observation are required to understand how AI and agentic systems work: inference, prompts, tokens, RAG context, and request behavior. The platform cost conversation wants to reduce all of that to a single number. A team cutting the wrong field to hit a spend number removes the evidence required to spend money in a way that drives value.

The LangSmith documents around trace routing take a good stance here. Traces can be routed in LangSmith, OpenTelemetry, or both with runtime trace destination controls. The trace and its spend data should travel with the work through systems for reliability, review, security, and finance.

Cost is an attribute on the work.

Expensive traces should become owned work

The owner looks at the work that crossed the budget window and follows it through. The alert carried the trace, user, team, workflow, model route, tooling, retries, evals, outcome, and cost. The owner can decide whether the work was worth it and relax the cost policy for similar work in the future. If it was waste, alter the harness to prevent it.

This work is the same as turning recurring agent failures into owned issues. An expensive trace carries a bug report with a dollar sign attached to it.

Evaluation steers the harness by connecting cost, behavior, and outcome. Evaluations that detect repeated low-confidence tool use can function as cost control. A regression suite that proves a cheaper model still fulfills the task is cost control already. A trace query that shows a customer workflow accounting for a large part of spend is a product signal already.

The best cost work looks suspiciously like reliability work. Same owners. Same traces. Same release discipline. Same boring meetings where somebody has to explain why the graph did what it did.

Good.

Treat the invoice as a postmortem artifact

The invoice is useful, and late.

Agent spend is incurred in runtime decisions: where work flows, how context is aggregated, which retries are attempted, which tools or models are called, which model gets escalated. By the time finance sees the money spent, the relevant engineering question has already been asked and answered by the runtime.

AI cost optimization sounds like something to purchase from procurement until the cost work is wired into the runtime of the agents within the platform harness. The useful cost work looks suspiciously identical to reliability work: same owners, same traces, same release frequency. Yes, the same boring meetings where someone tries to explain why the graph behaved the way it did.

Put cost where the agent spends it.