Mergehand

AI coding agent for Forgejo and Codeberg

Run an AI coding agent on your own machine for your own Forgejo or Codeberg: deliver issues as pull requests, track Forgejo Actions and review pull requests as private pending comments. You approve the plan and the result.

What Mergehand does with Forgejo

Pull requests

The agent works on a branch on your runner, and Mergehand opens the pull request after you approve the result – as a draft unless you choose otherwise.

Reviews as pending comments

A code review is posted as pending comments inside your own review on the pull request. Only you see them until you edit and publish them yourself.

CI status and Actions

Mergehand follows Forgejo Actions and commit statuses on the pull request, so failing CI checks can be fixed with new commits on top.

Forgejo Issues and epic parts

Start tasks directly from Forgejo Issues with their description, comments and attachments. After you approve how an epic is split, the “Send to …” button creates its parts as linked issues in Forgejo. Mergehand creates issues only when you click it.

On GitHub, Bitbucket and Forgejo, the merge request is a pull request.

Use Forgejo for both code and issues, or pair your Forgejo repositories with Jira, YouTrack, Trello or GitHub Issues – each project has one code host and one tracker.

Built for your own Forgejo on private networks

Teams running their own Forgejo server often keep private package registries, local databases or internal services inside their own network. Because Mergehand runs on a Docker runner on your own computer or dedicated virtual machine – connecting outbound only with no inbound firewall port – your repository clones, caches and local test services stay inside your environment.

A note on public Codeberg: Mergehand works with both your own Forgejo instance and Codeberg. If you host public repositories on codeberg.org, make sure your use complies with Codeberg's Terms of Use regarding AI-generated content; on your own Forgejo server, your team sets its own policy.

From Forgejo issue to pull request

Every task follows Mergehand's workflow with two human approvals: you approve the plan before any code is written, and you approve the finished diff and test report before the first push. Merging always stays with your team. Walk through a complete run on our task example page.

Connecting Forgejo

A project maintainer enters your Forgejo address in the project integration, and each member connects with their own personal access token – no shared bot account for the whole team. Tokens are stored encrypted on the Mergehand server.

What the agent gets

The agent gets only a read-only token for your repository. Opening pull requests and posting review drafts is done by the server, and pushing runs on your runner on the server's instruction – the agent never pushes. Commits carry your own name and email with no trace of the agent.

AI agent

Mergehand works with Claude Code and Gemini CLI on your runner, and each member signs in to either or both with their own account: a Claude subscription or an Anthropic API key, or a Google AI Studio API key (Paid Gemini API tier recommended), Google Cloud Vertex AI or a Google account. You pay your AI provider directly with zero token markup – see pricing.

Questions about Forgejo and Mergehand

Does Mergehand work with Forgejo Actions for CI fixes?

Yes. Mergehand tracks Forgejo Actions and commit statuses on open pull requests so failing checks can be fixed with new commits on top (manually on Standard, or automatically on Pro).

Will Mergehand post public bot comments on Forgejo pull requests?

No. Code review findings stay as private pending comments visible only to you until you edit and publish them under your own name.

Can we pair Forgejo with Jira, YouTrack or Trello?

Yes. Use Forgejo for both repositories and issues, or pair Forgejo repositories with Jira, YouTrack, Trello or GitHub Issues.

See all integrations, security and data and how it works.

Mergehand is not made, endorsed or sponsored by Anthropic or Google LLC. Claude and Claude Code are trademarks of Anthropic, PBC. Google and Gemini are trademarks of Google LLC.