A self-hosted Bun daemon that turns your GitHub issues into reviewed pull requests: Claude Code, Codex CLI, Antigravity CLI, Copilot CLI or OpenCode agents triage, plan, implement and review them, and nothing is built or merged without your approval.
- Approval gates: a Planner proposes, you
/approve; only your issues and comments count. - One Worktree per issue: each issue (or Bundle) gets its own branch, checkout and draft PR.
- Review and Feedback rounds: a Reviewer with a fresh context reviews every PR; findings, failing checks and conflicts go back to the Implementer.
- Optional auto-merge: the Coordinator merges reviewed PRs the Reviewer rated low risk, or none, or all.
- Several Accounts: when one subscription hits its usage limit, work goes on with the next.
- Claude Code, Codex CLI, Antigravity CLI, Copilot CLI or OpenCode: each Role runs on the Harness of its model, so a Reviewer on GPT or Gemini can check an Implementer on Opus, a Copilot subscription reaches several vendors' models, and OpenCode reaches many providers, free models among them (Harnesses).
- Live sessions: every Claude Code session shows up in the Claude app, where you can follow it and chat with it.
- Dashboard: what needs you, what runs and why the rest waits, on your phone too.
You need a Linux VM dedicated to the Coordinator with tmux, git, gh, Bun and at least one Harness logged in, e.g. Claude Code or Codex CLI (prerequisites).
bun add -g @flayms/issueflow
issueflow init # asks a few questions, writes the config, installs the serviceinit logs in the GitHub CLI with a fine-grained PAT, picks your repositories, Harnesses, models and dashboard sign-in, writes ~/.config/issueflow/config.json, runs issueflow doctor and installs the systemd service. Update with bun add -g @flayms/issueflow@latest && issueflow service restart.
The setup guide walks through each step: the PAT, the ruleset, the config, the dashboard and the service.
flowchart LR
issue["Issue"] --> plan["Assessment"]
plan -- "feedback" --> plan
plan -- "/approve" --> impl["Draft PR"]
impl --> review["Review"]
review -- "findings" --> impl
review -- "no findings" --> merge["Merge"]
- You open an issue. Comments, labels and reviews by anyone else are ignored.
- The Planner assesses it in an Assessment comment. Comment to revise it; it answers with a Reply.
- You approve with
/approve [notes]or theagent:approvedlabel. - The Implementer works on it in its own Worktree; the Coordinator opens a draft PR.
- The Reviewer reviews the PR. Findings and failing checks start a Feedback round, up to
maxFeedbackRounds. - You merge once the PR leaves draft, and the Worktree is cleaned up.
The details, from Split-off issues to merge conflicts, are in docs/how-it-works.md.
- Overview: what needs you, Capacity and the Usage quota, Activity (Recent, Now with what each agent is doing and a link to its chat, Next) and the Pipeline.
- Config: the settings without secrets; once signed in, change limits, auto-merge and models without a restart.
- Timings: how long each step of an issue took.
- On by default at
127.0.0.1:8080, reached over Tailscale or an SSH tunnel, "Sign in with GitHub" for you only. It changes nothing on GitHub.
![]() |
![]() |
| Config | Timings |
Made-up data from test/fixtures/dashboard-mock.ts; bun run screenshots renders them again.
More: how it works · setup · spec 003
| Command | Where | Effect |
|---|---|---|
/approve [notes] |
proposed issue | Approves the plan; notes go to the Implementer |
/agent <text> |
agent PR | A Feedback round with your text (also: "Request changes" reviews); on a conflicting PR it also merges the default branch, and it clears agent:failed |
/wake |
agent issue or PR | Resumes its closed session so you can chat in the Claude app |
| any other comment | proposed issue | Revises the plan and gets a Reply |
Each issue's state is an agent:* label; once the agent PR is open, the PR carries the same label as its issues: agent:pr-open, agent:reviewing, agent:reviewed, agent:in-progress or agent:failed.
You steer with comments, the agent:approved label, reviews and merging; the Coordinator applies every other label.
The lifecycle as a diagram
stateDiagram-v2
state "new (no agent label)" as new
state "agent:failed" as failed
state "merged / closed" as done
state Planning {
state "agent:planning" as planning
state "agent:proposed" as proposed
state "agent:needs-refinement" as refinement
state "agent:wontfix-proposed" as wontfix
}
state Implementing {
state "agent:approved" as approved
state "agent:blocked" as blocked
state "agent:in-progress" as inprogress
}
state Reviewing {
state "agent:pr-open" as propen
state "agent:reviewing" as reviewing
state "agent:reviewed" as reviewed
}
[*] --> new : Owner opens an issue (or the Coordinator creates a Split-off issue)
new --> planning : Coordinator starts the Planner
planning --> proposed : Coordinator, after the Planner's Result
planning --> refinement : Coordinator, after the Planner's Result
planning --> wontfix : Coordinator, after the Planner's Result
proposed --> proposed : Owner feedback, Planner revises
refinement --> refinement : Owner feedback, Planner revises
wontfix --> wontfix : Owner feedback, Planner revises
proposed --> approved : Owner /approve or adds agent#58;approved
proposed --> blocked : Owner /approve or adds agent#58;approved, while a blocking issue is open
blocked --> approved : Coordinator, the blocking issue was closed
approved --> blocked : Coordinator, a blocking issue was reopened before the start
approved --> inprogress : Coordinator starts the Implementer
inprogress --> propen : Coordinator pushes and opens the draft PR, after the Implementer's Result
propen --> reviewing : Coordinator starts the Reviewer, checks green and no conflicts
reviewing --> reviewed : Coordinator, after a Review without findings, PR leaves draft
reviewing --> inprogress : Coordinator, after a Review with findings, until and during its Feedback round
propen --> inprogress : Feedback round, Coordinator for failing checks or conflicts, Owner for /agent or Request changes
reviewed --> inprogress : Feedback round, Coordinator for conflicts, Owner for /agent or Request changes
propen --> failed : Coordinator, past maxFeedbackRounds for failing checks
inprogress --> failed : Coordinator, past maxFeedbackRounds for Review findings
planning --> failed : Coordinator, no valid Result or interrupted twice
inprogress --> failed : Coordinator, no valid Result or interrupted twice
reviewing --> failed : Coordinator, no valid Result or interrupted twice
failed --> inprogress : Owner /agent or Request changes on the PR, a Feedback round
reviewed --> done : Owner merges (or the Coordinator, with autoMerge), Coordinator cleans up
propen --> done : Owner clicks Ready for review and merges
propen --> new : Owner closes the PR unmerged, the issue is planned anew
new --> propen : Coordinator re-attaches an open agent PR that has no Worktree (also from a proposal or agent#58;approved)
wontfix --> done : Owner closes the issue
done --> [*]
note right of reviewed : From agent#58;pr-open on, the agent PR carries the same label as its issues
%% Label colours from src/labels.ts, as on GitHub
classDef l_planning fill:#c5def5,stroke:#c5def5,color:#1f2328
classDef l_proposed fill:#0e8a16,stroke:#0e8a16,color:#ffffff
classDef l_refinement fill:#fbca04,stroke:#fbca04,color:#1f2328
classDef l_wontfix fill:#cccccc,stroke:#cccccc,color:#1f2328
classDef l_approved fill:#1d76db,stroke:#1d76db,color:#ffffff
classDef l_blocked fill:#b60205,stroke:#b60205,color:#ffffff
classDef l_inprogress fill:#5319e7,stroke:#5319e7,color:#ffffff
classDef l_propen fill:#006b75,stroke:#006b75,color:#ffffff
classDef l_reviewing fill:#d4c5f9,stroke:#d4c5f9,color:#1f2328
classDef l_reviewed fill:#0e8a16,stroke:#0e8a16,color:#ffffff
classDef l_failed fill:#e11d21,stroke:#e11d21,color:#ffffff
class planning l_planning
class proposed l_proposed
class refinement l_refinement
class wontfix l_wontfix
class approved l_approved
class blocked l_blocked
class inprogress l_inprogress
class propen l_propen
class reviewing l_reviewing
class reviewed l_reviewed
class failed l_failed
What each label means and what you can do
| Label | Means | Set by | What you can do now |
|---|---|---|---|
| (none) | New issue, not planned yet | — | Wait for the next poll |
agent:planning |
The Planner is assessing the issue | Coordinator, when it starts the Planner | Wait, or follow the session in the Claude app |
agent:proposed |
The Assessment proposes an approach | Coordinator, after the Planner's Result (also after each revision) | Reply to revise, or /approve [notes] (or add agent:approved) |
agent:needs-refinement |
The Assessment asks you for details | Coordinator, after the Planner's Result (also after each revision) | Reply with the details (or edit the issue); the Planner revises |
agent:wontfix-proposed |
The Assessment proposes not to do this | Coordinator, after the Planner's Result (also after each revision) | Close the issue, or reply to argue for it |
agent:approved |
Approved; queued for the Implementer | Coordinator on /approve, or you (anyone else's is removed); a still blocked issue gets agent:blocked instead |
Wait |
agent:blocked |
Approved, but an issue it is blocked by is still open | Coordinator, on approval or before the start | Close or finish the blocking issue; it moves back to agent:approved by itself |
agent:in-progress |
The Implementer is working, first run or Feedback round | Coordinator, when it starts or resumes the Implementer, or after a Review with findings | Wait, or chat with the session in the Claude app |
agent:pr-open |
The draft PR is open: waiting for checks and a Review, or, after an automatic round without a new commit, for you (the Coordinator's comment says why) | Coordinator, after the Implementer's Result, or when it re-attaches an orphaned agent PR (REQ-001-43) | /agent <text> or "Request changes" on the PR for a Feedback round, mark it ready yourself, or merge it |
agent:reviewing |
The Reviewer is reviewing the PR | Coordinator, when it starts the Reviewer | Wait |
agent:reviewed |
The Review found nothing to fix; once its checks pass, the PR leaves draft, assigned to you, or is merged if autoMerge allows its Risk tier |
Coordinator, after a Review without findings | Merge, or /agent <text> / "Request changes" for another round |
agent:failed |
The Coordinator gave up; its comment says why. No automatic rounds run any more | Coordinator | /agent <text> or "Request changes" on the PR for a Feedback round, which clears the label; /wake to chat with the session; if it failed in planning, remove the label to have it planned anew |
- The labels show in their GitHub colour, grouped by phase. The Coordinator creates them in each repository.
- An agent PR always carries exactly one label, and only for show: the Coordinator decides from the issue's label.
- Agents don't set labels: their prompts leave that to the Coordinator, which applies them after an agent's Result or on its own checks.
- When an issue carries several agent labels, the most advanced one wins (
PRECEDENCEinsrc/state.ts), withagent:failedabove all others. - Merging or closing the PR clears the issue's agent labels; an issue whose PR was closed unmerged is open again without a label and gets a new Assessment.
issueflow init writes ~/.config/issueflow/config.json (or the file named by --config or $ISSUEFLOW_CONFIG) and can edit it again later. The file's $schema points at the package's config.schema.json, so an editor completes and checks every key. Saving on the dashboard's Config page writes into the same file, and a hand edit applies from the next tick on; repositories, Accounts and access need issueflow service restart. State (the store, sessions, clones and Worktrees) is kept in ~/.local/share/issueflow/.
- Owner, Roles, repositories: your login and id, a model (and effort) per Role, and each managed repository with its
setupcommand. - Limits: Slots per Role, live sessions, Worktrees and
maxFeedbackRounds. Also editable on the dashboard's Config page. - Role prompts: defaults in
prompts/; add Extra instructions per Role (globally or per repository) on the Config page, or replace a prompt with.github/coordinator/<role>.md(details).
autoMerge:evaluated(default: PRs the Reviewer ratedlowrisk),off(you merge every PR) orall; globally or per repository.- No gate is skipped: PRs with findings, failing checks or conflicts are never merged, and a PR that changes
.github/workflows/is always ratedhigh. - More in docs/how-it-works.md.
- List several subscriptions as
accounts; sessions run on the first one of their Harness that isn't paused by a usage limit. - A Codex CLI login is an Account with
harness: "codex", an Antigravity CLI login (one, a free Google login works) one withharness: "antigravity", a Copilot CLI login one withharness: "copilot", OpenCode (one, free Zen models need no login) one withharness: "opencode"; what each supports and lacks is in the feature matrix. - How to log in to each: setup step 3, spec 004.
- Run it on a VM of its own: agents run with permission prompts skipped and no sandbox.
- The only boundary is GitHub: one fine-grained PAT, limited to the repositories you choose (spec 005).
| Command | Does |
|---|---|
bun test |
The test suite |
bun run lint |
Biome and tsc --noEmit (bun run lint:fix autofixes) |
bun scripts/smoke-runner.ts |
Real tmux + claude; needs a subscription, so it doesn't run in CI. --harness codex|antigravity|copilot|opencode --fake-model: the real CLI, fake model, no login; --harness opencode alone runs a free model |
bun run screenshots |
The dashboard screenshots above; needs Chrome or Chromium. bun test fails when they are older than the dashboard |
bun src/cli.ts <command> |
The issueflow command from a checkout, e.g. bun src/cli.ts start --config ./config.json |
bun run schema |
Writes config.schema.json from the config rules after changing them; bun test fails when it is out of date |
- CI (
.github/workflows/ci.yml) runsbun install --frozen-lockfile,bun run lintandbun teston every push tomainand every PR, drafts included, so agent PRs here are checked before their Review. PR titles must be Conventional Commits (feat: …,fix: …,feat!: …), since they make the versions and the changelog. - Releases: release-please keeps a release PR open with the next version and
CHANGELOG.md; merging it tags the release and publishes it to npm (setup, spec 007). - Conventions:
AGENTS.md. Design: docs/architecture.md, glossary, specs.



