AI integration for kevin and cleanup

traces are almost done