1 comments

  • jamiecode 6 hours ago ago

    Context loss is one of the three big memory mistakes I see in agent code.

    The others: writing state directly to disk (silent corruption when the process dies mid-write), and conflating conversation history with task state. An agent can lose a decision it made last week even if it remembers everything from the current session.

    The fix I landed on: three-tier memory. Context window for current turn, state file (with atomic writes) for persistence, external storage for anything you need to query. Each tier has a different job. Just wrote about this in detail if anyone wants the code: https://dev.to/clawgenesis/three-memory-mistakes-that-kill-a...

    Squidy looks like it tackles the first tier well. Is it handling the persistence side too?