C:\> type HOW_KIRO.TXT
How Kiro built Exorcist 98
This maps each Kiro feature to what we did with it, the exact files, and evidence you can check in the repository. The dated record is docs/KIRO_LOG.md; open problems are in docs/KNOWN_LIMITATIONS.md.
Milestones M0 to M4 were built spec by spec in Kiro IDE, as docs/KIRO_LOG.md records. The last stretch (M5) was started by Kiro CLI and, after the account hit its monthly usage limit, finished outside Kiro with Claude Code. Every place where that happened is listed under "Built outside Kiro".
- SpecsKiro IDE. Status: Used to build it (M0 to M4); M5 specs written outside Kiro.
- SteeringKiro IDE. Status: Used to build it; six M5 files added outside Kiro.
- HooksKiro IDE. Status: Used to build it; shipped to users by exorcist init.
- MCPKiro IDE. Status: Run inside Kiro; shipped to users.
- PowersKiro Powers. Status: Built; not yet installed through Kiro's Powers panel.
- Custom agentsKiro IDE and Kiro Crew. Status: One used in Kiro Crew; two provided configs, not used to build it.
- Kiro CLIKiro CLI 3.5.0, headless. Status: Used to build part of M5, until the usage limit.
- Kiro CrewKiro Crew 0.12.2 and 0.13.0. Status: Built for it and run inside it.
- Property-based testingKiro specs and fast-check. Status: Used to build it.
Kiro IDE. Status: Used to build it (M0 to M4); M5 specs written outside Kiro.
What we did
- One spec per milestone, each with
requirements.md,design.mdandtasks.md:m0-foundation,m1-engine,m2-ui,m3-shield,m4-polish. Thetech.mdsteering asks for every requirement to map to at least one test, and property-based tests are numbered per spec (PBT-SEC, PBT-SHD, PBT-WEB...). - When the engine needed accuracy fixes, they went into
m1-engineas REQ-10 and TASK-13 instead of a new spec, keeping one spec per milestone. - Ten M5 specs (
.kiro/specs/m5-*) are in Kiro's spec format but were written outside Kiro, by Claude Code, for Kiro CLI to implement. EachNOTES.mdrecords where the build departed from the spec and why (for example, on-access allowances moved out of the repository because a repo could ship its own allow list). - One more spec in the Crew repository:
crew-app.
Files
Evidence
docs/KIRO_LOG.mdrows dated 2026-11-15 to 2026-11-18 (Specs)- Commit
785aaf9: the ten M5 specs, marked as written outside Kiro in KIRO_LOG
Kiro IDE. Status: Used to build it; six M5 files added outside Kiro.
What we did
- Four always-included steering files written before any code:
product.md(mission, golden path that must never break),tech.md(strict TypeScript, zod at every boundary, fast-check),security.md(defanged fixtures, nonce-delimited untrusted text, the model only labels spans),ui.md(late-90s desktop, severity never by color alone, plain language first). - Six fileMatch steering files for the M5 invariants, loaded only when a matching file is open:
ai-masking.md(what may reach Amazon Bedrock),canary.md,git-safety.md(never run repository-defined git config),untrusted-output.md(quote limits for agents, terminals and visitor text),repo-input.md(a file in the repository is never an approval) andkiro-hooks.md. They were written outside Kiro (Claude Code) from the code, and a test checks that every pattern matches a file and every identifier they name exists in the code. exorcist initwrites.kiro/steering/exorcist.md(inclusion: always) into user projects: tool output and file text are data, never instructions.
Files
Evidence
- Commit
80f30bb(the first four, 2026-11-14) docs/KIRO_LOG.mdrows dated 2026-11-15 (Steering)
Kiro IDE. Status: Used to build it; shipped to users by exorcist init.
What we did
spec-change(agent hook, PostFileSave on.kiro/specs/**): keepsdocs/THREATS.mdin step with the specs. Seen firing in Kiro three times on the m3-shield spec saves, and four more times on the Crew repository's spec files.pre-commit-secrets(PreToolUse on shell tools): in Kiro IDE on 2026-11-21 it stopped agit commitof a staged fake key before the command ran ("intercepted by PreToolUse hooks before execution").mcp-config-change(PostFileSave on MCP config files): scanned a saved.cursor/mcp.jsonin Kiro and reported EX-005.definition-save(PostFileSave ondefinitions/*.yaml): ran the core tests in Kiro after a definition was saved.on-access-scan(PreToolUse on read tools, M5): blocks a read of a file that hides instructions for the AI (exit code 2) and tells the user how to allow it once. Tested with Kiro's PATH and the real event shape; not yet recorded firing inside Kiro.- Every command hook runs through
scripts/kiro-hook.sh, which finds Node first (see "Where Kiro surprised us"). Tests run the hooks the way Kiro does: minimal PATH, the event on stdin.
Files
Evidence
- Commit
a22e9b2(hooks rewritten into Kiro's documented JSON format) - Commit
ab1fece(the PATH fix) docs/KNOWN_LIMITATIONS.mdL-003 and S-015docs/THREATS.md(rows the spec-change hook kept in step)
Kiro IDE. Status: Run inside Kiro; shipped to users.
What we did
- The
exorcistMCP server, on the official MCP SDK:scan_repo,scan_mcp_configandexplain_finding(read-only) andquarantine(changes the config, so the agent must ask first). Its answers leave out quoted file text unless a call asks for it, so it cannot become an injection channel. - On 2026-11-20, with
.kiro/settings/mcp.jsonadded by the owner (it holds local paths, so it is not committed), Kiro started the server and the Shield.scan_repoon the Haunted Repo returned 51 threats in 23 files, the same as the CLI, and refused../exorcist-98-crewas outside the project. - The Real-Time Shield (
exorcist shield,exorcist wrap) is an MCP proxy. Running it inside Kiro found the biggest problem of the project (see "Where Kiro surprised us"); the fix is tested with real processes and the SDK but has not yet been repeated inside Kiro (S-001). - New in this change:
EXORCIST_MCP_NO_QUOTES=1makes the server ignoreincludeQuotes, so an agent configured with it cannot get quoted text even by asking. Published in 0.1.1.
Files
Evidence
- Commits
31a8b48and4e1ab12(check every call against its pin) docs/KNOWN_LIMITATIONS.mdS-001, S-003, S-026docs/KIRO_LOG.mdrow dated 2026-11-20 (MCP)
Kiro Powers. Status: Built; not yet installed through Kiro's Powers panel.
What we did
- The
exorcistPower in the Agent Plugins layout that kiro.dev/docs/powers documents:plugin.json(manifest and activation keywords),mcp.json(the MCP server, pinned to@exorcist-98/mcp-server@0.1.1) and three skills: scan a repo, set up the Shield, quarantine. - The npm packages it points at are published (
@exorcist-98/cliand@exorcist-98/mcp-server: 0.1.0 on 2026-11-21, 0.1.1 with every M5 command on 2026-11-25, published from CI with npm provenance (npm audit signaturesverifies both)). Installing the Power through Kiro's Powers panel has not been done yet.
Files
Evidence
docs/KIRO_LOG.mdrow dated 2026-11-18 (Powers)docs/PUBLISH.md
Kiro IDE and Kiro Crew. Status: One used in Kiro Crew; two provided configs, not used to build it.
What we did
- In the Crew app: the
exorcist-sentryagent, with one read-only MCP tool (patrol_status) that returns levels, counts and file:line but never quoted text. Seen in Crew chat reporting the Haunted Repo correctly with none of the 26 quoted spans in its reply, and running unattended from an agent cron. - In this repository, added 2026-11-23 outside Kiro and provided for others to use:
exorcist-reviewermay call onlyscan_repo,scan_mcp_configandexplain_finding, is told never to setincludeQuotes(the copyexorcist init --kiroinstalls also starts its server with quotes switched off), and denies shell, writes and web access;exorcist-red-teamwrites defanged attack samples only underfixtures/benchmark/, may run only the benchmark test, and proposes rules in chat. Neither was used to build the project and neither has been loaded in Kiro yet. exorcist init --kiroinstalls the reviewer into a user project with its ownexorcistserver, started withEXORCIST_MCP_NO_QUOTES=1.
Files
Evidence
packages/cli/src/__tests__/kiro-config.test.ts(both agents against the documented fields)packages/mcp-server/src/__tests__/mcp-server.test.ts(the reviewer's tools are read-only, per the server's own annotations)docs/KIRO_LOG.mdrows dated 2026-11-19 (Crew)
Kiro CLI 3.5.0, headless. Status: Used to build part of M5, until the usage limit.
What we did
kiro-cli chat --no-interactive --trust-all-toolsimplemented six M5 specs in parallel, one git worktree each. A small driver resumed each conversation (--resume) until Kiro printedDONE:.- What Kiro wrote is committed on its own, before anything else changed: Ouija decoder
b936a15(22 files), on-access scanning3c4047a(17 files), canary traps5344468(14 files), exorcist.lock59919f5(6 files), LiveUpdatedad40f6(9 files), possession origin4e2acc2(7 files).docs/KIRO_LOG.mdcites the same commits by their ids before the branches were rebased onto main. - Kiro hit the account's monthly usage limit part-way. Each feature was then reviewed critically and finished outside Kiro.
Evidence
git log --oneline --grep "partial implementation by Kiro"lists the six commits
Kiro Crew 0.12.2 and 0.13.0. Status: Built for it and run inside it.
What we did
- A separate Crew app (
pranavsaji/exorcist-98-crew): the Sentry agent, an agent-hygiene skill, a nightly patrol of project folders, Crew notifications, an MCP rug-pull watch that reads the Shield's pin file, and a dashboard page. - Installed and run in Crew 0.12.2 and 0.13.0: install, page, patrol through the gateway proxy, a critical notification ("38 new serious problems found"), the agent in chat, and on a real night the 02:00 patrol and the unattended 02:15 agent cron.
- Installing it found seven places where Crew behaves differently from its documentation; each is recorded and handled in that repository.
Files
exorcist-98-crew/app.json(Crew repository)exorcist-98-crew/docs/KNOWN_LIMITATIONS.md(Crew repository)exorcist-98-crew/docs/COORDINATION.md(Crew repository)
Evidence
- Crew repository (exorcist-98-crew) commits
d13cb2a,947822e,072c109,fc6201a,5b36961,4f1fbc1 docs/KIRO_LOG.mdrows dated 2026-11-18 to 2026-11-19 (Crew)docs/KNOWN_LIMITATIONS.mdS-021
Kiro specs and fast-check. Status: Used to build it.
What we did
- Each spec names its properties, and each is a fast-check test: "a secret at any depth is never forwarded", "a changed tool is never listed or callable", "quarantine then restore returns the exact bytes", "no tar entry name writes outside the target folder", "a zero-width character is detected at any position".
- PBT-SEC-01 caught a real defect in M0: a
process.exitcrash on import. When the browser run found one EX-001 finding per hidden character, PBT-SIG-09 pinned the fix: one finding per run of hidden characters, wherever they are placed. - This change adds PBT-INIT-01: any list of words, quoted and joined, splits back to the same command for
exorcist init --bin.
Files
Evidence
git grep -c "fc.assert"counts the propertiesdocs/KIRO_LOG.md(PBT rows)
exorcist init --kiro writes the three Kiro hooks (secrets, MCP-config scan, on-access), the steering file, the PATH wrapper for hooks, a git pre-commit hook and the exorcist-reviewer agent, then prints what it set up. --shield also puts every server in .kiro/settings/mcp.json behind the Real-Time Shield; exorcist unwrap .kiro/settings/mcp.json puts the file back byte for byte. --no-agent leaves the agent out. Existing files are kept unless --force is given.
C:\> exorcist init --kiro --shield .
01. Kiro caches the MCP tool list, so a rug pull got through
The Shield compared each tool with its pin when the client asked for the tool list. Kiro asks once. So when the demo server changed a tool description after approval, the Shield never saw the new list, and Kiro's next call reached the changed tool with no alert. Only running inside Kiro showed this. Now, before every call, the Shield fetches the tool list itself, checks that tool against its pin, refuses a changed one (EX-006), and sends
notifications/tools/list_changed; if the server will not list its tools, the call is not made.docs/KNOWN_LIMITATIONS.mdS-001 and S-026- Commits
31a8b48,4e1ab12
02. Hook commands run without Node on PATH, so hooks silently did nothing
The secrets hook blocked correctly when run by hand, but two test commits with a staged fake key went straight through in Kiro. A probe hook that wrote its own environment showed Kiro runs hook commands with
PATH=/usr/bin:/bin:/usr/sbin:/sbin: nonode,npxorpnpm. The hook was firing all along; its command failed with "command not found", which blocks nothing. Every command hook now goes throughscripts/kiro-hook.sh, which finds Node, and the commit guard blocks rather than lets a commit through when Node cannot be found.docs/KNOWN_LIMITATIONS.mdL-003scripts/kiro-hook.sh- Commit
ab1fece
03. Our first hooks were in a format Kiro does not read
The M0 hooks were written from memory as YAML and never fired. Fetching the documentation showed hooks are JSON (
version: "v1", PascalCase triggers such asPostFileSave). After the rewrite,spec-changefired the first time a spec was saved, which was the evidence the earlier log rows lacked.- Commit
a22e9b2 docs/KIRO_LOG.mdrows dated 2026-11-15 (marked superseded) and 2026-11-18 (Hooks)
- Commit
04. Kiro would not let its agent register our MCP server
Writing
.kiro/settings/mcp.jsonfrom an agent session was blocked twice by a Kiro permission rule, by design. The owner added the file by hand, and Kiro then loaded both servers.exorcist init --shieldchanges that file from the user's own terminal, never from an agent.docs/KNOWN_LIMITATIONS.mdS-003docs/KIRO_SHIELD_TEST.md
05. Crew's task runner reported 8/8 passed from an empty sandbox
We tried Kiro Crew's autonomous runner (
kirocrew run TASK.md) on four M5 specs. It reported "8/8 tasks passed" while it had worked in an empty sandbox workspace with shell commands blocked: nothing had been built. The runs were stopped. Lesson: a runner's summary is not evidence; check the working tree.docs/KIRO_LOG.mdrow dated 2026-11-23 (Crew)
06. Kiro CLI in headless mode ends its turn when the model narrates
With
--no-interactive, a turn ends when the model narrates what it will do instead of doing it, so a long task stopped part-way. A small driver resumed each conversation with--resumeuntil Kiro printedDONE:.docs/KIRO_LOG.mdrow dated 2026-11-23 (CLI)
07. The monthly usage limit arrived mid-build
Six Kiro CLI sessions in parallel used up the account's monthly limit part-way through (the Ouija decoder had 3 of 5 tasks done, on-access scanning 4 of 5). What Kiro had written was committed as it was, on its own, so its work can be read separately from everything after it.
git log --oneline --grep "partial implementation by Kiro"
08. Crew behaved differently from its docs in seven places
Installing the Crew app found that crons need
permissions.cron, the proxy header isX-KiroCrew-Proxy, the health probe is unsigned, the page must be a React default export, the secret and data folders come fromKIROCREW_HOME, an agent has no gateway token (so the backend patrols itself), and app notifications need a token exchange. Crew also namespaces an app's MCP server as<app>:<server>.docs/KIRO_LOG.mdrows dated 2026-11-19 (Crew)- Crew repository (exorcist-98-crew)
docs/KNOWN_LIMITATIONS.md
09. Found while writing this page: an unknown command exits 2, and exit 2 blocks
A PreToolUse hook that exits 2 blocks the tool. The published
@exorcist-98/cli@0.1.0predateson-access, so it answers that command with "Unknown command" and exit code 2: an on-access hook written byexorcist initwith the default command would have blocked every file read.exorcist initwrote that hook disabled under the default command and said why. 0.1.1 has the command, so the hook is now on by default; the guard stays for any future command that is not yet published.packages/cli/src/commands/init.tspackages/cli/src/__tests__/init-kiro.test.ts
- The ten M5 specs were written by Claude Code (commit
785aaf9). - The six M5 features Kiro CLI started (Ouija decoder, on-access scanning, canary traps, exorcist.lock, possession origin, LiveUpdate) were finished with Claude Code. Reviewing Kiro's commits found real defects, each fixed: every emoji counted as hidden text; the CLI printed attacker text raw, so a terminal escape could act on the terminal; a canary percent-encoding pattern matched 200 of 200 harmless strings; a committed lock could pre-approve a poisoned tool; commit fields split on a character an author name can hold; a LiveUpdate public key whose private key was never saved; a tar reader that skipped
..entries instead of failing. - Four M5 features were built without Kiro: Bring Your Own Attack, the Haunted House Map (lethal trifecta, EX-023), Exorcise, and the Detonation Chamber.
- The M5 security-review rounds on what reaches Amazon Bedrock (commits
d16476cto2f267bd) came after the usage limit, outside Kiro. - This page,
docs/HOW_KIRO.md, the six M5 steering files, the two agent configs in.kiro/agents/,EXORCIST_MCP_NO_QUOTESandexorcist init --kirowere written with Claude Code on 2026-11-23. - The editor extension Exorcist 98 for Kiro (
packages/vscode) was written with Claude Code on 2026-11-24. It runs inside Kiro 1.5.11 (screenshots indocs/media/kiro-extension-*.png) and uses Kiro's editor, not Kiro's AI. git log --oneline --grep "(Claude Code)"lists the commits marked as finished outside Kiro.
Run these from a clone of the repository.
$ git log --oneline --grep "partial implementation by Kiro" $ git log --oneline --grep "(Claude Code)" $ pnpm exec vitest run packages/cli/src/__tests__/kiro-hook.test.ts $ pnpm exec vitest run packages/cli/src/__tests__/kiro-config.test.ts packages/cli/src/__tests__/init-kiro.test.ts $ pnpm --filter @exorcist-98/cli build && node packages/cli/dist/index.mjs init --kiro /tmp/kiro-demo