Make safe, targeted code edits with backup and verification. Use when the user needs to modify code files with safety checks, backups, and diff verification. Triggers on "edit this code", "fix this file", "change this function", "update the code", or any code modification request that requires safety discipline.
Make targeted code changes with safety rails: backup first, edit carefully, verify after.
qwen2.5-coder:7b — purpose-built for code editing, syntax awareness, and technical precision.
Before any edit, create a backup:
cp <file> <file>.backup-YYYYMMDD-HHMMSS
Store backups in the same directory as the original file.
After editing:
After every edit, produce:
FILE: <path>
CHANGE: <what was modified>
BACKUP: <backup file path>
DIFF: <summary of changes>
TESTS: <pass/fail/none>
If an edit causes problems:
cp <file>.backup-YYYYMMDD-HHMMSS <file>
Always confirm the rollback restored the original state.