Inject or refresh the compact codebase map — hot files, key symbols, and directory structure. Improves Claude's codebase orientation without burning context on full file reads.
From clarcnpx claudepluginhub marvinrichter/clarc --plugin clarcGenerate and inject a compact codebase snapshot into the current session context.
/repomap — inject current map (uses 24h cache)
/repomap --refresh — force regenerate (bypass cache)
/repomap --show — print the raw map without injecting
--- Codebase Map (2026-03-10) ---
Hot files (recently modified):
src/api/routes.ts Route, handleRequest, validateAuth [145L]
src/services/auth.ts AuthService, generateToken, verifyToken [98L]
src/models/user.ts User, UserRepository, createUser [76L]
Structure (8 dirs, 42 files):
src/ 12 files
tests/ 12 files
scripts/ 8 files
docs/ 5 files
Run /repomap --refresh to regenerate.
---
git log --name-only -50 finds recently changed files (most relevant to current work)git ls-files builds directory summary (respects .gitignore).clarc/repomap.txt, refreshed automatically every 24hNo tree-sitter or native dependencies required — runs anywhere Node.js runs.
generateCompactRepomap(process.cwd(), flags.refresh) from session-start.js--refresh: delete .clarc/repomap.txt first to force regeneration--show: print the map to the user without output() injectionoutput() and confirm with a one-line summary/repomap --refresh after major refactors or branch switches.clarc/repomap.txt can be added to .gitignore (it's a generated artifact)For deeper analysis → skill: repomap
For full project context → /context
/context — get full project context using the refreshed repomap/update-docs — update documentation after structural changes