Build AI Apps with Python: AI Agent That Remembers — JSON Memory Tools | Episode 19
1views
0033:57
T
Taught by Celeste AI - AI Coding Coach
View on YouTubeDescription
An agent that forgets everything after each question is useless for research. Give it memory — now it builds knowledge over time.
We build a research agent with persistent memory. Three tools — lookup_info, save_note, and recall_notes. The agent researches topics,
saves findings to a JSON file, and recalls them in later sessions without searching again. Session 3 proves it: the agent remembers what it
learned in Session 1.
Student code: https://github.com/GoCelesteAI/build-ai-apps-python/tree/main/episode19
Every keystroke is shown on screen with 3-second pauses so you can follow along at your own pace.
What You'll Learn:
• Persistent memory with JSON file storage
• save_note tool — store findings by topic
• recall_notes tool — retrieve saved knowledge
• lookup_info tool — mock research database
• Memory that survives across agent sessions
• System prompt guiding save/recall behavior
• Agent choosing when to save vs recall
• Three-session demo proving memory works
Key Takeaways:
1. Tools give agents persistent memory — save_note writes to JSON, recall_notes reads it back
2. Memory survives across sessions — Session 3 recalls Session 1 findings without re-searching
3. The agent decides what to remember — the system prompt guides save and recall behavior
This is Episode 19 of Build AI Apps with Python in Neovim — Phase 4 (AI Agents).
Taught by CelesteAI. Like & subscribe for more tutorials!
Tags
python agent memorypersistent memory aiai agent pythonclaude tool useanthropic sdk agentagent memory pythonsave recall notesai tutorial 2026build ai apps pythonneovim tutorialgenerative ai pythonscreenkeycode alongjson storageresearch agent