
GitHub optimized Copilot by compressing noisy output, cutting unused formatting, and shortening prompts.
A meta-prompting loop reduced task-tool prompts by half, saving about 1,300 tokens per turn.
Total cost dropped by about 2.3% to 20% depending on the change.
What happened
GitHub shared four efficiency upgrades for its AI coding agent Copilot. These include a selective output compressor, removing line-number prefixes, shorter prompts, and delivering background work results directly.
Why it matters
The changes target the outcome of a full task, not individual tool calls. GitHub found that shortening each tool response can actually increase total cost when the agent has to reread or rerun commands, adding up to 2.3% average savings in token-related usage.
What to watch
One prompt change removed about 1,300 task-tool prompt tokens per turn. Removing line-number prefixes cut model-inference cost by roughly 5% in offline tests and about 3% for Copilot CLI users, with no quality regressions detected.
Ask the AI about this article →
GitHub's work reflects a central problem in AI coding: local optimization can hurt global efficiency. The Rust Token Killer utility shortened shell output, but agents often reopened or reran commands to recover missing details, raising total tokens. So GitHub shifted to evaluating changes across complete tasks, using agentic coding benchmarks and controlled experiments. Early versions of their output compressor were too aggressive, but repeated failures led to policies that preserve source-like output and compress only repetitive noise. The prompt compression example shows the risk: a meta-prompting loop initially serialized independent agents, but a regression test caught it, and a one-sentence fix restored parallelism while saving about 1,300 tokens per turn. These lessons extend beyond CLI: the same harness powers GitHub Copilot app and code review. The code review migration and instruction tuning alone reduced costs by about 20%, and shared file tools are expected to keep improving. The article emphasizes that token savings must be measured in the specific workflow, as some changes that helped review increased costs in the CLI. Ultimately, the focus is on creative ways to remove unnecessary overhead without losing context or behavior.
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.
Interactive Brokers has begun connecting its platform with AI tools including ChatGPT, Claude, and Grok, and o…

MBody AI Ltd. (NASDAQ: MBAI) announced that its MBody AI Orchestrator platform has been shortlisted for AI Dep…

A new report by Alipay+ and S&P Global, based on a survey of 6,000 consumers across nine markets in Asia, Euro…

Palo Alto Networks reported a quarterly profit jump, driven by demand for AI security

CrowdStrike Holdings Inc

Palo Alto Networks beat fiscal fourth-quarter estimates on Tuesday and issued a strong outlook for its new fis…
