llm-context

llm-context

MCP-enabled tool to share and fetch extra project files during LLM conversations.

285
Stars
25
Forks
0
Releases

Overview

LLM Context is a tool that reduces friction in providing project context to LLMs by smartly selecting files and filtering via rules, with MCP integration to allow AI access to additional files during conversations. It supports a five-category rule system: Prompt Rules (prm-), Filter Rules (flt-), Instruction Rules (ins-), Style Rules (sty-), Excerpt Rules (exc-). Users can define project-specific rules and filters to include only relevant content, while retaining the ability to pull full files or excerpts as needed. With MCP integration, the LLM can request more files on demand, without manual file transfers. The MCP configuration example shows how to register a server under mcpServers with a command and arguments, enabling seamless file access. The system offers: smart file selection; instant context generation; automatic copying to clipboard; change tracking; and AI-assisted rule creation via Claude Skill or instruction-driven workflows. This fosters efficient collaboration, better code reviews, and faster problem resolution by ensuring the AI sees the right data with minimal friction.

Details

Owner
cyberchitta
Language
Python
License
Apache License 2.0
Updated
2025-12-07

Features

MCP Integration

Allows the AI to access additional files directly during conversations via MCP without manual transfer.

Smart File Selection

Rules automatically include/exclude appropriate files based on the current rule set to tailor the context.

Instant Context Generation

Generated context is copied to clipboard in seconds for easy pasting into chats.

Systematic Rule Organization

Five-category rule system (prm-, flt-, ins-, sty-, exc-) for clear rule composition.

AI-Assisted Rule Creation

Two approaches: interactive Claude Skill for rule creation, or built-in prompt-based workflow using instruction rules.

Code Excerpting

Extracts significant content to reduce context size while preserving structure.

Audience

DevelopersShare and manage project context with LLMs; define and apply rules to include relevant files.
AI-assisted teamsEnable AI to access and review changes with access to full or excerpted files during conversations.

Tags

MCPLLM-contextcontext-sharingfile-selectionrule-based-filteringcode-excerptingAI-assisted-rule-creationdeveloper-tools