Claude Code Integration
Kit integrates with Claude Code through an official plugin that gives Claude autonomous access to kit’s codebase analysis tools.
Installation
Install the kit plugin in Claude Code:
/plugin marketplace add cased/claude-code-plugins/plugin install kit-cliAfter installation, Claude will automatically use kit when analyzing codebases.
What the Plugin Does
The kit-cli plugin is a Claude Skill - a capability that Claude autonomously decides when to use based on your requests. You don’t need to explicitly invoke it; Claude will use kit tools when they’re relevant.
Example Interactions
Ask Claude questions like:
| Request | What kit does |
|---|---|
| ”How does authentication work in this codebase?” | Uses kit symbols, kit search, and kit usages to trace auth patterns |
| ”Find all usages of the UserModel class” | Runs kit usages UserModel to find definitions and references |
| ”What are the dependencies of this project?” | Runs kit dependencies to analyze and visualize imports |
| ”Show me the file structure of src/“ | Runs kit file-tree --subpath src |
| ”Search for TODO comments” | Runs kit search "TODO" with appropriate patterns |
Available Commands
The skill teaches Claude to use these kit CLI commands:
Repository Analysis
# File structurekit file-tree /path/to/repokit file-tree /path/to/repo --subpath src
# Symbol extraction (functions, classes, etc.)kit symbols /path/to/repokit symbols /path/to/repo --file src/main.pykit symbols /path/to/repo --symbol-type function
# Git metadatakit git-info /path/to/repoCode Search
# Text/regex searchkit search /path/to/repo "pattern"kit search /path/to/repo "def main" --pattern "*.py"
# Find symbol usageskit usages /path/to/repo "ClassName"kit usages /path/to/repo "function_name" --file src/utils.py
# Semantic search (requires ML dependencies)kit search-semantic /path/to/repo "authentication handling"Dependency Analysis
# Generate dependency reportkit dependencies /path/to/repo
# Mermaid diagram outputkit dependencies /path/to/repo --format mermaid
# Focus on specific packagekit dependencies /path/to/repo --focus mypackageMulti-Repository Analysis
# Search across reposkit multi search ~/frontend ~/backend -q "handleAuth"
# Find symbols across reposkit multi symbols ~/frontend ~/backend -n "UserModel"
# Audit dependencies across reposkit multi deps ~/service-a ~/service-b ~/shared-libContext & Chunking
# Get context around a linekit context /path/to/repo src/file.py --line 42
# Chunk files for LLM processingkit chunk-lines /path/to/repo src/file.py --max-lines 50kit chunk-symbols /path/to/repo src/file.pyExport Data
# Export to JSONkit export /path/to/repo symbols symbols.jsonkit export /path/to/repo dependencies deps.jsonTips for Best Results
-
Be specific about what you’re looking for - “Find the authentication middleware” works better than “show me auth code”
-
Reference file paths when you know them - “What does
src/auth/middleware.pydo?” helps Claude focus -
Combine with other Claude capabilities - After kit finds relevant code, Claude can explain, refactor, or generate tests
-
Use for unfamiliar codebases - Kit excels at mapping repos you haven’t seen before
Plugin vs MCP Server
Kit offers two ways to integrate with Claude Code:
| Feature | Plugin (kit-cli) | MCP Server (kit-dev-mcp) |
|---|---|---|
| Installation | /plugin install kit-cli | Configure in MCP settings |
| Invocation | Automatic (Claude decides) | Tool calls from Claude |
| Features | CLI commands | Full API + doc research |
| Best for | Quick codebase exploration | Deep development workflows |
For the MCP server, see the kit-dev MCP documentation.
Troubleshooting
Plugin not activating?
Make sure the plugin is installed:
/plugin listIf kit-cli isn’t listed, reinstall:
/plugin marketplace add cased/claude-code-plugins/plugin install kit-cliCommands failing?
Ensure kit is installed on your system:
uv tool install cased-kitkit --versionNeed newer features?
Update kit to the latest version:
uv tool install --force cased-kit