cyberchitta/llm-context.py
Free通过 MCP 或剪贴板与 LLM 共享代码上下文。
About cyberchitta/llm-context.py
LLM Context is an open-source tool that solves the friction of sharing the right code context with Large Language Models (LLMs). It provides smart context management through intelligent file selection and rule-based filtering, enabling developers to share relevant project files instantly via the Model Context Protocol (MCP) or clipboard. The tool offers predefined workflows for human developers (using clipboard-based commands like lc-select and lc-context), AI agents with CLI access (using lc-preview and lc-context to create focused sub-task contexts), and direct MCP integration for AI agents in chat (tools like lc_outlines, lc_preview, and lc_missing). It includes smart code outlining and composable rules that allow easy switching between tasks such as code review and documentation. Installation is via uv tool install llm-context, and MCP server configuration supports Claude Desktop. The project is heavily human-curated by @restlessronin and was developed in collaboration with multiple Claude models.
Key Features
Pros & Cons
- Eliminates manual file copying and reduces friction in sharing code context with LLMs
- Intelligent file selection avoids token limit issues by only including relevant files
- Rule-based customization enables easy switching between different tasks
- Open source and free to use
- Provides direct MCP integration for seamless AI agent workflows
- Includes smart code outlining features for better context
- Requires Python environment and uv tool installation
- Initial setup (lc-init) required per project
- Limited to projects with compatible file structures
- Documentation could be more comprehensive for complex rule configurations