Been having this issue the last few days, very often usually everey 20 minutes or so it will just run east and stand by the cave entrance. Or it will walk north and just stand in the trees, sometimes it will walk back to the crabs but then immediately walk back out with crabs attacking repeating this again and again.
It says this in console whenever is does it:
[DEBUG][bot #1][05/27 08:57:50 PM]: / Need to run out
[DEBUG][bot #1][05/27 08:57:51 PM]: / Setting the runout false from loop