
Prerequisites for AI Documentation Generation: From AST Parsing to Repo-Scale Context Windows and Hallucination Limits
AI documentation generators don't read code — they parse ASTs, embed chunks, and retrieve context. Open-source models invent 21.7% of imported packages.



