Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
A Python CLI toolkit to generate comprehensive project context for Large Language Models, aiding in debugging and AI-assisted development.
Jump to setup instructionsFetched from the repository for this visit.
The missing link between your codebase and AI assistants.
Stop copying files. Start solving problems.
codebrief is a production-ready CLI toolkit that solves the core problem developers face when working with AI assistants: manually preparing context from their projects. Whether you're debugging with ChatGPT, explaining your codebase to Claude, or preparing documentation for any LLM, codebrief provides the essential tools to create rich, contextual project summaries in seconds, not minutes.
Developers waste 5-10 minutes manually copying files, explaining project structure, and gathering context every time they need AI assistance. codebrief reduces this to a single command that takes seconds.
.llmignore support--to-clipboard or -c.llmignore files with .gitignore-style syntaxpyproject.toml# Install from PyPI
pip install codebrief
# Or install with Poetry
poetry add codebrief
# Generate a directory tree
codebrief tree
# Save tree to file
codebrief tree -o project_structure.txt
# Copy tree to clipboard
codebrief tree --to-clipboard
# Flatten code files
codebrief flatten src/ -o flattened_code.md
# Copy flattened code to clipboard
codebrief flatten src/ -c
# Analyze dependencies
codebrief deps
# Get Git context
codebrief git-info
# Create a comprehensive bundle
codebrief bundle -o project_context.md
# Copy bundle to clipboard
codebrief bundle --to-clipboard
Create a .llmignore file to exclude files and directories:
# .llmignore
*.log
__pycache__/
node_modules/
.env
build/
dist/
Configure defaults in pyproject.toml:
[tool.codebrief]
default_output_filename_tree = "project_tree.txt"
default_output_filename_flatten = "flattened_code.md"
default_output_filename_deps = "dependencies.md"
default_output_filename_git_info = "git_context.md"
default_output_filename_bundle = "project_bundle.md"
global_exclude_patterns = [
"*.tmp",
"temp/",
".cache/"
]
Comprehensive documentation including:
# Clone the repository
git clone https://github.com/Shorzinator/CodeBrief.git
cd CodeBrief
# Install dependencies
poetry install --with dev
# Install pre-commit hooks
poetry run pre-commit install
# Run tests
poetry run pytest
# Run with coverage
poetry run pytest --cov=src/codebrief --cov-report=html
We maintain high code quality standards:
We welcome contributions! Please see our Contributing Guide for details on:
This project is licensed under the MIT License - see the LICENSE file for details.
codebrief is actively developed and maintained. Current status:
Documentation • Issues • Discussions
Made for the developer community
GitHub checked 231h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.