{
  "id": 10878055,
  "title": "Agents Refactor 300K Lines in Three Weeks, and Practitioners Ask What It Proves",
  "url": "https://urgent.news/2026/09/30/agents-refactor-300k-lines-in-three-weeks-and-practitioners-ask-what",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-09-30T06:16:00.000Z",
  "source": {
    "name": "InfoQ",
    "slug": "infoq",
    "url": "https://www.infoq.com/news/2026/09/agentic-refactoring-case-study/"
  },
  "original_language": "en",
  "account": "Coding agents successfully refactored a 300,000-line C codebase spanning three weeks, requiring only about $4,000. The project, involving CodeScene's CodeHealth MCP Server and correctness checks via replay-trace harness, generated 2,903 commits across 726 files, improving the codebase's health score from 5.6 to 10.0. The agents developed 22 refactoring recipes and 82 supporting notes, implementing techniques like Extract Function and Shared Index Range. Practitioners on LinkedIn expressed mixed reactions, with some viewing the results as significant and others questioning the scope, methodology, and real-world applicability. The replay-trace harness functioned due to the game's deterministic frame-by-frame replay capability, a feature not typically present in legacy systems. The study aims to explore further by comparing AI-improved versions with human-improved ones, measuring the impact on defects and token waste.",
  "summary": "CodeScene has published a case study in which coding agents refactored 300,000 lines of C over three weeks for roughly $4,000 in tokens, verified by a frame-by-frame replay harness. The agents built a playbook of codebase-specific recipes along the way. Practitioners have questioned the scope, the metric, and how much of the result depends on the harness. By Steef-Jan Wiggers",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}