Skip to main content

kanso-runner

Let a coding agent work through your plan, one reviewed pull request per step.

Kanso asks agents to write a plan before risky work: docs/<task>-implementation-plan.md, with numbered steps that each name their next action. kanso-runner turns that plan into a queue. It reads the plans on your main branch, picks the next open step, and gives your agent the exact prompt for that one step. The agent implements it, removes it from the plan in the same commit, and opens a pull request. Once CI is green, the next step follows.

  • One step, one pull request. Every change stays small enough to review and to revert.
  • The plan is the state. Finished steps leave the plan in the same commit, so no step is worked twice.
  • You stay in charge. Steps tagged (owner) are never picked. You can name a plan to go first, and a plan whose step failed waits until you restart it.

Used in production by RetroSpeedLab

RetroSpeedLab is a game studio run by AI agents (suite). Its maintainer agent works the suite's implementation plans with kanso-runner, one step per session, and the owner steers it from Discord with work on suite, pause plans and resume plans.

## Open work, in order

1. **Typed backend:** pyright excludes the backend. Next action: TypedDicts for the Twitch payloads.
2. (owner) **Old repos:** delete the archived repos after 7 days.
$ kanso-runner next --repository . --ref main
{"plan": "suite", "path": "docs/suite-implementation-plan.md", "step": "1. **Typed backend:** …", "prompt": "Work on the implementation plan …"}

How it picks

  1. Only ## Steps and ## Open work hold work; notes under ## Open are never picked.
  2. A plan with a ## Design but no steps is first split into steps.
  3. The plan you named goes first, then the plan in work, then the oldest plan by the commit that added it.
  4. kanso-runner next exits with code 3 when nothing is open.

Use it

uvx kanso-runner next --repository . --ref main --current suite --stopped music-ab

From Python, as RetroSpeedLab's maintainer does:

from kanso_runner.plans import Progress, chosen, read_plans, request

found = chosen(read_plans(mirror, "main"), Progress(first=None, current="suite", stopped=[]))
if found is not None:
    run_agent_session(request(*found))

Development

cd runner && uv sync && uv run ruff check && uv run mypy && uv run pytest

MIT © datenwissenschaften. Part of Kanso.

Metadata

Release files for kanso-runner 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kanso-runner 0.1.1
File Size Uploaded Provenance Actions
kanso_runner-0.1.1.tar.gz 4.8 kB With provenance Details for kanso_runner-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kanso-runner 0.1.1
File Interpreter ABI Platform Actions
kanso_runner-0.1.1-py3-none-any.whl Python 3 none any Details for kanso_runner-0.1.1-py3-none-any.whl

Total release size: 10.3 kB

Release files / kanso_runner-0.1.1.tar.gz

Download URL kanso_runner-0.1.1.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
34c6112b896de33f6b571fa515bf54d04eb9dc6fa1abb550996c3520f43f7e46
BLAKE2b-256 checksum
How to use checksums
81d244bd1343bb6627c6b617b6620735c3ca455a57755c148af5ef0139e95b09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.

Transparency log

Release files / kanso_runner-0.1.1-py3-none-any.whl

Download URL kanso_runner-0.1.1-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b3043aec56e173d8fe041400b5edf17b442a1892496a8b23b66c62259fa524a7
BLAKE2b-256 checksum
How to use checksums
39ebe52e2dd0fcb9269cb8401312a996b1f60099d2c2e98e5f917f3900363e74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.

Transparency log

Security for kanso-runner 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for kanso_runner-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page