Skip to content

Visual Studio Code extension for assembling contextual information from project files for usage in LLMs.

License

Notifications You must be signed in to change notification settings

Planeshifter/llm-context-builder

Repository files navigation

LLM Context Builder

Visual Studio Marketplace Version Visual Studio Marketplace Installs - Azure DevOps Extension GitHub Actions Workflow Status

VS Code extension for building context prompts for Large Language Models (LLMs).

LLM Context Builder Demo

Features

  • 📁 Custom file explorer for easy selection of files and folders
  • 🔢 Automatic token counting for selected content
  • 🔍 File filtering with comma-separated search terms
  • 🗜️ Optional code minification for JS/TS files
  • ⚙️ Customizable directory and file type exclusions
  • 📋 One-click context prompt generation and copying

Install

  • From Visual Studio Marketplace: Install directly from the marketplace and reload VS Code if prompted.
  • From within Visual Studio Code: Open Extensions (Ctrl+Shift+X), search "LLM Context Builder", and click Install.

Usage

  1. Open the LLM Context Builder view in the Explorer sidebar
  2. Select files/folders to include in your context prompt
  3. Use the search box to filter files
  4. Click "Create Context Prompt" to generate and copy the prompt to the clipboard

Commands

  • LLM Context Builder: Toggle Search Box
  • LLM Context Builder: Deselect All Files
  • LLM Context Builder: Create Context Prompt
  • LLM Context Builder: Toggle Code Minification
  • LLM Context Builder: Update Exclude List
  • LLM Context Builder: Open Selected Files
  • LLM Context Builder: Select All Files

Configuration

{
  "contextPrompt.excludeDirectories": [".git", "node_modules"],
  "contextPrompt.excludeFileTypes": [".jpg", ".png", ".pdf"],
  "contextPrompt.minifyCode": false,
}

License

This project is licensed under the Blue Oak Model License 1.0.0.

About

Visual Studio Code extension for assembling contextual information from project files for usage in LLMs.

Resources

License

Stars

Watchers

Forks

Packages

No packages published