Skip to content

Built with Kiro

Kiro writes each reply. Hooks check it before it goes out.

Each operator line starts one headless kiro-cli turn. Hooks block replies that break the rules. Steering and specs define those rules.

Kiro features at a glance

Each Kiro feature: where it lives in the repo, what it changed, and how far it has been run.

  • Custom agents

    In the repo
    Three in .kiro/agents/: qsolink.json (runtime), qsolink-redteam.json (hook test) and part97-reviewer.json (development, read-only).
    What it changed
    The runtime agent loads only two steering files, so development notes never reach an operator turn. The red-team agent has the same hooks and a prompt that tells it to ignore the rules, which made the hooks testable.
    Status
    The reviewer agent ran headless in Kiro CLI 3.7.1 and returned a verdict per rule. Its diff hook script is also tested in test/hook-scripts.test.ts.
  • Hooks

    In the repo
    Three runtime hooks in .kiro/agents/qsolink.json, scripts in .kiro/hooks/scripts/. Four save hooks in .kiro/hooks/.
    What it changed
    In the red-team run the first reply was 1547 bytes against 256 and the budget hook blocked it. Another run was blocked for a missing callsign. Both are in docs/live-runs.md. The hooks first lived in the workspace and fired in every development chat, so a bugfix spec moved them into the agent file.
    Status
    The dictionary save hook fired in a Kiro CLI session. The other save hooks share its format and have not been triggered there. The template hook cannot block in CLI V3, so it prints the ghost line as an instruction.
  • Spec-driven development

    In the repo
    Four specs in .kiro/specs/ (qsolink-templates, model-steps, keep-gateway-answering, try-it-room), each with requirements, design and tasks. qsolink-templates also has bugfix.md.
    What it changed
    49 properties across the four designs: templates 1 to 31, MS-1 to MS-7, KG-1 to KG-5 and TR-1 to TR-6. Tasks 17 and 8 record the two fixes the properties forced. Each requirement is an EARS sentence, and the property tests check the code against the design.
    Status
    No vibe-coded version was built for comparison, so this page makes no speed claim.
  • Steering

    In the repo
    Files in .kiro/steering/. The runtime agent loads part97.md and product.md.
    What it changed
    The Part 97 rules sit in one file that the agent and the reviewer both read, so the callsign and business-traffic rules have one source.
    Status
    No before and after comparison of Kiro's answers is recorded.
  • MCP

    In the repo
    Three stdio servers in mcp/: @noaa, @aprs, @reply. Declared only in the agent file.
    What it changed
    The agent reaches live forecasts and positions without code in the prompt. @reply/send_reply is the only way to answer, so two hooks can match that one tool.
    Status
    The aprs.fi server needs a key. The public site has one set, so POS answers there are live. A self-hosted gateway without APRS_FI_KEY answers POS with a ghost line.
  • Property-based testing

    In the repo
    fast-check under node:test, in test/. 49 properties across four specs, plus red-team fuzz tests in test/fuzz-*.test.ts.
    What it changed

    Property 8 failed on compress("food"), which returned MEALS, one byte longer. MS-7 failed on toString as a model name. Both are fixed and recorded in the specs.

    Six bugs from the red-team fuzz tests

    A separate red-team pass wrote fuzz tests for hostile input, body limits, the rate limit and prototype keys such as __proto__. It found six bugs in the gateway and server. All six are fixed and their tests now pass.

    • A JSON body of null.
    • A bad percent escape in the URL.
    • A multibyte character split across body chunks.
    • Control characters in a line.
    • An agent that returned a non-string.
    • A weak business-word check.
    Status
    The IDE's own property-test runner was not used.
  • Skills and powers

    In the repo
    .kiro/skills/add-template and powers, which bundles the three MCP servers and an on-air rules skill.
    What it changed
    Both were written to hand the project to another Kiro workspace. Neither changed how this build was made.
    Status
    The power installed and started its three MCP servers in Kiro CLI 3.7 (docs/kiro-power.md). No tool call went through it, and no IDE install was run.
  • IDE, CLI, Web, Crew

    In the repo
    CLI: the runtime and development agents. Crew: crew/, a mailbox poller and an hourly keeper.
    What it changed
    The CLI runs each operator line headless, which is what makes agent-scoped hooks possible. Crew runs the gateway unattended.
    Status
    No IDE session or Kiro Web use is recorded. The Crew keeper-check turn ran only on a throwaway Crew home, not with the manifest's default paths, and its keeper-down branch has not run.

The agent

Each operator line gets one turn and one reply, and the agent can call three MCP servers (tool servers for weather, positions and replies). It is defined in .kiro/agents/qsolink.json.

One inbound line
kiro-cli chat --v3 --no-interactive --agent qsolink --trust-tools=@noaa,@aprs,@reply "WX:97035"

Headless mode cannot ask for tool approval, so --trust-tools names the three QSOLink MCP servers and nothing else. The agent loads part97.md, product.md and the published dictionary in dict/README.md, and no other steering.

Live runs with kiro-cli 3.7.0 and 3.7.1 are in docs/live-runs.md, with each hook decision. The part97-reviewer agent and the save hook both ran in kiro-cli 3.7.1 (same file). The power install is recorded in docs/kiro-power.md.

What those runs taught me about Kiro, with the error text and each fix, is in the blog post What I learned about Kiro by making it answer ham radio in one 256-byte turn.

