Project Router
Automatically detect which ROCm project the user is referencing and load appropriate context.
Project Detection Table
| Keywords | Project | Primary Path |
|---|---|---|
| TheRock, rock, superbuild, component+build, fetch_sources | therock | /home/AMD/sareeder/TheRock |
| consumption, hipdnn-consumption | therock (consumption worktree) | /home/AMD/sareeder/therock-consumption |
| miopen-plugin, plugin-move | therock (miopen-plugin worktree) | /home/AMD/sareeder/therock-miopen-plugin-move |
| rocm-libraries, libs, projects/hipdnn, projects/miopen, dnn-providers | rocm-libraries | /home/AMD/sareeder/full/rocm-libraries |
| hipDNN (outside TheRock context), hipdnn_frontend, hipdnn_backend | rocm-libraries | /home/AMD/sareeder/full/rocm-libraries |
| mlse-tools, mlse, alola, slurm, kubernetes, promote_ck, promote_miopen | mlse-tools | /home/AMD/sareeder/mlse-tools-internal |
| dnn-benchmarking, benchmark, --graph, A/B testing, perf | dnn-benchmarking | /home/AMD/sareeder/dnn-benchmarking |
Worktree Detection Priority
When multiple matches possible, use this priority:
- •Explicit worktree name mentioned (e.g., "consumption") → that worktree
- •Recent context from conversation → maintain current worktree
- •Default to main repository
Context Loading
When project is detected:
- •
Read project registry:
/home/AMD/sareeder/ROCm-workspace/.claude/registry/projects.json - •
Read project CLAUDE.md (if exists):
- •TheRock:
/home/AMD/sareeder/TheRock/CLAUDE.md - •rocm-libraries:
/home/AMD/sareeder/full/rocm-libraries/CLAUDE.md - •dnn-benchmarking:
/home/AMD/sareeder/dnn-benchmarking/CLAUDE.md
- •TheRock:
- •
Set working context:
- •All file paths should be absolute to the detected project
- •Build commands use project's build directory
- •Git operations target correct repository/worktree
Path Patterns
Always use absolute paths:
code
/home/AMD/sareeder/TheRock/... /home/AMD/sareeder/therock-consumption/... /home/AMD/sareeder/therock-miopen-plugin-move/... /home/AMD/sareeder/full/rocm-libraries/... /home/AMD/sareeder/mlse-tools-internal/... /home/AMD/sareeder/dnn-benchmarking/...
Multi-Project Operations
If user mentions multiple projects, handle sequentially and clearly indicate which project each operation targets.