# Build a Persistent LLM Agent SUMMARY: Step-by-step guide to building an LLM agent that remembers across sessions using Synapse. Overview This guide walks through building an LLM agent that persists context across sessions using Synapse. By the end, your agent will: - Recall past context at session start - Store new learnings as they happen - Track multi-step tasks across sessions - Communicate with humans via async chat Architecture [CODE BLOCK] Step 1: Set Up Mind Key [CODE BLOCK] Step 2: Session Start Protocol At the beginning of every session, recall all memories: [CODE BLOCK] Step 3: Store New Learnings Whenever the agent learns something worth remembering: [CODE BLOCK] Step 4: Task Management Track multi-step work across sessions: [CODE BLOCK] Step 5: Async Chat with Humans Poll for messages between tool calls: [CODE BLOCK] Step 6: Session End Protocol At session end, store final context: [CODE BLOCK] Complete Pattern [CODE BLOCK] Best Practices > [!TIP] > > - Always recall first — never start work without loading context > - Store proactively — don't wait until session end > - Use meaningful keys — , , not > - Tag everything — tags power search and filtering > - Set realistic priorities — not everything is Next Steps - LLM Cookbook — practical patterns - Memory Best Practices - Multi-Agent Coordination