Urgent.News

What's breaking now, across thousands of outlets.

Tech

Before I let an agent open PRs on strangers' repos, I made it earn it

Over the last six weeks I've had 44 bug fixes merged into other people's open-source projects, most of them MCP servers. Many came from the same loop: mcp-doctor , my static linter for MCP servers, flags something. I reproduce it, write the fix and a regression test, run the project's tests, and open a PR in their template. That loop is mechanical enough that an agent could run it. It's also the…

The author, after merging 44 bug fixes into other open-source projects, realized that delegating such tasks to an agent could be risky. The author then developed a set of rules for the agent to follow before it can open pull requests (PRs) on strangers' repositories. The first rule, replay against what maintainers actually merged, involves running the agent on the code from just before each merged fix and comparing its patch with what the maintainer merged.

If the match is under ~60% or if the PR isn't something the author would send, the agent publishes an evaluation write-up instead of shipping. The second rule, a forward test on unseen repositories, requires the agent to run the full loop on repositories it has never seen before, save the drafts locally, and not post anything. The author found that only 2% of the 160 active Python MCP repositories had the bug they were testing for, making it rarer in the wild than initially thought.

The third rule, Fixture filter and size routing, involves reading the README and file paths to drop test data, benchmarks, examples, and vendored code. The agent also drafts an issue for larger changes to give the maintainer the option to choose the size of the change. The final rule is that a human sends every PR, so the agent only handles the slow parts of the process, such as reproducing the bug, patching it, testing it, and writing up the changes.

The author then tested the agent on five real repositories and found that four drafts were clean, which they sent after reviewing. However, the fifth repository, a trading framework, was too complex for the agent to handle, as it found that a fix for the bug would break working calls to the official MCP Python SDK. The agent also noticed that the scanner had missed a whole file of tools, which was fixed and documented in the source.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

GitHub contribution graphs as pixel art: a small browser project

I built GitPixelPush to turn a GitHub contribution calendar into a drawing canvas. It is a creative experiment: the generated activity is clearly labeled artwork.

  • GitPixelPush transforms GitHub contribution calendar into pixel art canvas
  • Users can sketch patterns, stamp text, or use preset options
  • Backdated empty commits created in chosen repository for visual representation

Enforcing ADRs with Deterministic Architecture Tests

TL;DR: Architecture Decision Records (ADRs) turn into dead documentation the moment a team accumulates more than thirty decisions.

  • Enforce ADRs deterministically through automated architecture tests
  • Three-layer governance model includes deterministic gates, context index, anti-patterns
  • Deterministic tests examine code structure to detect architectural violations early

More from Wednesday 14 October →