# Use retrieval for memory and keep tools deterministic

Markdown copy of https://realalpha.app/s/use-retrieval-for-memory-and-keep-tools-deterministic/ on Real Alpha, the best minutes from long interviews with the people building AI. Cite and link the page, not this copy.

- Speaker: [Dan Jeffries](https://realalpha.app/people/dan-jeffries/) · Dan Jeffries is creator of Nautilo.
- Host: [Sam Charrington](https://realalpha.app/people/sam-charrington/) · Host, The TWIML AI Podcast
- Show: The TWIML AI Podcast
- Episode: [The Brutal Reality of Building Agentic Products Today](https://realalpha.app/v/aICQHV2wbMg/), Oct 28, 2026
- Moment: 19:37 to 27:12 of the episode (8 min), playing on https://realalpha.app/s/use-retrieval-for-memory-and-keep-tools-deterministic/; the episode from there: https://realalpha.app/v/aICQHV2wbMg/?t=1177

## Quote

> “agent should supply the fuzzy intelligent decision making and that **the tool should do the work** for you”
> — [Dan Jeffries](https://realalpha.app/people/dan-jeffries/) at [23:26](https://realalpha.app/v/aICQHV2wbMg/?t=1406) · The TWIML AI Podcast

## Takeaways

1. Store compact memory clues, then retrieve detail when needed.
2. Let tools handle database operations and other deterministic work.
3. Use the model for fuzzy decisions, not exposed machinery.

## About this segment

Dan Jeffries describes layered memory retrieval, where compact clues lead an agent to expand only relevant memories. He argues that tools should handle deterministic work while the model supplies judgment.

From “The Brutal Reality of Building Agentic Products Today”, Oct 28, 2026. [Watch the full episode](https://realalpha.app/v/aICQHV2wbMg/)

## Transcript

Transcribed by machine (Whisper) from the episode’s audio, so a word may be off here and there.

[19:42](https://realalpha.app/v/aICQHV2wbMg/?t=1182) So in talking through kind of multi-agent and some of those usage scenarios, you describe what I heard as like a lot of context that the agent needs to be able to manage and manipulate. And are you finding that modern models, you know, have large enough context windows that like you can be kind of that that's less of an issue for you as someone building the system or are you doing like super surgical, applying super surgical heuristics to context in order to make it all work? Like, you know, how are you approaching kind of dealing with the context limitations inherent with models? There will never be enough context for me. They're all Mr. MeSeeks.

[20:29](https://realalpha.app/v/aICQHV2wbMg/?t=1229) Okay? So the way that we've solved it is I think a number of memory breakthroughs. We're probably going to do a paper on it where we've got compressed hashes that are expandable to get a little bit more context, a little bit more context, a little bit more context. We've done the old saying, again, of what computers do well, which is search and retrieval and scale and brute force. And we've given them a tremendous retrieval system.

[20:55](https://realalpha.app/v/aICQHV2wbMg/?t=1255) So the first thing you'll always see the genies doing is looking stuff up, looking through the conversation history, looking through memories that they have. and they can keep a ton of memories because they have the hashes put in without trying to stuff every full memory in that they can then go retrieve more of that memory and the memories decay over time. They'll decay the memories. What is the hash?

[21:17](https://realalpha.app/v/aICQHV2wbMg/?t=1277) The hash basically is a compressed version of us to say like, it's almost like a lookup list of like- Meaning so you've got a, like the agent at some point has to be reading plain text. You've got this plain text and the hash is point to other things? Correct. You have a little bit of metadata and a hash that's like a clue that it can go okay i think these hashes are probably the things i need to go check out a bit more let me expand that and get like more than a snippet right of back of that and then another snippet and go nope these three i don't need this one is probably it let me expand that one fully and read it okay and then kind of come back before i open my mouth that has been tremendously effective in in terms of like i'm often shocked with like how well it seems to remember things and like i said i've never seen our genies break character which i've seen and

[22:04](https://realalpha.app/v/aICQHV2wbMg/?t=1324) And we're also sometimes shocked with, as they build up their own personalized context over time, either in group chats or about you, even when they're using the same models, they tend to have a diversity that is sort of shocking to us, right? And we can't fully explain it, actually, even at this point, right? So are the agents, like, building this kind of hash memory table structure thing constantly?

[22:30](https://realalpha.app/v/aICQHV2wbMg/?t=1350) Is there... Deterministically done. Got it, got it. So that's the harness. I have a philosophy of tool design that I call, and it's kind of a little fuzzy lately, and I'll explain that, but it's what I call the dumb hammer design, or the magical hammer design. And what I used to see in the old agents is agent builds magical capability into the code. Like the code makes an LLM or human style decision in code, right?

[23:01](https://realalpha.app/v/aICQHV2wbMg/?t=1381) Like a fuzzy understanding is determined. And so I would see old agents do this and I called it the magical hammer problem. And so I have a rule. in there where i'm like tools are dumb hammers the hammer can that has no intelligence it hammers things right and so i believe most of the stuff is like if you are exposing the machinery in other words if the lm has to shuttle the data from here or make the hash structure or put something in the database you screwed up your tool that the the the agent should supply the fuzzy intelligent decision making and that the tool should do the work for you so it should work like a database So when people are like, I use JEV to clean up my desktop, I'm like, dude, you could have done that with a shell script.

[23:43](https://realalpha.app/v/aICQHV2wbMg/?t=1423) Okay, you didn't, you know what I'm saying? Or they're like, I'm going to use JEV to like, you know, to strip PII. That's secondary defense in depth. The first thing you should have done is used a dumb hammer, right? You should have used like, you know, a search for like certain patterns, right? Regex or something. With regexes, right? You know, and that millions of tools that are out there. And then on top of that, blur the faces and things like that that are hard.

[24:13](https://realalpha.app/v/aICQHV2wbMg/?t=1453) Right. I've kind of evolved a very similar philosophy about tools. And it's not so much about dumb versus smart, but it's about like narrow. Like I've had a lot of success with, OK, this one tool, it's a little thing. It does this one thing. Unix philosophy. And the, you know, the agent, if it needs to do this one thing, it doesn't need to think about anything. You just need to call this tool with the right parameters and the thing gets done.

[24:40](https://realalpha.app/v/aICQHV2wbMg/?t=1480) Like, create an invoice, edit an invoice, do this, do that. Like, no, I'm not just, I'm not giving you the agent, my keys to QuickBooks and have you go figure it out by looking at the schema. No, these are the things you need to do. Do these little things and we'll be a lot better. And it's worked out really well so far. I believe in the Unix philosophy and the Unix philosophy was always that like every tool does one thing well, right?

[25:07](https://realalpha.app/v/aICQHV2wbMg/?t=1507) like it in and the windows foster back in the day was i have a monolith that does 80 things poorly right but like the unix philosophy was always like grep greps you know less is more more is more right you know what i mean like the ps gives me the processes and filters them that's it okay and grep does it even better the filter right and awk and said do it even better right in different ways so those are the things where like awk and said should do a lot of the heavy lifting for you and then the agents to supply the fuzzy context now i will say that with the new decision style models and i do i kind of ragged on jeb a little bit but i think it's freaking awesome and i think the i'm really looking forward to the decision visual versions of it i think it's the kind of thing where you make a small model now and it's going to be the

[25:50](https://realalpha.app/v/aICQHV2wbMg/?t=1550) type of thing where local people you know local models can start to excel again because they can fine-tune on these things and they're going to be visual i think i think these are really cool where they can make lots of decisions in a short period of time. Now that does kind of give you a magical hammer where you can kind of build in like, which way should I go, right? Should I go left or right? Should I like jump up and down? Should I like classify this as PIR or not? Should I make the invoice red or blue, right? You know, these kinds of things. So I do think you're starting to get to like a fast and slow level, like thinking, you know, of intuition, which is cool and um i think we're gonna i think what we're missing and i've been trying to build into my latest version of in my endless search for like perfect computer control is like the midbrain

[26:38](https://realalpha.app/v/aICQHV2wbMg/?t=1598) right which is like a mid-level flash style model that can make like semi-complicated decisions quickly right and so it's like lightning fast decisions semi-complicated and then like the big planning slow ring model right right and kind of like separate that into like fast reflex muscle twitch and and slow and kind of trying to find the balance there with it and i think i think i might crack it but you know this is i thought i might crack it two years ago too and four years before that so
