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

推荐订阅源

P
Proofpoint News Feed
Martin Fowler
Martin Fowler
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
C
Cisco Blogs
Last Week in AI
Last Week in AI
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
T
Tenable Blog
A
Arctic Wolf
小众软件
小众软件
Google DeepMind News
Google DeepMind News
aimingoo的专栏
aimingoo的专栏
PCI Perspectives
PCI Perspectives
博客园 - 司徒正美
The Last Watchdog
The Last Watchdog
H
Hacker News: Front Page
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Stack Overflow Blog
Stack Overflow Blog
N
News and Events Feed by Topic
Security Archives - TechRepublic
Security Archives - TechRepublic
博客园 - 【当耐特】
S
Security @ Cisco Blogs
P
Proofpoint News Feed
Cloudbric
Cloudbric
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Jina AI
Jina AI
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
月光博客
月光博客
Schneier on Security
Schneier on Security
Hacker News: Ask HN
Hacker News: Ask HN
V
Visual Studio Blog
D
DataBreaches.Net
H
Help Net Security
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Project Zero
Project Zero
阮一峰的网络日志
阮一峰的网络日志
Cyberwarzone
Cyberwarzone
博客园 - Franky
Y
Y Combinator Blog
Spread Privacy
Spread Privacy
N
News and Events Feed by Topic
The Cloudflare Blog
Simon Willison's Weblog
Simon Willison's Weblog
S
SegmentFault 最新的问题
W
WeLiveSecurity
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
I
Intezer
Hugging Face - Blog
Hugging Face - Blog
Attack and Defense Labs
Attack and Defense Labs

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
GitHub's New Billing Model Changes Everything About Agentic Development
Hector Flore · 2026-05-19 · via DEV Community

The Bill Is Coming Due

On April 27, GitHub announced that all Copilot plans will transition to usage-based billing on June 1, 2026. Premium Request Units (PRUs) are being replaced by GitHub AI Credits, charged based on actual token consumption — input, output, and cached tokens — at each model's published API rate.

Here's the line that should make every engineering leader sit up:

"Today, a quick chat question and a multi-hour autonomous coding session can cost the user the same amount."

That's the old model. Under the new one, that multi-hour agentic session will cost exactly what it consumes. And if your team has been running unoptimized agents with bloated contexts and premium models for everything? The invoice is about to get specific.

What Actually Changed

The transition happened in two phases. First, in June 2025, GitHub introduced premium request limits with model multipliers — Claude Opus 4 at 10x, GPT-4.5 at 50x, Gemini 2.0 Flash at 0.25x. Sonnet 4 at 1x (or 0.9x with auto model selection). Pro users got 300 monthly premium requests, Business 300 per user, and Enterprise 1,000 per user — with overages at $0.04 per request.

Now, starting June 1, 2026, the system moves to pure token-based billing. Your plan price becomes your credit pool:

Plan Price Monthly AI Credits
Copilot Pro $10/month $10
Copilot Pro+ $39/month $39
Copilot Business $19/user/month $19
Copilot Enterprise $39/user/month $39

Credits are consumed based on token usage at published API rates. Once you're out, you either buy more or stop. The fallback to a lower-cost model is going away. Admin budget controls can cap spend at the enterprise, cost center, or user level. To ease the transition, existing Business customers get $30 in promotional credits and Enterprise gets $70 for June through August 2026.

This is a natural evolution. As InfoWorld noted, it's the second pricing recalibration in under a year — and it aligns with the broader industry shift toward consumption-based AI pricing.

The Impact Spectrum: Who Gets Hit Hardest

Not every team will feel this equally. The impact correlates directly with how you've been using agentic development.

High-impact teams (expect significant cost increases):

  • Running long, multi-turn agent sessions with full conversation history accumulating
  • Using Claude Opus or GPT-4.5 for everything, regardless of task complexity
  • Relying on "god prompt" architectures where a single agent carries all context
  • No governance over which models get invoked or how long sessions run

Low-impact teams (may actually spend less):

  • Delegating work to focused sub-agents with minimal context per turn
  • Routing model selection based on task complexity
  • Using deterministic guardrails (hooks, hookflows) that prevent wasted cycles
  • Keeping agent sessions short and focused

The math is simple. Every quality LLM call sends the entire conversation history as input tokens. A 50-turn session with a growing context window doesn't just cost 50x — it grows superlinearly as each turn carries all previous turns as input. Under token-based billing, that compounding cost becomes visible on your invoice for the first time.

Harness Engineering: The Cost Control Layer

This is where agent harnesses become a financial strategy, not just an architectural pattern.

A harness is the infrastructure that governs agent behavior deterministically — hooks that fire on every tool call, hookflows that chain validations, and guardrails that prevent entire categories of waste. The key insight: deterministic enablement via hooks gives you more cost efficiency per dollar than pure context engineering, because:

  1. You can use less expensive models while sustaining quality. When a hook validates file paths before write operations, checks test results before commits, or enforces style rules on output — the model doesn't need to be "smart enough" to remember all those rules. The harness handles enforcement. That means Sonnet (1x multiplier) or even GPT-4.1 (included, 0x) delivers the same quality that previously required Opus (10x).

  2. You eliminate token waste from retries and mistakes. Without hooks, an agent might write to the wrong directory, fail CI, retry with the full error in context, and try again — each attempt burning tokens at scale. A preToolUse hook that validates the operation before it executes? Zero wasted tokens.

  3. You don't need the entire conversation history. When governance is embedded in the harness rather than the prompt, you can aggressively trim context. The agent doesn't need to "remember" rules it can't violate anyway.

