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.0

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.0
File Size Uploaded Provenance Actions
kanso_runner-0.1.0.tar.gz 4.8 kB With provenance Details for kanso_runner-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 10.3 kB

Release files / kanso_runner-0.1.0.tar.gz

Download URL kanso_runner-0.1.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1b6235d5155e3791a82f8a48a7885a34f66f9b02c1c8c117156bfce49794725e
BLAKE2b-256 checksum
How to use checksums
05a7b5dc5d16d25fed352f72802877fd4a03a637b788bff07658b0146b09a831
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.0-py3-none-any.whl

Download URL kanso_runner-0.1.0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1fcd9e516cd3f5a7f10aa4dbac974dc63876576d43816f4e71e9ff9fc7cfa3f9
BLAKE2b-256 checksum
How to use checksums
8889181f5a81e190e98b2a417b10a626b366747b39b2dd7d25cba338da321305
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.0

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.0.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.0 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