In 60 seconds. Payday Replay brings the 1980s home computer check register back from the dead and gives it the one job it never had: playing your next 30 days forward.
- The problem: you can have enough money for the month and still be short before payday.
- Who it is for: students, hourly and weekly paid workers, and freelancers waiting on an invoice. Type a month in, or import the bills from a bank CSV, a statement PDF or a photo. The file is read in the browser and is not uploaded.
- Try it: open the sample month. It is already loaded with payday 2 days late: GHOST LOW −$130 vs ON-TIME LOW −$85. Press REPLAY: two date changes you already allowed lift the worst day to $65.00. Then press +3, then REPLAY: it says NO SAFE REPLAY instead of pretending.
- Really resurrected: the dead technology is one specific thing, the electronic check register that came on a floppy disk for the 1980s home computer. It still reads and writes 1980s QIF register files and writes a real 1.44 MB floppy disk image, and now it does a job it never had: a forward-looking stress test for pay that lands late.
- Kiro: 6 specs, 7 steering files, 4 hooks, 2 custom agents, 2 MCP servers, 1 power, 21 saved Kiro CLI session transcripts (19 here, 2 in the Crew repo) and 452 tests, plus a Kiro Crew companion app.
What if your budget had a replay button?
Payday Replay resurrects the floppy-disk-era electronic check register as a forward-looking cash-flow simulator. Instead of simply recording the past, it lets households rehearse the next 30 days, stress-test delayed paychecks and identify the smallest permitted changes to avoid a projected cash shortfall.
The financial engine uses exact integer-cent arithmetic and exhaustive search rather than AI-generated financial calculations. Statement processing and simulation happen inside the browser without uploading the user's financial records.
Inspiration
You can have enough money for the month and still be short before payday. A student with $540, a $600 paycheck on day 8 and a normal week of bills ends the month with $470. That 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. The electronic check register from the 1980s home computer was the right thing to bring back. It kept a running balance, but it only recorded the past. I gave it a new job: play the month forward.
What it does
- Check register. Enter a starting balance and your entries: paychecks, fixed bills and flexible purchases. A flexible purchase gets one other day you would accept instead.
- Timeline. A stepped pixel chart shows your balance every day. Bills post before deposits on the same day, so the chart never hides a morning shortfall.
- Ghost Mode. Pick a delay of 1 to 5 days and a ghost timeline replays the month with every paycheck marked CAN BE LATE that many days late. Paychecks not marked CAN BE LATE stay on schedule.
- REPLAY. Python checks every schedule you allowed (up to 1,024) against both timelines and returns the fewest changes that keep every timeline 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.
- The honest failure. At three days late no allowed schedule works. It says NO SAFE REPLAY and shows the closest option, -$30.00, still short.
- EXTRA LIFE. When nothing you allowed works, it finds the smallest extra change: one fixed bill paid up to 14 days later. In the sample at three days late, paying groceries on day 12 instead of day 9 keeps the month at $15.00.
- HAUNT ALL. With more than one paycheck, it tries every way each one could run 0 to 5 days late (36 combinations for two paychecks, 1,296 for four) and counts exactly how many stay safe.
- 1986 DEMO. One press reads a 1986 style QIF register file through the same importer, switches to the green screen view, makes payday 2 days late and replays it.
- Files in and out. EXPORT copies a link that carries your month, saves a QIF file, prints a paper register or writes a real 1.44 MB floppy disk image. IMPORT BILLS reads a CSV, a statement PDF, a picture or a QIF file in the browser and finds the bills that repeat.
- Cushion and plan. Pick a safety cushion of $0, $25, $50 or $100, or any whole amount up to $1,000. SAVE PLAN downloads the moves, the lows and the verdict as a text file.
There is no server, no account and no bank link. The Python runs in your browser and nothing you type leaves it.
How I built it with Kiro
I started with a spec, steering and hooks, then ran the build through headless Kiro CLI sessions (21 saved Kiro CLI session transcripts: 19 in evidence/kiro-sessions/ and 2 in the Crew repo). Kiro CLI built both the app and the Kiro Crew companion app. I did not use the IDE or Kiro Web.
- Specs. The
.kirofolder 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. In the first session Kiro read the spec next to the code and found five places where they disagreed, such as a tie break the code used that the spec never stated. Each one became a requirement and a test. - Bugfix Spec. Session 5 ran in spec mode and wrote what was broken, what must be true after and what must not change. It then fixed HTML injection through descriptions and a bad save file wiping the register. The "must not change" list became tests.
- Steering. Seven steering files.
financial-correctness.mdloads for Python and tests and holds the integer cents rule, the posting order and the authorized day rule. Every session checked those rules in its closing review. - Hooks. A save hook runs the tests and the sample check whenever a Python or test file changes. It fired on its own 82 times through session 20, and every run is logged in
evidence/hook-runs.log. A layout hook fired 54 times. A Stop hook makes Kiro check its changes against the requirements before a session ends. - MCP. Session 6 used the Playwright MCP server to open the app at phone and desktop sizes while it fixed the layout and keyboard focus. The engine also runs as its own MCP server (
tools/payday_mcp.py). - Custom agents.
payday-revieweris a release reviewer that makes the steering binding and cannot commit or push.payday-auditoris read only: it can read files and call the engine's MCP tools, and its job is to check every number in the docs against the engine. - Powers. Session 18 packaged the engine as a Kiro power in powers/payday-replay. It bundles the payday MCP server with the money rules steering and installs with kiro-cli powers install ./powers/payday-replay.
- Property-based testing. Hypothesis generates 250 random months per test and checks the optimizer against an independent oracle: money is never created or lost, only flexible purchases move, a plan marked safe really is safe, and no safer plan with fewer changes exists.
Kiro wrote most of it. Counted from git at commit 93f010c, the Kiro session commits added 71 percent of the tests (3,825 of 5,397 lines) and 56 percent of the code (6,786 of 12,037 lines). Anyone can recount with python scripts/kiro_share.py 93f010c, and a test fails if the published numbers stop matching git. Everything made outside Kiro is listed in evidence/made-outside-kiro.md.
Challenges I ran into
- Hook trigger names. In session 1 Kiro told me two of my hook trigger names were wrong. I tested it with a probe hook for each candidate name. Kiro 3.8.1 fires
PostFileSave,PostFileCreateandStop, and never fires the names it suggested. My own task trigger name was wrong too; the real one isPostTaskExec. So Kiro was wrong about the fix and right that something was off. - The free plan limit. Kiro hit its free plan limit partway through session 6. I finished that commit outside Kiro, so its lines are counted apart and credited to no one.
- Money rules. Three questions could quietly give wrong answers: same day posting order, which purchases can move and where, and a paycheck pushed past the last day. The spec answers each one, and when the first test run failed three times, all three were wrong test expectations that the spec settled.
- A task hook that never fired.
PostTaskExecnever fired in any of my runs, and I did not find out why. The Stop hook still makes Kiro check its changes against the requirements before a session ends, and KIRO.md records the gap.
Accomplishments that I'm proud of
- REPLAY's answer is exact, not a guess. An independent oracle ranks every allowed schedule and must agree.
- It tells the truth when there is no fix: NO SAFE REPLAY, with the closest option still marked short.
- 452 tests (451 pass and 1 skips where the mtools floppy reader is not installed), run in GitHub Actions with the sample check, the Kiro share recount, the importer benchmark, the browser smoke test and the layout check on every push.
- The floppy image is a real FAT12 disk; a separate reader in the tests recovers every file byte for byte.
- On 120 labeled synthetic statements in six layouts, the bill importer found all 487 bills with 3 extra guesses.
- axe-core reports 0 violations on the screens checked, and there is no sideways scroll from 320 px wide up.
What I learned
Writing the money rules down before the code was slower than just typing, but every fix came with a test that failed first, and the "must not change" list stopped a fix from breaking the thing next to it. Steering was the cheapest Kiro surface and the one that most visibly changed its checks. And I learned to test what a tool tells me instead of trusting it: the hook probe showed which trigger names really fire, and without it the save hook would never have run.
What's next for Payday Replay
I want to support more than one alternative date per purchase, recurring entries and a two month view, while keeping the search exact and everything inside the browser. I also want to open the Crew app in a signed in Crew chat and try the payday coach end to end. The engine is four plain Python files with no outside dependencies, so other tools can call api.run(json_text) today.
Best Kiro Crew App write up
Crew repo: https://github.com/ALENZACODES/payday-replay-crew
Payday Replay Crew brings the same check into a Kiro Crew chat. The payday coach is built to answer with the engine's exact numbers, not a model's arithmetic: its skill runs the same engine files as the web app, and a hash check in CI confirms they match. Kiro wrote it spec first in its own repo. It has an app.json manifest, a payday coach agent, a replay skill whose command line tool runs Payday Replay's engine with a bundled sample, and a "Check a month" command. The tool prints the verdict, including NO SAFE REPLAY, and labels a dead end's move as the closest option that is still short. The coach pipes the month to the tool on standard input, so no file sits in a shared temp folder.
It has 58 tests. All 58 pass when it sits next to the main repo. Cloned on its own, 57 pass and 1 is skipped (the engine hash check, which needs the main repo). A verification bundle reruns five fixtures from a file and from standard input, checks the exact output and the engine hashes, and runs in CI.
I installed it with the standalone Crew command line in a clean home folder with no sign in: kirocrew doctor ran, the app installed and enabled with one agent and one skill registered, the installed skill printed the sample numbers, and its engine files have the same SHA-256 as the main repo's engine. I did not open a chat, because that needs a signed in account and credits, so the chat itself is not verified.
Testing instructions for judges
- Open https://alenza.dev/payday-replay/?v=19&sample=demo&delay=2 (or press PRESS START, then SAMPLE, then pick THE DEMO MONTH). The sample month is already loaded with the paycheck two days late (GHOST MODE +2): GHOST LOW −$130 vs ON-TIME LOW −$85, ending $470.00, SHORTFALL AHEAD.
- Press REPLAY. It says REPLAY CLEAR, the low becomes $65.00, the headphones move from day 3 to day 11 and the equipment from day 5 to day 12, and the month still ends at $470.00.
- Press REWIND, then press +3, then REPLAY. It says NO SAFE REPLAY and shows the closest option, -$30.00. Press EXTRA LIFE: groceries day 9 to day 12 keeps the month at $15.00.
- Press SAMPLE and pick TWO JOBS AND A BENEFIT, then HAUNT ALL: 36 combinations, 6 hold.
- Press 1986 DEMO, then EXPORT and SAVE TO FLOPPY.
- Run the tests:
git clone https://github.com/ALENZACODES/payday-replay.git && cd payday-replay && pip install -r requirements-dev.txt && python -m pytest -q(451 passed, 1 skipped without mtools), thenpython scripts/check_sample.py. - The judges page lists every claim with the test that proves it: https://alenza.dev/payday-replay/judges.html?v=19
No login is needed.
Made by John Khan in Toronto, Ontario.
Built With
- css3
- github
- html5
- hypothesis
- javascript
- kiro
- kiro-cli
- kiro-crew
- playwright
- pyodide
- pytest
- python
- svg
- web-audio-api
