The ultimate tool for preparing code context for Large Language Models.
b-Context Generator streamlines the process of feeding your codebase into AI. Whether you're debugging with ChatGPT or architecting with Claude, this extension ensures you provide the right context, formatted perfectly, every time.
✨ Key Features
📂 Smart Collection
Effortlessly select files and folders from your explorer. We handle the recursive gathering so you can focus on the problem.
🛡️ .gitignore Aware
Your secrets and build artifacts stay safe. The extension automatically respects .gitignore rules, keeping noise like node_modules out of your context.
👁️ Interactive Preview
Review exactly what you're sending.
Tree View: See the structure of your selected context.
Toggle: Exclude specific files at the last second without losing your selection.
🎨 Customizable Prompts
Tailor the output to your needs.
Role: Define the AI's persona (e.g., "Senior React Developer").
Preamble: Add custom instructions to every prompt.
🚀 How to Use
Select: Right-click on any file or folder in the VS Code Explorer.
Execute: Choose "Generate Context for LLM" from the context menu.
Review: A preview panel will appear. Uncheck any files you don't need.
Copy: Click "Copy to Clipboard" and paste it into your favorite LLM.