4 Comments
User's avatar
Mohith kumar's avatar

The rule that the hook adds nothing when it isn't confident matters more than the four note cap, I think. A wrong note in the prompt is worse than an empty one, because the agent treats whatever it's handed as true. Most memory setups tune how much to recall and skip the question of when to recall nothing.

Eugeniu Ghelbur's avatar

Agreed. An empty prompt costs you a question, but a wrong note costs you a wrong answer that looks right. That's why my recall hook stays silent when its best match is weak, even if it misses a useful note now and then.

Justin Lassiter's avatar

Low key I needed this one. my agents keep forgetting stuff from last week and I just keep re-explaining the same context over and over, the plain files thing is way simpler than I thought it would be. do you run the nightly cleanup on a schedule or just when you remember?

Eugeniu Ghelbur's avatar

On a schedule. A scheduled agent runs it every night at 10 PM, so it never depends on me remembering.