I wrote this post as part of the Kiroween 2026 hackathon.
I'm Indonesian, and haze season is something you hear about every year: schools close, the sky over Kalimantan and Riau turns orange, and the clinics fill up before anyone has a plan. This year I wanted to see whether open data could give a puskesmas a few days' warning instead of a headline.
The gap
Between 20 August and 5 November 2026, Indonesia's health ministry counted at
least 425,167 respiratory infections from fire haze. Satellites saw every fire,
and air-quality apps showed the smoke. Nobody told a puskesmas (a community
health clinic) how many breathless patients to expect next week, or told the
district health office (Dinas Kesehatan) where to open emergency posts and
oxygen houses first.
Sootsayer tries to close that gap: from the fire pixel to the clinic queue.
What it does
- A real 3D globe (MapLibre GL JS v6) with NASA's satellite image of the day, NASA FIRMS fire detections, terrain, and the Copernicus CAMS smoke field.
- A five-day outlook for 96 districts in Kalimantan and Sumatra's peatland provinces. Each district-day is a clear day, a haze day (daily mean PM10 of at least 100 µg/m³) or a fire-haze day (a haze day with a satellite fire in the district).
- The expected change in respiratory visits, from a peer-reviewed study of six puskesmas in Central Kalimantan (Phung et al. 2025, International Journal of Epidemiology), always with its 95% range.
- For each puskesmas: expected visits a day, a clean-air waiting room planner, and indoor PM2.5 with and without a cleaner.
- A briefing the health office can send as is, in Bahasa Indonesia or English. The engine writes it, not a language model.
- October 2026 replayed in hindsight and as it was forecast, with a check of how often the forecast was right.
The study has a hard limit, and the app shows it next to the numbers: the
effect was clear in a rural regency (Pulang Pisau) and absent in the city of
Palangka Raya. Everywhere else, the estimates are applied by analogy.
A chimera of five parts
I entered the Frankenstein category, so the stitching is the point:
| Part | Technology |
|---|---|
| Engine | Rust: one crate with three faces (library, native CLI, WebAssembly with a hand-written C ABI) |
| Globe | TypeScript, Vite, MapLibre GL JS v6 (globe projection, terrain, WebGL2) |
| Edge | Vercel functions that cache and trim CAMS (via Open-Meteo) and NASA FIRMS |
| Data | Python with uv and Shapely, the Copernicus Atmosphere Data Store client, and scikit-learn |
| Agents | An MCP server (Python SDK v2), a custom Kiro agent, and a Kiro power |
The browser and the agent run the same Rust code. A parity script feeds real
October inputs through the WebAssembly module and the native CLI and requires
byte-identical output.
How Kiro changed the way I worked
Specs first, and specs that changed
Three specs hold 16 requirements with 70 EARS acceptance criteria, 18 design
decisions, and 32 tasks. The third one, for the haze-day chance below, was
written before its code. The useful part was that the design changed when facts
arrived, and the spec recorded why:
- OpenStreetMap maps only part of the puskesmas, so the priority list ranks districts by the relative change, not by clinic counts.
- Open-Meteo's free tier allows 600 calls a minute. A live refresh of all of Indonesia would cost about 2,655 calls, so coverage stays with the haze regions, one region at a time.
- The forecast check showed that the first 7 hours of the first forecast day are the same data as the archive, so the app now says that day flatters the forecast.
Steering as house rules, hooks as the referee
The steering file product.md holds five house rules: real data only, a range
next to every estimate, the limits on screen, never stale data as current, and
decision support rather than diagnosis. Three agent hooks enforce them on every
save, and they fire on Kiro's own edits too:
-
engine-check-on-saveruns the unit and property tests, rebuilds the WebAssembly module and the CLI, and checks parity. -
method-citation-checkkeeps the study's numbers identical betweenengine/src/method.rsanddocs/METHOD.md. -
house-rules-ui-checkreviews every UI edit against the steering.
They caught real bugs before they shipped: an English source label that would
have appeared inside the Indonesian briefing, a failed forecast load that would
have kept the "What was forecast" label over hindsight data, a hard-coded UI
label outside the translation file, and METHOD.md missing new constants.
Honestly, the biggest change was trust. Building fast used to mean checking everything twice myself. Here the rules lived in steering files and the hooks checked every save, so I could let Kiro run and spend my time on the decisions only I could make: which study to trust, what a puskesmas head actually needs to see, and what the app must refuse to say.
Property-based tests
Ten proptest invariants come straight from the requirements: ranges stay
ordered, a clear day changes nothing, the regency effect grows with the length
of the haze, the output is deterministic, every briefing carries its limits and
a range on every ranked line, the forecast check counts each pair once, the
haze-day chance stays a probability on window days only, and more forecast
smoke never lowers the chance.
MCP, a custom agent, and a power
The MCP server has seven tools (list_regions, list_districts, priority,
haze_outlook, clinic_plan, daily_brief, forecast_check) on the same
engine. Kiro can answer "which districts need oxygen houses this week?" with
the engine's numbers, and forward a briefing it did not write. A custom agent,
sootsayer-briefer, briefs only from those tools, and a Kiro power packages the
server with two skills.
Can you trust the forecast?
The October replay shows what the CAMS forecast said at 06:00 each morning (the
12:00 UTC run of the day before, from the Copernicus Atmosphere Data Store), and
the app grades it against the model's own later estimate:
- One day ahead, it caught 75% of Kalimantan's district haze days (361 of 480), and 16% of its warnings were false.
- In Sumatra it caught only 49% (133 of 274).
That is model against model, not against ground stations, and the app says so.
Then I added a little machine learning, and tested it honestly. A logistic
regression per lead day, trained with scikit-learn on that October replay and
evaluated by the same Rust engine, turns each morning's forecast into a chance
of a haze day, like a rain chance. Each week is scored by a model that never
saw it. A district the raw forecast leaves clear but with a chance of 30% or
more goes on a Watch list: one day ahead that caught 88% of Kalimantan's
district haze days (raw forecast 75%) and 70% of Sumatra's (49%), with more
false alarms (25% and 40% of warnings). The study's method stays unchanged.
Getting the data took one request that waited about 18 hours in the queue. I
never resubmitted it, because the Data Stores suspend accounts that send
repeated requests.
The demo video is code too
The video is rendered with Remotion and three.js. The opening draws the map
from Natural Earth and geoBoundaries and ignites the 9,766 real FIRMS detections
of 14 October 2026 as embers. The app shots are the real app, recorded frame by
frame on Playwright's paused clock, and the music is synthesised with numpy.
What's next
A pilot with a district health office to compare the outlook with real 2026
visit records (and the haze-day chance with a new season), and more regions as
data packs. The 06:00 briefing already exists as a Kiro Crew app that runs it
unattended.
- App: https://sootsayer.vercel.app
- Code: https://github.com/maulanawirawan/sootsayer
- Kiro Crew app: https://github.com/maulanawirawan/sootsayer-morning-brief
Data: NASA FIRMS (VIIRS NOAA-20, NASA LANCE) and NASA GIBS. Copernicus CAMS
via Open-Meteo and the Atmosphere Data Store, CC BY 4.0: contains modified
Copernicus Atmosphere Monitoring Service information 2026; neither the European
Commission nor ECMWF is responsible for any use that may be made of the
Copernicus information or data it contains. Sentinel-2 cloudless -
https://s2maps.eu by EOX IT Services GmbH (Contains modified Copernicus Sentinel
data 2016 & 2017). OpenFreeMap © OpenMapTiles Data from OpenStreetMap;
puskesmas © OpenStreetMap contributors (ODbL); districts: geoBoundaries.
Sootsayer is decision support for health offices, not medical advice.




