Scrum, sprints and releases from the command line
This guide takes a project from setup to a shipped release using Scrum, with you running each command. To work by talking to Claude instead, see Scrum with Claude. Other processes are listed in the guides index.
The commands and output come from a real run on a scratch project. <tmp> stands for a temporary
folder.
Three clocks
| What it answers | Moves when | |
|---|---|---|
| Stage | How far has this item got? | Its gates are met, one item at a time |
| Sprint | What are we working on these two weeks? | You start and close it |
| Release | What has reached users? | You promote it, stage by stage |
Scrum switches sprints, releases and points on. An item is done for its sprint at Done, and released only when a release that holds it is cut.
flowchart LR
A["Ready"] -->|"kanbanr start"| B["item branch"]
B -->|"move to Done"| C["sprint/SP-001"]
C -->|"promote to candidate"| D["release/v1.0.0"]
D -->|"promote to main"| E["main"]
E -->|"cut"| F["tag v1.0.0"]
Setting it up
In your project folder:
kanbanr init shop --data-dir <tmp>/shop-board --author Ada --email ada@example.com
kanbanr config workflow --preset scrum
kanbanr config cadence --git-model on
kanbanr git install-hooks
sprints on, releases on, estimates in points
installed commit-msg and pre-commit and pre-push in <tmp>/shop: a commit now has to say which item it serves
kanbanr git model shows what the git model will do. Nothing is pushed for you:
topology: sprints and releases
main: main
line: none — start a sprint to have one
branch at: sprint/<SP>
production: at the release cut
items: feat/{code}-{slug}, fix/{code}-{slug}, spike/*
protected: main, sprint/*, release/*
kanbanr merges:
- each item branch into sprint/<SP> when the item enters the integrate stage (--no-ff, naming the item)
- release/<V> into main at the release's last stage (tagged <V>, a fast-forward)
- sprint/<SP> into each item branch carried into that sprint (a catch-up merge; a conflict is reported for that item)
pushing: never automatic — you review and push
automation: on — start, sprints and the hooks follow this model
In Scrum the integrate stage is Done, so that is where an item’s branch merges.
The charter comes first
The gates are not enforced until the project has a charter, and an item created before the
charter was adopted is exempt from them. Without one, moves that should be refused still succeed,
but each says what the gate would have needed and that kanbanr charter set turns the gates on.
So agree the charter before creating any items:
kanbanr charter set --file charter.yaml
charter saved for 'shop': 1 goal(s) G-1
Release stages
A project that turns releases on gets three stages, candidate, main and tag, with their gates
written into the board’s config, so you can see and edit them. Main has to be pushed before
anything is tagged. Candidate waits for items_merged, so the release branch is made only once the items are
merged; the commands below set the same thing. kanbanr can’t see whether CI passed. Look at your CI yourself, then record what it
said with kanbanr gate record ci --passed --url <link to the run>. Say the project has CI with
kanbanr config cadence --has-ci on and the tag stage requires that result
(Gate results); without the flag it requires only
main_at_release and pushed.
A board made before 0.6 that has releases on and names no stages keeps the four it had,
candidate, test, staging and production. test and staging do nothing, and kanbanr says so
when you configure them and in kanbanr release stages. To move such a board to the three, run
kanbanr config cadence --release-stages candidate,main,tag, then the release-stage lines below.
Stages you add after tag follow the cut and are confirmed by you.
kanbanr config cadence --release-stages candidate,main,tag
kanbanr config release-stage candidate --requires items_merged --on-enter branch,prepare
kanbanr config release-stage main --requires items_finished --on-enter move_main
kanbanr config release-stage tag --requires main_at_release,pushed --on-enter tag
kanbanr config release-prepare --version-file package.json --changelog CHANGELOG.md --notes "docs/releases/{version}.md"
STAGE REQUIRES ON ENTER
candidate items_merged branch, prepare
main items_finished move_main
tag main_at_release, pushed tag the cut
To stop a release being promoted while work is still going on, have the candidate stage require
items_merged: every item planned into the release must be at the integrate stage or later (for
TOGAF, Migration), and the plan names each item that is not, with the status it is at. And to stop a
named promotion jumping over a stage, list it in --after: kanbanr then refuses to enter the stage
until the release has been promoted into the one named. For example, with a ci stage you record
yourself:
kanbanr config cadence --release-stages candidate,main,ci,tag
kanbanr config release-stage tag --after ci
kanbanr records that the stage was entered, not that CI passed. To require a recorded CI result as
well, use gate_passed.
The release-prepare line names your own files. The version file must already be on the sprint’s
branch, or promoting to candidate is refused.
Planning a sprint
Setup creates no sprint or release; make them when you are ready. A sprint can be changed until it
starts (kanbanr sprint edit SP-001 --goal "…" --start 2026-11-10), and an empty sprint or release
made by mistake is removed with kanbanr sprint remove SP-001 or kanbanr release remove v1.0.0.
kanbanr milestone add --name "Carts"
kanbanr sprint add --start 2026-11-03 --length 2w --goal "Carts survive a return"
# or start it today: kanbanr sprint add --start today --length 2w --goal "…"
kanbanr sprint start SP-001
kanbanr feature add --title "Restore the cart" --milestone MS-001 --spec "# Restore the cart"
kanbanr sprint plan SP-001 FEAT-001
kanbanr sprint unplan FEAT-001 # take it back out
kanbanr release add v1.0.0
kanbanr release plan v1.0.0 FEAT-001
created milestone MS-001
added SP-001 (2026-11-03 → 2026-11-16)
SP-001 is the active sprint; created sprint/SP-001 from main
created FEAT-001 (Backlog)
planned FEAT-001 into SP-001 (0 committed)
added release v1.0.0
planned FEAT-001 into v1.0.0
Starting the sprint makes the sprint/SP-001 branch from main without switching your checkout.
One item, stage by stage
Each move is refused until its gate is met, and the refusal says what’s missing. kanbanr check
shows the same list before you try.
| Stage | What must be true to enter | Commands |
|---|---|---|
| Backlog | Nothing: a title is enough | kanbanr feature add |
| Ready | Definition of Ready: statement, goal, requirements in EARS form, a size in points | kanbanr feature define, kanbanr feature edit --points |
| In Progress | Approved, in the current sprint, the design-review sign-off | kanbanr approve, kanbanr signoff, kanbanr start |
| Review | A test named for every requirement | kanbanr test |
| Testing | Nothing more | kanbanr move |
| Done | Definition of Done: every requirement proven by a green test, the docs-folded sign-off | kanbanr test, kanbanr signoff, kanbanr move |
| Released | In a release that has been cut | the cut does the move |
An item with no definition or points can’t reach Ready:
error: unsupported operation: cannot move FEAT-001 to 'Ready': no definition — why it exists, what must be true, how it is verified (`kanbanr feature define`); not estimated — this project estimates in story points. To proceed anyway, record why with --override "<reason>"
Define it, give it points, and move it:
kanbanr feature define FEAT-001 --file definition.yaml
kanbanr feature edit FEAT-001 --spec-file spec.md
kanbanr feature edit FEAT-001 --points 3
kanbanr move FEAT-001 "Ready"
defined FEAT-001: 1 requirement(s)
updated FEAT-001
updated FEAT-001
FEAT-001 -> Ready
Code starts at In Progress. kanbanr start makes the item’s branch from the sprint’s branch and
moves the item if its gate is met. If it isn’t, it says what’s missing and makes no branch:
error: unsupported operation: cannot move FEAT-001 to 'In Progress': not approved; no sign-off 'design-review' — `kanbanr signoff FEAT-001 design-review`. To proceed anyway, record why with --override "<reason>"
Approve, sign off, and run it again:
kanbanr approve FEAT-001
kanbanr signoff FEAT-001 design-review
kanbanr start FEAT-001 --to "In Progress"
FEAT-001 approved by Ada
FEAT-001: sign-off 'design-review' recorded by Ada
created feat/FEAT-001-restore-the-cart from sprint/SP-001
FEAT-001 -> In Progress
Adding keeps your approval; changing lapses it. Text added to the definition is reviewed at the next decision. When approved text is changed or removed, the next move says so, and you approve again.
Commit with kanbanr commit, which adds Refs: kanbanr:FEAT-001 to the commit:
kanbanr commit -m "feat: restore the cart"
[feat/FEAT-001-restore-the-cart 74aa8cc] feat: restore the cart
1 file changed, 1 insertion(+)
create mode 100644 cart.txt
Review and Testing need nothing beyond the named test:
kanbanr move FEAT-001 "Review"
kanbanr move FEAT-001 "Testing"
FEAT-001 -> Review
FEAT-001 -> Testing
Done is where the merge happens. It is refused until the tests are green and the docs are signed off:
error: unsupported operation: cannot move FEAT-001 to 'Done': R-1 has tests but none is green — not yet proven; no sign-off 'docs-folded' — `kanbanr signoff FEAT-001 docs-folded`. To proceed anyway, record why with --override "<reason>"
Record the result and the sign-off, then move:
kanbanr test FEAT-001 R-1 "cart_restores_after_return" green --rev 74aa8cc83c09aa4eef7b0d856da1efbfa605609c
kanbanr signoff FEAT-001 docs-folded
kanbanr move FEAT-001 "Done"
FEAT-001/R-1 · cart_restores_after_return -> green
FEAT-001: sign-off 'docs-folded' recorded by Ada
FEAT-001 -> Done
merged feat/FEAT-001-restore-the-cart into sprint/SP-001 (fe92a82b0741)
The item now counts as done for the sprint. kanbanr check FEAT-001 says it is ready for Released,
which only the cut does. Your checkout stays on the item’s branch, so switch back when you want the
line.
Chores
A process can give a kind its own path. The built-in scrum process gives chore the path
Backlog → Ready → In Progress → Testing → Done → Released, skipping Review. kanbanr process show scrum lists each kind’s path under
“Lighter paths”.
kanbanr feature add --title "Pin the CI image" --milestone MS-001 --kind chore
A chore’s first move off Backlog asks the path’s own conditions (statement, goals,
requirements, and ears where the path lists it) as well as the entered stage’s gate, so it still
records why it exists and how it is verified. A move to a stage off the path is refused, and the
message names the path. Ready still asks for the statement, goals, requirements and a size, and In Progress still asks for approved and the current sprint; the design and design-review parts do not apply. An item whose kind is changed to chore while it’s at a
stage off the path keeps the ordinary transitions, so it is never stranded.
Handing work to sub-agents
A scope limits what an agent working in its own worktree may do, and kanbanr enforces it. The agent may record its own item’s tasks and tests and commit on its item’s branch. It can’t move items, approve or push. See Sub-agents and agent scopes.
Stay in the project folder. Never cd into an agent’s worktree: look inside with git -C <path>,
make -C <path>, npm --prefix <path> or a subshell (cd <path> && …). If your shell is already
there, cd back to the project folder. Revoking a scope (kanbanr scope revoke SC-…) stops the
agent on its next tool call and never restricts you.
Releasing
Before your first release, design the pipeline. A release workflow can only be tested by running it, a tag can’t be moved once it’s pushed, and shipped notes can’t be edited, so a mistake in the pipeline costs a whole version number. Settle the stages, the checks, the release description and a run without a tag first: see Designing CI and the release workflow.
kanbanr release promote v1.0.0 --plan shows what a promotion would do and changes nothing:
v1.0.0: Promote to candidate (— → candidate)
does:
→ branch (candidate): makes release/v1.0.0 from sprint/SP-001
→ prepare (candidate): commits the version 1.0.0, the changelog heading and draft notes to release/v1.0.0
ready: `kanbanr release promote v1.0.0 candidate`
after: then Promote to main
(a plan: nothing was changed)
| Step | Command | What happens |
|---|---|---|
| 1. Candidate | kanbanr release promote v1.0.0 candidate | Makes release/v1.0.0 from the sprint’s branch, and commits the version, the changelog heading and draft notes |
| 2. Write the notes | kanbanr release notes v1.0.0 --edit | The draft only lists requirements. Rewrite it for readers |
| 3. Run your full checks | Your project’s own | Over the release |
| 4. Main | kanbanr release promote v1.0.0 main | Fast-forwards main to the release, without tagging |
| 5. Push main | git push origin main | |
| 6. Wait for CI, then record it | kanbanr gate record ci --passed --url <link to the run> | Once CI on main is green. The cut waits for it |
| 7. Cut | kanbanr release promote v1.0.0 tag | Tags main, ships the items and moves them to Released |
| 8. Push the tag | git push origin v1.0.0 | |
| 9. Merge forward | kanbanr git forward v1.0.0 | Brings the release’s commits into the sprint’s branch |
Scrum asks for no release sign-off, so there is nothing to give between Done and the promotion.
v1.0.0 -> candidate; created release/v1.0.0
makes release/v1.0.0 from sprint/SP-001
commits the version 1.0.0, the changelog heading and draft notes to release/v1.0.0
prepared 59e2014e8aae on release/v1.0.0
next: `kanbanr release promote v1.0.0` (Promote to main)
The notes live on the release branch, so read them from the release itself:
kanbanr release notes v1.0.0
release/v1.0.0 @ 59e2014: docs/releases/v1.0.0.md
# v1.0.0
_Released 2026-11-04._
A patch release starts at **candidate** the moment it is created, so there is no first stage to promote from. Claude asks you in the conversation to confirm it; main and the tag are then decided on the Releases page as usual. `kanbanr release add v1.0.1 --patch-of v1.0.0` creates it at candidate.
## What shipped
#### Stages after the tag
The stage that tags is the cut, but it does not have to be the last. Add stages after it, for the
places you run the release before it counts as out, and each becomes a confirmation you give:
```text
kanbanr config cadence --release-stages candidate,main,tag,staging,production
kanbanr config release-stage tag --on-enter tag
kanbanr config commit-gates ci
Promoting to tag tags the commit and ships nothing. The Releases page then shows the result you
recorded for the tag and asks for the next stage only after a passed one. Each stage after the
tag, staging and production here, is confirmed with
kanbanr release promote <VERSION> --note "what you checked". Confirming the last stage ships the
release: the items reach their last status and the notes are written. If your CI fails on the tag,
record the failed result and run kanbanr release add <NEW VERSION> --patch-of <VERSION> --from-failed-tag --link <run> --notes "what you saw": it files a defect with the link and your
notes, plans it and the release’s items into a patch branched from the tag, and marks the failed
release as superseded. The tag stays in git.
FEAT-001 — Restore the cart
A returning shopper finds their cart for shoppers so that they don’t lose it
- WHEN a shopper returns, THE SYSTEM SHALL restore their cart
Promote to main, then push it:
```text
v1.0.0 -> main; main fast-forwarded to it, not tagged
fast-forwards main to release/v1.0.0 (59e2014)
next, for Claude: bring release/v1.0.0 into sprint/SP-001 with `kanbanr git forward v1.0.0` — a local merge, nothing is pushed; a conflict stops it with nothing changed
59e2014e8aae Release v1.0.0: version, changelog and notes
nothing was pushed: push main when you are ready
next: push main (`git push origin main`), then wait for CI, then Cut v1.0.0
To <tmp>/origin.git
c699fc1..59e2014 main -> main
The cut, then the tag push:
v1.0.0 -> tag; tagged v1.0.0, where main already is
tags 59e2014 "Release v1.0.0" as v1.0.0
shipped 1 item(s); notes in releases/v1.0.0.md
next, for Claude: bring release/v1.0.0 into sprint/SP-001 with `kanbanr git forward v1.0.0` — a local merge, nothing is pushed; a conflict stops it with nothing changed
59e2014e8aae Release v1.0.0: version, changelog and notes
nothing was pushed: push the tag when you are ready
push the tag: `git push origin v1.0.0`
To <tmp>/origin.git
* [new tag] v1.0.0 -> v1.0.0
The item is now Released, and the release is shipped:
- **Status:** Released
v1.0.0 shipped tag target — 1 item(s)
Merge forward so the sprint’s branch has the release commit:
merged release/v1.0.0 forward into sprint/SP-001 (a76f622b0e74)
Freeze the candidate. Once a release is a candidate, send anything new to the next release, and change only its notes.
The date follows the release. The notes and the changelog heading are dated when the candidate is
made, and promoting to main dates them today. If main moved earlier and the cut comes later, the
cut’s --plan warns, and kanbanr release redate v1.0.0 dates them today. Notes can’t be edited
after the cut.
Closing the sprint
kanbanr sprint close SP-001
kanbanr retro --sprint SP-001
closed SP-001; nothing carried over
look back on it: `kanbanr retro --sprint SP-001`
Items at Done count as done for the sprint, so they are not carried over, even if their release is not cut yet. Closing changes the board only. With no sprint running, there’s no line for new items to branch from, so start the next sprint before starting any item.
The retro opens like this:
# Retrospective — sprint SP-001
## What the board recorded
- items: 1 (1 finished, 0 still open)
- sprint SP-001: 3 of 3 points done
- ran: 2026-11-04 → 2026-11-04
- scope: 1 to begin with, 0 added (0 defect(s), 0 split, 0 unaccounted for)
- defects recorded with their cause: 0 (0 escaped)
- cycle time: p50 0m, p90 0m, max 0m
- requirements proven by a green test: 1/1
When things go wrong
| You see | It means | Do this |
|---|---|---|
| Moves succeed that shouldn’t | No charter, or the item predates it | Set the charter before creating items |
no definition or not estimated at Ready | The item lacks a definition or points | kanbanr feature define, then kanbanr feature edit --points |
not approved at In Progress | The definition isn’t approved | kanbanr approve FEAT-001 |
| The move says the approval lapsed | The definition changed after you approved it | Read the change and approve again |
none is green at Done | A requirement has no passing test | kanbanr test with the result |
no sign-off 'docs-folded' | The docs sign-off is missing | kanbanr signoff FEAT-001 docs-folded |
| A defect in a shipped release | It needs a fix on its own | See Patch releases |
A move can also go past its gate with --override "<reason>", and the reason stays on the item. Save
it for real exceptions.