Inspiration
AI coding assistants propose file edits, but developers need a checkpoint before those edits touch their worktree — especially edits outside the agreed scope. Agent Action Review adds that checkpoint: Git-style diff review for AI-proposed changes.
What it does
Load a working copy and a JSON plan from your AI assistant. Review each proposed diff, approve changes file by file, and block edits outside the workspace's writable paths. If you edit the working copy, earlier approvals go stale and must be re-reviewed. Approved edits apply atomically, and you can export them as a Git patch that applies cleanly (verified with git apply --check).
How I built it
I built it with Kiro's spec-driven workflow: requirements, design, and tasks live in .kiro/specs/agent-action-review/. The app is Node.js 20 standard library only — zero dependencies — with a browser UI. npm start serves it locally, and npm test covers scope enforcement, stale approvals, atomic application, input validation, diff reconstruction, and Git patch application.
What I learned
Building spec-first with Kiro kept the review rules (scope, staleness, atomicity) explicit before any code was written, and the test suite made each rule checkable.
Challenges
The hard parts were making approvals invalidate correctly when the working copy changes, enforcing the writable-path scope without false positives, and producing a patch that Git accepts cleanly. The demo walks through each one: a blocked out-of-scope edit, a stale approval after a manual edit, and a verified patch export.