My agent became less reliable after a few hundred thousand tokens. The fix was to remove old noise and keep a smaller, useful working history.