I’m sharing my LLM Code Lens Python package: My Secret Weapon for AI-Powered Coding

Hey everyone,

I want to share my tool that has completely transformed how I work with AI assistants. If you’re tired of writing endless, complex prompts and struggling to get precise code insights, this is for you.

The Problem

Working with…


This content originally appeared on DEV Community and was authored by Arsen Apostolov

Hey everyone,

I want to share my tool that has completely transformed how I work with AI assistants. If you're tired of writing endless, complex prompts and struggling to get precise code insights, this is for you.

The Problem

Working with large language models like ChatGPT, Claude, or Mistral always felt like a communication battle. How do you explain an entire project's context in a single prompt?

My Solution: LLM Code Lens

I built a simple, powerful package that generates a comprehensive project context file in seconds.

Go to the output dir:

Image description

Preview the analysis.txt It contains summary of your codebase - imports, functions, documentation etc so that LLMs can have pretty good context.

analysis.txt

Preview the full.txt It contains your codebase aggregated in a file. Great for smaller projects (bellow 10K lines of code based on my experience).

Image description

How to Use It

  1. Install the package
pip install llm-code-lens
  1. Generate project context
# Create condensed description of the project. Sufficient for big projects to provide context to LLMs.
# Generates analysis.txt in the output folder. Default folder: .codelens
llmcl

# On top of the analysis.txt it generates all the codebase in full.txt so that LLM can see all your projects. The output files are divided into 100K tokens file so that they can fit in any LLM including local Llama3.3 70B
llmcl --full
  1. Get context files in .codelens/
  2. analysis.txt
  3. analysis.json

  4. Paste these directly into your AI assistant

The prompt
Image description

Immediate result
Image description

Instant Efficiency!

No more:

  • Writing 500-word explanations
  • Struggling to provide context
  • Wasting time on prompt engineering

Just pure, efficient code insights.

My Personal Experience

This tool has been an essential part of my daily coding routine for months. It has significantly improved my development performance.

Your Turn

🚀 Star the Project on GitHub

Try it. Love it. Share it.

Hope it helps you as much as it's helped me.

Cheers,
Arsen

Let's Connect! 🤝

  • 💼 Connect with me on LinkedIn
  • 🎮 Join our Random42 community on Discord - AI news, Success stories, Use cases and Support for your project!
  • 📝 Follow my tech journey on Dev.to


This content originally appeared on DEV Community and was authored by Arsen Apostolov


Print Share Comment Cite Upload Translate Updates
APA

Arsen Apostolov | Sciencx (2025-01-10T04:56:15+00:00) I’m sharing my LLM Code Lens Python package: My Secret Weapon for AI-Powered Coding. Retrieved from https://www.scien.cx/2025/01/10/im-sharing-my-llm-code-lens-python-package-my-secret-weapon-for-ai-powered-coding/

MLA
" » I’m sharing my LLM Code Lens Python package: My Secret Weapon for AI-Powered Coding." Arsen Apostolov | Sciencx - Friday January 10, 2025, https://www.scien.cx/2025/01/10/im-sharing-my-llm-code-lens-python-package-my-secret-weapon-for-ai-powered-coding/
HARVARD
Arsen Apostolov | Sciencx Friday January 10, 2025 » I’m sharing my LLM Code Lens Python package: My Secret Weapon for AI-Powered Coding., viewed ,<https://www.scien.cx/2025/01/10/im-sharing-my-llm-code-lens-python-package-my-secret-weapon-for-ai-powered-coding/>
VANCOUVER
Arsen Apostolov | Sciencx - » I’m sharing my LLM Code Lens Python package: My Secret Weapon for AI-Powered Coding. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/01/10/im-sharing-my-llm-code-lens-python-package-my-secret-weapon-for-ai-powered-coding/
CHICAGO
" » I’m sharing my LLM Code Lens Python package: My Secret Weapon for AI-Powered Coding." Arsen Apostolov | Sciencx - Accessed . https://www.scien.cx/2025/01/10/im-sharing-my-llm-code-lens-python-package-my-secret-weapon-for-ai-powered-coding/
IEEE
" » I’m sharing my LLM Code Lens Python package: My Secret Weapon for AI-Powered Coding." Arsen Apostolov | Sciencx [Online]. Available: https://www.scien.cx/2025/01/10/im-sharing-my-llm-code-lens-python-package-my-secret-weapon-for-ai-powered-coding/. [Accessed: ]
rf:citation
» I’m sharing my LLM Code Lens Python package: My Secret Weapon for AI-Powered Coding | Arsen Apostolov | Sciencx | https://www.scien.cx/2025/01/10/im-sharing-my-llm-code-lens-python-package-my-secret-weapon-for-ai-powered-coding/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.