Skip to main content

A simple coding harness with planner-implementor-validator orchestration

Project description

kunchi

Multi-agent coding harness for Python: planner → implementor → validators, with output contracts and retry loops.

Install from PyPI:

pip install kunchi

CLI

Initialize a project, then run a goal in your repository:

cd /path/to/your/repo
kunchi init --template cursor    # writes .kunchi/profile.yaml
export CURSOR_API_KEY=...        # required for the cursor template
kunchi run "Your goal"
kunchi run "Your goal" --monitor   # compact progress on stderr
kunchi run "Your goal" --trace     # verbose debug trace on stdout
kunchi plans
kunchi resume PLAN_ID

Use kunchi init --template fake to try the flow without Cursor or other external agent CLIs.

Try the bundled demo (fake agents, no external dependencies):

kunchi-demo "Build a demo feature"

Python API

Fake agents (default) — no external dependencies:

from kunchi import Harness, default_harness_config

harness = Harness(default_harness_config())
report = await harness.run("Build feature")

Cursor CLI — requires the agent binary on PATH:

from kunchi.harness import Harness, default_cursor_harness_config

harness = Harness(default_cursor_harness_config(workspace_path="/path/to/repo"))
report = await harness.run("Build feature")

Profiles — bundle output contracts and validators:

from kunchi.harness import Harness, harness_config_from_profile

harness = Harness(harness_config_from_profile("cursor", "/path/to/repo"))

Load a custom profile from YAML or JSON:

from kunchi.harness import Harness, harness_config_from_profile_file

harness = Harness(harness_config_from_profile_file("my-profile.yaml", "/path/to/repo"))

Persist and resume plans:

from kunchi import Harness, default_harness_config
from kunchi.state import FilePlanStore

harness = Harness(default_harness_config(), plan_store=FilePlanStore(".kunchi/plans"))
report = await harness.run("Build feature")
report = await harness.resume(report.plan_id)
summaries = await harness.list_plans()

Documentation

  • Design — architecture, agents, validators, and extension points
  • Roadmap — milestones and planned work
  • Contributing — development setup and manual testing

License

MIT — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kunchi-0.1.1.tar.gz (71.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kunchi-0.1.1-py3-none-any.whl (73.8 kB view details)

Uploaded Python 3

File details

Details for the file kunchi-0.1.1.tar.gz.

File metadata

  • Download URL: kunchi-0.1.1.tar.gz
  • Upload date:
  • Size: 71.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for kunchi-0.1.1.tar.gz
Algorithm Hash digest
SHA256 da13e8c5c667b2cc75d1938fb1b96ee2ddd795ccb4d66a2547c2a1c2ccf49770
MD5 973cdbb7ec85010f1e0d5bbb388f0c80
BLAKE2b-256 67189c150846381860e68a75a5c0dfa2e919614ab7c5417031af06390d73ad01

See more details on using hashes here.

File details

Details for the file kunchi-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: kunchi-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 73.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for kunchi-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2a14ba524f421d9af03cb373f2f7d39bada09c11d97ff4f3c6e5e1647899ce7d
MD5 2922b223d567509cb8c55bd52659fa57
BLAKE2b-256 bae6be8e76c6cf3030f76690d30001c6c1c6eaa43bf28fac3ddf66bebb297265

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page