llm-context.py

LLM Context helps developers inject relevant code/text content into LLM chats. It uses `.gitignore` patterns for file selection and offers clipboard workflow and direct LLM integration via the Model Context Protocol.

200
12

LLM Context

LLM Context is a tool designed to inject relevant code or text from projects into Large Language Model chat interfaces. It uses .gitignore patterns for file selection and offers a clipboard workflow via the command line, along with direct LLM integration through the Model Context Protocol (MCP).

Key features include smart file selection, multiple profiles, and code navigation tools like smart code outlines and definition implementation extraction. It supports native integration with Claude Desktop via MCP and works with any LLM chat interface via CLI.

Installation is done using uv tool install llm-context. Core commands include lc-init, lc-set-profile, lc-sel-files, lc-context, lc-prompt, and lc-clip-files. The tool is optimized for projects fitting within an LLM's context window and is suitable for code repositories and text/markdown/HTML collections.

The project is licensed under Apache License 2.0.

Repository

CY
cyberchitta

cyberchitta/llm-context.py

Created

April 20, 2024

Updated

March 28, 2025

Language

Python

Category

Developer Tools