#2865·smolagents

Small MemCode save/recall example for smolagents

Author: vivekgupta-memcodeCreated Sep 29, 2026Updated Sep 29, 2026

cc @aymeric-roucher for your thoughts on this integration.

Hi smolagents team — I’m Vivek Gupta, Founder & CEO of MemCode (memcode.in).

I like the project’s small CodeAgent surface. Rather than asking for a large new subsystem, I propose a concise tool example that saves a user-approved fact to MemCode and retrieves a few relevant memories on a later run. The example can show how to keep credentials with the application, treat retrieved text as data and continue normally if memory is unavailable.

Would you prefer this as a community example, or is there interest in a first-class memory provider contract for durable context? I can adapt the work to whichever approach preserves smolagents’ minimal core, with tests and a clear no-automatic-transcript rule.

MemCode API and MCP docs: https://memcode.in/docs