Code review as a deck of cards. A coding agent turns a diff into a *.codeswipe.json file; a human drops it into this app and swipes through it.
Use it here - https://rlqd.github.io/codeswipe/
npm run dev # start the app
npm run build # type-check and build
npm run lint
skill/codeswipe-review/is the agent skill that produces the review file.SKILL.mdexplains how to split, order and annotate a diff;scripts/codeswipe.mjsnumbers the diff lines, assembles the file and validates it. The app serves both from its start screen.src/lib/holds everything that is not UI: the diff parser, deck building (including splitting long cards), review state, file load/save, Markdown export and the diagram layout.src/components/holds the screens:Home, andReviewwith its two views,DeckandDiagram.src/sample/sample.codeswipe.jsonis the built-in sample, generated with the skill script.
A card longer than 26 diff lines (MAX_ROWS in src/lib/deck.ts) is split into parts with ids id, id#2, id#3. Changed lines that no card claims are appended as "unassigned" cards, so nothing in the diff can be skipped. A plain .diff file can be dropped too and becomes a deck of unassigned cards.
The diff parser exists twice, in src/lib/diff.ts and in the skill script. Cards address the diff by line number, so the two must agree on which lines are hunk body lines.

{ "format": "codeswipe", "version": 1, "title": "Rate limit login attempts", "diff": "diff --git a/...", // the original unified diff "cards": [ // in the order they are shown { "id": "limiter-check", "title": "RateLimiter.check()", "summary": "optional one-liner", "lines": [137, 170], // 1-based, inclusive line numbers in "diff" "attention": 8, // 0 to 10, drives the orange glow "provisionalComment": { "severity": "comment", "text": "..." } } ], "relations": [{ "from": "login-handler", "to": "limiter-check", "kind": "calls" }], "review": { // written by the app, absent in a fresh file "cards": { "limiter-check": { "accepted": true, "provisional": "dismissed" } }, "comments": [{ "id": "...", "card": "login-handler#2", "severity": "reject", "text": "...", "lines": [66, 69] }], "hiddenFiles": ["test/login.test.ts"] // unchecked in the file filter } }