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.2.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.2-py3-none-any.whl (82.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kunchi-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 9500c62ab6dd540002ff138b08be537abcc56e0c3947afcbe1f79dcf23c07292
MD5 66e88a9e87cf70cd6e444f3c21fb6a23
BLAKE2b-256 16f831fa0a5cdadef0f07f78f2ac0893ce766950c4859948fb4c3f8edb7b3ce2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kunchi-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 82.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b85fd9b6a913584f350042ef4b644785af89b41868257851af1d26389e268d86
MD5 a63093a3a396fbb0305cf08a553e4595
BLAKE2b-256 1e751e014458f5d3caeb28e32177fd56a61a146936dc787712e220d5933ce4fb

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