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
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










