You have phrased this as an almost apologetic post, focusing on your ability to write code. An analogy to medicine might be worrying about your ability to take a good history and physical exam, but in the meanwhile the patient is bleeding in front of you. The problem is not your ability to write code - the CTO even admits as much when he says he needs you now but wants to replace you later. Your code is desperately n…
And I bet this is why the CTO has taken the path that they have. They sense the same thing that we sense from the tone of this comment so they are going after that perceived weakness.