How to quickly understand a new codebase with codebase-memory
언제 쓸까: You just joined a team or started working on a new repo and need to understand its architecture fast.
사전 조건
- codebase-memory installed — curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.sh | bash
흐름
-
Index the codebaseIndex this project repository and give me an architecture overview.✓ 복사됨→ High-level module map with key entry points and dependencies
-
Explore a specific moduleShow me the call graph for the authentication module. What functions does login() call?✓ 복사됨→ Call chain from login through middleware, validation, and database
-
Find related codeSearch the graph for all functions that interact with the user table.✓ 복사됨→ List of functions with file locations and relationships
결과: A solid mental model of the codebase architecture in minutes instead of hours.
함정
- Indexing very large monorepos takes time on first run — Use index_status to check progress. Subsequent queries are instant since the graph persists.