get_codebase_map
Maps a repository's modules, dependencies, hotspots, and endpoints in one call so AI can see overall structure and module ownership before changing code.
Instructions
A repo's architecture in one call.
CALL THIS WHEN: • You need a repo's overall structure, or which module owns something • You don't know the repo's exact name in Pharaoh
RETURNS: Modules with file counts and LOC, module dependencies with two-way ones flagged, the files changed most in 90 days, and every endpoint with its handler file.
USE INSTEAD OF: directory listings, which omit dependency relationships.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name — one of your connected repos. | |
| include_metrics | No | Include LOC, complexity, change frequency |