Original Reddit post

[Built with Claude Code] Coding assistants get one keystroke away from DROP TABLE, rm -rf node_modules (wrong dir), or TRUNCATE more often than you’d hope. One misfire on prod ruins the day. Approval is a tiny macOS app that hooks into Claude Code’s PreToolUse. Safe commands fly through (~20 ms). Dangerous patterns trigger a notification → window → Approve or Cancel. Cancel = exit 2, Claude sees the rejection. Two modes: Validate & notify (default) or Pass-through (skip all checks for sessions you trust — a red banner reminds you it’s on). Pure Swift + SwiftUI + AppKit. Unix-domain socket IPC. 49 unit tests, no external deps. Built end-to-end with Claude Code. ▎Want it on Linux/Windows or in a different stack? The whole thing is small enough that you can ask Claude Code to port it to your OS language of choice — the design (PreToolUse hook + local IPC + GUI) is the part that matters, the rest is plumbing. Github: https://github.com/alexmasyukov/approval submitted by /u/alexey-masyukov

Originally posted by u/alexey-masyukov on r/ClaudeCode