I am writing this post as part of the Kiroween 2026 hackathon (Devpost). The project is Necropolis, entered in the Costume Contest category.

Every project I have looked at carries a few dependencies nobody maintains. Some are marked deprecated in the registry, some were yanked, some simply went quiet years ago. You only notice when something breaks, or when an AI coding agent cheerfully runs npm install request because that is what the internet taught it in 2019.

Necropolis is my answer to a narrow question: which of my dependencies are dead, and how do I know? You give it a requirements.txt or a package.json. It asks PyPI, npm and OSV.dev about every package and draws the result as the orbit of a dead planet. Maintained packages fly in formation, silent ones drift, deprecated, yanked or long-silent ones are wrecks, and packages with known advisories carry one to three radiation rings. The same engine also runs inside Kiro as a hook that stops the agent from installing a wreck.

Evidence, not verdicts. Every state the page shows comes with the registry fact behind it and a link to check it. The word "dead" appears only where a registry says so explicitly (a deprecation notice, a yanked release, an Inactive classifier). A package that has merely been quiet for four years is "presumed lost", and the page says why. I wrote that rule into a steering file on day one, and it kept the engine, the page and the hook consistent for the whole build.

All source, tests, specs, steering files, hooks and documentation were written by the Kiro agent. A general-purpose AI assistant started the sessions from the terminal on my instructions, ran the tests and made the commits; the repository keeps a provenance file that says who did what.

core-analysis (parsers, registry clients, scoring), orbit-scene (the page) and mcp-gate (the hook and an MCP server). All tasks are closed.necropolis-mcp has two tools, check_package and audit_manifest, so the agent can ask about a package before it reaches for it and can explain a refusal with evidence.necropolis-engineer limits the tools and carries the rules for test and documentation sessions: tests never touch the network, product code stays untouched unless the task says so.deps-gate is a Pre Tool Use hook. It reads the command the agent is about to run, asks the engine about every package named in an install command and exits with code 2 if one is a wreck or contaminated. The message lists the evidence and, where I have curated one, a maintained successor. A hook is attack surface. The first journal hook called git status. Three rounds of review kept finding ways a hostile repository configuration could make git run code (filters, textconv, core.sshCommand, per-worktree configuration). The fix was to stop running anything: the hooks now read .git/HEAD as text and walk files with a bounded loop. I would not have found that without asking the agent to attack its own design.

Tests found real defects late. On the last day, new robustness tests showed that one malformed registry answer (a number where a date should be, or null from OSV) made the whole audit throw. Both are fixed with regression tests. Another test showed that the scorer counts age in whole months while the requirements said "more than 24 months". The code did what it was meant to; the requirement was wrong, so I changed the requirement.

The hook "did not work" in the IDE, until it did. I had verified deps-gate in kiro-cli only, and my README said so. On the last day I tried the Kiro IDE (1.5.37). The first attempt: npm install request ran and the package was installed. I read the IDE's documentation and code, convinced myself the file format was right, and added a probe hook that logs every event. The second attempt, after Developer: Reload Window, was blocked with the evidence and the suggestion to install got. The window had been opened before the folder was trusted and had never loaded the hooks. Nothing in the format or the matcher was wrong. The lesson is boring and useful: after you add or change hooks, or trust a folder, reload the window and check that the hook shows up in the log before you conclude anything. The README now says exactly that, with the date and the version.

Direct dependencies only, from requirements.txt and package.json. No lock files, no transitive dependencies, no other ecosystems yet. Successors come from a short curated list, not from a guess. Live mode asks the registries straight from the browser, so it depends on their CORS policy; the bundled sample does not.

Lock files and transitive dependencies, more ecosystems, a GitHub Action that posts the orbit on pull requests, and a small "salvage run" mode where you clear the wrecks out of your own orbit.

If you try it, the most useful feedback is a package where the evidence on the page is wrong or missing.

Written as part of the Kiroween 2026 hackathon. Kiro is a trademark of its owner; this project is not affiliated with or endorsed by PyPI, npm or OSV.

原文来源:dev.to