Kanbanlan
Kanbanlan gives a repository one documented coordination workflow for humans and coding agents. Today its canonical kanban home is GitHub Issues with a GitHub Projects v2 projection; its core identity and provider contract are portable to other canonical homes.
It provides:
- one-command repository and Project setup;
- browser-based GitHub CLI authentication when credentials or the
projectscope are missing; - repository labels, issue/PR templates, and managed
AGENTS.md/CLAUDE.mdinstructions; - a private local snapshot shared across Git worktrees;
- dry-run-first reconciliation between issue labels, Project Status, active claims, and linked pull requests; and
- immutable, provider-independent Kanbanlan IDs;
- safe capture, claim, release, handoff, and review commands; and
- durable per-request records stored in the repository.
GitHub Issues remain canonical in the current provider. Kanbanlan does not store API tokens, require an MCP server, or create another server-side database.
Install
Kanbanlan requires Python 3.11+, Git, and GitHub CLI. The examples below use uv for installation and development.
Install the latest release from PyPI:
uv tool install kanbanlan
Once installed, upgrade to the latest release with:
kanbanlan upgrade
On normal CLI use, Kanbanlan also checks PyPI at most once every three days and
prints a short notice when a newer release is available. Set
KANBANLAN_NO_UPDATE_CHECK=1 to disable these checks.
Or install the unreleased development version from GitHub:
uv tool install git+https://github.com/jmitchel3/kanbanlan.git
To install a local checkout instead:
uv tool install .
For development:
uv sync --group dev
uv run pytest
uv run ruff check .
uv build
Initialize a repository
Start the guided setup wizard from any GitHub-backed repository:
cd /path/to/repository
kanbanlan init
The three-step wizard detects the repository and default branch, defaults to a
fresh copy of the Kanbanlan Project
template, collects the
staging and optional production branch, then shows a summary for confirmation
before it changes repository files or Project settings. The copied Project is
titled <repository name> Delivery by default and includes the template's
preconfigured views. GitHub and cache work shows progress as it runs, including
a clear failed step if setup stops.
If .kanbanlan.toml already exists, init switches to a local update-in-place
path before repository discovery or GitHub authentication. It reuses the stored
repository and Project binding, preserves unspecified settings, and refreshes
managed files without creating, copying, linking, or reconciling a Project.
kanbanlan init --session-tracking # enable and scaffold hooks in place
kanbanlan init --no-session-tracking # disable attribution in place
kanbanlan init # refresh managed files with stored settings
Disabling tracking leaves installed hook files in place but inert, which avoids
deleting custom hook configuration. Use --force only when existing custom
generated targets should be replaced. Repository- and Project-binding options
are rejected on the update path; pass --reconfigure to intentionally rerun
the complete setup wizard and choose or create a different Project.
You can also provide any choice up front. Reuse an existing Project:
cd /path/to/repository
kanbanlan init --project-url https://github.com/orgs/acme/projects/2
Create a new empty Project instead of using the default template:
kanbanlan init --create-project --project-title "Product Delivery" --open
Copy a different Project template, including its useful views:
kanbanlan init --template-project template-owner/1 --project-title "Product Delivery"
On the new-setup path, init authenticates through
gh auth login --web when necessary, ensures the GitHub token has the
project scope, links the Project to the repository, repairs the Status field,
creates the workflow labels, writes managed repository files, adds open issues,
and reconciles their state.
Use --non-interactive in automation; for a new setup without a Project source
it copies the default template. Provide --project-number, --project-url,
--create-project, or --template-project to override that default. Use
--local-only with an existing Project reference to generate repository files
without GitHub mutations. Pass --no-open to suppress the wizard's browser
question or --open to open the configured Project after setup.
Terminal colors distinguish headings, workflow states, priorities, warnings,
and errors when output is interactive. Use --color always or --color never
to choose explicitly. Kanbanlan also respects the standard NO_COLOR
environment variable. Progress is written to stderr so commands such as
snapshot, path, and capture keep clean, pipe-friendly stdout.
Kanbanlan does not create custom Project views or GitHub's built-in auto-add
workflow through the API. On a previously unconfigured repository, plain
kanbanlan init copies the default template so its views are present from the
start. With --create-project, --open opens the empty Project so a Board view
can be added manually. Kanbanlan's own reconcile --apply keeps item states
correct even when GitHub Project workflows are not configured.
Optional background reconciliation
Successful live initialization and reconciliation register the repository with one user-scoped worker. It deduplicates worktrees through Git's common directory, refreshes enabled repositories on a bounded schedule, applies only safe repairs, and records last-good snapshot and retry health without storing credentials.
kanbanlan worker status
kanbanlan worker enable --github-login YOUR_GITHUB_ACCOUNT
kanbanlan worker start
kanbanlan worker stop
kanbanlan worker disable
The worker resolves the selected account's credential at runtime with
gh auth token --user; it never runs gh auth switch and never writes a token
to the registry. See docs/workflow/worker.md for
macOS LaunchAgent and Linux systemd user-service examples. The worker is
opt-in, has no Docker requirement, and explicit disablement persists.
Daily use
kanbanlan ensure # refresh only when the worktree-shared cache is stale
kanbanlan next # report the first unblocked Ready issue
kanbanlan status # summarize the local cache
kanbanlan reconcile # report drift, without mutations
kanbanlan reconcile --apply # apply and verify the displayed repairs
kanbanlan --json next # stable output for agents and automation
The cache lives at <primary-checkout>/.cache/kanbanlan/ with private file
permissions. A failed refresh preserves the last good snapshot and records the
error in health.json.
Shared Projects across repositories
One GitHub Project can serve several repositories. Every command above reads at repository scope, which keeps only content owned by the configured repository, so a shared Project never hands this repository another repository's work.
Project scope is an explicit, read-only opt-in for the cross-repository overlap check an agent owes before claiming work:
kanbanlan overlap # open cards and pull requests Project-wide
kanbanlan status --project # board counts per repository
kanbanlan --json snapshot --project # project-scoped stable JSON
Project-scoped reads are live and never write the shared cache. They are
bounded to repositories the Project already references and never enumerate
repositories owned by the account. A peer repository that cannot be read is
reported in source.unavailable_repositories instead of failing the read.
Snapshots carry source.scope, and every issue and pull request carries
repository plus a repository-qualified provider_ref such as
github:owner/repo#123, so identically numbered content in different
repositories never collides. A bare issue number stays a local reference.
A request in one repository can be delivered by a pull request in another. The
pull request must say so explicitly, either with a repository-qualified closing
reference such as Closes owner/repo#123 or by declaring the request's exact
Kanbanlan ID in its body. A bare Closes #123 is only ever read inside the
pull request's own repository. linked_open_pull_requests reports the
repository, qualified provider_ref, and the linked_by routes that
justified each link, and kanbanlan review accepts a qualifying
cross-repository pull request while keeping the responsible claim.
Ambiguity is never guessed. A pull request naming several Kanbanlan IDs without
declaring one, or declaring an ID that more than one request carries, appears
in linkage_problems and links to nothing; reconcile, overlap, and
review surface it.
A request can also be captured into the repository that will implement it, while staying on the shared Project:
kanbanlan capture "Add the HSA/FSA page" --repository OWNER/REPO
capture defaults to the configured repository and never infers a destination
from the title or body. The target is validated and prepared before anything is
created: it must be on the configured host, accessible, and linked to the
Project, and workflow labels are provisioned there. If a later step fails, the
error names the created URL and the repair to run, so a retry never creates a
second request.
A request that already exists moves with rehome, which preserves its
Kanbanlan ID, discussion, and Project state instead of fragmenting history into
a replacement:
kanbanlan rehome KBL-... --repository OWNER/REPO # plan only
kanbanlan rehome KBL-... --repository OWNER/REPO --apply # perform the move
The plan is the default and changes nothing; it reports what transfers, what the target needs, what GitHub drops, and anything that blocks the move. A move is refused while the request has an active claim or a linked open pull request, when it is closed, or when the destination is where it already lives. It moves the canonical request only: branches, worktrees, commits, and pull requests stay where they are, and the request keeps its Kanbanlan ID while receiving a new issue number.
Request lifecycle
kanbanlan capture "Add export audit log" --priority priority:p1
kanbanlan triage KBL-...
kanbanlan claim KBL-... --touchpoints "audit API; exports UI; migrations"
kanbanlan record KBL-...
kanbanlan rehome KBL-... --repository other-owner/other-repo
kanbanlan review KBL-...
kanbanlan release KBL-... --reason "Waiting for product decision" --blocked
kanbanlan handoff KBL-... --session codex-next --branch work/kbl-audit \\
--worktree /path/to/worktree --reason "Shift change"
capture assigns a globally unique KBL-... Kanbanlan ID. Lifecycle commands
accept that ID, a GitHub issue number, or the normalized GitHub provider
reference. reconcile --apply assigns IDs to requests created through GitHub's
web interface or by older Kanbanlan releases.
By default claim posts the claim first, verifies that it is the earliest
active claim, and only then creates a dedicated worktree from the configured
default branch. If checkout creation fails, it releases the claim and returns
the card to Ready. Use --no-worktree only from an existing non-default
branch/worktree.
record creates docs/kanbanlan/requests/<Kanbanlan ID>.md once. Complete its
decisions, verification, and delivered-result sections in the implementation
PR. Kanbanlan never overwrites manual changes to an existing record. Volatile
status and claim movements remain in the live canonical home rather than Git.
Optional agent session tracking
Provider-native session tracking is disabled by default. Enable it during fresh
setup or update an already configured repository in place with
kanbanlan init --session-tracking. The repository configuration is:
[session_tracking]
enabled = true
The repository setting can be overridden for one process with
KANBANLAN_SESSION_TRACKING=true or false. Session identity precedence is:
--actor-session HARNESS:SESSION_ID;KANBANLAN_AGENT_SESSION=HARNESS:SESSION_ID;KANBANLAN_AGENTtogether withKANBANLAN_SESSION_ID;- provider-native variables:
CODEX_THREAD_ID,CLAUDE_SESSION_ID,GROK_SESSION_ID, orAGY_CONVERSATION_ID; and - unambiguous context registered by a generated agent lifecycle hook.
When none of these yields a trustworthy native ID, Kanbanlan records the activity as unavailable instead of inventing a resumable session. A claim still gets its ordinary coordination identifier so ownership remains backward compatible.
kanbanlan sessions KBL-... # lifecycle sessions and resume commands
kanbanlan sessions KBL-... --action triage
kanbanlan resume KBL-... # print the latest resume command
kanbanlan resume KBL-... --action claim --run # resume through the native harness
Session entries keep the native ID and harness separate and display them as
<session-id> · <harness>. Resume adapters are included for Codex, Claude Code,
Grok Build, and Google Antigravity AGY. The generated hooks pass native session
context to kanbanlan session-hook; custom integrations can call that command
with their lifecycle JSON on stdin or set the Kanbanlan environment variables.
Other harness labels can still be attributed through explicit or environment
configuration, but need a resume adapter before kanbanlan resume can launch them.
Each event keeps its actor; claim and handoff events additionally distinguish
the session responsible for the resulting in-progress work. Resume uses that
responsible session, so a handoff resumes its recipient rather than its sender.
Enabling this feature writes native session IDs to canonical request comments. Those IDs are not treated as credentials, but they can correlate local work and may be visible publicly. Transcript paths are never published; hook context is kept in a private local cache. Local sessions remain resumable only where the original harness history and account are available.
Portable architecture
The versioned configuration distinguishes the GitHub code host, the canonical kanban home, and board projections. Normalized snapshots expose a Kanbanlan ID, provider ID, display ID, repository-qualified provider reference, canonical URL, lifecycle state, claims, and linked pull requests. Workflow reconciliation depends on a provider contract; GitHub is its first implementation.
This keeps the CLI as the portable agent interface. MCP integrations may wrap
it, but agents can operate using ordinary shell access and --json. Linear or
Asana adapters, mirroring, webhooks, and multi-master conflict resolution are
deliberately outside the current implementation.
Managed repository files
init writes:
.kanbanlan.toml;.github/ISSUE_TEMPLATE/work-request.yml;.github/pull_request_template.md;docs/workflow/kanbanlan.md;- a marked Kanbanlan section in
AGENTS.mdandCLAUDE.md; and /.cache/kanbanlan/and/.worktrees/in.gitignore.
When session tracking is enabled, init also creates non-destructive project
hooks for Codex, Claude Code, Grok Build, and AGY. Existing custom hook files are
skipped unless --force is explicitly passed.
Generated standalone files carry a marker. Existing custom templates are not
overwritten unless --force is passed. Agent instruction sections are
updated only between kanbanlan:start and kanbanlan:end markers.
State model
| Issue label | Project Status |
|---|---|
status:intake |
Inbox |
status:ready |
Ready |
status:in-progress |
In progress |
status:blocked |
Blocked |
status:review |
In review |
| closed issue | Done |
Priorities are priority:p0 through priority:p3. An active CLAIM forces In
progress; an open pull request that closes the issue forces In review; a closed
issue forces Done. Issue labels are the fallback status record when the
Project is temporarily unavailable.
Diagnostics
kanbanlan auth
kanbanlan doctor
kanbanlan path
kanbanlan snapshot
kanbanlan refresh
doctor checks configuration, authentication, Project Status options, labels,
and cache health without mutating GitHub.
Contributing and security
Bug reports and focused pull requests are welcome. See CONTRIBUTING.md for the development workflow. Please report security vulnerabilities privately as described in SECURITY.md.
Kanbanlan is available under the MIT 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 kanbanlan-0.8.0.tar.gz.
File metadata
- Download URL: kanbanlan-0.8.0.tar.gz
- Upload date:
- Size: 140.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2409a334d9b503c845505d11b4d6b313beb6fa01d687c559a356ed056279f69
|
|
| MD5 |
ad9d50c8d0b6eb36cd16b93cb2ffd2e8
|
|
| BLAKE2b-256 |
a042d306bc1c6c73afd4a8ccaed32d62bd5cb41717a85ea9fcedf0e6cba71c65
|
Provenance
The following attestation bundles were made for kanbanlan-0.8.0.tar.gz:
Publisher:
release.yaml on jmitchel3/kanbanlan
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kanbanlan-0.8.0.tar.gz -
Subject digest:
e2409a334d9b503c845505d11b4d6b313beb6fa01d687c559a356ed056279f69 - Sigstore transparency entry: 2522420410
- Sigstore integration time:
-
Permalink:
jmitchel3/kanbanlan@4fc3197395a02e3fb1f425d61b108fe48805e2d8 -
Branch / Tag:
refs/tags/v0.8.0 - Owner: https://github.com/jmitchel3
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@4fc3197395a02e3fb1f425d61b108fe48805e2d8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file kanbanlan-0.8.0-py3-none-any.whl.
File metadata
- Download URL: kanbanlan-0.8.0-py3-none-any.whl
- Upload date:
- Size: 77.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc258137b651f643bb5231244341f8e8376336bc0bf7682208c1f184cf1977dc
|
|
| MD5 |
5dc0e1da83bbe647960cda853d115cbf
|
|
| BLAKE2b-256 |
6abc70ef1a792c26482fffcc2e6814d2874f92ca451c333f62ab5f478a97d7ca
|
Provenance
The following attestation bundles were made for kanbanlan-0.8.0-py3-none-any.whl:
Publisher:
release.yaml on jmitchel3/kanbanlan
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kanbanlan-0.8.0-py3-none-any.whl -
Subject digest:
bc258137b651f643bb5231244341f8e8376336bc0bf7682208c1f184cf1977dc - Sigstore transparency entry: 2522420447
- Sigstore integration time:
-
Permalink:
jmitchel3/kanbanlan@4fc3197395a02e3fb1f425d61b108fe48805e2d8 -
Branch / Tag:
refs/tags/v0.8.0 - Owner: https://github.com/jmitchel3
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@4fc3197395a02e3fb1f425d61b108fe48805e2d8 -
Trigger Event:
release
-
Statement type: