Hi all! I built fly-swe, a small always-on service that watches a GitHub repo. When an issue gets labeled bug, docs or chore, it runs mini-swe-agent against the code and opens a PR, with a “How I tested” section the harness verified itself.

The Fly part:
- One shared-cpu-1x Machine (1 GB) with
auto_stop_machines = "off", plus a 1 GB volume (~$6/mo)
- Web + worker in the same Machine via
honcho / Procfile
- SQLite (WAL) queue on the volume, with idempotent deliveries and orphan recovery after restarts
- Runtimes the target repo needs (e.g. Node) are downloaded on demand into
/data/tools on the volume and reused across tasks, so the image stays Python-only
- Secrets via
fly secrets set; deploys run from a GitHub Release with a smoke test
On a real TypeScript monorepo, the last 10 issues cost a median of ~$0.31 of LLM each (mostly GLM-5.3), and every PR was reviewed by a human. fly-swe never merges.
Write-up with the design decisions (why the LLM never touches git, the three budget caps, re-running the agent’s tests): Running an issue-fixing agent on a $6 Fly Machine: a queue, three budgets, and an honest test report - DEV Community
Repo + 10-minute quickstart: GitHub - stateway-io/fly-swe: A lightweight agent that resolves your GitHub issues — built on mini-swe-agent, model-agnostic, and deployable in about ten minutes. · GitHub
Next on the roadmap is a per-task sandbox, and I’m looking at ephemeral Machines/Sprites for it. Ideas and feedback very welcome!
Update, a week later (v1.4.0): the “honest test report” now gets a second opinion.
In the post, anything the agent couldn’t run in the sandbox (say, a suite that needs a database) was listed separately and never checked off. Honest, but a human still had to go and look at CI. The $6 Machine isn’t getting bigger, so I moved the full run to the forge.
v1.4.0 adds an opt-in CI monitor (ci_monitor.enabled, or per repo):
- After the harness pushes to a PR, it watches the forge’s CI on that exact commit. It polls the API, so there’s no new webhook, and nothing blocks: the worker sweeps watched commits on an interval.
- Green: a comment on the PR and on the issue.
- Red: the tail of each failed job’s log goes to a new attempt on the same branch and PR, as untrusted data, the same way the issue body is handled.
- Limits: it spends the caps that already exist. Each fix counts as a resume attempt, the per-task budget applies as usual, and the daily budget is checked again before every retry. When they run out, it says so on the PR and stops.
- No CI at all: it says so on the PR, so “verified locally only” is explicit.
With the monitor on, the prompt tells the agent the full suite runs in CI. So in the sandbox it runs only the fast, targeted checks and lists the rest as left to CI.
Two smaller ones since the post:
protected_paths is enforced by the harness before commit and push, not just asked for in the prompt.
- Per-category task retention, so the 1 GB volume doesn’t fill up with old tasks.
CI sits behind the provider plugin like everything else: GitHub is the first to implement the new port. And if you were eyeing the Gitea contribution, there’s now a PRD for it.
Release notes: Release v1.4.0 · stateway-io/fly-swe · GitHub