Overview
Use one OpenHands conversation to list suspected bugs in a module and a second, separate conversation to try to reproduce each one with a failing test, so fixes are only drafted for confirmed faults.
Problem or Objective
- Which agents turn an issue report into a fix?
- Which agents write or run tests against an application?
More in Coding and Code Review
AI Agents and Models
Tools and Integrations
- Tools
- OpenHands · Docker
- Prerequisites
- A self-hosted OpenHands setup, ideally with a Docker sandbox, a model API key, and a repository with a working test suite.
How It Works
Run OpenHands with a Docker sandbox against a branch of your repository. In a first conversation, ask the agent to read one module and list suspected bugs, each with the input that should trigger it and the behaviour it expects. Save that list as a file. Start a second conversation, optionally switching to a different LLM profile, and give it only the list: for each item it must write a small test that should fail if the bug is real, run it, and mark the item confirmed, not reproduced or unclear, with the test output. Read the confirmed items yourself. Only then ask OpenHands to draft a fix for a confirmed item on its own branch, run the full test suite, and stop so you can review the diff before any pull request is opened.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up OpenHands.
- Connect the toolsConnect the tools this workflow relies on: OpenHands, Docker.
- Check the prerequisitesA self-hosted OpenHands setup, ideally with a Docker sandbox, a model API key, and a repository with a working test suite.
- Gather your detailsCollect what the prompt asks for: File with the suspected bug list, Module being checked, Folder for reproduction tests, Command that runs the tests.
- Run the starter promptPaste the starter prompt below into OpenHands and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at github.com before you rely on it.
Practical Starter Prompt: Try to reproduce each suspected bug
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
Read the suspected bugs in [File with the suspected bug list] for the module [Module being checked]. For each item, write the smallest test that should fail if the bug is real, put it in [Folder for reproduction tests], and run it with [Command that runs the tests]. Do not change any code outside the test folder. Mark each item confirmed, not reproduced or unclear, and include the test name and output. Do not draft fixes or open pull requests: stop after the report so I can review which items are confirmed and approve any fix.Run this in a new conversation, separate from the one that listed the suspects. Review the confirmed items yourself and approve each fix before OpenHands drafts it; review the diff before any pull request is opened.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. The OpenHands README describes running coding agents in conversations, with or without Docker sandboxes, and the LLM settings page says profiles let you switch between saved model configurations, even during an active conversation, for example to use different models for different tasks. The docs do not describe a finder and verifier pattern, and no detection or false-alarm rates are reported here.
Limitations and Considerations
A test that fails can still be wrong, so read each reproduction before trusting it, and keep the suspected-bug list out of the verifier's reasoning beyond the items themselves. Run agents in a sandbox and on a branch, since they execute code from your repository. Each pass uses model tokens from the provider you configure, so check the cost on a large module first. OpenHands also offers prebuilt automations, such as one that implements issues and creates pull requests; whether to let an automation open pull requests without a review step is your call, and this entry keeps a person in front of it. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Related Videos
About OpenHands/OpenHands
Setting up a CVE Remediation Factory with OpenHands (opens in a new tab)
Walkthrough of OpenHands by OpenHands: it is on the project’s own channel.
Watch on YouTube (opens in a new tab)About OpenHands/OpenHands
One AI Agent, Multiple LLMs: Automatic Model Routing in OpenHands (opens in a new tab)
Published by the project’s official channel.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- OpenHands/OpenHands README (opens in a new tab)
Project documentation · github.com · Undated · Source checked 25 Nov 2026, 11:59 UTC
What this source supports
- The self-hosted developer control center for coding agents and automations, a developer control center for starting conversations and automating everyday tasks.
- Can run without a sandbox, with a Docker sandbox, or with multiple Docker sandboxes.
- Language Model (LLM) Settings - OpenHands Docs (opens in a new tab)
Project documentation · docs.openhands.dev · Undated · Source checked 25 Nov 2026, 11:59 UTC
What this source supports
- LLM profiles allow you to save multiple LLM configurations and switch between them, even during an active conversation, which is useful when you want to use different models for different tasks.
- Setup a Pre-built Automation - OpenHands Docs (opens in a new tab)
Project documentation · docs.openhands.dev · Undated · Source checked 25 Nov 2026, 11:59 UTC
What this source supports
- The Issue to Pull Request automation implements issues from your issue tracker and creates pull requests.

