Building, testing, reviewing, migrating and running software with coding agents.
Coding agents do real software work when the test suite is the gate. The playbooks here map an unfamiliar codebase before you change it, test a local web app in a real browser, turn a production error into a fix with a failing test, turn small issues into pull requests and upgrade a framework on a branch of small commits.
Fix: Say in the prompt that tests and assertions must not be changed, deleted or skipped without your approval, and that a failing test that looks wrong means stop and ask. Record the test count before the agent starts and compare it after. Review the test diff before the code diff. Run the suite yourself rather than trusting the agent's summary, or have CI post the result. For new tests, check that each one fails without the change. Mutation testing shows whether the tests catch real bugs.
Best-supported first. Each card names the public source of its outcome. Updated 2026-11-12.
Each chosen issue gets a pull request with a passing test run that you review, ask to change, merge or close. You stay in control of every merge.
Toub reports 878 agent pull requests in dotnet/runtime, with 535 merged. Small cleanup, test and bug fix tasks did best. Performance work and native code did worst. An instructions file and network fixes raised success, and review capacity became the limit.
Reported by Stephen Toub, devblogs.microsoft.com, 2026-03-23. Summarised in our words.
Your agent starts each session with a short instruction file, only the tools it uses, on-demand skills for long procedures, and a notes file that carries progress across sessions. You know what fills the window because you measured it.
The commenter tracked MCP context use with Claude Code's /context command. The Supabase server used 13.2k tokens all the time, 8k of it from one search_docs tool. After they disabled that tool, they report the server uses about 300 tokens when idle.
Reported by consumer451, news.ycombinator.com, 2026-03-16. Summarised in our words.
You have a docs/architecture.md that names the entry points, modules and data flow with file references, a list of open questions, and a short instruction file with the build and test commands.
A package maintainer warns users that DeepWiki pages had wrong config and command descriptions and misleading architecture details, and that pages go stale. He still calls them useful as a starting point.
Reported by bluewavenet, forum.openwrt.org, 2026-04-26. Summarised in our words.
You get a table of the console errors and failed requests on each route you named, a small fix for each one, and proof from a reload that the error is gone.
The author added Playwright MCP and fixed a widget's styling in about 30 minutes. A full page overflowed the 25,000 token tool limit, so he trimmed the test page. The fix used many !important rules, which he planned to have reviewed.
Reported by Goutham Veeramachaneni, gouthamve.dev, 2025-07-22. Summarised in our words.
You get a short root cause note backed by the stack trace and code, a failing test that reproduces the error, a small fix that makes it pass, and a local branch ready for your review.
The Sentry engineer says their agent missed back-end causes of front-end 500 errors and auth problems between services until it got trace data. With traces, it diagnosed an auth issue that had taken the team two to three days by hand and opened a fix in each affected repository.
Reported by Rohan Agarwal (Sentry), blog.sentry.io, 2025-04-30. Summarised in our words.
The repo runs on the new version on a branch of small commits, the full test suite passes with no tests removed, and you have a list of behaviour changes to check in staging.
The author upgraded a 70,000-line app one LTS at a time with the django-upgrade codemod and a one-failing-test-per-commit loop. He reports 187 agent commits, one staging incident and no production rollback, and lists wrong settings and package advice he caught.
Reported by yureki_lab, dev.to, 2026-10-07. Summarised in our words.
You have a script that runs your job as 3 to 5 headless agent calls, stops at the first step that fails its check, and leaves every step's output in a file you can read.
The author describes the bash script that runs claude -p sessions for his team. It adds a 2 hour time limit, kills sessions with no tool activity for 5 minutes, blocks dangerous commands, and gives each session its own git worktree. He says the model is fine and the missing part is a deterministic manager around it.
Reported by Hunter Hodnett, chipp.ai, 2026-05-12. Summarised in our words.
You have a rewritten system prompt, CLAUDE.md or SKILL.md, a change log that ties each edit to a failure, and side-by-side outputs that show it beats the old version on your real inputs.
Arize ran Claude Code on SWE Bench Lite issues, had a model explain why each patch passed or failed, and fed that to a meta prompt that rewrote the rules in CLAUDE.md. Arize reports test accuracy rose 5.19% on repositories held out from training and 10.87% within the Django repository. Arize sells the optimizer it used.
Reported by Priyan Jindal (Arize), arize.com, 2025-11-20. Summarised in our words.
You have an evals folder with real test cases, written pass or fail criteria, a script or promptfoo config that runs both prompt versions, and a results table you have read row by row.
Husain reports that Nurture Boss read real conversation logs, grouped the date handling failures, built tests for them and measured the change. He says their date handling success rate went from 33% to 95%.
Reported by Hamel Husain, hamel.dev, 2025-03-24. Summarised in our words.