issue-flow
Agents should behave. Let them follow the issue flow.
issue-flow scaffolds a lightweight issue-tracking workflow into your project so that AI coding agents can pick up GitHub issues, plan work, and land PRs in a consistent way. It supports Cursor, Claude Code, opencode, and Codex via --editor (see Editor support); the examples below use the default, Cursor.
Full documentation: https://issue-flow.readthedocs.io/
Why use it
I guess it is just a matter of taste. If you are familiar with coding using agents and harnesses, issue-flow could very well slow you down. But...
Maybe that is a good thing?
What it does
Running issue-flow init in your project root creates:
your-project/
.issueflows/
00-tools/ # Helper scripts for agents
01-current-issues/ # Active issue markdown files
02-partly-solved-issues/ # Parked / in-progress issues
03-solved-issues/ # Completed issues archive
04-designs-and-guides/ # Durable project context and decisions
this-project.md # Hand-editable project brief (created if missing)
05-epics/ # Staged epic plans (epic<N>_plan.md)
.cursor/
skills/ # Agent Skills (/iflow, /iflow-pick, /iflow-init,
# /iflow-plan, /iflow-start, /iflow-close, ...)
rules/
issueflow-rules.mdc # Always-on Cursor rule for the workflow
AGENTS.md # Workflow rules (managed block; shared by all editors)
docs/
issue-workflow.md # Human-readable overview of the workflow
The exact agent_dir and the per-editor rules file depend on which editor(s) you scaffold for — see Editor support. AGENTS.md (written as a non-destructive managed block), .issueflows/04-designs-and-guides/this-project.md (a hand-editable project brief created only when missing), and docs/issue-workflow.md are shared by every editor.
The Cursor Agent Skills give agents a repeatable flow and appear in the slash menu. In chat you can also type iflow plan, iflow pick, etc. (space-separated, no /) when your keyboard makes slash awkward — see docs/issue-workflow.md. The linear path is:
/iflow-init 42oriflow init 42— pulls GitHub issue #42 into.issueflows/01-current-issues/and archives older issues.iflow planor/iflow-plan— draftsissue<N>_plan.md(Goal / Constraints / Approach / Files to touch / Test strategy / Open questions) and stops for your confirmation./iflow-start— reads the confirmed plan and implements it. If no plan file exists, it offers to run/iflow-planfirst, proceed without a plan, or abort./iflow-close— runs tests, optionally bumps version withuv version --bump, appends aHISTORY.mdentry (or promotes[Unreleased]to a new release section on a bump), updates status files, commits, pushes, and opens a PR./iflow-cleanup— after the PR merges, switches to the default branch, fast-forwards, prunes, and deletes the merged local branch.
Plus a few off-path commands:
/iflow-pick— front door: when you haven't chosen an issue yet, it helps pick one (parked work in02-partly-solved-issues/first, else open GitHub issues ranked by milestone, labels, and similarity to recently solved work), creates the<N>-slugbranch, and runs/iflow-init. Passfixto create a new general-fixes issue. Off-path; never auto-dispatched./iflow— quick start: inspects the current issue's state and dispatches to the right linear step automatically. A branch-derived number (42-fix-login→N=42) is authoritative, so/iflowworks from a fresh branch too./iflow-pause— park the current issue in02-partly-solved-issues/with a Remaining work note; optional WIP commit + switch back to the default branch./iflow-yolo— all-in-one chain (init → plan → start → close) for small, low-risk issues, with up-front safeguards (refuses on the default branch, refuses with dirty unrelated changes, requires passing tests, single consolidated confirm)./iflow-fix— interactive iterative-fixes session: creates one GitHub issue + long-lived branch, then loops over many small fixes (each gets a short plan, implemented only on confirmation and recorded inissue<N>_status.md), ending with/iflow-close. Coexists with/iflow-pick fix(the one-shot setup). Off-path; never auto-dispatched./iflow-status— read-only overview of where every issue stands: the local tracking state (focus / parked / solved) plus open GitHub issues cross-referenced against it. Passlocalto skip the GitHub query. Changes nothing; off-path; never auto-dispatched./iflow-archive— condense the solved archive (destructive, gated): summarises selectedissue<N>_*groups under03-solved-issues/into a datedYYYY-MM-DD_archived_issues.mdfile. The summary records the pre-archive git ref so every original file stays recoverable (git show <ref>:<path>). Deletes the source files only after one consolidated confirm. Default: archive all but the 5 most recent solved groups; passkeep <K>, an explicit list of issue numbers, orall. Requires a clean working tree. Off-path; never auto-dispatched.
The Agent Skills under .cursor/skills/ carry the workflows for on-demand use with /iflow-pick, /iflow, /iflow-init, /iflow-plan, /iflow-start, /iflow-pause, /iflow-close, /iflow-cleanup, /iflow-yolo, /iflow-fix, /iflow-status, /iflow-archive, @iflow-version-bump when you need only the bump steps, or @iflow-history-update when you need only the changelog update (see Cursor Agent Skills).
Prerequisites
issue-flow itself is a small Python CLI, but the scaffolded commands and skills
it writes into your project shell out to a few external tools. If they are
missing, the workflows will fail at runtime — so issue-flow init now
checks for them up front and prints install hints before it does anything.
Required:
- Git — used by every slash command for branch, fetch, status, commit, and push operations. Almost certainly already installed if you're here, but the check covers it for completeness.
- GitHub CLI (
gh) — used by/iflow-initto fetch issues, by/iflow-closeto open PRs, and by/iflow-cleanupto check PR merge status. After installing, rungh auth loginonce to authenticate.
Recommended:
- uv — how issue-flow itself is meant to be installed, and how this repo manages its own Python environment.
Quick install pointers for gh:
| Platform | Command |
|---|---|
| macOS (Homebrew) | brew install gh |
| Windows (winget) | winget install --id GitHub.cli -e |
| Linux (Debian/Ubuntu) | sudo apt install gh (or see cli.github.com for the official repo) |
If a dependency is missing, issue-flow init prints the installation hints
and asks whether to continue anyway. You can bypass the prompt in automation
with issue-flow init --skip-dep-check (the same flag is available on
issue-flow update), and the prompt is also auto-skipped when stdin is not
a TTY (e.g. CI pipelines).
Multi-root workspaces
When one Cursor workspace contains several sibling repositories (each with its
own issue-flow init), lifecycle commands must target the correct repo explicitly.
Use slash hints (root:<path>, repo:<folder-name>, repo:owner/name), or run
issue-flow agent resolve [--from-file <active-file>] [--json] before git/gh
calls. See .issueflows/04-designs-and-guides/multi-repo-workspaces.md in
scaffolded projects (or run issue-flow update to refresh scoped
issueflow-rules.mdc files).
Optional: graphify integration
issue-flow has a lightweight integration with graphify
(PyPI: graphifyy, CLI: graphify) — a tool that turns the project into a
queryable knowledge graph that AI assistants can read instead of grepping
through files. The integration is opt-in by installing graphifyy as its
own tool (the same way you installed issue-flow): there is no enable flag and
no extras to remember — detection is purely PATH-based. (You can keep an LLM
API key in .env for the optional extract pass; see below.)
What issue-flow does when graphify is on PATH:
issue-flow initandissue-flow updaterungraphify cursor installso the graphify Cursor skill is registered alongside the issue-flow scaffold. If graphify is not installed, both commands just print install hints and continue — they never block.- A new
/iflow-graphifyentry point (skill on Cursor/Codex, command + skill for command-emitting editors) wrapsissue-flow graphify. With no extra args it runsgraphify update <project>— AST-only, no LLM API key required, so the no-arg case "just works". For richer semantic relationships addextract(issue-flow graphify extract) and configure a backend (GEMINI_API_KEY,ANTHROPIC_API_KEY,OPENAI_API_KEY,MOONSHOT_API_KEY, or--backend ollamafor a local LLM). You can set that key in the project.env—issue-flow graphifyloads.envfrom the project root before invoking graphify — or export it in your shell environment. Cursor's own LLM is not available to subprocesses, so graphify needs its own backend. Other subcommands (watch,cluster-only, …) pass through too; trailing flags forward verbatim. - The scaffolded rules and
/iflow-startmentiongraphify-out/GRAPH_REPORT.mdas a recommended pre-read when the file exists./iflow-graphifyis off-path —/iflownever auto-dispatches to it.
To enable, install graphify as its own standalone tool:
uv tool install graphifyy # recommended
# or
pipx install graphifyy
# or
pip install graphifyy
Why not an
issue-flow[graphify]extra (oruv tool install issue-flow --with graphifyy)?uv tool installonly puts the host package's entry-point scripts on PATH. An extra (or--with graphifyy) pulls graphifyy into issue-flow's venv but leaves thegraphifyCLI invisible to the shell, so/iflow-graphifyandgraphify cursor installwould still fail. Installing graphify as its own tool puts a realgraphifyshim on PATH and matches how we treatgit/gh.
Just installed graphifyy and
issue-flow initsays it's still missing? uv prints~/.local/bin is not on your PATHafter the firstuv tool install. Runuv tool update-shell(refreshes shell rc files), then restart your shell and Cursor so the new PATH takes effect. issue-flow's missing-CLI hint also detects this case and tells you the exact directory to add.
After installing, run issue-flow update once so the graphify Cursor skill
gets registered.
Installation
Requires Python 3.11+ and uv (recommended).
uv tool install issue-flow
Or add it as a dev dependency to your project: uv add --dev issue-flow.
The scaffolded workflows shell out to Git and the GitHub CLI (gh) (run gh auth login once after installing). issue-flow init checks for both up front and prints install hints before it does anything; bypass the prompt in automation with --skip-dep-check.
Quick start
cd your-project
issue-flow init
That's it. Open the project in Cursor and start with /iflow — or step through the linear path explicitly:
/iflow-init 42— pulls GitHub issue #42 into.issueflows/01-current-issues/and archives older issues./iflow-plan— draftsissue<N>_plan.md(Goal / Constraints / Approach / Files to touch / Test strategy / Open questions) and stops for your confirmation./iflow-start— reads the confirmed plan and implements it./iflow-close— runs tests, optionally bumps version, appends aHISTORY.mdentry, updates status files, commits, pushes, and opens a PR./iflow-cleanup— after the PR merges, switches to the default branch, fast-forwards, prunes, and deletes the merged local branch.
Plus a few off-path commands (never auto-dispatched):
/iflow-pick— front door: helps pick the next issue (parked work first, else open GitHub issues ranked by milestone, labels, and similarity to recent work), creates the branch, and runs/iflow-init./iflow— quick start: inspects the current issue's state and dispatches to the right linear step automatically (a branch-derived number like42-fix-loginis authoritative)./iflow-pause— park the current issue with a Remaining work note./iflow-yolo— all-in-one chain (init → plan → start → close) for small, low-risk issues, with up-front safeguards and a single consolidated confirm./iflow-fix— interactive iterative-fixes session: one GitHub issue + long-lived branch, many small confirmed fixes./iflow-status— read-only overview of where every issue stands, locally and on GitHub./iflow-archive— condense old solved-issue files into a dated summary (destructive, gated behind one consolidated confirm; originals stay recoverable via git).
CLI overview
issue-flow init [PROJECT_DIR] [--force] [--skip-dep-check] [--editor EDITOR] [--mode MODE] [--skill-level LEVEL]
issue-flow update [PROJECT_DIR] [--skip-dep-check] [--editor EDITOR]
issue-flow graphify [-C PROJECT_DIR] [...graphify subcommand + args]
issue-flow status [PROJECT_DIR] [--local] [--json]
issue-flow agent state|preflight|switchback|resolve|sweep|archive|capture [...]
issue-flow config add [-C PROJECT_DIR] [--force] [--json]
initscaffolds; running it again without--forceonly adds missing files.updaterefreshes generated files after upgrading the package (overwrites scaffolds, never your issue markdown).status/agent ...give agents (and you) deterministic answers about lifecycle state — focus issue, stage, branch hygiene — instead of having the agent re-derive it by hand.
Full option tables and the agent subcommand reference live in the CLI reference.
Going further
- Configuration —
.envvariables and.issueflows/config.toml; modes (standardvs the markdown-onlysimple), skill levels (basic/standard/advancedquality-tooling guidance), the optional caveman and grill-me skills, and label-driven flows (ayololabel routes an issue through the hands-off chain). - Editor support — what gets scaffolded per editor (Cursor, Claude Code, opencode, Codex), and how multi-root workspaces resolve the right repo.
- Graphify integration — optional knowledge graph of your codebase that agents can read instead of grepping; enabled simply by installing
graphifyy. - Issue workflow — the human-readable walkthrough of the full lifecycle (also scaffolded into your project).
Development
git clone https://github.com/jepegit/issue-flow.git
cd issue-flow
uv sync
# Run tests
uv run pytest
# Lint
uv run ruff check src/ tests/
See docs/developing.md for more.
Changelog
See HISTORY.md for release notes.
Future plans
- More editors — extend
--editorcoverage to further AI coding tools (e.g. Windsurf) on top of the current Cursor / Claude Code / opencode / Codex support. - Custom templates — let users supply their own Jinja2 templates to tailor slash commands and rules to their team's conventions.
- Git hook integration — optionally move issue files on commit based on status markers.
- GitHub Actions workflow — ship a reusable action that syncs issue state between
.issueflows/and GitHub issue labels/milestones.
Acknowledgements
issue-flow builds on and takes inspiration from other people's open-source work. Thanks to the authors and communities behind these projects:
| Project | How issue-flow uses it | License |
|---|---|---|
| JuliusBrussee/caveman | Inspiration for the bundled caveman Agent Skill (terse, token-greedy response style). Our version is a trimmed adaptation — full intensity only, English only. |
MIT |
| mattpocock/skills | Matt Pocock's grill-me skill inspired the bundled grill-me Agent Skill (relentless planning interview). Our version is adapted to issue-flow's planning workflow, feeding conclusions into issue<N>_plan.md. |
MIT |
safishamsi/graphify (graphifyy on PyPI) |
Powers the optional knowledge-graph integration (issue-flow graphify, graphify-out/). Installed separately and invoked as an external tool. |
MIT |
| Typer | The issue-flow command-line interface. |
MIT |
| Rich | Formatted terminal output during init / update. |
MIT |
| Jinja2 | Renders the scaffolded skill, command, and rules templates. | BSD-3-Clause |
| tomlkit | Comment-preserving round-trips of .issueflows/config.toml. |
MIT |
| python-dotenv | Loads ISSUEFLOW_* settings from a project .env. |
BSD-3-Clause |
| Zensical | Builds the documentation site (from the Material for MkDocs team). | MIT |
Using or drawing on another project that should be listed here? Open a PR or issue to add a row.
License
This project is released under the MIT License. See the full text in the repository: LICENSE.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file issue_flow-0.4.4.post3.tar.gz.
File metadata
- Download URL: issue_flow-0.4.4.post3.tar.gz
- Upload date:
- Size: 154.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48710ae8d2f6610c1c20fc7175008d8cb9df885eeaf56c3045ae9adf3801f9d8
|
|
| MD5 |
04bffce8bc12433cecca8f17bce6e41b
|
|
| BLAKE2b-256 |
594b046442323a9d65250017197b99aaba9652c60622039bf66e768bc138fd3f
|
Provenance
The following attestation bundles were made for issue_flow-0.4.4.post3.tar.gz:
Publisher:
publish.yml on jepegit/issue-flow
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
issue_flow-0.4.4.post3.tar.gz -
Subject digest:
48710ae8d2f6610c1c20fc7175008d8cb9df885eeaf56c3045ae9adf3801f9d8 - Sigstore transparency entry: 2161416231
- Sigstore integration time:
-
Permalink:
jepegit/issue-flow@fcf5c661c6b1838d10a0b04fa5c98572ad358bab -
Branch / Tag:
refs/tags/v0.4.4.post3 - Owner: https://github.com/jepegit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fcf5c661c6b1838d10a0b04fa5c98572ad358bab -
Trigger Event:
release
-
Statement type:
File details
Details for the file issue_flow-0.4.4.post3-py3-none-any.whl.
File metadata
- Download URL: issue_flow-0.4.4.post3-py3-none-any.whl
- Upload date:
- Size: 204.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
081859166bb67868add4096ea265cca8e5dd53a6a862e75ef94964294d760567
|
|
| MD5 |
80740c41eec158e83dce6d95cf20ce1e
|
|
| BLAKE2b-256 |
2ba9203259517b72f38ae03b40f643170f71d20c5ab9150efde6bcd6b2612eb7
|
Provenance
The following attestation bundles were made for issue_flow-0.4.4.post3-py3-none-any.whl:
Publisher:
publish.yml on jepegit/issue-flow
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
issue_flow-0.4.4.post3-py3-none-any.whl -
Subject digest:
081859166bb67868add4096ea265cca8e5dd53a6a862e75ef94964294d760567 - Sigstore transparency entry: 2161416392
- Sigstore integration time:
-
Permalink:
jepegit/issue-flow@fcf5c661c6b1838d10a0b04fa5c98572ad358bab -
Branch / Tag:
refs/tags/v0.4.4.post3 - Owner: https://github.com/jepegit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fcf5c661c6b1838d10a0b04fa5c98572ad358bab -
Trigger Event:
release
-
Statement type: