You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
write_note: add guard against accidental overwrites #625
write_note silently overwrites existing notes with the same title. This is dangerous for agents that accumulate content in files (daily notes, logs, journals). An agent calling write_note on a file that already exists loses all prior content.
Real-world example: an agent ran write_note on a daily memory file during reflection, destroying a full day of accumulated notes.
Proposal
Add an optional overwrite parameter (default: true for backwards compat):
overwrite: true — current behavior (create or replace)
overwrite: false — error if the note already exists
Alternatively, or additionally:
mode: "create" | "update" | "upsert" for more granular control
Return a warning/diff when overwriting a note that has changed since last read
Workaround
Agents should use edit_note with operation: "append" for any file that accumulates content. But the footgun remains for any agent that doesn't know this.
Context
The MCP write_note tool is the most natural first choice for agents — it's what they reach for. Making the destructive path require explicit opt-in would prevent data loss.
Activity
claude commentedon Feb 27, 2026
Claude encountered an error —— View job
I'll analyze this and get back to you.
docs: add write_note safety warnings to memory-notes and memory-refle…
feat: add overwrite guard to write_note tool (#625)