KiroShadow

đź‘» KiroShadow

Don’t trust the test summary. Watch the footage.

Ask Kiro to test your app and KiroShadow runs the tests in a headless browser (form fills, user flows, page loads, splash screens, before/after looks) and leaves you a video, step screenshots, pixel diffs and a visual report so you can see how the test ran and why it passed or failed.

Everything lands in .kiro/test-assets/<run>/:

01-valid-filled.png   01-valid-result.png
02-invalid-filled.png 02-invalid-result.png  02-diff-vs-valid.png
03-edge-filled.png    03-edge-result.png     03-diff-vs-valid.png
video.webm            report.html            report.md   results.json

report.html has the video with clickable steps (jump to the moment a field was filled or the form submitted), plain-language reasons for each verdict, and side-by-side screenshots.

Use it in Kiro

npm install
npm run build

The workspace already contains .kiro/settings/mcp.json. Open Kiro in this folder, start your app, and say:

Test the sign-up form at http://localhost:5173/signup

Requires Google Chrome, or run npx playwright install chromium.

KiroShadow panel (Activity Bar)

The extension/ folder adds a ghost icon named KiroShadow to the Activity Bar with two views, Test Screenshots and Test Videos. Each lists the test runs (one folder per run, with a pass/fail summary) and the images or videos inside. Click an image to open it, click a video to play it, or use the run’s preview button to open report.html. The Open Live View button streams the headless browser while a test runs, and it opens by itself when a test starts.

cd extension && npx @vscode/vsce package --no-dependencies --skip-license -o ../kiroshadow.vsix
kiro --install-extension kiroshadow.vsix

Then reload the window. Test assets are git-ignored (.kiro/test-assets/); the rest of .kiro/ is tracked.

Use it in any project

The extension works in every folder you open. The MCP server must be registered once for all projects, because the workspace config in this repo only applies here. Add this to your user-level MCP config (~/.kiro/settings/mcp.json) with the absolute path to this repo:

{ "mcpServers": { "kiroshadow": { "command": "node", "args": ["/ABSOLUTE/PATH/TO/this-repo/dist/server.js"] } } }

Copy .kiro/steering/kiroshadow.md to ~/.kiro/steering/ so the agent knows when to use it. The agent passes projectDir, so each project’s recordings are saved in its own .kiro/test-assets/ and appear in the KiroShadow panel.

Tools

Tests

npm test runs property-based tests (fast-check) for the data generators. npm run e2e drives every tool through the MCP protocol against the demo app.

Try the demo

npm run demo-app          # terminal 1: sample sign-up page with a planted bug
npm run demo              # terminal 2: runs KiroShadow against it

The “edge” case (a name with emoji and non-ASCII letters) fails because of the planted bug, and the report shows the video, the screenshot and the JavaScript error.

How Kiro features are used

License: MIT