Seems to indicate to me that he had full mental model of everything. Whole thing in his head at once. Clearly having it in mental model sentence by sentence.
AI would here be the word processor.
He still thought in terms of what the actual code would need to be, at that level of precision, and also wrote pseudo-code.