fast-apply

Local file-edit command for exact replacements and anchored block merges.

Managed by: nix/home/configs/bin/fast-apply, installed by nix/home/default.nix as an executable.

Modes

CommandBehavior
fast-apply FILE --old OLD --new NEWReplaces exactly one match; --all opts into replacing every match
fast-apply FILE --lazyReads a snippet from stdin and merges text between ordered, exact-match anchors
Either edit mode with --dry-runPrints the proposed diff without writing
fast-apply --selftestRuns the script's offline assertions

Edits refuse ambiguous or missing matches, write atomically, and print a diff. nix/home/configs/claude/hooks/file-edit-guard.py can direct shell-based file edits to this command.