RepoGraph: Sub-0.1s Codebase Architecture Explorer Powered by Google Gemma
Описание и применение
RepoGraph автоматически анализирует Python‑код за менее чем 0,1 с, используя открытый LLM Gemma 2, и генерирует интерактивную схему архитектуры с рецептами рефакторинга циклических зависимостей.
Задача
Developers must manually analyze unfamiliar legacy Python repositories, spending hours navigating directories, tracing imports, and fixing circular import bugs.
Результат
RepoGraph delivers a deterministic, sub‑0.1 s architecture scan and AI‑generated architectural narrative, pattern detection, and circular‑dependency refactoring recipes, all locally with zero external dependencies.
Рабочий процесс
- Clone RepoGraph repository
- Run
python repograph.py ./my-project(optionally with--serveto open browser) - (Optional) Run local Gemma via Ollama with
ollama run gemma2:2b python repograph.py ./my-project --ai-provider ollama
Доказательства
RepoGraph deterministically parses your code's Abstract Syntax Tree (AST), clusters your modules into architectural tiers, feeds the topology to Google Gemma, and produces an interactive, zoomable blueprint in your browser with circular dependency refactoring recipes.
With a single terminal command: python repograph.py ./my-project
RepoGraph operates as an end-to-end, zero-dependency pipeline: ... < 0.1s execution (Zero external pip deps)
- Дата записи: 2026-10-22T15:11:18.950Z