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.