Microsoft Warns Against Relying on Public AI Benchmarks for Custom Codebases
Public AI leaderboards like SWE-bench fail to predict real-world performance on proprietary codebases, prompting a shift toward localized Agent Experience evaluation.

Microsoft has published an analysis highlighting the growing discrepancy between public AI coding agent benchmarks and actual performance in enterprise environments. Even models achieving scores as high as 92 percent on SWE-bench struggle when deployed within proprietary codebases and unique corporate technology stacks. This gap illustrates Goodhart's Law, where public benchmarks become targets for model optimization rather than accurate reflections of general utility.
Primary source
Open Microsoft DevBlogs ↗This article summarizes the source. Check the original for full details and conditions.
Comparison
| Aspect | Before / Alternative | After / This |
|---|---|---|
| Evaluation Target | Public benchmark datasets and generalized coding tasks | Proprietary codebases and internal software engineering environments |
| Core Metric | Standardized leaderboard ranking (e.g., SWE-bench score) | Agent Experience (AX) reflecting actual developer workflows |
| Model Optimization | Fine-tuning pipelines optimized for public evaluations | Iterative testing with custom harnesses and company-specific context |
Action Checklist
- Identify limitations of public benchmark scores during model selection A high SWE-bench score does not guarantee success on internal libraries.
- Establish a proprietary evaluation dataset representing your unique technology stack Use real code samples and internal API usage patterns.
- Implement a localized execution harness to measure Agent Experience Test how well the AI agent interacts with your current tooling and infrastructure.
- Iteratively validate agent performance against the custom evaluation set Verify if new model versions or custom prompts improve or degrade real-world results.