Filtering secrets on the write path: why agent memory deserves more suspicion at ingest than retrieval

Classic-Being-7960 · reddit · 2026-10-26

The author examines a browser-agent hazard: when a user types "remember my password: ..." into a task box wired straight to long-term memory, the initial design stored it — only for it to surface in model prompts weeks later.

The post covers the small amount of code written to prevent that, and argues the write path into agent memory deserves more suspicion than the read path — secrets should be filtered at ingest, not at retrieval. Implementation details and reasoning included.

Original post →

More from coding & agent

coding & agent channel →