Payday Replay: I brought back the 1980s check register and taught it to play the future
I wrote this post as part of the Kiroween 2026 hackathon. My entry is Payday Replay, in the Resurrection category, and I built it with Kiro. The problem You can have enough money for the month and still be sh
I wrote this post as part of the Kiroween 2026 hackathon. My entry is Payday Replay, in the Resurrection category, and I built it with Kiro.
The problem
You can have enough money for the month and still be short before payday. Take a student with $540, a $600 paycheck on day 8 and a normal week of bills. The month ends at $470, which looks fine. But on day 7 the balance hits -$85.00, and if the paycheck lands two days late it hits -$130.00.
Most budgeting tools look at how much you spend. I wanted one that looks at when money arrives and when it leaves.
What I brought back
The electronic check register on a 1980s home computer kept a running balance, but it only recorded the past. Payday Replay keeps the register and gives it a new job: play the next 30 days forward.
You enter a balance, your paychecks, fixed bills and flexible purchases. A flexible purchase gets one other day you would accept instead. Ghost Mode replays the month with every paycheck 1 to 5 days late. Then you press REPLAY.
REPLAY checks every schedule you allowed against both timelines and returns the fewest changes that keep you at or above zero. In the sample month it moves the headphones from day 3 to day 11 and the equipment from day 5 to day 12. The low goes from -$130.00 to $65.00 and the month still ends at $470.00.
When there is no fix, it says so. At three days late it shows NO SAFE REPLAY and the closest option, -$30.00, still short. EXTRA LIFE then looks one step further: paying groceries on day 12 instead of day 9 keeps the month at $15.00. HAUNT ALL lets each paycheck be late on its own and counts every combination, 36 for two paychecks, with no sampling. EXPORT writes your month to a link, a QIF file, a printout or a real 1.44 MB floppy disk image.
There is no server and no account. The Python engine runs in the browser through Pyodide, and nothing you type leaves it.
How I used Kiro
I ran Kiro CLI in headless mode. There are 20 session transcripts in the repo, and every prompt is saved next to its output.
Specs. The .kiro folder holds six specs: the main feature spec with 132 tasks, a Bugfix Spec for untrusted save files, and one spec each for EXTRA LIFE, the transport bar, files in and out, and the Kiro surfaces. The first session read my spec next to my code and found five places where they disagreed. One was a tie break the code used that the spec never stated. Each gap became a requirement and a test.
Steering. Seven steering files. The one that mattered most is financial-correctness.md, which loads for Python and test files. It holds three rules: money is integer cents, bills post before deposits on the same day, and a purchase only moves to the day the user allowed. The engine follows the first rule from its first function:
def to_cents(value) -> int:
"""Convert a dollar amount (str, int or Decimal) to integer cents exactly.
Accepts: optional leading minus, optional single leading $, plain integers,
correctly grouped thousands (1,234,567), and up to 2 decimal places.
Rejects: scientific notation, misplaced commas, embedded $, >2 dp, >$10,000,000.
"""
Hooks. This save hook runs the tests and the sample check whenever Kiro saves engine code or a test:
{
"name": "Financial regression on agent save",
"trigger": "PostFileSave",
"matcher": "(^|/)(docs/py/[^/]+\\.py|tests/[^/]+\\.py)$",
"action": { "type": "command", "command": "bash scripts/hook-check.sh financial-agent-save" }
}
It fired on its own 82 times through session 20, and every run is written to evidence/hook-runs.log. A layout hook fired 54 times, and a Stop hook makes Kiro check its changes against the requirements before a session ends.
MCP and a power. In session 6 Kiro used the Playwright MCP server to open the app at phone and desktop sizes while it fixed the layout. In session 18 Kiro served the engine itself as an MCP server (tools/payday_mcp.py) and packaged it as a Kiro power in powers/payday-replay, together with the money rules steering.
Custom agents. payday-reviewer is a release reviewer that treats the steering as binding and cannot commit or push. payday-auditor is read only. It can read files and call the engine's MCP tools, and nothing else. Its job is to check the numbers in the docs against the engine.
Crew app. Kiro also wrote Payday Replay Crew in its own repo, spec first: a payday coach agent, a replay skill that runs the same engine, and a "Check a month" command. It has 58 tests. Cloned on its own, 57 pass and 1 skips, because the engine hash check needs the main repo next to it.
Counted from git, the Kiro session commits added 56 percent of the code and 71 percent of the tests. The repo has a script that recounts this, and a test that fails if the published numbers stop matching git.
What was hard
The hook trigger names. In session 1 Kiro told me two of my trigger names were wrong. I did not take its word for it. I made a scratch workspace with one probe hook per candidate name. Kiro 3.8.1 fired PostFileSave, PostFileCreate and Stop, and never fired the names it suggested. My own task trigger was wrong too: the real name is PostTaskExec. So Kiro was wrong about the fix and right that something was off. I still do not know why the task hook never fired in my runs, and the repo says so.
The free plan limit was the other one. Kiro hit it partway through session 6, so I finished that commit outside Kiro. Its lines are counted apart and credited to no one.
Where it stands
There are 452 tests. 451 pass and 1 skips when the mtools floppy reader is not installed. CI runs them on every push with the sample check, the share recount and a browser smoke test.
- Live app: https://alenza.dev/payday-replay/?v=19
- Devpost: https://devpost.com/software/payday-replay
- Video: https://youtu.be/8Mp_RxXG4GQ
- Code: https://github.com/ALENZACODES/payday-replay
- Crew app: https://github.com/ALENZACODES/payday-replay-crew
John Khan, Toronto, Ontario
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.