Why your AI agent keeps forgetting (and getting slower) @googlecloudtech
Why your AI agent keeps forgetting (and getting slower)  @googlecloudtech
Uploaded November 2026 | Updated November 2026, 1 day ago
Stuffing raw chat history into a prompt isn't a memory strategy. Here is how to give AI agents persistent memory across sessions while cutting classifier token usage by 86%. In this episode of AI Agent Clinic, Google Cloud AI engineer Laxmi Harikumar and developer Miles Libbey take Scribant, an open source voice to action agent built with the Agent Development Kit (ADK) in Gemini platform, and combine 3 memory and context harness patterns in 60 minutes: persistent memory with Memory Bank, a 40 word rolling window, and rolling summary compaction.

πŸ”— Repositories & resources:
* Scribant Agent Code (GitHub) β†’ https://g.dev/ai/scribant-agent
* Agent Development Kit (ADK) docs β†’ https://g.dev/ai/adk
* Memory Bank in Gemini platform (Vertex AI) docs β†’ https://g.dev/ai/memory-bank
* Google Antigravity β†’ https://goo.gle/3R5gUki

Scribant listens every 2 seconds and turns spoken thoughts into Google Calendar events, tasks, and Jira tickets. Sending the full transcript on every speech tick burned tokens, spiked latency, and still left the agent with no memory once the app closed. Here are the 3 harness patterns in action:
* *Pattern 1, Memory Bank (Vertex AI):* asynchronously extracts, deduplicates, and resolves conflicting user facts across sessions, injecting just 24 tokens of distilled memory instead of roughly 1,400 raw RAG tokens.
* *Pattern 2, 40 word rolling window:* rule based compaction that feeds the intent classifier only the latest 40 words instead of 10 lines of transcript, cutting classifier tokens by 86%.
* *Pattern 3, Rolling summary:* semantic pipeline compaction (introduced in Scribant's 3 stage architecture and benchmarked on our live dashboard) that condenses about 200 spoken words into 92 summary tokens

Along the way, we compare Flat Prompting, Naive RAG, Open Knowledge Graphs, and Memory Bank, and build a live token telemetry dashboard in Antigravity to prove every pattern works.

Chapters:
0:00 - Intro
1:05 - Meet Scribant, a Voice Agent Built with ADK
1:51 - Live Demo: Turning Spoken Rambles into Calendar Events and Tasks
2:44 - Architecture: The 3 Stage ADK Pipeline and Execution Gate
3:42 - Why Agents Forget and Slow Down: Stateless Amnesia and Context Bloat
4:21 - Agent Memory Options: Flat Prompting vs. Naive RAG vs. Knowledge Graphs
5:56 - Step 1: Wiring Up Memory Bank in ADK with Antigravity
7:04 - Step 2: Ingesting and Retrieving Persistent Facts Across Sessions
9:01 - Step 3: Implementing the 40 Word Rolling Window
10:55 - Step 4: Building the Live Token Telemetry Dashboard
11:37 - Putting Scribant to the Test Across Sessions
12:07 - Dashboard Results: Rolling Summary (92 Tokens) and 86% Fewer Classifier Tokens
13:36 - Inside Memory Bank: 24 Distilled Tokens Instead of 1,400
14:41 - Takeaways: Building Agents That Remember and Stay Fast

Watch more of the AI Agent Clinic β†’ youtube.com/playlist?list=PLAz2I7PJjFtA
πŸ”” Subscribe to Google Cloud Tech β†’ https://goo.gle/GoogleCloudTech

#GoogleCloud #ADK #AIAgents #ContextBloat #HarnessEngineering #GeminiPlatform #VertexAI #MemoryBank #ContextCompaction #SoftwareEngineering #GenerativeAI #OpenSource #Antigravity #GeminiEnterprise

*Tech stack featured:* Agent Development Kit (ADK), Memory Bank in Gemini platform (Vertex AI), Google Cloud Speech to Text, Gemini, Python

Speakers: Laxmi Harikumar, Miles Libbey
Products Mentioned: Antigravity, Gemini, Gemini platform, Google Cloud, Agent Development Kit, Vertex AI Memory Bank, Google Cloud Speech to Text
Why your AI agent keeps forgetting (and getting slower)Google Cloud Plugins for Claude CodeVibe coding in the pit lane 🏁Give your voice AI agent real abilities (tool calling)20 minutes to 2 minutes: How Home Depot automated incident responses with OpenTelemetrySkills vs MCP: How AI tools have evolvedA Developer’s Guide to Gemini 3.5 TranscribeScaling agentic coding practices across your teamHow to onboard to Looker using your favorite LLM and skillsJoin Developers Building with GeminiAI-powered observability & remediation with Google Gemini CLI and DynatraceHow to build and deploy powerful data apps with agents
Google Cloud Tech |

Why your AI agent keeps forgetting (and getting slower)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER