Urgent.News

What's breaking now, across hundreds of outlets.

AI

Ghost Run+: rehearsing an AI agent's risky commands on a copy, built with Kiro

I wrote this post as part of my entry to the Kiroween 2026 hackathon, in the Skeleton Crew category. The project is Ghost Run+, and I built it with Kiro. Why Coding agents can run shell commands, change databases and call cloud APIs now. In July 2025 an AI coding agent deleted a company's production database during a code freeze, and the founder wrote about it publicly. There is a second risk…

Ghost Run+ is a project that allows AI agents to practice risky commands on a copy of the world before executing them in real life. The creator, SungHyunC, built the project using Kiro as part of the Kiroween 2026 hackathon. The primary purpose of this project is to prevent potential damage that could be caused by AI agents running unauthorized commands or altering databases.

One of the main risks in AI coding agents is the ability to delete or modify important data, as shown by a case in July 2025 when an AI agent deleted a company's production database during a code freeze. To address this issue, Ghost Run+ introduces a "ghost" that runs the risky commands in a safe environment, allowing the user to observe the outcome before allowing the real action to take place.

The project consists of six functions: snapshot, step, diff, render, fingerprint, and effectsOutside. The skeleton provides the runner, ward engine, UI kit, Kiro hooks, MCP server, and Kiro power. There are two applications built on this template: Ghost Shell and Ghost Hand. Ghost Shell rehearses shell and SQL plans against an in-memory project and an in-browser SQLite database, while Ghost Hand runs a MuJoCo robot arm's plan on multiple "haunted" copies of the physics environment.

Kiro's world-smith agent also added a third world, Ghost Cloud, which rehearses AWS CLI commands against an in-memory S3 environment. To ensure the safety of these commands, Kiro uses a ward engine that checks for changes and any attempts to leave the container. The results are represented as a candle, which can either be lit (go ahead), flickering (ask a person), or out (stop).

The project incorporates 14 Kiro specs, with 892 tasks and 203 correctness properties. These constraints are tested using vitest and fast-check. The security rules are highlighted in the README, explaining the rationale behind each safety claim.

The creator used Kiro throughout the project, fixing two problems that the tests had missed. In one instance, Kiro requested approval for 21 commands, which were later resolved through a spec change and tests. In another session, Kiro identified prompts related to package-manager commands, leading to further improvements in the MCP tools.

Overall, Ghost Run+ is a valuable template for testing AI agent behavior and command execution in a safe and controlled environment. By leveraging Kiro's powerful features, users can better understand and manage potential risks associated with AI agents.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in AI

More from Thursday 26 November →