This post was written as part of the Kiroween 2026 hackathon.
HexCard brings Apple's 1987 HyperCard back as a web app: 1-bit cards, buttons and fields, a scripting language called HexTalk, and the classic tools like the Message Box, Find and FatBits. You can try it in the browser; the code and the whole .kiro folder are on GitHub.
This post is not a feature tour. It is about how the app was built with Kiro: specs, steering files, hooks, the task runner, property-based tests and a Kiro power. It also covers what went wrong when Kiro used that power, and what is still missing.
The plan came first
No code was written before there was a plan. The design spec (hexcard_design_spec.md), the first three steering files, both hooks and early drafts of specs 01 and 04 were drafted with an AI assistant outside Kiro and committed on 30 October. On 3 November, another AI assistant outside Kiro rewrote specs 01 to 04: it added the full HexTalk grammar, the PackBits codec reference and the runtime model, and fixed the hook format.
From 4 November on, Kiro wrote all of the application code and the tests. Specs 05, 06 and 07 came out of Kiro's own spec workflow: requirements, then design, then tasks, with my approval at each stage. A bug found along the way got its own spec from Kiro's bugfix workflow. After that, every change to a spec was applied by Kiro from a prompt I marked "user-approved".
In the end there are seven numbered specs and one bugfix spec. Each numbered spec has requirements.md, design.md and tasks.md, and the acceptance criteria are written as "WHEN ... THE SYSTEM SHALL" statements, so each one can be tested on its own.
One task at a time
Spec tasks were started with Kiro's "Start task" button, and every run is recorded in the spec's tasks.meta.json. A few steps ran in a regular Kiro chat instead. For example, the task runner's sub-agent failed three times on one property test in spec 07, so that test was written in a chat.
The fourth steering file, workflow.md, holds the rules for every task run:
- Implement only the task that was started.
- Run
npx tsc -bandnpx vitest --runbefore ticking the task, and paste their summary lines in the report. - Treat the spec documents as read-only. If one is wrong, stop and report the gap instead of working around it.
- Never commit or push.
- End the report with a "Decisions for review" section listing every choice the spec did not dictate.
- After ticking a task, add an entry for it to
KIRO_USAGE.md.
Rule 3 earned its place. In spec 05, the headless Chrome check stopped and reported two gaps instead of working around them: a step order that contradicted a requirement, and Chrome's LCD sub-pixel text adding about 1,690 off-palette pixels per screenshot. The spec was fixed first, then the task ran again. I checked each report against the files on disk outside Kiro: tsc and vitest were run again, and for UI tasks a headless Chrome screenshot was checked for any pixel that is not one of the two theme colours.
I picked the model per task instead of leaving it on Auto: Opus 5.5 at high effort for correctness-critical work (the store, the message bus, the VM, the menu wiring), Sonnet 5.5 at high effort for well-scoped tasks. When the hackathon credits ran out, the last steps of spec 07 ran on Kiro's free plan with Claude Sonnet 4.5 and Claude Haiku 4.5.
Two hooks as guards
HexCard has two rules that are easy to break by accident: everything on screen uses exactly two colours, and scripts never escape their sandbox. Each rule got a PostFileSave hook with an agent action.
-
enforce-1bit-ui.jsonfires on saved UI, graphics and CSS files. It looks for blurred shadows, gradients, filters and partial opacity, a<canvas>withoutimage-rendering: pixelated, card text rendered as DOM text,innerHTMLand Apple font files. -
validate-ast-safety.jsonfires on saved TypeScript files insrc/core,src/aiandsrc/storage. It checks them against the sandbox rules, the VM's gas limit and the data contracts.
To be honest about it: the hooks mostly reported no violations. In spec 05 they found none, and the audit of a CSS polish pass came back clean too. That is what a guard should do, but it means I can't point to a dramatic catch. They were a second pair of eyes on every save; the pixel checks in headless Chrome covered what a file audit can't see, such as how the browser actually draws text.
Property-based tests
23 test files use fast-check. The properties are the kind a stack tool needs: print a HexTalk script and parse it back, and you get the same script; apply any random sequence of structural commands and undo them all, and you get the same stack; encode a bitmap and decode it, and you get the same pixels. The Kiro power's five tools have six properties of their own, each run 200 times.
The best story came from the bugfix workflow. During spec 04, two tests in partRenderer.test.ts started timing out. Kiro's bugfix workflow wrote an exploration test first, and it counted the cause: one call of a helper that checks a dimmed button made 175,106 expect calls, one per pixel. The fix compares pixels in plain code and makes at most 3 expect calls; a preservation property test makes sure a single wrong pixel is still caught. The spec's pbtResults still holds the failing example from before the fix: expected 175106 to be less than or equal to 3.
A property that can't fail proves nothing, so some were checked by breaking them on purpose. For the compile_hextalk round trip, a temporarily wrong expectation (handler names reversed) made the property fail with a two-handler counterexample, and the change was reverted.
A Kiro power made from the app's own engines
Spec 07 turned HexCard into a Kiro power, so an agent can build stacks with the same code the studio runs. The power lives in powers/hexcard/ and has five MCP tools:
-
validate_stack: runs the studio's own load check and lists every reason a stack would be rejected. -
compile_hextalk: compiles a script and returns its canonical text, or the error with line and column. -
conjure_script: turns an English description into HexTalk with the built-in Spellcaster. -
render_card: draws one card with the studio's compositor and returns a 1-bit PNG plus a JSON summary. -
draw_layer: draws simple 1-bit art from a list of commands and returns the layer'srleData.
Two skills sit on top: author-hexcard-stack (plan the cards, draw them, check every change, save a .hexstack file) and write-hextalk (the grammar, the VM's limits and the common compile errors). The MCP server is bundled from src/power/ and runs under Node's permission model, with read access to its own file only.
Importing it takes one step: Powers panel, Add Custom Power, Import power from GitHub, and the folder URL. In a new chat, a tool call shows up as @hexcard/hexcard/compile_hextalk, and I allowed each call one by one.
Three things I learned when Kiro used the power
The tools passed their tests. Using them from a Kiro chat taught me three things the tests could not.
1. The rendered image did not reach the model. render_card returns a PNG and a JSON summary. Through the power, only the JSON text reached the chat model. To find out why, I configured the same server directly instead of through the power, and there the image did arrive: the chat read the hidden word sword off a test card. Kiro's file-reading tool can show a PNG to the model, so the fix was a small PNG helper script that writes the renders to files. With it, the chat spelled the hidden word phone letter for letter.
2. One line is read only up to 30,000 characters. A .hexstack file is one long line. The Haunted Stack's file is 36,763 characters, and Kiro's file-reading tool returned only the first 30,000 of them. The chat stopped before calling any tool, as its instructions said, and the check moved to the much shorter HexOracle stack (7,654 characters).
3. Models copy long, repetitive data badly. draw_layer returns a layer's pixels as rleData, a long run-length string. When the build chat copied those strings into the stack file itself, some copies came out wrong, and the load check refused them ("Corrupt bitmap data (length mismatch)"). The rule since then: rleData comes from a draw_layer result in one piece, and stack text comes from a file, never retyped. All three limits are recorded in spec 07, so the next agent starts with them.
Pumpkin Lane After Dark: a stack built in a Kiro chat
The fourth showcase stack was built in a Kiro chat with the power. I gave the chat the build steps and one creative instruction: "a spooky but friendly Halloween subject that fits a 1-bit card stack; the subject and its names are yours." It came back with Pumpkin Lane After Dark: a gate map and four houses (Gourd Cottage, Belfry Bakery, Sock Attic, Cauldron Nook), a Knock Knock button on each door, and a treat bag counter in a background field that keeps its own value on every card.
It was not a clean run, and the repository says so. This is where finding 3 above happened: the chat's hand-copied rleData broke two backgrounds and one card, and it then started patching rleData by hand, which broke a rule of the build message. I stopped it twice and asked for the exact command lists it had used. With those lists, a throw-away script of mine outside the repository called the committed server's draw_layer again and put the results for two layers into the stack file.
The check at the end: every non-empty rleData in the final file equals, byte for byte, a draw_layer result that the build chat itself received. For one card the reported command list did not reproduce its layer, so that layer was checked against the chat's export instead. A last chat rendered all five cards and validated the stack without changing anything.
What is still missing
- Only the offline Spellcaster exists. It runs in the browser with no API key and no network call: 24 Grimoire spells plus a local compiler. The design also has a proxy tier and a bring-your-own-key tier (spec 04, task 5.2); neither is implemented, and the README says so.
- Not every spec is Kiro's. Specs 01 to 04 were written before implementation, partly outside Kiro; only specs 05, 06 and 07 and the bugfix spec came from Kiro's workflows.
- Not every step used the task runner. A few steps ran in regular Kiro chats;
KIRO_USAGE.mdtags them[chat]. - No custom agents. The
.kirofolder has specs, steering files and hooks, but no custom agents. - Checked in Chrome only. The automated checks run in headless Chrome; I have not tested other browsers yet.
The full, dated log of what Kiro did and what was done outside it is in KIRO_USAGE.md, including a "Work outside Kiro" section.
Try it
- Live app: tozhax.github.io/hexcard-resurrection. It opens The Haunted Stack of 1987; File > Open Showcase Stack has the other three.
- Code, specs, steering and hooks: github.com/tozhax/hexcard-resurrection
- The power: in Kiro, Powers > Add Custom Power > Import power from GitHub, with
https://github.com/tozhax/hexcard-resurrection/tree/main/powers/hexcard(needs Node.js 22.13 or later). - Demo video (2:48): https://youtu.be/1cgKN1ajUoY
HexCard is not affiliated with or endorsed by Apple. HyperCard is a trademark of Apple Inc.
Drafted with the help of an AI assistant; the project, the decisions and the facts are mine and checked against the repository.