docs: add AI agent memory tutorial#7
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f6e693152b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| @@ -1,11 +1,11 @@ | |||
| # Give Your AI Agents a Database (Airtable MCP) | |||
| # AI Agent Memory Explained Simply | |||
There was a problem hiding this comment.
Restore the Airtable MCP tutorial files
This README was renamed from tutorials/mcp-airtable/README.md, and the same commit deletes the remaining tutorials/mcp-airtable lesson/resource files; I checked the target tree and it has no tutorials/mcp-airtable entries at all. Since this change is framed as adding the AI agent memory tutorial, existing Airtable MCP tutorial links and content disappear unintentionally; please add the new tutorial as a copy/scaffold instead of moving the old tutorial out of the repo.
Useful? React with 👍 / 👎.
Summary
tutorials/ai-agent-memory.LESSON.mdthat explains agent memory as saved context loaded at the right time.code/agent.py:Agentshape:01_no_memory.pyfor current conversation only.02_static_memory.pyforAGENTS.mdandMEMORY.mdstartup memory.03_session_search.pyfor SQLite-backed session search.04_mem0_memory.pyfor external managed memory with Mem0 Cloud..env.example, reset helper, and focused unit tests.Why
This brings back the AI agent memory tutorial as a clean
youtube-tutorialslesson instead of a loose archived draft.The goal is to give developers a simple mental model and runnable examples they can work through on camera:
The
Agentclass keeps the demo easy to explain: the agent owns the OpenAI call and short-term conversation history, while memory implementations ownstartup(),search(), andsave().The lesson keeps the focus on practical memory choices: static files, current conversation history, session search, app state, and managed memory. It avoids starting with vector databases or framework terminology before the core loop is clear.
Test plan
python3 -m unittest discover -s testspython3 -m compileall .02_static_memory.py03_session_search.pygit diff --cached --checkgit diff --check -- tutorials/ai-agent-memoryjust checkblocked by unrelated untrackedtutorials/herdr-agent-workflow/presentation.htmlin the local working tree.Risks
Related issue
None.