// Generated from the feature catalog
AI Diff Proposals with Instant Rollback
Safe Surgery on System Files · Shipped · workstation
SEARCH/REPLACE proposals rendered as visual diffs in Monaco, with mandatory pre-save snapshots and one-click restore.
Halbert generates structured SEARCH/REPLACE edit blocks for system configuration files. The Monaco editor renders a visual side-by-side diff so you see exactly what will change. Applying a change automatically creates a timestamped .bak backup. If anything goes wrong, the editor route provides a one-click /backup/restore endpoint.
The WriteConfig tool generates unified diffs for proposed changes, saves a .bak copy before modification, and supports a do_rollback flag to immediately restore from backup. The editor API route adds full backup listing and restore capabilities on top.
Limits and invariants
Section titled “Limits and invariants”Atomic file writing: failures abort cleanly without leaving partial or corrupted configuration on disk.
Where this lives
Section titled “Where this lives”halbert_core/halbert_core/tools/write_config.pyhalbert_core/halbert_core/dashboard/routes/editor.py