Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Migration Diary: Rebuild the Diff Budget Before You Leave a Paid Coding Agent

Описание и применение

Внедрение числового бюджета патчей позволяет безопасно перейти от платного AI‑агента, ограничивая размер изменений и предотвращая непреднамеренные модификации кода.

Задача

After canceling a paid coding agent, teams risk accepting large, opaque patches that can silently modify many files, leading to uncontrolled changes and difficult reviews.

Результат

Teams can safely transition away from paid AI agents by enforcing numeric diff budgets, preventing large, uncontrolled patches and maintaining code quality.

Рабочий процесс

  • 1. Export all leftover paid diffs to a local directory.
  • 2. Count files and lines in the working tree with git diff --numstat.
  • 3. Parse each unified diff with a custom Python scorer to tally files, hunks, added and deleted lines.
  • 4. Compare counts against the .diff-budget.json limits.
  • 5. Reject any patch that exceeds the budget; otherwise apply it.
  • 6. Commit the .diff-budget.json to the repo so all teammates share the same constraints.

Доказательства

A budget is not a linter, and it is not a model quality score either. It is a hard ceiling on how much tree mutation one agent turn may propose.

Источник

Store the budget beside the repository, not inside a vendor dashboard you are about to abandon.

Источник

  • Дата записи: 2026-09-21T23:15:24.298Z