I built Reliquary for the Kiroween 2026 hackathon. It is a verified undo layer for AI coding agents, and Kiro built almost all of it from a one page brief.

The problem

Coding agents run destructive commands: git clean, git reset --hard, rm -rf. Uncommitted and untracked files are invisible to git, so when one of those commands goes wrong, nothing brings them back. Kiro issue #9206 (https://github.com/kirodotdev/Kiro/issues/9206) reports 24 uncommitted markdown files lost to an rm -rf. Kiro's checkpoint docs say it does not track changes made by bash commands it runs (https://kiro.dev/docs/checkpoints/).

I reproduced it on kiro-cli 3.8.0 before writing any code. I asked for a pristine checkout, the agent ran git reset --hard && git clean -fd, and my two uncommitted notes were gone.

What Reliquary does

  • A PreToolUse hook spots destructive shell commands and copies whatever they could destroy into a local store before the command runs. It never blocks.
  • Every command gets a manifest with an honest status: PROTECTED, PARTIAL, NOT_PROTECTED or NOTHING_AT_RISK. A failed capture says NOT PROTECTED in red.
  • A small MCP server lets any later agent session list, preview and restore. It never overwrites by default, and every restored file is checked by SHA-256.
  • For git reset --hard, an opt-in replace_committed option swaps your version back in only when the file on disk is byte-identical to HEAD.
  • The crypt: a dashboard where every destructive command is a grave. A lit candle means protected, a cracked red stone means not.

How I built it with Kiro

I wrote docs/BRIEF.md by hand. Kiro wrote the steering files, two specs (reliquary-core and crypt-dashboard, with EARS requirements), property-based tests, the hook, the MCP server, the dashboard, four workspace hooks, a custom agent and a Kiro Power. When real trials exposed problems, the fixes went back through the spec instead of hand patches. Headless Kiro also ran the evaluation harness.

Real results

Clean-environment runs with claude-haiku-5.5 on kiro-cli 3.8.0, Linux only:

  • git clean -fd: 5 of 5 restored, SHA-256 verified
  • rm -rf: 5 of 5
  • git reset --hard: 6 of 6 after a fix (2 of 5 before it)

The suite has 1,717 passing tests. Every trial, failures included, is in eval/RESULTS.md.

Links

This post was written for the Kiroween 2026 hackathon. #kiro