I run 50+ agents in my own platform with hooks governing everything from git operations to data file access. A single dev-guard hook prevents all raw git commands and forces governed tools — that's one deterministic rule replacing paragraphs of prompt instructions that every model invocation would carry as input tokens.

Delegated Agents: Small Context, Big Savings

Delegated agent architecture diagram showing a main router agent dispatching to four specialized sub-agents — Research (Flash 0.25x), Code (Sonnet 1x), Review (Opus 10x), and Docs (GPT-4.1 0x) — each with minimal focused context
Each sub-agent starts fresh with only the context it needs — no accumulated conversation history, no carrying 50 prior tool calls.

The monolithic agent pattern — one god-agent that handles everything — was always an architectural antipattern. Under usage-based billing, it becomes a financial one.

Every time a model responds, it processes the full conversation. A 20-turn session where each turn has a 10K-token context means your 20th response is processing ~200K input tokens. Delegate that same work to four 5-turn sub-agents, each with 3K-token focused context, and your total input token cost drops dramatically.

The pattern:

Main Agent (routing layer)
  ├── Research Agent (Gemini 2.0 Flash — simple lookup, 0.25x)
  ├── Code Agent (Sonnet 4 — implementation, 1x)
  ├── Review Agent (Opus — only for final quality check, 10x)
  └── Docs Agent (GPT-4.1 — formatting, included)

Enter fullscreen mode Exit fullscreen mode

Each sub-agent starts fresh with only the context it needs. No accumulated conversation history. No carrying 50 prior tool calls in the input buffer. Just the task description, relevant files, and completion criteria.

This maps directly to the maturity curve I wrote about — expert-level agentic development looks like simplicity. Small, focused agents with clear contracts, not sprawling sessions trying to do everything.

MCP Tool Isolation: Context Is Budget

Here's one that surprises people: MCP (Model Context Protocol) tools consume context space. When a model has 30 tools registered, every request includes the schema definitions for all 30 tools in the system prompt. That's potentially thousands of tokens per request that deliver zero value if the agent only uses two of them.

The fix is architectural. Isolate tools at the agent level:

  • Your code-writing agent gets dev_add, dev_commit, dev_push — not telegram_send, gcal_create_event, or gmail_search
  • Your research agent gets web search and API tools — not file editing tools
  • Your notification agent gets communication tools — not code tools

Under flat-rate billing, this was a nice-to-have for reliability. Under token billing, it's a direct cost reduction on every single request.

Model Selection Strategy: The Right Model for the Job

GitHub Copilot model cost multipliers showing the hierarchy from GPT-4.5 at 50x down to included models at 0x, with color-coded tiers indicating cost severity
The multiplier hierarchy makes the economic argument clear — one GPT-4.5 interaction costs as much as 200 Flash interactions.

The multiplier table makes the economic argument clear. Here's what different models cost you relative to a standard premium request:

Model Multiplier Best For
GPT-5 mini / GPT-4.1 / GPT-4o Included (0x) Chat, simple code completion, quick questions
Gemini 2.0 Flash 0.25x Fast research, summarization, simple transforms
Sonnet 4 1x Most coding tasks, implementation, reviews
Claude Opus 4 10x Complex architecture, nuanced reasoning
GPT-4.5 50x Extremely rare — only highest-complexity tasks

The mistake I see teams making: defaulting to Opus or equivalent for everything because "we want the best quality." Under the original premium request system (before multipliers were introduced in June 2025), every model cost one request regardless of complexity. Once multipliers landed — and especially now with token-based billing — that Opus call costs 10x what Sonnet costs.

The harness engineering approach to model selection is explicit routing:

  • Linting, formatting, simple refactors → Use included models (GPT-4.1). Zero premium cost.
  • Standard implementation work → Sonnet 4 (1x). Capable, cost-effective.
  • Architecture decisions, complex debugging → Opus (10x). Worth it when it matters.
  • Never GPT-4.5 unless you have a very specific, verified reason. At 50x, a single interaction costs more than 50 standard Sonnet calls.

With delegated agents, each agent can specify its own model. Your harness routes the right model to the right task without human intervention — and without every task paying the Opus tax.

The Three Layers That Save You Money

Looking at this through the lens of the three architectural layers that production agents need:

  1. Skills (reusable procedures) — reduce token waste by keeping instructions in the harness, not the prompt. The model doesn't need to carry a 2000-token skill definition in every turn when the skill fires deterministically via hooks.

  2. Extensions (governed tools) — replace raw operations with validated, focused tools. Each extension call is a single tool invocation rather than a chain of unguarded attempts that might fail and retry.

  3. Hooks (deterministic guardrails) — prevent bad operations before they execute. No wasted tokens on failed attempts, no retries, no error messages inflating context.

Together, these layers move governance out of the token stream and into the infrastructure. That's the fundamental cost optimization: everything that can be enforced deterministically should be — because instructions in your prompt cost tokens on every single request.

The Bottom Line

Before and after comparison showing monolithic Opus session costing ~$8.40 versus delegated agents with mixed models costing ~$1.20 — an 85% cost reduction through harness engineering
Same task, same quality — dramatically different cost. Harness engineering turns architectural best practices into direct financial savings.

GitHub's shift to usage-based billing isn't a punishment — it's transparency. For the first time, teams will see exactly what their agentic workflows cost. The teams that invested in harness engineering — deterministic hooks, delegated agents, model routing, tool isolation — will find their bills modest and predictable. The teams running sprawling, ungoverned agent sessions with premium models on every turn will finally see the true cost of that architecture.

The fix isn't to stop using agentic development. It's to architect it properly. Start with your highest-volume workflows: what model are they using? How much context are they carrying? Can you delegate to sub-agents? Can a hook replace a prompt instruction?

Every deterministic rule you add to your harness is tokens you'll never pay for again.

Resources