What you'd like to see
When running cagent with --debug flag, cagent writes logs to ~/.cagent/cagent.debug.log by default.
It might be straightforward to implement log rotation for that.
Why you'd like to see it
Avoid long log file on disk, for long running session.
Workarounds?
Deleting the log file often