{
  "id": 21906137,
  "title": "Ghost Run+: rehearsing an AI agent's risky commands on a copy, built with Kiro",
  "url": "https://urgent.news/2026/11/26/ghost-run-rehearsing-an-ai-agents-risky-commands-on-a-copy-built-with",
  "topic": "ai",
  "section": "AI",
  "published": "2026-11-26T01:58:50.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/sunghyunc/ghost-run-rehearsing-an-ai-agents-risky-commands-on-a-copy-built-with-kiro-4eh0"
  },
  "original_language": "en",
  "account": "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.\n\nOne 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.\n\nThe 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.\n\nKiro'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).\n\nThe 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.\n\nThe 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.\n\nOverall, 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.",
  "summary": "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…",
  "key_points": [
    "Ghost Run+ trains AI agents with risky commands on a copy of the world",
    "Created by SungHyunC using Kiro for Kiroween 2026 hackathon",
    "Prevents damage from unauthorized AI commands or database alterations"
  ],
  "editors_take": "Providing a simulated environment for rehearsal transforms AI agents from unpredictable liabilities into manageable tools by allowing users to observe and intercept destructive commands before they impact live production data.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}