Illuminate your codebase with AI-powered analysis
Installation · Features · Usage · Contributing · License
DevLens is a powerful CLI tool that delivers comprehensive insights into your codebase. It helps developers and teams understand, document, and optimize their software projects — powered by AI through Groq's Llama models.
Whether you need a quick project summary, AI-generated documentation, or dead code detection, DevLens has you covered.
|
Get intelligent summaries of every file in your project |
Language breakdown, line counts, and project structure |
|
Total files, directories, and detailed structure visualization |
See exactly how your codebase is distributed across languages |
|
Auto-generate professional documentation for your project |
Clean, well-structured README tailored to your project |
|
Find unused functions and imports to keep your code clean |
Get a full overview of empty files and project issues |
pip install devlens-tooluv tool install devlens-toolgit clone https://github.com/YounesBensafia/DevLens.git
cd DevLens
uv tool install .DevLens uses Groq for AI-powered features. You'll need a free API key.
1. Get your API key from console.groq.com
2. Set the environment variable:
export GROQ_API_KEY=your_api_key_hereTip: Add the export line to your
~/.bashrcor~/.zshrcto make it permanent.
devlens --help| Command | Description |
|---|---|
devlens -st <PATH> |
Generate a comprehensive project summary — total files, lines, directories, language breakdown, and project structure |
devlens -an <PATH> |
AI-powered analysis of each file using meta-llama/llama-4-scout-17b-16e-instruct |
devlens -rd |
Auto-generate a professional README.md tailored to your project |
devlens -deadcode <PATH> |
Detect unused functions and imports across the codebase |
# Analyze the current directory
devlens -st .
# Get AI summaries for a specific project
devlens -an /path/to/your/project
# Generate a README for the current project
devlens -rd
# Find dead code
devlens -deadcode .- Project statistics and language breakdown
- AI-powered file analysis
- Automatic README generation
- Dead code detection
- Dependency graph visualization
- Support for more languages in dead code detection
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License — see the LICENSE file for details.
Built by Younes Bensafia
If DevLens helps you, consider giving it a star.








