Bofoi knows more about whats going on than pretty much anyone else in the series. He's going to be a massive exposition dump soon. His current erratic behavior may be due to whatever he knows that everyone else doesn't. It seems like he's modified himself in to being a robot, or maybe he's already dead and this is an AI left to imitate his consciousness. Either way, its possible he's taking a very AI-like approach to "justice" where all means justify the ends.
I hope we're actually gonna get more chapters soon, because it feels like we're getting close to some real answers.