AIToday
Large Language ModelsGitHub Blog (AI)Published: May 8, 2026, 10:00 JST

GitHub optimizes token usage in agentic workflows by removing unused tool configurations and replacing MCP calls with GitHub CLI commands.

Send on LINE
GitHub optimizes token usage in agentic workflows by removing unused tool configurations and replacing MCP calls with GitHub CLI commands.

3 Key Points

  1. 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.

  2. 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.

  3. 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).

  4. 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.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

GitHub Blog (AI)Read Original Article
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleOpenAI launches new voice intelligence features in its API, including GPT-Realtime-2 with reasoning capabilities, real-time translation across more than 70 input languages, and live transcription.