Better tools made Copilot code review worse before GitHub’s engineering team found a counterintuitive fix: stripping agent capabilities back to shared, Unix-style code exploration utilities. The result was a measurable reduction in review cost and more reliable pull request feedback.
The Problem With Giving Agents More Power
When GitHub’s team expanded the toolset available to Copilot’s code review agent, they expected better results. More tools should mean more context, deeper analysis, and higher-quality review comments. Instead, the opposite happened.
With a larger toolkit, the agent spent more time exploring code paths that were tangential to the actual pull request. It chased references, followed import chains, and investigated areas of the codebase that had no bearing on the changes under review. The additional tools created additional decision points, and at each decision point, the agent could drift away from the evidence that mattered.
This is a pattern that teams building agentic AI systems encounter repeatedly: more capabilities do not automatically produce better outcomes. Agent workflows are sensitive to tool sprawl. When an agent has too many options, it can spend its compute budget on exploration rather than analysis.
The Shift to Unix-Style Exploration Tools
GitHub’s solution was not to build more sophisticated tools. It was to consolidate around a small set of shared, composable utilities modeled on Unix conventions. Think of the approach as giving the agent a focused toolkit where each tool does one thing well and outputs structured data that other tools can consume.
These shared exploration tools allowed the agent to:
- Retrieve specific file contents and diffs tied directly to the pull request
- Search for relevant symbols and references within a bounded scope
- Navigate code relationships without following unbounded chains
- Surface evidence that could be directly cited in review comments
The key design principle was constraint. Rather than giving the agent open-ended access to the entire repository, the tools were structured to keep exploration anchored to the pull request itself. Every tool call was oriented toward gathering evidence about the specific changes being reviewed.
Reshaping Workflows Around Pull Request Evidence
The migration changed how the agent approached code review at a fundamental level. Instead of starting with broad exploration and narrowing down, the agent began with the diff and worked outward only when the evidence demanded it.
This evidence-first workflow had several practical effects:
- Reduced token consumption. The agent made fewer speculative tool calls, which lowered the cost per review.
- More grounded comments. Review feedback referenced specific lines and patterns in the diff rather than general observations about the codebase.
- Faster completion. With fewer exploration branches to pursue, the agent reached conclusions more quickly.
- Higher signal-to-noise ratio. Developers received fewer comments, but the comments they did receive were more actionable.
GitHub reports that this approach reduced the overall cost of Copilot code review. The improvement came not from a more capable model or a larger context window, but from restructuring how the agent interacted with the code it was reviewing.
What This Means for Agentic Tool Design
GitHub’s experience offers a practical lesson for teams building AI agents for developer workflows. The instinct to equip agents with more tools is natural, especially when those tools are individually useful. But agent performance depends on the relationship between tools and task structure.
Several principles emerge from this case:
- Tool count is not a feature. Each additional tool introduces branching decisions that can compound into wasted exploration.
- Shared, composable tools outperform specialized ones. Unix-style utilities that produce structured output allow agents to build their own chains of reasoning without requiring bespoke integrations.
- Constrain the search space. Tools that bound exploration to the relevant context prevent agents from drifting into unproductive territory.
- Evidence anchoring improves output quality. When agents are designed to cite specific artifacts, their outputs become more verifiable and more useful to human reviewers.
What Teams Should Verify Before Adopting Similar Patterns
For teams designing their own code review agents or adapting Copilot’s approach, a few considerations are worth keeping in mind. The Unix-style tooling pattern works well when the task has a clear focal point, such as a pull request diff, and when the relevant context can be reached through structured queries rather than open-ended browsing.
Teams should evaluate whether their agent’s current toolset creates unnecessary decision points. If an agent frequently makes tool calls that do not contribute to its final output, that is a signal that the toolkit may be too broad. Pruning tools or adding scope constraints to existing tools can yield improvements without requiring model upgrades or additional training.
It is also worth monitoring the ratio of exploration to analysis in agent workflows. When exploration dominates, the agent is likely operating with too much freedom and not enough structure. The goal is to give agents enough capability to complete their tasks while keeping them focused on the evidence that matters.