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    # or antigravity, fake, minimal
kunchi init --template antigravity --force   # replace an existing profile
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

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.4.tar.gz (43.8 MB 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.4-py3-none-any.whl (82.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for kunchi-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e1b2cc41879cf679e2f231728e2a4a6968e6bc5d770b639eaf0d2741b780e0d6
MD5 9c83d22b8cf06ce40d2b0317aca8bffb
BLAKE2b-256 f3f4697a40f0681aa46f02dd6ae61bcbff82d2d270d5cf816b470dc4e02c84bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kunchi-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 82.6 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d29e5b98a14290d911e68344ebb6bdabbd83e7deae6a493e0969fdf299024928
MD5 4e2e5565370b8a8a4b3f78827f72895c
BLAKE2b-256 c05d1f38a213be34cc24ebfd5a6fe3c7dd25fda86ba677040d2c99010958ffbc

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