Build persistent CODEBASE.md in the vault for a project. Explores the codebase structure, conventions, and architecture. Use when the user says "index codebase", "map codebase", or "/index-codebase <project>". Takes a project name as argument.
Explore a project's codebase and produce a comprehensive CODEBASE.md reference in the vault.
The user provides a project name (e.g., my-app, api-server).
Map to codebase path and vault path using the Project-Codebase Mapping table in CLAUDE.md (always in system prompt), or from agent-os.config.json.
If the project name doesn't match any entry in the mapping, ask the user to provide the codebase path.
Use the Explore subagent (Task tool with subagent_type=Explore, thoroughness="very thorough") to analyze:
Read <vaultPath>/<projectVaultFolder>/CODEBASE.md if it exists.
Write to <vaultPath>/<projectVaultFolder>/CODEBASE.md:
---