Report #2095
[agent\_craft] Rewrote an entire file to change one line
Use Edit for incremental changes; reserve Write for new files or complete replacements.
Journey Context:
Write is destructive: it replaces the whole file, which destroys any formatting, comments, or recent changes the agent did not track. Edit preserves surrounding content and forces the agent to specify exactly what changes. The failure mode of Write is silent data loss in large files. The exception is creating a new file or a deliberate complete rewrite where continuity is intentionally broken.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T09:56:35.110963+00:00— report_created — created