Share E-Book

Agent Memory - Building Stateful AI Agents That Remember, Adapt, and Work Across Time (Benjamin Labaschin)(Z-Library)

Author Benjamin Labaschin

AI
Language English

AI agents have quickly become the dominant way large language models interact with users, systems, and workflows, but with their limited context windows users are required to repeat lengthy prompts every session. And as agents move from prototypes into real workflows, the lack of persistent memory becomes one of the most expensive problems teams face. In Agent Memory, Ben Labaschin, head of AI and engineering at Workhelix, shows you what it actually takes to build agents that remember: what they should store, how to retrieve it reliably, and how to design the infrastructure that keeps memory accurate and useful over time. The result is a blueprint for memory systems that can be monitored, governed, repaired, and trusted—not just in demos, but at scale.

Format EPUB
Size 2.9 MB
101
Views
0
Downloads
0.00
Total Donations

AI Guide

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

Full assistant
AI guide
# Agent Memory: Building Stateful AI Agents That Remember, Adapt, and Work Across Time ## 【One-Line Pitch】 A practical blueprint for engineering persistent memory into AI agents—covering what to store, how to retrieve it reliably, and how to build infrastructure that keeps memory accurate, governable, and trustworthy at production scale. Essential reading for AI engineers, platform teams, and technical leaders building agentic systems beyond demos. ## 【Book Arc】 - **Opening (~0%–6%)**: Frames the core problem—LLMs have limited context windows, forcing users to repeat prompts every session. Introduces agent memory as the missing layer that separates "generically helpful" agents from ones that are "specifically helpful" to you, your team, and your organization. - **Early (~6%–25%)**: Contrasts two scenarios: an agent working from a blank slate (which produces plausible but wrong fixes) versus one wired into organizational memory (which surfaces RCAs, incident reports, and standing rules to deliver the correct solution). Establishes that memory is intentional, curated, and noticed only when missing. - **Early (~25%–34%)**: Clarifies the distinction between the underlying model and the agent harness around it—using the car/engine analogy. Explains post-training and reward functions to show what models are optimized for, then introduces a LangGraph example of a minimal agent harness with memory as a core component. - **Middle (~38%–47%)**: Deepens the context-versus-memory distinction. Not all context should become memory; not all memory belongs in current context. Introduces the psychology-derived taxonomy: semantic memory (facts), episodic memory (history/events), and procedural memory (preferences, routines, workflows). - **Middle (~47%–53%)**: Explores how memory types map to system design, including the subtle point that files like AGENTS.md or CLAUDE.md are context systems, not memory systems, because they're injected at a point in time rather than retrieved as needed. Sets up continuity and adaptivity as core properties of effective memory systems. ## 【Key Takeaways】 - **Memory is the harness, not the model** (Early): The same LLM produces dramatically different results depending on whether it has access to organizational memory. The model doesn't "learn"—the harness connects it to stored knowledge. This reframing is foundational for designing agent systems. - **Memory is intentional, not exhaustive** (Early): Effective memory systems don't upload everything. They rely on established methodologies for qualifying what's worth keeping—like the incident databases and RCAs in the book's running example. This intentionality is what makes memory trustworthy. - **Context and memory are distinct systems** (Middle): Not all context should become memory (not everything is worth investing in the future), and not all memory should load into context (not everything stored is relevant today). This bidirectional filtering is a core design principle. - **Three memory types map to three architectures** (Middle): Semantic memory stores stable facts ("we use AWS"), episodic memory stores history ("prior incidents, past runs"), and procedural memory stores preferences and workflows ("always check memory before patching vendors"). Distinguishing them enables cleaner system design. - **Storage mechanism matters, not just content** (Middle): AGENTS.md and CLAUDE.md files are context systems, not memory systems, because they're injected at a point in time rather than retrieved as needed. Memory is defined by how information is stored and accessed, not just what's in it. - **Memory infrastructure enables measurement** (Early): Without A/B testing memory on/off, executives can't tell whether agents are improving the organization. Production-grade memory infrastructure makes such experiments possible—and necessary. - **Memory turns generic agents into specific ones** (Early): The difference between "generically helpful" and "specifically helpful to you, your team, and your organization" is exactly the memory layer. This is the value proposition for investing in memory infrastructure. ## 【Reading Tips】 - **Deep-read the opening scenario (~6%–19%)**: The blank-slate versus memory-enriched agent comparison is the book's anchor example. Understanding it fully will make later chapters on memory types and retrieval much easier to follow. - **Skim the LangGraph code (~38%)**: The harness example is illustrative, not a tutorial. Focus on the architecture—memory node, model node, tool node, and the loop between them—rather than the SDK specifics. - **Pay close attention to the memory taxonomy (~44%–47%)**: Semantic, episodic, and procedural memory is the conceptual backbone of the book. If you internalize these three categories, the rest of the design guidance will click into place. - **Watch for the "category mistake" discussion (~47%)**: The distinction between context systems and memory systems (AGENTS.md vs. actual memory databases) is subtle but critical for avoiding common implementation errors. - **Note what's not covered**: The table of contents lists chapters on choosing what becomes memory, how memory gets written, where it lives, retrieval, maintenance, state/resumability, shared memory, and risk/recovery—but only the first two chapters are available in this early release. ## 【Coverage Limits】 This guide covers the available early-release content (Chapters 1–2, roughly the first 53% of the book). The remaining chapters on memory writing, storage, retrieval, maintenance, shared memory, and risk/recovery are listed in the table of contents but not yet available in the source material. ##

Passage locations

Excerpt 1
al sales department: 800-998-9938 or corporate@oreilly.com . Acquisitions Editor: Nicole Butterfield Development Editor: Rita Fernando Production Editor: Bet...
View in text
Excerpt 2
oint is billable on receipt, not on response acknowledgment. Source: vendor-notes://important_vendor/purchase_flow - RCA-184: Vendor X timeouts are ambiguous...
View in text
Excerpt 3
assenger forward, and breaking down at the side of the road. Here’s how these models are designed. First, they are pretrained to predict the next token acros...
View in text
Excerpt 4
able facts and definitions that make up what an agent knows. What about the example of where the company engineers stored past incidents in a memory database...
View in text

Recommended for You

Loading recommended books...
Failed to load, please try again later

Tip the Site

Scan the WeChat Pay or Alipay code to tip. No login required.

WeChat Pay
Alipay
Back to List