Inspiration
A green test run can hide a bad repair. An invoice function can stop crashing on blank quantities and quietly start charging for items with a quantity of zero. I wanted a reviewer to be able to point to the exact input that breaks a patch and carry that case into the test suite.
What it does
FrankenShell compares a baseline, a proposed Python patch, and optional alternatives. It runs each version against the same inputs and a behavior contract written by the developer. The report shows the failing input, the broken rule, and the expected and actual outputs. Reviewers can save the JSON, open it in the browser, and replay its counterexample with the CLI.
The public workspace lets judges run the bundled CPython examples in the browser and download the verified regression tests. The local workspace runs audits on your own trusted checkouts. It remembers the settings from the last completed audit for each project directory.
How I built it
FrankenShell combines a local Python verifier, a React and TypeScript review interface, and a Pyodide worker that executes bundled Python implementations in the browser. Kiro helped draft and review a behavior requirement. A Kiro custom agent used MCP to read the recorded benchmark evidence, and a SessionStart hook ran regression checks. The browser and local verifier show which version produced each result.
What I verified
In the historical CPython quantiles case, both the official fix and a controlled one-line alternative pass the five selected methods in TestQuantiles from CPython 3.13.0. On quantiles([7], n=2), the alternative returns [7, 7, 7] and the official fix returns [7]. The downloadable regression test distinguishes the official fix from both the older release and the controlled alternative.
I repeated the workflow with CPython's textwrap.dedent behavior and verified the local checkout flow from a fresh clone. The verified cases cover the stated behaviors and inputs. Each new project supplies its own contract and target.
Try it
- Open the quantiles case.
- Leave Input on Counterexample and select Run in Python. After the first load, the status should read Executed in this browser.
- Compare the controlled alternative's
[7, 7, 7]with the official fix's[7]. Select Download regression test to get the test. - To use your own code, follow the local setup guide.
Built With
- actions
- github
- kiro-cli
- mcp
- pyodide
- python
- react
- typescript
- webassembly