kit – Code Intelligence Toolkit for AI Devtools
kit is an open-source toolkit for codebase mapping, symbol extraction, and code search. Build LLM-powered developer tools, agents, and workflows with Python, CLI, or MCP.
TL;DR
TL;DR: kit is an open-source Python toolkit that gives AI agents and dev tools production-grade context about codebases — file trees, symbols, search, git history, and an MCP server for local development.
Source and Accuracy Notes
⚠️ This section is MANDATORY. All links must be verified from actual source, not guessed.
- Project page: kit.cased.com
- Source repository: github.com/cased/kit — read end-to-end
- License: MIT (verified via README)
- HN launch thread: news.ycombinator.com/item?id=43931335
What Is kit?
kit is a production-ready toolkit for codebase mapping, symbol extraction, code search, and building LLM-powered developer tools. It was developed by Cased, the company behind the Claude Code plugin infrastructure, and open-sourced under the MIT license.
The README describes it as:
kitis a production-ready toolkit for codebase mapping, symbol extraction, code search, and building LLM-powered developer tools, agents, and workflows.
The core use cases from the README:
- Code reviewers — enrich PR context with symbol-level understanding
- Code generators — provide accurate code context to LLMs
- IDE integrations — power autocomplete and navigation with accurate symbol data
- AI agents — give autonomous agents reliable code awareness
Work with kit from Python, CLI, MCP, or REST.
Setup Workflow
Install
kit is published on PyPI. The recommended install method is via uv:
# Base install
uv pip install cased-kit
# All features (ML analysis, vector search, MCP server)
uv pip install 'cased-kit[all]'
For CLI usage without touching your system Python, use uv tool install:
# Install globally as a CLI tool
uv tool install cased-kit
# Everything included
uv tool install 'cased-kit[all]'
After installation, the kit and kit-dev-mcp commands are available globally.
Claude Code Plugin
kit ships as an official Claude Code plugin:
/plugin marketplace add cased/claude-code-plugins
/plugin install kit-cli
Once installed, Claude Code automatically uses kit when you ask questions like:
- “How does authentication work in this codebase?”
- “Find all usages of the UserModel class”
- “Show me the file structure of src/”
See the Claude Code Integration Guide for details.
Python API
Basic Usage
from kit import Repository
# Load a local repository
repo = Repository("/path/to/your/local/codebase")
# Load a remote public GitHub repo
repo = Repository("https://github.com/owner/repo")
# Load a private repo (uses KIT_GITHUB_TOKEN if set)
repo = Repository("https://github.com/owner/private-repo", github_token="ghp_...")
# At a specific commit, tag, or branch
repo = Repository("https://github.com/owner/repo", ref="v1.2.3")
Core Methods
# Explore the repo structure
print(repo.get_file_tree())
# Output: [{"path": "src/main.py", "is_dir": False, ...}, ...]
# Extract symbols (functions, classes, etc.)
print(repo.extract_symbols('src/main.py'))
# Output: [{"name": "main", "type": "function", "file": "src/main.py", ...}, ...]
# Git metadata
print(f"Current SHA: {repo.current_sha}")
print(f"Branch: {repo.current_branch}")
# Search across the codebase
results = repo.search("handleAuth")
Multi-Repository Analysis
from kit import MultiRepo
repos = MultiRepo(["~/code/frontend", "~/code/backend", "~/code/shared"])
repos.search("handleAuth") # Search across all repos
CLI equivalents:
kit multi search "handleAuth"
kit multi deps
kit multi summary
MCP Server (kit-dev)
kit ships an enhanced MCP server called kit-dev, designed for local development workflows. It includes production-grade code intelligence plus multi-source documentation research and package searching.
Environment variables:
OPENAI_API_KEY— for cloud model inferenceOPENAI_BASE_URL— for proxies or custom endpointsANTHROPIC_API_KEY— for Anthropic models
Full documentation: kit-mcp.cased.com
CLI Features
PR Reviews
kit includes a PR reviewer built on top of its code intelligence:
kit review --init-config
kit review https://github.com/owner/repo/pull/123
The README claims it ranks with better closed-source paid options at a fraction of the cost using cloud models like Sonnet 4 and GPT-4.1.
PR Summaries
Fast triage summaries for PRs:
kit summarize https://github.com/owner/repo/pull/123
kit summarize --update-pr-body https://github.com/owner/repo/pull/123
The README states these summaries are 5–10x cheaper than full reviews (roughly $0.005–0.02 versus $0.01–0.05+ per review).
Commit Messages
AI-generated commit messages from staged changes:
git add .
kit commit
Practical Evaluation Checklist
- [x] Open-source MIT license — verifiable at github.com/cased/kit
- [x] Published on PyPI (
cased-kit) — installable viauv pip install - [x] MCP server available (
kit-dev-mcp) — documented at kit-mcp.cased.com - [x] Claude Code plugin official — verified in README
- [x] Multi-repo support —
MultiRepoclass for monorepos - [x] Git-aware — analyze at specific commits, tags, branches
- [x] Private repo support —
github_tokenparameter orKIT_GITHUB_TOKENenv var - [x] No hardcoded credentials — token passed explicitly or via env var
Security Notes
- GitHub tokens — private repo access requires
KIT_GITHUB_TOKENenvironment variable or explicitgithub_tokenparameter. Never hardcode tokens. - Remote repo loading — kit fetches code from GitHub. Ensure your
KIT_GITHUB_TOKENhas minimal required scope. - No runtime code execution — kit analyzes static code structure; it does not execute the code it indexes.
FAQ
Q: What is the difference between kit and kit-dev-mcp?
A: kit is the core Python library for codebase analysis. kit-dev-mcp is an MCP server built on top of kit, designed for local development workflows with AI assistants. The MCP server adds multi-source documentation research and package searching on top of kit’s code intelligence.
Q: Does kit require an API key?
A: The core library does not require an API key for local repository analysis or public GitHub repos. API keys (OPENAI_API_KEY, ANTHROPIC_API_KEY) are only needed when using kit’s AI-powered features like PR reviews, summaries, and commit messages.
Q: Can kit work with monorepos?
A: Yes. Use the MultiRepo class to analyze multiple repositories together with unified search, symbol lookup, and dependency auditing. CLI commands like kit multi search, kit multi deps, and kit multi summary provide the same functionality from the command line.
Q: Is kit actively maintained? A: Based on GitHub metadata, the repo was last pushed on 2026-03-03 with 1,295 stars. It has an active changelog at kit.cased.com/changelog.
Q: What Python version does kit require?
A: The README does not specify a minimum Python version. As a modern Python project using uv as its package manager, it targets Python 3.10+.
Conclusion
kit fills a specific gap in the AI devtools stack: reliable, structured code context for LLMs and AI agents. Rather than relying on fragile context windows or generic embeddings, kit gives you file trees, symbol maps, git history, and cross-repo search — the primitives that make AI-assisted development actually work in production.
If you’re building an AI coding tool, a PR reviewer, a code generator, or any system that needs to understand code structure, kit is worth evaluating. The MCP server makes it particularly natural to use with modern AI assistants like Claude Code.
Install: uv pip install cased-kit
Docs: kit.cased.com
GitHub: github.com/cased/kit
Related Posts
dev-tools
Automotive Skills Suite for AI Engineering
Evaluate Automotive Skills Suite for APQP, ASPICE, HARA, safety-plan, and DIA workflows with setup notes, governance risks, and SME review guidance.
5/28/2026
dev-tools
awesome-agentic-ai-zh Roadmap Guide
Explore awesome-agentic-ai-zh as a Chinese agentic AI learning roadmap, with setup notes, track selection, study workflow, and evaluation guidance.
5/28/2026
dev-tools
Baguette iOS Simulator Automation Guide
Set up Baguette for iOS Simulator automation, web dashboards, device farms, gesture input, streaming, and camera testing with Xcode caveats.
5/28/2026