How agents find things in memory