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

推荐订阅源

Martin Fowler
Martin Fowler
D
DataBreaches.Net
F
Fortinet All Blogs
阮一峰的网络日志
阮一峰的网络日志
博客园_首页
Apple Machine Learning Research
Apple Machine Learning Research
H
Help Net Security
M
MIT News - Artificial intelligence
美团技术团队
人人都是产品经理
人人都是产品经理
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
The Cloudflare Blog
有赞技术团队
有赞技术团队
L
LangChain Blog
博客园 - Franky
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 【当耐特】
S
SegmentFault 最新的问题
V
Visual Studio Blog
Blog — PlanetScale
Blog — PlanetScale
Hugging Face - Blog
Hugging Face - Blog
B
Blog
I
InfoQ

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
Microsoft Told Engineers to Ease Off Claude Code
Patrick Hughes · 2026-05-28 · via DEV Community

The memo that should change how you think about AI coding agents

Last week reporters surfaced an internal story from Microsoft: engineering management asked teams to ease off Claude Code because the monthly AI bill had climbed past what budget owners wanted to sign for.

Microsoft. The company that owns a chunk of OpenAI. The company that runs Azure. They are telling their own engineers to slow down on a coding agent because it costs too much.

If you build with AI agents, that is the single most useful data point you got this month. Read it twice.

What this actually means

Up until now, the cost-control conversation around coding agents sounded like a solo founder problem. The pitch went: small teams have to watch token spend, big teams just absorb it.

That frame is dead. The new frame is simpler:

If Microsoft has to throttle Claude Code, every team using coding agents in production has to throttle Claude Code.

The size of the org does not matter. The economics of agentic inference do not bend for anyone. A coding agent that runs in a loop can burn through more tokens in an afternoon than a chat assistant burns in a month. Multiply that by an engineering org and the bill stops looking like a SaaS line and starts looking like infrastructure spend.

The two ways teams respond to this

When the bill gets too big, teams pick one of two paths.

Path one: send the memo. Tell engineers to use Claude Code less. Add it to a wiki. Hope people remember. This is what Microsoft did. It works for about two weeks. Then someone has a deadline, fires up the agent, and the bill creeps back.

Path two: make the cap a runtime gate. Give every agent a hard token budget, a per-call rate limit, and a kill switch that fires when either is exceeded. The agent literally cannot spend past the cap because the wrapper refuses the call. No memo required. No willpower required. The system enforces the policy.

Path one fails because it depends on humans choosing the constrained behavior under deadline pressure. Path two works because it removes the choice.

This is what AgentGuard does

AgentGuard is a small Python wrapper that sits in front of your agent's LLM calls. You set a dollar budget, a token budget, a rate limit, and a timeout. The agent runs normally until it hits one of those caps, at which point the next call returns a clean error instead of going through.

from agentguard47 import AgentGuard

guard = AgentGuard(
    daily_budget_usd=50,
    max_tokens_per_call=8000,
    rate_limit_per_minute=10,
)

response = guard.call(my_llm_function, prompt)

That is the whole conversation. The cap is now a config change. If Microsoft had been running something like this in front of Claude Code, the memo would have been one line: 'we lowered the daily budget from X to Y.' Done.

Why this is a one-shot opportunity for small teams

Here is the part most people miss. Microsoft has the headcount to send a memo and watch compliance. You do not. Your team is three engineers and an agent fleet. If your agent runs away on a Saturday, nobody is there to send the memo. The bill arrives Monday.

The smaller you are, the more important the runtime gate becomes. You cannot afford to learn this lesson the way Microsoft just learned it. You install the cap before the bill teaches you.

The compound point

Coding agents are getting cheaper per call and more expensive per workflow. Models drop in price every quarter. Agentic loops add steps every quarter. The net trend is up. Microsoft hit the wall first because they have the most agents running. Everyone else hits the wall on the same curve, just delayed.

The teams that will keep shipping with agents in 2027 are the teams that install the budget gate now, before the bill forces the conversation.

What to do this week

  1. Look at your last 30 days of LLM API spend. Find the line that is biggest.
  2. Add a runtime budget gate in front of it. AgentGuard is one option. Roll your own is another. The point is the gate, not the brand.
  3. Set the daily cap at 1.5x your current average. The agent runs normally. The cap only fires on runaway behavior.
  4. Wait. The first time it fires, you will know why this matters.

Microsoft just paid the tuition. You do not have to.


Want the runtime budget gate I built for my own agents? Install with pip install agentguard47 or read the AgentGuard docs.