Hooks

The hooks live in the agent file, so they run on every gateway reply and not in a development chat.

  1. 1.Template checkUserPromptSubmit

    Parses the line. A good line goes to the agent with its fields, the callsign and the byte budget. A bad line comes back as the ghost line the agent must send. CLI V3 cannot block at this trigger, so the hook prints the instruction instead.

    .kiro/hooks/scripts/template.mjs

  2. 2.Byte budgetPreToolUse, @reply/send_reply

    Exits with code 2 when the reply is over the budget for the band. Kiro blocks the call and the agent has to rewrite.

    .kiro/hooks/scripts/budget.mjs

  3. 3.Part 97 checkPreToolUse, @reply/send_reply

    Exits with code 2 when the reply has no callsign or carries business content.

    .kiro/hooks/scripts/part97.mjs

.kiro/agents/qsolink.json, the Byte budget hook
{
  "name": "Byte budget",
  "description": "Blocks any reply over the band's byte budget before it airs (exit 2).",
  "trigger": "PreToolUse",
  "matcher": "@reply/send_reply",
  "action": {
    "type": "command",
    "command": "node .kiro/hooks/scripts/budget.mjs"
  },
  "timeout": 10
}

Specs

Requirements in EARS (a fixed sentence pattern for testable requirements), a design with correctness properties, and tasks.

qsolink-templates covers the gateway. Its design lists 26 correctness properties, and fast-check tests each one over generated inputs, such as Property 1: for any string, parse returns a parsed request or exactly one ghost line, and never throws.

.kiro/specs/qsolink-templates/requirements.md
WHEN a line matches `WX:<5-digit ZIP>`, THE gateway SHALL parse it as a WX request.THE gateway SHALL NOT ask the operator a follow-up question for any line.

The Property 8 test failed on three dictionary entries that made text longer: compress("food") returned MEALS, one byte more. Task 17 removed one entry and shortened two, and Property 8 now covers every entry.

keep-gateway-answering covers the Crew app, in 24 EARS requirements.

model-steps covers the optional model steps: output checks, squeeze passes, model choice and the request caps. It adds seven properties, MS-1 to MS-7.

MS-7 failed on the input toString: the alias table was a plain object, so QSOLINK_SQUEEZE_MODEL=toString returned a function instead of a model name. The lookup now uses Object.hasOwn.

The design also records why the squeeze moved from deepseek-v4-flash (at most 2 of 9 live replies fit) to glm-5.3-flash with a number list and three passes (12 of 12).

Steering

Rules in .kiro/steering.

part97.md
The FCC Part 97 rules the agent checks before each reply. The runtime agent loads it.
product.md
The five templates, the one-turn rule and the byte budget. The runtime agent loads it.
tech.md, structure.md
Stack and folder layout, for development sessions.
crew-product.md
Rules for the Crew app, loaded only when a file under crew/ is open.

MCP servers

Three stdio servers in mcp/, declared only in the agent file.

@noaa
Forecasts and alerts from api.weather.gov, with a cached reply when NOAA is down.
@aprs
Last known position from aprs.fi.
@reply
send_reply, the one tool that sends the answer, plus send_email and store_message.

Dev tools

Tools for whoever works on QSOLink next.

.kiro/hooks/dev-tests.json
Seven PostFileSave hooks. Saving the dictionary, the parser, the budget table, the drill code, the Winlink export, the gateway or the model steps runs the matching test file.
.kiro/hooks/proof-on-save.json
A PostFileSave hook. Saving src/templates.ts or dict/dictionary.json replays the offline 200-request proof set, prints the share answered within 3 round trips and fails if it drops below the committed result. It writes no files.
.kiro/agents/part97-reviewer.json
A second custom agent for development only. It has read-only tools, loads part97.md, and a UserPromptSubmit hook gives it the uncommitted diff. It answers PASS, FAIL or NOT TOUCHED for each Part 97 rule and ends with a verdict. It never handles operator traffic.
.kiro/skills/add-template
A skill that adds a sixth template step by step: parser, ghost lines, budget, Part 97 checks, spec, tests, proof set and README, with a check after each step.
powers
A power that packages the three MCP servers and the on-air-rules skill, so another Kiro workspace can install them.

CLI, Crew and the rest

What each Kiro surface did in this build.

SurfaceUsed forWhere to see it
CLI (kiro-cli 3.7.0 and 3.7.1)The runtime: one headless turn per operator line, with the agent-scoped hooks. Also the development agents, including the read-only reviewer..kiro/agents/, docs/live-runs.md
Crew (0.13.1)Runs the gateway unattended: a script cron polls the mailbox every minute, and a keeper agent reads the status file once an hour.crew/, .kiro/specs/keep-gateway-answering
Spec filesEARS requirements, design with properties and tasks for the gateway, the Crew app and the model steps..kiro/specs/
CIRuns the tests, the proof run and the site build; a live-agent job runs when KIRO_API_KEY is set..github/workflows/ci.yml

Not used: Kiro Web, and the IDE's own property-test runner. The properties run with fast-check under node:test, and no IDE session is recorded in this repository.

Kiro Crew

A Crew app in crew/ polls the gateway's mailbox every minute, shows the traffic on a dashboard and notifies you when the gateway is down. See the Crew app.