
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 →
Summaries like this, in your inbox every morning.
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 · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →
Ask AI anything about this article. Q&As are published on this page for other readers too.
San Jose is positioning itself as a hub for physical AI (AI that operates in the real world, such as robotics)…

AMD's Q2 FY2026 revenue hit $11.54 billion, up 50.1% year over year, with Data Center revenue at $6.72 billion…

Nvidia Corp. CEO Jensen Huang said artificial general intelligence has arrived, following OpenAI's launch of G…

Saudi Arabia's state-backed AI company HUMAIN, led by CEO Tareq Amin, is positioning itself as a neutral hub f…

Alibaba's research division released Qwen-Drive 1.0, an AI model that handles spatial perception, traffic Q&A…

Ineffable Intelligence, the London-based AI startup founded by ex-Google DeepMind researcher David Silver, has…
