I wrote this as part of the Kiroween 2026 hackathon (category: Resurrection). Repo: https://github.com/rvighneshk/the-seance. Viewer: https://rvighneshk.github.io/the-seance/. Video: https://youtu.be/k_8h3yHdGzk
You clone an old repository, run pip install, and it dies. A pinned package is gone. A setup.py option was removed from setuptools. Python 2 code won't compile. Working out why a project died, and whether it can be revived, is slow detective work, and it's why most dead projects stay dead.
For Kiroween I built The Séance: it takes a broken Python repo at an exact commit, finds the cause of death, applies small reversible patches inside a locked-down Docker container, and tells you exactly what it verified.
How it works
- Autopsy: build the repo in a container, name the cause (a dead Mercurial dependency, an undeclared build dependency, Python 2 syntax...).
- Ritual: apply one small patch at a time (relax a pin, convert Python 2 syntax, swap a binary wheel), rebuild, and undo the patch if the failure didn't change.
- Smoke test: the app answers HTTP, or the library imports.
- Artifacts: a patch, a changelog, a recipe.
Every result gets a label that names what was verified: Resurrected (app answers HTTP), Resurrected (library), Partially resurrected, or Stayed dead. I wanted a tool that never says "fixed" when it only imported a module.
Results on five real repos
| Repo | Deterministic fixers | Optional LLM fixer (one sample) |
|---|---|---|
| django-userena | Resurrected (library) | Resurrected (library) |
| gargoyle | Partial | Partial (got further) |
| pyecharts-app | Partial | Partial |
| channels-example | Stayed dead | Partial |
| Open-Data-Catalog | Stayed dead | Stayed dead |
One repo came back (as a library), two got as far as "installs and compiles", and two stayed dead, each with its real failure shown. The Gemini fixer is optional, off by default, and can only propose file edits. Its output varies between runs, so I treat that column as one sample, not a reliability figure.
Three things testing taught me
1. Real logs corrected my spec before I wrote the code. django-userena failed to install because a dependency uses use_2to3, while Python 2 print statements only showed up later, at the compile stage. A fixed ranking of causes would have blamed the prints first and wasted the first fix. I changed the spec so the primary cause comes from the first stage that failed.
2. Checking patterns against real data found a false positive. One pattern matched pip warnings in installs that had actually succeeded, so a healthy repo could be blamed. I ran every pattern over 31 real successful installs and found it. The fix was an install-success gate.
3. A property test found a flaw in my own spec. Hypothesis showed that applying a patch twice isn't idempotent: replacing 0 with 01 matches again, and psycopg2 would become psycopg2-binary-binary. That wasn't a bug in the code, it was a wrong requirement, so I rewrote it: fixers must be idempotent.
How I used Kiro
I built it solo with the Kiro CLI, spec-driven: three specs (autopsy, fixers, ritual) with about 90 tasks, one task per session. Five steering documents and one hook (fast tests after every agent edit) kept it consistent. Property tests came from properties stated in the specs.
What worked best was being exact. When I gave Kiro the exact regular expressions, real log fixtures and an expected-results file, the classifier task passed every golden test on the first run. The safety steering earned its keep too: the first version of the LLM fixer accepted pip install requests from the model, which broke my own rule, and the rule is what flagged it.
What didn't work as well: one turn without "do only this task" re-planned my whole backlog and edited a test outside its scope (a stale checkbox in the task list caused it), Windows shell slips kept coming back, and I lost three task logs because I relied on terminal history. I did not use MCP, custom agents or powers, because nothing here needed them.
Limits, honestly
The public viewer shows recorded runs; live runs happen locally in Docker. Only Python repos are supported. Old frameworks usually fail again after packaging is fixed (Django removed get_cache years ago, and that is code migration, not packaging). The resurrectability score is an estimate made before any fix.
What's next
Code-level fixers for common API removals, a generated smoke test per repo, and a measured reliability figure for the LLM over many runs instead of one.
Disclosure: I used Kiro to implement the project and Claude as a planning and review assistant outside Kiro (specs, prompts and first drafts of helper scripts, listed in the repo README).