
GitHub began systematically optimizing token usage of agentic workflows in April 2026, building a Daily Token Usage Auditor to flag significant consumption increases and a Daily Token Optimizer to propose specific improvements based on workflow logs and source code.
The most common inefficiency was unused MCP tool registrations: a GitHub MCP server with 40 tools can add 10–15 KB of schema per API call even when the agent only uses two tools. Removing unused tools from configuration reduced per-call context size by 8–12 KB, saving several thousand tokens per run with no change in behavior.
GitHub replaced MCP calls for data-fetching operations (pull request diffs, file contents, review comments) with GitHub CLI commands through two methods: pre-agentic data downloads (running gh commands before the agent starts) and in-agent CLI proxy substitution (routing CLI traffic to GitHub's API without exposing credentials to the agent).
GitHub introduced an Effective Tokens (ET) metric that normalizes token consumption across different models by applying model cost multipliers (Haiku = 0.25×, Sonnet = 1.0×, Opus = 5.0×) and weighting different token types (input = 1.0×, cache-read = 0.1×, output = 4.0×) to distinguish cost reduction from model switching.
Ask the AI about this article →
For example, today's edition would include:
AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.
Free · takes 30 seconds · unsubscribe anytimeWhat is AIToday? →
Ask AI anything about this article. Q&As are published on this page for other readers too.
Walmart settled opioid dispensing claims for $50 million

Tim Cook's legacy as Apple CEO is now tied to the company's push into artificial intelligence, according to a…

CrowdStrike is introducing Falcon Guardian, its flagship solution for the AI Detection and Response (AIDR) cat…

AT&T, Dell Technologies, and AMD have announced OTel 2.0, the largest and best-performing open-source model bu…

AT&T's legal department built an in-house center of expertise called Legal Edge, described as an AI-first lega…

John Deere introduced JD, an AI assistant designed to help farmers manage and interpret their farm data, as re…
