Skip to main content

Compliance-driven modernization engine. Decompose legacy codebases into editable ADRs, recompose to modern stacks, audit trail included.

Project description

kaizen-3c-cli

Architecture-first AI for software modernization. Planning leads, code follows — every decision cited to file:line, reviewable as an ADR before a line of target code is written.

Install

pip install "kaizen-3c-cli[demo]"

Windows users: install inside WSL (Ubuntu/Debian recommended). Native Windows is not a supported target.

[demo] is recommended for the full demo experience — it pulls in pytest so kaizen demo's Step 3 runs live; the bare pip install kaizen-3c-cli still works but prints the pre-recorded test output instead.

Requires Python 3.10+. You will also need:

  • ANTHROPIC_API_KEY or OPENAI_API_KEY in your environment (or a local .env file) for LLM-backed commands.
  • Rust toolchain (cargo) if using --recompose for C/C++ → Rust memory-safety work.
  • .NET SDK (dotnet) if using --recompose for framework-migration work targeting .NET 8.

Try it

kaizen demo

Replays a pre-recorded decompose/recompose against python-slugify, then runs pytest live against the recomposed code. No API key required, under a minute end-to-end. On the cached run: 82 tests passing on the original, 33 of 34 passing on the recomposed (one real behavioral divergence captured, not hidden).

What it does

  • kaizen memsafe-roadmap <repo> — CISA-format memory-safety port plan with per-module ADR stubs. Optional --recompose step emits a Rust scaffold grounded in the ADR.

    kaizen memsafe-roadmap ./my-c-lib --recompose --rust-output ./rust-port
    
  • kaizen migrate-plan <repo> --from <X> --to <Y> — framework-migration plan across supported transitions (python3.6 -> python3.12, dotnet-framework -> dotnet8, angularjs -> angular, java8 -> java21, and others).

    kaizen migrate-plan ./legacy-project --from "Python 3.6" --to "Python 3.12"
    
  • kaizen bench fingerprint --results <dir> — compute per-cell value-add scores on any commit0 results directory. Also: kaizen bench compare for head-to-head architecture diffs, and kaizen bench commit0 for upstream-reproduction instructions.

The full v1.0 command set: decompose, recompose, memsafe-roadmap, migrate-plan, status, priors, resume, init, web, mcp-serve, bench, demo, version.

Demo flow

Pre-recorded on python-slugify, runs offline, no API key required.

$ kaizen demo
Step 1/3: Decomposing python-slugify...
  ADR-python-slugify-decomposed   6 identifiers, 15 decisions, 8 consequences
Step 2/3: Recomposing 6 files based on the ADR...
  Files: slugify/__init__.py, slugify/slugify.py, slugify/__main__.py
Step 3/3: Running pytest against recomposed code...
  ================ 1 failed, 33 passed in 0.21s ================

Baseline (original python-slugify): 82 passing. Recomposed: 33 of 34 passing — the 1 failure is a real behavioral divergence surfaced by the workflow, not curated away.

Links

Status

1.0.0 — Alpha. CLI subcommands memsafe-roadmap, migrate-plan, run, priors, status are end-to-end. PyPI package bundles the pipeline scripts via sdist for now; Phase C will move them under cli/pipeline/ as a proper subpackage.

License

Apache-2.0.

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

kaizen_3c_cli-1.0.0.tar.gz (617.9 kB view details)

Uploaded Source

Built Distribution

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

kaizen_3c_cli-1.0.0-py3-none-any.whl (646.6 kB view details)

Uploaded Python 3

File details

Details for the file kaizen_3c_cli-1.0.0.tar.gz.

File metadata

  • Download URL: kaizen_3c_cli-1.0.0.tar.gz
  • Upload date:
  • Size: 617.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kaizen_3c_cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8b83c0059fdd7e7b8342c15391bbc520ed8bc619bd58836db8b45d94d59163e8
MD5 ba8ef9410ac7446d8d9bd24bb50acd24
BLAKE2b-256 76a3f3ceb7710e8db547db0562fc4e9b838d106a935eaffe04c153a1b00468b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for kaizen_3c_cli-1.0.0.tar.gz:

Publisher: release.yml on Kaizen-3C/kaizen-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kaizen_3c_cli-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: kaizen_3c_cli-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 646.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kaizen_3c_cli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9758d06e37a32e16f2e0451acc13fa700526204acb53488a5fa0d012729f7712
MD5 5fa4056bfca8d683c6723b09bb8853c1
BLAKE2b-256 8d120c3f3408de9a3df244f3e722e145500b090b0d02504c16362e56e66f50a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for kaizen_3c_cli-1.0.0-py3-none-any.whl:

Publisher: release.yml on Kaizen-3C/kaizen-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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