cd /news/ai-agents/i-built-a-coroner-for-dead-npm-repos… · home › topics › ai-agents › article
[ARTICLE · art-179926] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

I built a coroner for dead npm repos with Kiro, and Kiro brought one back to life

A developer built Séance, a tool that performs an automated "autopsy" on abandoned public npm repositories using free data from GitHub, the npm registry, OSV.dev and endoflife.date, producing a death certificate, a 0-100 revivability score and a ranked list of causes of death with source links. The tool then generates a downloadable "revival kit" — a .kiro/ folder with a spec, steering files, hooks and a scoped agent — that Kiro can use to revive the dead repo. Applied to shannonmoeller/handlebars-layouts, which last changed in January 2018 and scored 0 out of 100 ("Fossilized"), a revised kit completed 22 tasks in 22 commits, with a clean install and 17 of 17 tests passing on Node 24.

recommendation

When a coding agent stalls on a broken repo, rewrite the spec to make establishing a green baseline the first task, then enforce passing tests after each subsequent task.

more in playbook: Working with AI coding agents
by read4 min views3 publishedDec 2, 2026

Séance for Kiroween 2026 (Resurrection category). #KiroweenHackathon26

Every team has inherited a dependency that nobody maintains. The question is always the same: fork it and revive it, replace it, or accept the risk? Answering takes a morning of digging through GitHub, the npm registry, advisories and Node release dates.

So I built Séance. Paste a public GitHub npm repository (or just a package name) and it performs an autopsy from free public data: GitHub, the npm registry, OSV.dev and endoflife.date. You get a death certificate with the time of death, a verdict, a revivability score from 0 to 100, and a ranked list of causes of death, each with a source link. Then it writes the treatment: a downloadable revival kit, a .kiro/ folder with a spec (one task per cause), steering, hooks and a scoped agent. Open the dead repo with that kit in Kiro and Kiro does the revival.

No LLM makes a decision inside the app. The same evidence always produces the same certificate. Kiro was how I built it, and it is what the kit is written for.

shannonmoeller/handlebars-layouts last changed in January 2018. Séance scores it 0 out of 100, Fossilized, with 21 findings, and npm test crashes on Node 24 with ReferenceError: primordials is not defined.

Specs first. Séance has six specs (autopsy-core, revival-kit, resurrections, landing-v2, try-revived, seance-power), each with EARS requirements, a design with numbered correctness properties, and a task list. Kiro CLI, running headless, wrote the code task by task. When code and spec disagreed, I changed the spec first. For example, the Node 0.x end-of-life rule updated the spec, the design and the expected fixtures together.

Steering as memory. Six steering files carry what a fresh session would forget: vocabulary, folder layout, architecture rules, the testing policy, the design system. After a deployment crashed because compiled code kept .ts import specifiers, the fix became a one-line rule in tech.md, and no later session repeated the mistake.

Hooks. The project has four: related tests on save, fixture regression when the core changes, a typecheck-and-test gate after each spec task, and an agent hook on Stop that keeps structure.md current. The Kiro docs name one trigger PostTaskExecution; the installed IDE accepts PostTaskExec. I read the trigger names from the installed IDE instead of the docs. The generator also puts two hooks into every kit it creates, and they only run tests, never an install.

A custom agent. coroner works on Séance itself: spec first, then code, tests enforced, .env denied, no push. Every kit ships its own reviver agent that asks before any shell command except the test command.

Property-based testing. The design docs list 41 correctness properties, covered by 19 fast-check files. They caught real bugs. One shrank to a case where semver turns 6.x into <7.0.0-0, and my first check read that as a request for prereleases. Another shrank ' 0/a', which turned out to be a bug in my generator, not in the parser. Both inputs are now regression tests.

I pointed the kit at handlebars-layouts and let Kiro follow it. It stalled at task 1. The kit's own policy demanded passing tests after every task, and a fully broken repository cannot meet that: the suite could not run until the whole gulp 3 toolchain was replaced.

I changed the spec, not the run. Every revival spec now begins with "Get the patient breathing: establish a green baseline", and the strict rules apply after it. The second attempt completed 22 tasks in 22 commits. A clean install works, 17 of 17 tests pass on Node 24, and CI is green.

The landing page also runs the revived library live in the browser, so you can change its input and watch it render.

Séance also ships as a Kiro Power with a read-only MCP server and two tools: seance_autopsy (verdict, score, top causes with evidence links) and seance_revival_kit (returns the kit files and writes nothing). Ask Kiro "what killed this repo?" and it answers with evidence. A recorded headless run is in docs/power-demo.md.

I tested the generated hooks in Kiro CLI. Confirming that they appear and fire in the Kiro IDE, including the after-task hook, is still on my list, and the README says so. The revivability score is a heuristic, not calibrated against real revival effort, and so far there is one public resurrection.

Specs make an agent's mistakes cheap to fix: you change the spec, not the run. Steering is memory. And property-based tests find what examples miss.

The full story with commit links is in docs/how-we-used-kiro.md. Try the app, and tell me which dead repo you would revive first.

── more in #ai-agents 4 stories · sorted by recency
── more on @séance 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/i-built-a-coroner-fo…] indexed:0 read:4min 2026-12-02 · —