
What happened
GitHub migrated Copilot code review to use shared code exploration tools (grep, glob, view) from the Copilot CLI harness, expecting better performance. Instead, benchmarks showed higher costs and fewer issues caught. After rewriting the tool instructions to match how reviewers actually read pull requests—starting from the diff and using narrowly targeted searches—the regression flipped into a win: roughly 20% lower average review cost while maintaining the same review quality.
Why it matters
The fix reveals that agent performance depends less on tool quality than on how those tools are instructed to behave. The shared tools were sound, but their original instructions guided the agent toward broad repository exploration instead of focused diff-based review, wasting context tokens. For teams relying on Copilot for code review, this means the product should now catch issues more efficiently without adding cost.
What to watch
GitHub's reframing of tool instructions for code review—from generic coding-assistant guidance to review-specific workflows—suggests a broader principle for agent design: the same tools can fail or succeed depending on the instructions shaping their use. The company framed this as a lesson in agent-framework design, indicating it may apply these insights across other Copilot products that share the CLI harness.
Summaries like this, in your inbox every morning.
GitHub's experience highlights a common pitfall in agent design: inheriting tools from a parent framework without adapting the instructions that control how those tools are used. The company's custom code review tools were designed when earlier AI models made fewer tool calls and benefited from having surrounding context automatically included. As models improved, those assumptions no longer held, yet the tools persisted because they worked well enough. When GitHub attempted to migrate to shared infrastructure—a sensible engineering goal to reduce duplication and enable cross-product improvements—the team expected a straightforward upgrade. Instead, benchmarks revealed a performance regression caused not by tool quality but by instruction mismatch.
The fix required reimagining the agent's workflow to mirror how human reviewers actually work. Rather than exploring broadly and pulling in context speculatively, the rewritten instructions prioritize narrow investigation: form specific questions from the diff, batch cheap searches before reading files, and use file-reading only once the agent knows exactly what it needs. This approach treats tool results not as disposable outputs but as context tokens that persist in the agent's working memory—a crucial insight for constrained inference budgets. The result was a win on both metrics: lower cost and maintained quality.
The broader implication is that agent performance tuning may require instruction engineering as much as tool engineering. GitHub's framing of this as a design lesson suggests the company views it as a scalable principle applicable across multiple Copilot products that share the CLI harness, potentially improving efficiency wherever agents inherit general-purpose tools for specialized tasks.
Pick your industry and the AI tools you use, and get news related to your work every day.
Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →
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.
A non-engineer operator says one person ships four smartphone apps on Google Play, three on the App Store, wit…

A developer released agent-guardrails, a one-script Python standard-library plugin that guards Bash, Write, Ed…

The walkthrough points the CLI at a local mock via the ANTHROPIC_BASE_URL environment variable

A Zenn guide explains systems to install before letting AI agents, bots or scheduled jobs post, send, publish…

Researchers at Microsoft published a paper titled "Adoption and Impact of Command-Line AI Coding Agents: A Stu…

Meta released open weights for Muse Spark Open, an 816B-parameter model built for coding and long-running agen…