Use an agent to repair two bugs and add tests
A developer had coding agents diagnose two precise bugs in an open-source tool, then generate fixes and tests for both.
- What they did
- They assigned a custom coding agent two tightly defined problems in an open-source system utility. The agent reproduced each failure, worked out the cause, and wrote the patch plus a test without direct step-by-step guidance. After that, the developer submitted the two changes as separate pull requests last month.
- How it went
- The outcome was two PRs, each aimed at one bug and backed by tests. The record does not say whether either one was merged, how long the task took, or how much cleanup the developer had to do.
- Tips
- Give the agent one bug at a time, with enough detail to trigger a clean repro. Make it write a test before the fix, and pause for your approval before any submit, push, or other irreversible action.
Try it yourself with Codex
I’m in [repo URL or local path]. Please help me handle these two issues: [bug A details or issue reference] and [bug B details or issue reference]. For each one, try to reproduce the failure, write a test that catches it, implement the smallest safe correction, and rerun the relevant checks. Before any irreversible step, stop and ask me to review the diff; do not send, push, delete, or submit anything without my approval. When you finish, give me a short recap of both changes and a draft pull request description for each.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
1 more report of this
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Set up a phone for agent control over ADB
They mounted a Fairphone 6 in a rack so an agent could operate it through ADB.
Add simple forgetting to agent memory
A developer added a basic forgetting layer to an agent’s memory and said it worked extremely well right away.
Track agent memory in git for coding work
Store project context in git so a coding agent can reuse decisions and notes across sessions.
Use an agent to inspect and explain COBOL on z/OS
A desktop agent connected to a mainframe to read COBOL, submit jobs, and summarize failures from spool output.
Let your agent patch its own repo
A developer reported that their custom agent made its first code edit in its own repository.
Set up a GitHub bot that triages and patches bugs
They built a GitHub bot that sorts issues, reviews pull requests, answers with citations, and opens patch PRs for humans to check.