← All posts

June 23, 2026

I Made an Open-Source AI Fix My Code & Open a Pull Request (OpenHands)

ai-agentsopen-sourcecodingself-hostinggithub

An open-source AI software engineer read my broken repo, found the bug, fixed it, ran the tests, and opened a pull request — completely on its own. I just merged it. In this video I deploy OpenHands (formerly OpenDevin) on a Hostinger VPS, connect it to GitHub, and hand it a real bug to fix end-to-end.

What OpenHands is

OpenHands is a free, open-source, self-hosted autonomous coding agent. Not autocomplete, not a chat window — an agent that gets a goal ("fix issue #3"), then works the loop every autonomous agent runs:

  1. Perceive — read the repo, the issue, the test output.
  2. Plan — decide what to change.
  3. Act — edit files, run commands.
  4. Observe — check the result, and loop until the tests pass.

Everything runs inside a sandboxed container, so the agent can execute code and shell commands without touching the host system. It works with any LLM — I ran it with Claude via OpenRouter.

The Devin comparison

Devin made the "AI software engineer" pitch famous, but it's closed and paywalled. OpenHands gives you the same category of tool with the code on GitHub and the deployment on your own box. And the benchmark backs it up: 68.4% on SWE-bench Verified — top of the open-source pack. That's real-repo bug fixing, not toy puzzles.

Pros and cons

Pros

Cons

The demo, end to end

The full walkthrough in the video:

From there it's hands-off: the agent reads the issue, locates the bug, patches the code, runs the test suite, sees green, and opens a pull request with a description of the change. I review, merge, verify. The PR in my repo was written entirely by the agent.

Verdict

This is the part of AI coding that actually feels like a shift: not faster typing, but issue in, pull request out. OpenHands is the strongest open-source take on it right now — 68% SWE-bench, any LLM, running on a $10-class VPS you control. Set it up on a throwaway repo first, watch it work once, and you'll start filing issues differently.

Repo: github.com/All-Hands-AI/OpenHands · Docs: docs.openhands.dev

▶ Subscribe on YouTube