A highly optimized Visual Studio Code extension designed to aggregate, process, and format varied repository and web documentation sources into unified, token-efficient Markdown payloads tailored for Large Language Model (LLM) agents.
Overview
Modern agentic programming workflows require extensive cross-repository context. Unified LLM Context Builder provides a native interface to select specific file paths, traverse deep workspace trees, extract pure content from live web references, and interface directly with remote GitHub repositories—packaging the accumulated output into structured Markdown pre-calculated for token constraints.
Core Capabilities
Multi-Source Interactive Aggregator
Operates via a persistent session loop inside the Quick Pick menu interface, enabling incremental accumulation of multiple distinct data sources before generating the final output.
Advanced Ignored Path Evaluation
Integrates a robust traversal engine that recursively reads and applies rules from nested .gitignore files. Automatically omits binaries, compiled artifacts (node_modules, dist, bin, obj), and repository metadata storage.
Web Documentation Parser
Accepts live HTTP/HTTPS documentation links, dynamically extracting structural content blocks (<article>, <main>) while stripping out navigation bars, footers, ad frames, and tracking scripts to yield clean, semantic Markdown.
Remote GitHub API Integration
Interfaces directly with the public GitHub REST API to securely query repository folder structures and download raw text file sources on demand without local cloning.
Real-Time Token Projections
Integrates native character-based heuristics to calculate and display real-time token projections dynamically within the workspace UI, preventing context-window overload.
Installation & Usage
- Launch the Visual Studio Code Command Palette (
Cmd+Shift+Pon macOS orCtrl+Shift+Pon Windows/Linux). - Execute the command:
Unified Context: Generate LLM Context. - Select your desired input streams (Workspace Folders, Custom Paths, Web URLs, or GitHub Repositories).
- Export the pre-compiled context via Copy Context to Clipboard or Save Context to File....
License
Distributed under the MIT License. See LICENSE for more information.