- Bun runtime (required)
curl -fsSL https://bun.sh/install | bash
# Clone the repository
git clone https://github.com/RLabs-Inc/codebase-curator.git
cd codebase-curator
# Install dependencies
bun install
# Link globally
bun link
# Now you can use the tools globally!
smartgrep --help
curator-monitor --help
codebase-curator --help# Once published to npm
bun install -g codebase-curatorAfter installation, you'll have access to these global commands:
# Index a codebase
cd /path/to/your/project
smartgrep index
# Search for patterns
smartgrep "authenticate"
smartgrep group auth
smartgrep refs "UserService"# Watch for changes with overview
curator-monitor watch --overview
# Simple file change monitoring
curator-monitor watch
# Get codebase statistics
curator-monitor overview# Start interactive chat
codebase-curator chat
# Get codebase overview
codebase-curator overview /path/to/project
# Ask specific questions
codebase-curator ask "How does authentication work?"# This is typically used by Claude Desktop
# Add to claude_desktop_config.json:
{
"mcpServers": {
"codebase-curator": {
"command": "codebase-curator-mcp"
}
}
}Once installed globally, simply navigate to your project and run:
cd /path/to/your/project
smartgrep index
smartgrep "YourSearchTerm"Add to your project:
cd /path/to/your/project
bun add codebase-curatorThen use via bun scripts in package.json:
{
"scripts": {
"search": "smartgrep",
"monitor": "curator-monitor watch",
"curator": "codebase-curator chat"
}
}{
"exclude": [
"vendor",
"*.min.js",
"*.map"
],
"include": [
"src/**/*",
"lib/**/*"
]
}# Set cache directory (optional)
export CURATOR_CACHE_DIR=/custom/cache/path
# Set session directory (optional)
export CURATOR_SESSION_DIR=/custom/session/pathTest that everything is working:
# Check versions
smartgrep --version
curator-monitor --version
codebase-curator --version
# Test smartgrep
cd /path/to/any/project
smartgrep index
smartgrep --list-groups
# Test monitor
curator-monitor status
# Test curator CLI
codebase-curator --help# Ensure bun's bin directory is in your PATH
export PATH="$HOME/.bun/bin:$PATH"
# Add to your shell profile (.zshrc, .bashrc, etc.)
echo 'export PATH="$HOME/.bun/bin:$PATH"' >> ~/.zshrc# Make scripts executable
chmod +x node_modules/.bin/smartgrep
chmod +x node_modules/.bin/curator-monitor
chmod +x node_modules/.bin/codebase-curator# Install bun first
curl -fsSL https://bun.sh/install | bash
source ~/.bashrc # or ~/.zshrccd /path/to/typescript/project
smartgrep index
smartgrep group api
smartgrep "async" --type function
curator-monitor watch --overviewcd /path/to/python/project
smartgrep index
smartgrep "@decorator" --file "*.py"
smartgrep group errorcd /path/to/mixed/project
smartgrep index
smartgrep group auth # Searches across ALL languages
smartgrep refs "DatabaseConnection"- Read the Smart Grep Guide
- Check Language Support
- Configure for your project with
.curatorconfig.json - Set up MCP for Claude Desktop integration
Happy coding with Codebase Curator! 🚀