▎
▎ codemap already renders the repo tree and resolves remote GitHub URLs. Add a mode that overlays a change onto that map instead of listing files flat:
▎ - codemap --diff main...branch (or a ref pair) colors the tree by change — added / modified / removed files and the dirs that contain them, scoped to what the diff touches.
▎ - accept a GitHub PR/compare URL directly (reuse the existing remote-URL resolution) → render that PR's diff as a tree.
▎ - compose with --deps/--imports for blast radius: show not just what changed but what imports the changed files, as a subtree.
▎
▎ Why: reviewing a change is much faster when you see where in the structure it lands, not a flat file list — the tree is the mental model, the diff is the delta on it.
▎
▎ codemap already renders the repo tree and resolves remote GitHub URLs. Add a mode that overlays a change onto that map instead of listing files flat:
▎ - codemap --diff main...branch (or a ref pair) colors the tree by change — added / modified / removed files and the dirs that contain them, scoped to what the diff touches.
▎ - accept a GitHub PR/compare URL directly (reuse the existing remote-URL resolution) → render that PR's diff as a tree.
▎ - compose with --deps/--imports for blast radius: show not just what changed but what imports the changed files, as a subtree.
▎
▎ Why: reviewing a change is much faster when you see where in the structure it lands, not a flat file list — the tree is the mental model, the diff is the delta on it.