Skip to content

Run Claude Code unattended on your GitHub issues

Issuemill starts headless Claude Code on your own Linux machine, one run per GitHub issue. Every run has systemd limits, a reviewer agent checks every change, and the change merges once CI is green. It is free software under AGPL-3.0.

By Anton Shubin ·

The source is not public yet. Get an email when it opens.

In short

  • A planning run puts each backlog in order. Code builds the queue from labels, milestones and blocked-by links, and picks the next issue.
  • One lead run per issue, in its own git worktree.
  • Every run is a systemd unit with a deadline, a memory cap and a process cap.
  • A reviewer agent must pass each change, and it merges only when every GitHub check is green.
  • Each Claude account has a daily limit in dollars. Weekly pace ranks the work and stops nothing.

How the queue picks the next issue

The queue reads the open GitHub issues you opened yourself, and never an issue someone else wrote. Issues labelled p1-critical go first. Then comes the milestone that is due first, and tooling fixes labelled p1-tooling wait until its work is done. With no milestone, it takes the backlog.

A planning run, which is Claude Code too, puts each repository's backlog in order. Code then picks from that order. Until the next planning run, code ranks a new issue by itself.

An issue that GitHub shows as blocked by an open issue waits. It goes back into the queue once its blockers close.

Across projects, code decides whose issue goes next, from what you set on Priorities. A project that has gone without a run for longer than your longest wait goes first. Then come the projects you focus on today. After that, share mode gives each project runs by its weight over the last 24 hours, and strict mode follows your order.

One lead run per issue, in its own worktree

Each issue gets one lead run: headless Claude Code with a written brief, in its own git worktree and on its own branch. The lead opens the pull request and fixes what fails.

A unique index in Postgres lets only one running lead hold an issue. A second start on the same issue fails before it creates a unit.

A run that cannot finish, most often because CI is still running, parks with a handoff note. The next run starts from that note.

Once a day, the worktrees of merged or closed work are removed with git worktree remove, never with --force, so git refuses to delete uncommitted changes.

Every run is a systemd unit with a deadline and caps

Each run starts as a transient systemd user unit, through systemd-run --user. The unit outlives whatever started it, and systemd enforces its limits:

RuntimeMaxSec=10800
The deadline. A lead run gets 3 hours, then systemd stops it.
KillMode=control-group
When the unit stops, every process the run started stops with it.
MemoryMax=8G
At most 8 GB of memory.
TasksMax=4000
At most 4,000 processes and threads.

The run's main process starts from an empty environment, plus only the variables the run is given.

A reviewer agent, then merge on green CI

The agent that wrote a change never approves it. A separate reviewer agent checks the change. When it passes, it leaves a comment that names the pull request's head commit.

Issuemill merges only that commit. A push after the review holds the merge, and so does a draft pull request.

It reads the checks GitHub shows on the pull request, so any CI that reports to GitHub works. It squash-merges once every check has finished green, and holds while a check is pending or red, or when there are no checks at all.

While the main branch is red, it merges nothing except the fix for it.

Daily limits and weekly pace

Each Claude account has a daily limit in dollars, set on the Limits page. Once the day's spend reaches it, no new run starts on that account until the next day. A run already going finishes.

Spend counts each run's cost at API prices, or its estimate while it runs. A new account starts at a limit of 0, so nothing runs on it until you set one.

Weekly pace is how fast an account must use its weekly quota to spend it before the reset. When projects have a similar share, those on an account that is behind pace go first. Pace never stops a run by itself. Of the money and quota limits, only two stop new runs: an account's daily limit, and Anthropic refusing a run at its usage limit.

In real use

From Nov 6, 2026 to Dec 1, 2026, Issuemill started 1,461 runs on 12 of my projects, on my own machine. 910 pull requests merged in that time.

Ask your own tools: the MCP server

The API runs a read-only MCP server, so an MCP client such as Claude Desktop can ask about your runs, the queue, what needs you, and spend. It takes a personal API token of an account with the operator role or above. Its tools:

  • list_runs: Runs, newest first, each with its cost.
  • get_run: One run, with its timeline and its result.
  • queue: The queue's items, and counts by status.
  • needs_me: What waits on you, oldest first.
  • spend: Cost by day and by project, and today's total.

The stack and the licence

Issuemill is built on Seed, my free SaaS starter: Hono for the API, Preact for the panel and Postgres for the data. The panel updates live while the runs work.

It is free software under AGPL-3.0. You host it yourself, on your own machine and your own Claude subscription.

It needs Linux with systemd, Postgres, Claude Code, the GitHub CLI gh signed in, and gitleaks, which scans every answer it posts on GitHub.

Install

The source opens soon. Leave your email to get a short note when it opens, and when Issuemill changes.

Want this working on your projects?

Tell me what you build and what you want done. I read and answer every message myself.

Write to me