We built Lich for the Kiroween 2026 hackathon. This post is about what it does, and how Kiro both built it and runs inside it.

Every Node.js project carries packages nobody maintains anymore. Most of the time that is fine. Then one of them gets a security advisory, you run npm audit, and it says "No fix available".

That is where most teams stop. The package is dead, nobody is coming to fix it, and the choices are all bad: rewrite every place your code uses it, fork it and own it forever, or ship with the hole.

We wanted a fourth choice: fix the dead package itself, and prove the fix changes nothing else.

What Lich does

Paste any public GitHub repo into Lich. It reads the lockfile and checks every package against OSV, npm and GitHub: open advisories, deprecations, archived repos, releases that stopped.

Lich scan of the linkpeek repo showing eight fractures, each dead package with its recommended fix

Each dead package gets its fix, and one click opens the pull request:

  • Update, when a fixed version exists.
  • Replace or remove, when a maintained package does the same job. Kiro rewrites your calls inside your own GitHub Actions, and your tests check the result.
  • Revive, when no fix will ever ship. Kiro writes one.

Lich package list with a heartbeat strip of each package's release history and its Update, Replace and Revive buttons

That last one is the interesting part.

The soul: proof without trusting AI

If an AI agent edits a security-sensitive package, why would you trust the result? We wouldn't. So Lich never asks a model whether a fix is right.

Instead, Lich records every call your tests make into the dead package: the arguments, the return values, the errors, the promises, even calls the package makes back into your code. We call that record the package's soul.

Then plain code replays the soul against the old package and the fixed one, and compares every answer. It also runs the advisory's attack inputs with a time limit, runs the fix on Node 22 and 24, and finally plants small bugs in the fix on purpose, to prove the check would catch them. Kiro writes the fix; plain code decides whether it passes.

For url-regex (CVE-2020-7661, a regex that freezes on long input), the dead 5.0.0 takes over a second on the attack input. Our revival answers all 14 recorded calls the same way, and takes 0.1 ms.

The afterlife

A fix that lives in one repo helps one team. So when a revive is merged in a public repo, Lich sends the fix and its soul to the afterlife, a public repo of revivals. Every revival is checked against every soul it has collected, then published to npm as @lich-afterlife/<name>.

Lich popup offering to use the existing url-regex revival, which opens a pull request

The next team with that dead package gets it in one click, and their calls join the proof. When our demo app linkpeek switched to the url-regex revival, the Lich check replayed linkpeek's own calls: 16 of 16 matched.

GitHub Actions log of the Lich check on linkpeek: 16 of 16 calls match, verdict pass, attack input old 1000 ms, new 0.1 ms

Kiro runs inside Lich

Every Lich fix that needs new code runs Kiro, in three places:

  • On your laptop, through the Lich Kiro Power. It bundles our own MCP server (tools like record, advisories, open_case and check), a revive skill, two custom agents (an investigator that finds the attack and a surgeon that may only edit the fixed copy) and hooks that block any write to the proof while a case is open. Lich turns the soul into a Kiro bugfix spec, so the fix starts from a spec, not a prompt.
  • In your CI, through the Kiro CLI running headless in your own GitHub Actions, on your own Kiro plan.
  • Overnight, through Night Shift, our Kiro Crew app. It checks every dependency upgrade pull request Dependabot opens and scans your repos for dying packages every night.

The Lich Power installed in the Kiro Powers panel

Kiro Crew chat where Night Shift answers status with the latest Lich check result

And Kiro built Lich

We are a team of two, on two laptops, for five weeks. What kept us on one plan was spec-driven development: 22 specs across three repos, each one requirements, design and tasks, one branch and one pull request per spec. The requirements were the contract between the recorder, the checker and the web app.

A few moments that changed how we work:

  • Kiro built a trial project before writing a design. For our repo skeleton it installed the real tools in a scratch folder, proved the build setup worked, then wrote the design from that. We made "try it in a small trial project first" a rule for every spec after.
  • Kiro stopped to fix the spec. While building our core data format, a property-based test found package names longer than npm's 214-character limit. Kiro stopped, proposed the spec change and applied it after we approved, instead of quietly patching code.
  • A hook that keeps Kiro honest. Our dead-dependency-gate hook blocks npm install of any deprecated package or one with an unfixed advisory. The agent building Lich can never add the problem Lich exists to fix.
  • Three Kiro windows at once, each on its own git worktree, building the UI, the recorder and the checker in parallel.

Kiro chat where the dead-dependency-gate hook blocks npm install request, because request is deprecated with an unfixed advisory

Three Kiro windows side by side: an afterlife spec task list, the Lich Power with its MCP tools, and the steering files

Eight steering files held our rules (including one, "proof rules", that keeps every spec honest about what counts as proof), and 30 property-based tests guard the shared data format. They caught a difference in how Node 24 treats some objects before it ever merged.

The honest part

Our first url-regex revival passed all 14 recorded calls, and we were happy. Then the afterlife's nightly check started failing on and off. On long strings, the fix was still slow: its time grew with the square of the input length. Our own check caught our own fix.

So we rewrote the regex. Version 1.0.1 keeps every answer the same and stays fast. That is exactly the point of Lich: a fix is only as good as the check behind it.

Try it

No update? Kiro writes one. Lich proves it.