Agent Platform

Alloy writes pull requests

After Alloy finds a software issue, it can fix the code and open a draft pull request in your GitHub repository for your team to review

Use this page to see how Alloy turns a finding into a draft pull request, and how to start.

Alloy flags issues in your robot data and investigates them. When the cause is in your code, Alloy can also act on it: it makes the fix and opens a draft pull request in your GitHub repository. Your team reviews and merges it like any other contributor's pull request, and your own CI checks it.

What it does

  • Fixes what it found. The issue can come from a mission, a report, a Slack thread or a Jira ticket. Once Alloy has found the cause in your code, ask it to fix it.
  • Makes requested changes. You can also ask for a change that is not a bug fix, such as a small feature, a refactor or a docs update.
  • Opens a draft pull request. The pull request explains the change and what Alloy ran to check it. It is a draft, so nothing merges without your review.
  • Reports your CI result. When your CI finishes on the pull request, Alloy tells you the result in the same conversation. This works for CI that reports to GitHub as checks, such as GitHub Actions. For CI that reports only a commit status, check the result in GitHub.
  • Updates its own pull request. Ask Alloy to change a pull request it opened, for example after review comments or a failing check.

Example

Fictional example.

Ask (in Slack): "Why did drone HX-12 drift on landing in last night's flight?"

Alloy: The landing controller in flight-ctrl uses the barometer below 2 m, but the barometer is filtered out at that height since v2.7. It shows the flight data and the line of code.

Ask: "Fix it and open a PR."

Alloy: Opens a draft pull request in flight-ctrl with the fix and a test that replays the landing. It reports back when your CI passes.

How it works

  • Its own workspace. Each change is made in a separate, temporary workspace with a copy of your repository. Alloy deletes it afterwards.
  • It learns your build. The first time Alloy works on a repository, it works out how to build and test it. It reads your CI configuration, your README, and any AGENTS.md or CLAUDE.md files you have. It remembers what it learns for later changes.
  • Later changes start quickly. Alloy keeps a prepared copy of your repository, built and ready, and refreshes it once a day.
  • It checks its work. Alloy builds the change and runs your tests before it opens the pull request. Your CI on the pull request has the final say.

To set the build and test commands yourself, see Setup and security.

Get started

Connect GitHub in Alloy and choose the repositories Alloy can work on. See GitHub.
Ask Alloy to fix something, in the Alloy app or in Slack. For example: "Fix the landing drift you found and open a PR."
Confirm. Alloy opens a pull request only when you ask for one, or when you say yes after it offers.

Alloy writing pull requests is a beta feature.

Limitations

  • No Docker in the workspace. Tests that need docker compose or a database server may not run there. Your CI still runs them on the pull request.
  • No macOS, iOS or GPU builds.
  • Large repositories take longer the first time. Very large monorepos are slower to set up on first use.
  • Hardware and simulator issues. Alloy may not be able to reproduce a fault that only shows on the robot or in a simulator.
  • A draft, not a guarantee. A pull request is a proposed fix for your team to review, not a promise that the fault is gone.

On this page