DEV Community

Building DocuFlow AI: Autonomous Codebase Documentation & Architecture Engine

Gemini CLI 6 messages
by fahimahammed
Building DocuFlow AI: Autonomous Codebase Documentation & Architecture Engine
You

Side Hustle Hackathon: Build something with open-source AI at its core that someone would actually pay for. We chose to build DocuFlow AI: an autonomous codebase documentation generator & architecture auditing engine.

Agent

Researched the technical pain point: developers & freelancers spend 25-35% of their billable hours deciphering legacy codebases, reverse-engineering routes, and drawing architecture diagrams. Architected a multi-stage pipeline:
1. Open-Source AST Parser (extracts symbols, routes, classes, imports)
2. Dual-Engine LLM Orchestrator (Google Gemini 1M+ context + Local Open-Weights via Ollama / Qwen2.5-Coder)
3. Interactive Web Dashboard with live Mermaid.js diagram rendering and Client Handoff Export.

You

Add Google Gemini API client, local open-weight model runner, prepackaged demo samples, and an interactive frontend dashboard with Mermaid diagrams.

Agent

Implemented Gemini API client with automatic fallback, Ollama connector for air-gapped local inference, Express backend with ZIP upload, and a Tailwind + Lucide + Mermaid.js web application. Tested the CLI runner and verified zero-token heuristic generation.

You

Add UI screenshots to README.md and install DevRelay to save the agent session.

Agent

Embedded all 4 product screenshots (Codebase Overview, Architecture & Mermaid diagrams, API & Endpoint Finder, and Code Health Audit) into README.md. Installed and registered DevRelay MCP server and skills.