CODENS: Transforming Code Changes into Living, Accessible, and Queryable Documentation

Maintaining up-to-date code documentation is difficult in fast-moving repositories because design knowledge is scattered across source files and pull requests. We present CODENS , a system that turns pull requests into living, accessible, and queryable documentation for production codebases. CODENS incrementally builds a typed software knowledge graph from pull requests, enriches components through schema-driven semantic extraction, derives typed relations between them, and exposes the resulting knowledge through three retrieval modes, including agent-guided graph traversal for repository-level question answering. The system also preserves semantic change history across pull requests and integrates both answer-quality and operational evaluation metrics. We evaluate CODENS on a client Ruby on Rails project in production. Results show that CODENS produces highly relevant and well-grounded answers, while qualitative feedback highlights a remaining challenge in concise, documentation-oriented synthesis.

Paper

References (9)

062022. KG4Py:Atoolkitforgenerating Python knowledge graph and code semantic searchConnection Science
072023.ReAct:SynergizingReasoningandActinginLanguage ModelsThe Eleventh International Conference on Learning Representations
082025. SourceCodeSummarizationinthe Era of Large Language ModelsProceedings of the 47th IEEE/ACM International Conference on Software Engineering
092024. Only diff Is Not Enough: Generating Commit Messages Leveraging Reasoning and Action of Large Language ModelProceedings of the ACM on Software Engineering

Similar papers

© 2026 NYSGPT2525 LLC