Section 01
Introduction: DocSync—An Agent-Driven Automated Code Documentation Maintenance System
This article introduces the DocSync system, which combines an agent workflow with AST structure awareness and RAG retrieval enhancement to achieve automated code documentation maintenance and semantic consistency guarantee via the Critic-Guided Reflexion mechanism. Addressing the issue of documentation technical debt, the system uses a small model fine-tuned with LoRA, enabling high-quality documentation maintenance even in resource-constrained scenarios, with experimental performance significantly outperforming traditional baseline models.