Hi Everyone, Are there any plans for a persistent ...
# questions
l
Hi Everyone, Are there any plans for a persistent memory mechanism in Agent-SDK?
w
Curious how you'd want this to work! Where would you want the memory to be stored? local disk? GitHub?
l
Yeah @late-queen-51746, I’d be interested in that too. And @dry-spoon-69117 is getting his TOM agent into the SDK which has persistent memory
l
@wooden-umbrella-84098 We're looking for a memory mechanism because of the context length limitations of the current LLM models. With OpenHands agent, we often reach 1-2M token count very easily. By the way we're experimenting with AgentSDK to build a Hardware Architecture Agent system, which would include two foundational Agents with highly specialised skills(One Architect and one researcher). With agent delegation we were able to work out this design to some extend. But context length and chat history compression seems to be the next bottleneck we've to solve. We've also prepared a tool for reading structured PDF documents(like datasheet) which works well with OpenHands agent, but add too much content to the chat history. So long story short, for now, the location where we store this persistent memory data is less of a concern. We see this memory file as a highly compressed knowledge base of the agent, more like a journal book of a researcher. It would be nice to have multiple backend support, but we prefer to use simple text file to store the data. @limited-student-10747 Interesting to hear someone is already working on that. @dry-spoon-69117 It would be great if we could discuss the persistent memory architectures you are planning for the TOM agent. We've already started conceptualization of a simple implementation, where persistent memory is treated as a simple file, updation is handled using a dedicated tool, and content of the persistent memory is always integrated into the LLMConvertible event stream as the 3rd last message.
d
Yeah, that’s nice! btw, here’s the tom-swe (https://www.arxiv.org/abs/2510.21903) paper detailing our methods
l
Just now, I went through the ToM Paper. It's really amazing and inspiring to see an agent architecture built ground up considering persistent memory as an integral part. Let me go through the code base in detail so that, we could also contribute to the vision. On a birds eye view, it seems, the core concepts are adaptable for the implementation we're aiming for. @dry-spoon-69117 Hope it's fine to DM you on slack regarding the TOM implementation.
🙌 1
By the way, I'm really surprised to see the "max_iterations" hard limit on the ToMAgent step function. Does the agent show infinite looping behaviour with ToM tool?
d
Yeah, I am happy to answer questions!
It’s more like a choice for our user study, cuz we don’t want people to wait too long to get the feedback from the ToM agent. (3 turns out to be a sweet spot during our internal trials)
l
That makes sense..