Skip to content

RafaelCostaF/codebase-summarizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠 Codebase Summarizer

Turn any codebase into a ready-to-use prompt for LLMs in seconds


🚀 What it does

  • 📂 Scans your project\
  • 🧠 Generates summaries per file (LLM)\
  • ⚡ Skips unchanged files (hash-based)\
  • 📄 Builds a single prompt ready to paste into any LLM

⚡ Setup (1 minute)

pip install -r requirements.txt

Create .env:

LLM_PROVIDER=openai
LLM_API_KEY=your-key
LLM_MODEL=gpt-4o-mini

MAX_WORDS_DESCRIPTION_PER_FILE=80

▶️ Usage

CLI

python script.py

UI (recommended)

streamlit run app.py

🧠 How to use

Open codebase_summary.txt and paste into ChatGPT / Claude / DeepSeek.

Ask: - Explain architecture\

  • Suggest improvements\
  • Find issues

💡 Why this is useful

  • ⚡ Understand large codebases instantly\
  • 🚀 Faster onboarding\
  • 🧠 Better AI-assisted development

🔄 How it works

graph TD
A[Scan Files] --> B[Generate Summaries]
B --> C{File Changed?}
C -->|Yes| D[Regenerate Summary]
C -->|No| E[Reuse Summary]
D --> F[Aggregate]
E --> F
F --> G[Generate Prompt]
G --> H[Paste into LLM]
Loading

⭐ Star this repo if it helped you!

About

Generate LLM-ready summaries of any codebase. Scans files, summarizes with AI, and builds a single prompt for architecture understanding, improvements, and code analysis.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages