ð§ Codebase Curator
ããŒã«ã«ð§ Codebase Curator ã«ã€ããŠ
Codebase Curatorã¯ãå€§èŠæš¡ã³ãŒãããŒã¹ã«åãçµãéçºè åãã®Claude CodeããŒã«ã»ããã§ããæ°žç¶çãªã³ãŒãåæãšãŒãžã§ã³ãã«ãã»ãã³ãã£ãã¯æ€çŽ¢ã倿Žåœ±é¿åæãçµã¿åãããŠããŸãã
äž»ãªæ©èœ
- 01Curator Claudeã®æ°žç¶ã»ãã·ã§ã³
- 02smartgrepã«ããã»ãã³ãã£ãã¯æ€çŽ¢
- 03çžäºåç §ãšåœ±é¿åæ
- 04Git倿Žã®ãªã¹ã¯è©äŸ¡
- 05ã³ãŒãããŒã¹ã®ã©ã€ãç£èŠ
- 06è€æ°èšèªãšãã¡ã€ã«åœ¢åŒã®è§£æ
掻çšã·ãŒã³
- 01ãããžã§ã¯ãæ§æã«åºã¥ãã³ãŒãã®è³ªå
- 02ã³ãŒãããŒã¹å šäœã§ã·ã³ãã«å®çŸ©ãšäœ¿çšç®æãæ€çŽ¢
- 03æªã³ããã倿Žã®æœåšç圱é¿ã確èª
- 04ãã¡ã€ã«å€æŽã远跡ããŠã€ã³ããã¯ã¹ãæŽæ°
MCP 察å¿
MCPãµãŒããŒã¯ãã³ãŒãããŒã¹æŠèŠãCuratorãžã®è³ªåãæ©èœã»å€æŽã«é¢ããã¬ã€ãã³ã¹ãsmartgrepã®æ©èœæ¡å ãClaude Codeã«æäŸããŸãã
èšå®
ããŒã«ã«ãµãŒããŒã®èšå®ã¯ã©ã®ã¯ã©ã€ã¢ã³ãã§ãå ±éã§ããã³ããŒããŠã¯ã©ã€ã¢ã³ãã® MCP èšå®ãã¡ã€ã«ã«è²Œãä»ããŠãã ããã
ãã®ãµãŒããŒã®ããã±ãŒãžããªã¢ãŒããšã³ããã€ã³ãã¯ãŸã ååŸã§ããŠããŸããããããžã§ã¯ãã® README ã®æé ã«åŸã£ãŠãã ããã
ããŒã«
ããŒã«ã«ãµãŒããŒã®ããŒã«ã¯ãã·ã³äžã§èµ·åããŠåããŠååŸã§ããŸããã¡ã³ãããŒã¯ãŸã ããŒã«äžèЧãæäŸããŠããŸããã
詳现
ð§ Codebase Curator
ð Claude ã«ãã³ãŒãããŒã¹ãæ·±ãçè§£ããåããã¬ãŒã³ãããŸããã
Claude ã®ãã°ã«ã³ãŒãããŒã¹ã®å°éå®¶ãããã°ããã£ãšé ŒããããªããŸã
Codebase Curator ãšã¯ïŒ
Codebase Curator ã¯ãClaude ãã³ãŒããçè§£ããæ¹æ³ãå€ããŸãã質åããšã«åå¥ã«å¯Ÿå¿ããã®ã§ã¯ãªããã³ãŒãããŒã¹å šäœãæ·±ãçè§£ãããæ°žç¶çã§é«æ§èœãªããŒãããŒã Claude ã«æäŸããŸãã
åé¡ç¹
ã³ãŒãããŒã¹ã«ã€ã㊠Claude ã«è³ªåãããšãæ¯åãŒããã調æ»ãå§ããŸãã
- ð åããã¡ã€ã«ãç¹°ãè¿ã調æ»ãã
- â° ã¢ãŒããã¯ãã£ãåçºèŠãããããåçãé ããªã
- ð¯ 質åããšã«çè§£ãäžè²«ããªã
- ð ã³ãŒãã®ãã¿ãŒã³ã«åããªãäžè¬çãªææ¡ãè¿ããã
解決çïŒ2ã€ã®Claudeã«ããã¢ãŒããã¯ãã£
Codebase Curator ã¯å°çšã®ãCurator Claudeããèµ·åããããªãã®ã³ãŒãããŒã¹ã«ç¹åãããšãã¹ããŒãã«è²ãŠãŸãã
You (Coding Claude) â "How do I add authentication?"
â
Codebase Curator â Spawns Curator Claude
â
Curator Claude â Deeply analyzes your codebase
â
You get â Specific guidance that fits YOUR patterns
âš äž»ãªæ©èœ
ð€ 2ã€ã®Claudeã«ããã¢ãŒããã¯ãã£
- Curator ClaudeïŒããªãã®ã³ãŒãããŒã¹ã«ç¹åãããšãã¹ããŒãã«ãªãå°çšAI
- æ°žç¶çãªã»ãã·ã§ã³ïŒè³ªåéã§ã³ã³ããã¹ããèšæ¶
- ãã°ãã远å 質åïŒæåã®è³ªåã«ã¯2åããããŸããã以éã¯å³åº§ã«åçããŸã
ð Smart Grep - ã³ãŒããçè§£ããã»ãã³ãã£ãã¯æ€çŽ¢
ð æ°æ©èœïŒClaudeåãã³ã³ãã¯ãã¢ãŒãïŒã³ã³ããã¹ã䜿çšéã90ïŒ åæžïŒïŒ
Smart Grep ã§ã¯ãAI ã¢ã·ã¹ã¿ã³ãåãã«æé©åãããã³ã³ãã¯ããªèŠçŽã¢ãŒããããã©ã«ãã§äœ¿ãããããã«ãªããŸããã
# Default: Compact summary (perfect for Claudes)
smartgrep "authService"
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
ð SMARTGREP: "authService" (17 results in 4 files)
ð DEFINITION: auth/service.ts:42 (CLASS)
export class AuthService {
constructor(db: Database, cache: Cache)
ð¥ TOP USAGE:
⢠api/routes.ts:
- Line 15: authService.authenticate(username, password)
- Line 23: authService.validateToken(token)
⢠middleware/auth.ts:12 - if (!authService.isValid(token))
â¡ BREAKING CHANGES (if you modify this):
⢠LoginController.handleLogin() - calls authenticate()
⢠AuthMiddleware.verify() - calls validateToken()
ð¡ PATTERNS DETECTED:
⢠Always async/await calls
⢠Throws: AuthenticationError, TokenExpiredError
ð¯ NEXT: smartgrep refs "authService" | smartgrep "authenticate"
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
# Need full details? Use --full flag
smartgrep "authService" --full # Complete analysis with all matches
Claude ã«ãšã£ãŠéèŠãªçç±ïŒ
- 以åïŒæ€çŽ¢ããšã«2000ïœ3000ããŒã¯ã³ãæ¶è²»
- çŸåšïŒæ€çŽ¢ããšã«ããã200ïœ300ããŒã¯ã³
- çµæïŒã³ã³ããã¹ãäžéã«éãããŸã§ã«ãæ€çޢ忰ã10åã«ïŒ
äž»ãªæ©èœ
# Don't just search - understand!
smartgrep "handleAuth" # Shows where it's used + usage count
smartgrep refs "apiClient" # Full impact analysis - see all references
smartgrep group auth # Search ALL auth patterns at once
smartgrep changes # Analyze your uncommitted changes impact
smartgrep changes --compact # Quick risk assessment before committing
smartgrep "func NewAuth" # Go functions
smartgrep "impl Auth" # Rust implementations
smartgrep "protocol Auth" # Swift protocols
smartgrep "function deploy" # Shell scripts
# Returns organized results with usage counts:
# â Functions: authenticate() (12 uses), validateUser() (5 uses)
# â Classes: AuthService, AuthMiddleware
# â Config: JWT_SECRET, AUTH_URL, oauth settings
# â Cross-references: Shows actual calling code with file:line locations
# Advanced patterns
smartgrep "error&handler" # AND search
smartgrep "login|signin|auth" # OR search
smartgrep "!test" --type function # Exclude tests
# Custom concept groups for your project
smartgrep group add payments charge,bill,invoice,transaction
smartgrep group payments --type function # Search your custom group
ð èšèªãµããŒã - ãã¬ãŒã ã¯ãŒã¯ãå«ã14èšèªã«å¯Ÿå¿ïŒ
ããã°ã©ãã³ã°èšèªïŒ
- TypeScript/JavaScript - å®å šãªASTè§£æãJSX/TSXãES6以éããã³ã¬ãŒã¿ãŒ
- Python - ã¯ã©ã¹ããã³ã¬ãŒã¿ãŒãéåæåŠçãåãã³ããdocstringãããŒã¿ã¯ã©ã¹
- Go - ã€ã³ã¿ãŒãã§ãŒã¹ãgoroutineããã£ãã«ãåã蟌ã¿åããžã§ããªã¯ã¹
- Rust - ãã¬ã€ãããã¯ããã©ã€ãã¿ã€ã ãéåæåŠçãunsafeãããã¯ãderive
- Swift - ãããã³ã«ãSwiftUIãæ¡åŒµãããããã£ã©ãããŒãã¢ã¯ã¿ãŒ
- Shell - 颿°ããšã€ãªã¢ã¹ããšã¯ã¹ããŒãããã¢ããã¥ã¡ã³ããé å
ãã¬ãŒã ã¯ãŒã¯ã®ãã¡ã€ã«ïŒæ°æ©èœïŒïŒïŒ
- Svelte (.svelte) - RunesïŒ$stateã$derivedïŒãã¹ãã¢ãã©ã€ããµã€ã¯ã«ããã¯ããã£ã¬ã¯ãã£ã
- Vue (.vue) - Composition APIãSFCããã£ã¬ã¯ãã£ãïŒv-ifãv-forïŒãdefineProps
- Astro (.astro) - Props ã€ã³ã¿ãŒãã§ãŒã¹ãã¯ã©ã€ã¢ã³ããã£ã¬ã¯ãã£ããAstro.props
- MDX (.mdx) - JSXã³ã³ããŒãã³ããå«ãMarkdownãã€ã³ããŒãããšã¯ã¹ããŒã
èšå®ãã¡ã€ã«ïŒ
- JSON - package.jsonãtsconfig.jsonãéå±€çãªè§£æ
- YAML - CI/CDãã€ãã©ã€ã³ãDocker ComposeãKubernetesãããã§ã¹ã
- TOML - Cargo.tomlãpyproject.tomlãæ§é åãããèšå®
- ç°å¢èšå® - å®å šãªå€ã®ãã¹ãã³ã°ã«å¯Ÿå¿ãã.envãã¡ã€ã«
ð¯ ã©ã€ãç£èŠããã·ã¥ããŒã
# Watch your codebase evolve in real-time
bun run monitor watch --overview
# See:
# â Live code distribution by type
# â File changes as they happen
# â Most complex files by declaration count
# â Automatic reindexing on changes
ð§ æ°žç¶çãªçè§£
- æåã®è³ªåïŒCurator Claude ãã³ãŒãããŒã¹ã調æ»ããåŠç¿ããŸã
- 2åç®ä»¥éã®è³ªåïŒãã®çè§£ãåºã«åçãéããŸã
- çµæïŒããé«éã§ãããæ£ç¢ºãªãã³ã³ããã¹ããèæ ®ããåç
ð å®äŸ
# Overview - The foundation (takes ~2 minutes)
"Give me an overview of this codebase"
â Curator explores everything, understands patterns
# Follow-up questions are instant and accurate
"How does authentication work?"
â Immediate response with YOUR specific implementation
"Where should I add a payment feature?"
â Knows your patterns, suggests the right location
ðŠ ã€ã³ã¹ããŒã«
åææ¡ä»¶
- ã¢ã¯ãã£ããªãµãã¹ã¯ãªãã·ã§ã³ãããClaude Code
- Bun ã©ã³ã¿ã€ã ïŒNode.jsããé«éïŒ
ã¯ã€ãã¯ã¹ã¿ãŒã
- ã¯ããŒã³ããŠã°ããŒãã«ã«ã€ã³ã¹ããŒã«
git clone https://github.com/RLabs-Inc/codebase-curator.git
cd codebase-curator
bun install
bun link # Makes commands available globally
ããã§ãã©ãããã§ã次ã®ã³ãã³ãã䜿çšã§ããŸãã
smartgrep- ã»ãã³ãã£ãã¯ã³ãŒãæ€çŽ¢curator-monitor- ã©ã€ãç£èŠcodebase-curator- 察話åCLI
ð ã€ã³ã¹ããŒã«ã¬ã€ãå šæ - è©³çŽ°ãªæé ãšãã©ãã«ã·ã¥ãŒãã£ã³ã°
- Claude Code MCP ãèšå®ãã
claude_code_config.jsonã«è¿œå ããŸãã
{
"mcpServers": {
"codebase-curator": {
"command": "bun",
"args": ["run", "/path/to/codebase-curator/src/mcp-servers/codebase-curator/server.ts"]
}
}
}
- Claude Code ãåèµ·åãã Codebase Curator ã®ããŒã«ã Claude ã®ããŒã«ããã«ã«è¡šç€ºãããŸãã
ð¯ äœ¿çšæ¹æ³
Claude Code å
- ãããžã§ã¯ããèšå®ãã
Use the set_project_path tool:
Path: /path/to/your/project
- æŠèŠã確èªããïŒæåã«å®è¡ããŠãã ããïŒïŒ
Use the get_codebase_overview tool
- 質åãã
Use ask_curator: "How does the payment system work?"
Use add_new_feature: "Add user notifications"
Use implement_change: "Fix the login timeout bug"
Smart Grep CLI - ã»ãã³ãã£ãã¯æ€çŽ¢ãã·ã³ãã«ã«
# After installation with bun link, use from anywhere:
# Concept groups - search semantic patterns
smartgrep group auth # ALL auth patterns (login, jwt, token...)
smartgrep group error # ALL error patterns (exception, fail...)
smartgrep group api # ALL API patterns (endpoint, route...)
smartgrep group list # See all 20+ concept groups
# NEW: Analyze your changes before committing!
smartgrep changes # Full impact analysis of uncommitted changes
smartgrep changes --compact # Quick risk assessment (one line)
# Advanced search patterns
smartgrep "user|auth" # OR search
smartgrep "async&function" # AND search
smartgrep "!test" --type function # Exclude tests
smartgrep refs "PaymentService" # Find all usages
# Custom groups for your project
smartgrep group add payments charge,bill,invoice,transaction
smartgrep group payments # Use your custom group
# Type filters for precision
smartgrep "auth" --type function # Only functions
smartgrep "error" --type string # Only string literals
smartgrep group api --type class # Only API classes
# Sort and format options
smartgrep group service --sort usage # Most used first
smartgrep "user" --compact # One line per result
smartgrep "api" --json # Machine-readable output
ðïž ã¢ãŒããã¯ãã£
ã¢ãã¬ãæ§æ
src/
âââ packages/ # Distributable packages
â âââ semantic-core/ # Core indexing engine
â âââ smartgrep/ # Semantic search CLI
â âââ codebase-curator/ # Full suite
âââ services/ # Shared business logic
âââ tools/ # CLI interfaces
âââ mcp-servers/ # AI interfaces
âââ shared/ # Common utilities
2ã€ã® Claude ã·ã¹ãã
- ã³ãŒãã£ã³ã° ClaudeïŒClaude Code ã§äœæ¥ããããªã
- ãã¥ã¬ãŒã¿ãŒ ClaudeïŒå°ä»»ã®ã³ãŒãããŒã¹ãšãã¹ããŒã
- éä¿¡ïŒMCPïŒModel Context ProtocolïŒçµç±
ã¹ããŒããªã³ã³ããŒãã³ã
- ã»ãã·ã§ã³ã®æ°žç¶åïŒ--resume ã䜿ã£ãŠè³ªåéã®ã³ã³ããã¹ããç¶æããŸã
- åçãªã¿ã€ã ã¢ãŠãïŒããŸããŸãªæäœã«åãããŠèª¿æŽããŸãïŒTaskïŒ10åãBashïŒ5åïŒ
- ã»ãã³ãã£ãã¯ã€ã³ããã¯ã¹äœæïŒ20以äžã®ã³ã³ã»ããã°ã«ãŒãã§ã³ãŒãæ§é ãçè§£ããŸã
- å¢åã€ã³ããã¯ã¹äœæïŒãããŠã³ã¹åŠçã«ããã倿Žããããã¡ã€ã«ã®ã¿ãååŠçããŸã
- ã©ã€ãã¢ãã¿ãªã³ã°ïŒäœæ¥äžã®ã³ãŒãã®å€åããªã¢ã«ã¿ã€ã ããã·ã¥ããŒãã§è¡šç€ºããŸã
- çžäºåç §ïŒã³ãŒãã®å®çŸ©å Žæã ãã§ãªãã䜿çšç®æã衚瀺ããŸã
- ã¹ããªãŒãã³ã°ã¢ãŒããã¯ãã£ïŒå€§èŠæš¡ãªã³ãŒãããŒã¹ãå¹ççã«åŠçããŸã
- ããã±ãŒãžé åžïŒåããŒã«ãåå¥ã«ã€ã³ã¹ããŒã«ã§ããŸã
ð€ è²¢ç®
çããŸããã®è²¢ç®ãæè¿ããŸãïŒã¬ã€ãã©ã€ã³ã«ã€ããŠã¯ãCONTRIBUTING.md ãã芧ãã ããã
éçº
# Install workspace dependencies
bun install
# Run tests
bun test
# Run MCP server locally
bun run mcp
# Run CLI tools
bun run start # Curator CLI
bun run smartgrep [query] # Smart grep
bun run monitor watch --overview # Live monitoring
# Build semantic index
bun run smartgrep --index
# Analyze your changes
bun run smartgrep changes # Full impact analysis
bun run smartgrep changes -c # Quick risk check
# Work with packages
cd src/packages/smartgrep
bun run build # Build for distribution
bun run build:binary # Create standalone binary
å©çšå¯èœãª MCP ããŒã«
get_codebase_overview- ã³ãŒãããŒã¹ã詳现ã«åæããŸãask_curator- ã³ãŒãã«ã€ããŠè³ªåããŸãadd_new_feature- æ°æ©èœã®ã¬ã€ãã³ã¹ãååŸããŸãimplement_change- å ·äœçãªå€æŽã«ã€ããŠãµããŒããåããŸãlist_project_special_tools- AI ã«æé©åãããããŒã«ãèŠã€ããŸãremind_about_smartgrep- smart-grep ã®äœ¿çšäŸã確èªããŸã
ð ã©ã€ã»ã³ã¹
MIT - LICENSE ãã芧ãã ããã
ð è¬èŸ
RLabs Inc. ãš Claude ã â€ïž ã蟌ããŠéçºããŸããã
ãã®é£æºãå®çŸããŠããã Claude Code ããŒã ã«ç¹å¥ãªæè¬ãç³ãäžããŸãã
èŠããŠãããŠãã ãããããªãã® Claude ã¯ã³ãŒãã£ã³ã°ãå©ããããã«æžåœã«åããŠããŸãããµããããè¶ èœåãæããŸãããïŒ ð
ð ããã¥ã¡ã³ã
- ã€ã³ã¹ããŒã«ã¬ã€ã - 詳现ãªã»ããã¢ããæé
- èšèªãµããŒã - ãµããŒããããŠããå š10èšèª
- Smart Grep ã¬ã€ã - é«åºŠãªæ€çŽ¢ãã¯ããã¯
- ã¢ãŒããã¯ãã£æŠèŠ - å šäœã®ä»çµã¿
- ãã©ãã«ã·ã¥ãŒãã£ã³ã° - ããããåé¡ãšè§£æ±ºæ¹æ³
- ãªãªãŒã¹ããŒã v4.0 - ææ°ã®æŽæ°å 容
ð æ°æ©èœ
v4.0 - Git ã®åœ±é¿åæãšã«ã¹ã¿ã ã°ã«ãŒã
- Git 倿ŽåæïŒ
smartgrep changesã§æªã³ãããã®å€æŽã«ãã圱é¿ãåæããŸã - ã«ã¹ã¿ã ã³ã³ã»ããã°ã«ãŒãïŒãããžã§ã¯ãåºæã®ã»ãã³ãã£ãã¯ãã¿ãŒã³ãäœæã§ããŸã
- ããã©ãŒãã³ã¹ïŒã¹ã¿ã³ãã¢ãã³ããŒã«ãã37åé«éã§ãïŒ1ç§å¯Ÿ37.5ç§ïŒ
- ãªã¹ã¯è©äŸ¡ïŒã³ãããåã«1è¡ã§å®å šæ§ã確èªã§ããŸã
- 10èšèªããµããŒãïŒSwift ãš Shell ã¹ã¯ãªããã®ãµããŒãã远å ããŸãã
v3.0 - Smart Grep ã®é©æ°
- ã³ã³ã»ããã°ã«ãŒãïŒ
smartgrep group authã§ã»ãã³ãã£ãã¯ãã¿ãŒã³ãæ€çŽ¢ããŸã - é«åºŠãªæ€çŽ¢ïŒANDïŒORïŒNOT ãã¿ãŒã³ãæ£èŠè¡šçŸããµããŒãããŸã
- åãã£ã«ã¿ãŒïŒé¢æ°ãã¯ã©ã¹ã倿°ãªã©ã«çµã£ãŠæ€çŽ¢ããŸã
- ã©ã€ãã¢ãã¿ãªã³ã°ïŒã³ãŒãããŒã¹ã®æŠèŠããªã¢ã«ã¿ã€ã ããã·ã¥ããŒãã§è¡šç€ºããŸã
- MCP ã«ããæ€åºïŒããŒã«ã Claude ã« smart-grep ã®æ©èœãèŠã€ããæå©ããããŸã
v2.3 - å¢åã€ã³ããã¯ã¹äœæ
- ããã·ã¥ããªãŒïŒãã¡ã€ã«ã®å€æŽãå³åº§ã«æ€åºãã Bun.hash()
- ã¹ããŒããªãããŠã³ã¹åŠçïŒéè€ããä¿åã€ãã³ããé©åã«åŠçããŸã
- ãµã€ã¬ã³ãã¢ãŒãïŒã©ã€ãã¢ãã¿ãªã³ã°çšã«åºåããã£ãããããŸã
- äžæãªãã¡ã€ã«ã®è¿œè·¡ïŒã€ãã³ãæ°ã§ã¯ãªããå®éã®å€æŽã衚瀺ããŸã
ã³ã¡ã³ã
MCP ã¯åããŠã§ããïŒ
ãããã³ã«ã®æŠèŠããæåã®ãµãŒããŒã®å°å ¥ãŸã§ãããããçåã«ãŸãšããŠçããŸãã
AI ã¢ããªã±ãŒã·ã§ã³ãå€éšã®ããŒã«ãããŒã¿ãœãŒã¹ã«çµ±äžçãªæ¹æ³ã§æ¥ç¶ããããã®ãªãŒãã³ãªãããã³ã«ã§ããã¯ã©ã€ã¢ã³ãã¯ã¢ãã«ãšã®å¯Ÿè©±ãæ ããMCP ãµãŒããŒã¯ããŒã«ã»ãªãœãŒã¹ã»ããã³ãããã³ãã¬ãŒããæäŸããŸããæšæºã¡ãã»ãŒãžã§ããåãããããã1 ã€ã®ãµãŒããŒãè€æ°ã®ã¯ã©ã€ã¢ã³ãã§åå©çšã§ããŸãã