Inspiration An agent can call an MCP tool or an HTTP API. It cannot call an old admin page, a vendor console or a command-line shell that only exists as a screen. Rewriting that software is rarely an option, and asking a model to click through it on every run is slow, costly and unsafe. We wanted to record the path once and replay it exactly.

What it does Record. Do the task once in a real browser, or in your terminal. Mark the values that change as typed inputs. Passwords are kept as secrets. Compile. Daemonize infers a JSON Schema for each action and writes an MCP server, an OpenAPI 3.1 document, a Kiro Power and a property-based test suite. Call. Kiro calls the tool with a validated payload. The server starts fresh at the recorded start state, replays every step and returns structured data. Around that loop:

Safety. Actions that change or delete data can wait for your approval, and every call is written to an audit log. An invalid payload never reaches the application. Secrets. Values are typed once and encrypted on your computer. Workflows and generated files hold secret names only. No model needed to run. Recording, building, replaying, approvals and tests call no AI model. An optional heal mode can ask a vision model to find a control that moved. Studio and Kiro extension. Record, review, test, connect and follow activity from a browser page or from the Kiro sidebar. Web and terminal. The same cycle works for both, with an optional Docker sandbox for each call. In the video, a dental office with old practice software (an invented application with invented data) gets two tools, "find a patient" and "book an appointment". Kiro is asked in plain words to check a patient and book a cleaning: the search runs on its own, and the booking waits for an approval.

How we built it It is a chimera: a headless browser (Playwright), a terminal emulator (node-pty with xterm), a recorded workflow model, schema inference, and a compiler that writes a standalone server. It is written in strict TypeScript, with AJV and Zod for validation, the MCP SDK, Vitest and fast-check.

Examples in the repository record, compile and call real software: Adminer on PostgreSQL, and the sqlite3 shell.

How we used Kiro We built Daemonize in the Kiro IDE. The whole .kiro/ folder is in the repository.

Spec-driven development. Ten specs. Eight feature specs hold 141 requirements, and two bugfix specs state the defect before the fix. The work went from requirements to a design with numbered correctness properties, then to tasks. Specs cover the core (record, schema, compile, replay), the Studio, the Kiro extension, the secret vault, Power installation, and the agent with its approval firewall.

What the specs changed for us:

Conflicts settled before the code. The design lists the places where requirements clash with each other or with the code, and settles them (RC-1 to RC-14 in the Power installation spec). For example, a plain-language rule bans the word "MCP" from screen texts, which gave the label "Direct connection", and the Power mode was limited to installs for all projects. Parallel work. Dependency waves and "Owns" lists gave each file a single owner. We could run five or six sub-agents at once without them overwriting each other, and commit group by group. Defects found early. Writing the requirements against the code exposed an inconsistency in result selectors based on a role alone. An end-to-end test written from a spec showed that new result selectors were lost when a recording was saved. Steering. product.md, tech.md and structure.md are always loaded; testing-pbt.md is loaded when test and property code is involved. They fix the rules once (strict replay by default, ES modules, how to write a property), so tasks do not restate them.

Agent hooks. Four hooks run on file save: a type check; the unit and property tests when a core module changes; an agent hook that compares the data model and the Power generator with the spec and proposes edits; and a secret scan of examples, workflow files and docs. Type errors, broken core tests, spec drift and committed secrets show up at save time.

Property-based testing. The design documents number the correctness properties, and fast-check tests them, mostly for invariants: round trips, deterministic screen identifiers, graph merges, redaction, no secret in a compiled file, and a strict replay that stops at the first failure. They found real defects: a graph merge that was not commutative, a screen wait that a pathological regular expression could stall, and a heal cache that could overwrite the workflow file through a link. Property 13 of the Power installation spec, "removals commute", showed that the final state of Kiro's files depended on the order in which two Powers were removed. All of these were fixed.

Sub-agents. The agent and firewall spec, for instance, splits its work into one serial seam group and fifteen groups with disjoint files, so groups could run in parallel without edit conflicts.

MCP. Daemonize extends Kiro in two directions. Every recorded action becomes an MCP tool that Kiro can call, as the video shows. Daemonize also has its own MCP server with 13 tools, so an agent can list actions, drive a recording, build and test. To build the project itself, we used only the built-in tools of Kiro (web search, page reading, shell and files), among other things to read the documentation of custom agents, Powers and Kiro Crew, and the hackathon rules. We added no third-party MCP server.

Custom agent and skill. The Daemonize agent builds tools through that MCP server. It cannot write files or run commands, secrets never enter the chat, and compiling, testing and installing wait for a person. A skill gives it the journey and the secret rules only when needed. In the video, it runs in the Kiro IDE, lists the actions of a folder and says which ones change data.

Powers. Daemonize ships its own Power (server, agent, skill and steering in one install) and generates a Power for each recorded application. We used no third-party Power to build it.

Challenges we ran into Replaying a screen reliably: the recorder's own panel caused false drift, and hidden values that change on each visit had to be ignored. Never guessing: a table row is found by an input value, and the call stops if two rows match. Keeping secrets out of everything: recorded requests are redacted, and tests search the generated files for secret values. Terminals on Windows, where keys and program paths behave differently. Accomplishments we are proud of One recording gives a working MCP server, an OpenAPI document, a Kiro Power and tests. Changes can wait for a person's approval, right inside Kiro. More than 2,800 automated tests, including browser, terminal and Docker end-to-end tests. What we learned Writing properties from the specification finds defects that examples do not. Replaying a recorded path is more predictable than asking a model to click through an interface each time. And an agent becomes much easier to trust when the dangerous steps need a person.

What is next A one-command install, and more platforms.

Built With

Share this project:

Updates

Submission history