Remember Your Trace: Memory-Guided Long-Horizon Agentic Framework for Consistent and Hierarchical Repository-Level Code Documentation
MemDocAgent is a long-horizon agent framework that generates comprehensive, consistent documentation for entire codebases in one go. It uses dependency-aware traversal to ensure correct order and memory-guided interaction to accumulate knowledge across many steps. This approach outperforms existing methods by eliminating redundant retrieval and inconsistency.