ProjectLens¶
-
Project Scanning Made Simple
Export your project files with smart filtering for LLM analysis and beyond.
-
Zero Dependencies
Built with pure Python - no external packages required.
-
CLI & API Support
Use as a command-line tool or integrate with your Python scripts.
-
Intelligent Filtering
Focus on the files that matter - filter by extension, size, and pattern.
What is ProjectLens?¶
ProjectLens is a specialized tool for developers and teams who want to leverage LLMs (Large Language Models) like ChatGPT, Claude, and DeepSeek for code analysis, documentation generation, and codebase understanding.
It creates a comprehensive, well-formatted snapshot of your project that:
- Respects common ignore patterns (automatically skips venv, cache, build directories)
- Filters by file extension (focus on just your code, not binaries or generated files)
- Manages context limits (skip files that are too large)
- Creates structured output with tree visualization and clear file boundaries
Why Use ProjectLens?¶
When working with AI assistants on code projects, you often need to provide context about your codebase. Manually collecting and formatting this information is tedious and error-prone.
ProjectLens solves this by:
- Automating the collection process - scan an entire project with a single command
- Creating consistent, well-formatted output optimized for AI consumption
- Preserving project structure through tree visualization
- Respecting sensitive content through intelligent filtering
Key Features¶
- π Recursively collect project files with specified extensions and smart filtering
- π² Generate detailed project tree structure
- π Create well-formatted output optimized for LLM analysis
- π Easy to use as both CLI tool and Python API
- π οΈ Zero external dependencies
License¶
ProjectLens is released under the MIT License.
Creator¶
ProjectLens is created and maintained by CainΓ£ Max Couto da Silva.
Donate¶
Like it? Consider buying me a coffee (don't forget the message) π