> since there is quite a bit of private discussions going on in the comments about novel ideas for the chess engine
I'd suggest you start a local Wiki for that, and leave the comments in the code documenting the facts rather than the ideas.

Otherwise, as you say, it's going to get messy (and error prone with it).