Show HN: I built a CLI tool that uses AI to document an entire Python codebase

Hacker News - AI
Jul 7, 2025 19:10
Naniy
1 views
hackernewsaidiscussion

Summary

A developer has created Docu-AI Pro, a command-line tool that uses AI-inspired techniques to automatically generate docstrings for undocumented Python codebases, significantly speeding up documentation and onboarding processes. The tool analyzes code structure and function names to produce clear documentation and aims to cover most of a codebase in minutes. This project highlights the growing trend of leveraging AI to automate and enhance software development workflows, with plans for future integration of large language models (LLMs) for even smarter documentation.

Show HN: I built a CLI tool that uses AI to document an entire Python codebase For years, I've dealt with the pain of undocumented Python projects. It makes onboarding new devs a nightmare and brings refactoring to a crawl. Existing tools can lint for missing docstrings, but they don't actually write them for you. I wanted a tool that could just fix the problem. So, I built Docu-AI Pro. It's a simple Python CLI tool that recursively scans a directory, finds every function without a docstring, and uses an AST-based analysis (a smart simulation of an AI for now) to generate a clear, helpful one. It correctly identifies parameters, return statements, and even infers the function's purpose from its name and structure. It's idempotent, so you can run it safely on a project anytime. The goal is to get a codebase from 0% to 80% documented in about 5 minutes. I've packaged it as a lifetime deal for $49. I'm hoping to build it into a more powerful tool with true LLM integration in the future, a