agents-database lookup bloat

Goal: keep memory lookup cheap, precise, and low-noise.

Default rule

Search first. Hydrate context only for exact hits. Treat context as opt-in, not the default path.

What to change

Best pattern

1. search(query, filters)
2. pick top 1–3 exact hits
3. fetch exact memory by id
4. optionally expand related context

Anti-pattern

search(query) → huge context bundle → recursive related memories → more bloat

Practical caps

Net effect

Faster lookups, less token waste, better signal, and less accidental memory sprawl.