Is there something like this for Cycles, if not, why?

I’ve been searching high and low for documentation on how to add a node to Cycles. I might missed something, but I’m pretty sure nothing is there. Actually I must say I am pretty amazed how sparse Blender code is documented both in wiki and inline. Basically most of the time you are better going through the code to find out how stuff works.