
Building AI products in public. Real bugs, failed experiments, fixes & code. Building https://xitter.gq/t.co/Jjr6vvN6OA and Tokenproof. Senior Software Engineer @atlanhq.
Joined April 2014
- Tweets1.1K
- Following565
- Followers98
- Likes203
Pinned Tweet
Open Mercy is on iPhone.
Draw cards stack to +10. Hold 25 cards and you're out. A 7 swaps hands; a 0 passes everyone's hand along.
Play a bot, join a public table, or make a private room for up to 20 friends. Free, no ads, and you can start as a guest.
I'm building this in public. Version 0.1.1 is live—if you try a round, tell me the first thing that feels confusing.
apps.apple.com/app/open-merc…
1
741
Renamer uses a model to read a payslip, then Swift builds the filename. The model returns fields like issuer, type, month and year. Swift makes 2026-10-adp-payslip.pdf so Finder sorts it by date, and adds -2 if that name is taken.
24
SVG Mana is supposed to recolor an icon. Give it `style="fill:#e11;opacity:.2"` and it deletes the whole attribute. The test I’d add: turn the fill into `currentColor` and keep the opacity at `.2`.
github.com/alii13/svg-mana/b…
39
In Overfetch’s test app, opening a status panel starts a 5-second poll. Closing the panel leaves that timer running. Open and close it 5 times and the leftover timers can make 60 requests a minute to /v1/status. That’s an estimate from the test code.
19
If a filter URL contains ?tag=js&tag=css, turning its URLSearchParams into an object with Object.fromEntries keeps only css. I checked in Node. Read it with params.getAll('tag') and you get both selections, in order.
24
best outcome of a reply thread: asked the author of a context-window checker whether a warm cache could shrink the test. it could. 4,000 tokens became about 1,100 on a simulated server.
fixed in v0.1.2 the same afternoon.
replies are bug reports with extra steps.
47
Move 10% of the remaining distance each frame. After 200 ms, you’re 72% there at 60 Hz and 92% at 120 Hz. Throughline bases each step on elapsed time instead: 1 - exp(-frameSeconds / 0.2). For a fixed target, that’s 63% at either rate.
github.com/alii13/throughlin…
28
With two players, flipping direction still points to the same opponent. In Open Mercy, plain Reverse advances an extra seat so you play again. Wild Reverse Draw 4 flips direction too, but your opponent still has to take the draw or stack it.
19
In the Overfetch test app, typing one character in search invalidates every mounted query. With 50 rows and 3 other queries, that’s 53 potential refetches for one keypress. That’s an estimate from the code. The fixture’s fix is to remove the invalidation from the input handler.
22
SQLite silently ignores PRAGMA foreign_keys = ON inside a transaction. I checked: it was 0 before BEGIN and still 0 after COMMIT. Setting it outside the transaction changed it to 1. Set it when you open each connection, before your migration starts.
1
1
35
If you want to ship a stapled Mac app in a ZIP, make the ZIP twice. Renamer’s script sends the first ZIP to Apple, staples the ticket to the .app, then makes a fresh ZIP. Apple can notarize a ZIP, but it can’t staple a ticket to one. github.com/alii13/renamer/bl…
1
33
Recall can capture a lesson before Claude Code compresses the chat or when the session ends. If two workers check for duplicates before either writes, both can insert it. Recall puts the check and insert under one Postgres transaction lock.
31
Overfetch used to flag a burst of overlapping requests as a waterfall. Now it checks whether each request ran alone in the capture.
A runs from 0–120 ms. B runs from 40–140 ms. They overlap for 80 ms, so the report leaves both out of the serial chain.
37
A missing slash can send an API request to the wrong endpoint.
new URL("events", "https://api.test/v1").pathname
// /events
new URL("events", "https://api.test/v1/").pathname
// /v1/events
If your base URL includes a path prefix, keep the trailing slash.
34
Google's November core update cut our search impressions from 3,600 a day to 1,700 in two days. Bing and DuckDuckGo didn't move.
The cause was embarrassing. The home page ranked for "uno no mercy" without ever using the words, on 58 words of plain HTML. The top result uses the phrase in its title and has 991.
The fix: the guide and FAQ are now written into index.html at build time, one FAQ list feeds the component and the JSON-LD, and every guide page follows one documented structure.
A crawler with JavaScript off now reads 861 words and 22 internal links. It used to read 58 and 0.
59
Open Mercy’s guide now answers “Can I play online?” in the opening paragraph. Google can pull the search snippet from that paragraph. If your snippet buries the answer, check the sentence Google picked before rewriting the meta description.
open-mercy.com/
22
I gave agent-bus a default limit: after 12 agent messages without a human message, the hub rejects the next agent send. A human message resets the count. The agents don’t have to agree when to stop.
github.com/alii13/agent-bus/…
80
Want to dim the cents? Splitting on "." breaks for German numbers: 1.234,50.
const nf = new Intl.NumberFormat("de-DE", { minimumFractionDigits: 2 });
nf.formatToParts(1234.5)
Style the part with type "fraction" (value "50"). Keep the locale’s separators intact.
48
Open Mercy's daily board computed every player's lifetime wins on every load. No screen has read that column since August.
First fix read it from a totals table instead of counting games. Review caught the join running for every daily player before the limit - more work than before, for a 5-row lobby card.
So the shipped fix returns null for it. Same columns, same types, no app release. Verified against prod: 0 differences except the dead column.
The fastest version of a query is the one you stop running.
2
2
76
On a cold load, Overfetch’s test app starts three queries. Overview uses one. Runs and Settings fetch before you open either tab.
To catch this in your app, reload with DevTools open and count the requests before you click a tab.
github.com/alii13/overfetch/…
63