New SWE-Refactor-Bench exposes AI coding weakness: 0% success in full repo migration

机器之心 · wechat · 2026-08-27

Jiqizhixin reports on the release of a new benchmark, SWE-Refactor-Bench, which escalates testing from bug fixes to full repository refactoring (e.g., rewriting SQLite from C to Rust). It covers 20 real-world projects with 867k lines of code. The evaluation features three stages: migration audit, 130k functional tests, and a red teaming phase where other agents attack the code. Results show that across 520 attempts by 8 frontier models, the success rate was only 5.4%, with 13 tasks unsolved. This reveals a core flaw in current AI agents: the difficulty of balancing "completing the migration" with "preserving exact behavior," especially the final 0.1% of correctness that prevents system-level failures.

Related event: SWE Refactor Bench: Coding Agents Pass Only 5.4% of Full-Repo Migrations(4 posts)→

Original post →

More from coding & agent

coding & agent channel →