Skip to content

Conversation

@JordanCoin
Copy link
Owner

Summary

  • Detect GitHub/GitLab URLs and clone to temp dir (shallow, quiet)
  • Show repo name (e.g., charmbracelet/gum) instead of temp dir name
  • Add source indicator line in header: ↳ github.com/charmbracelet/gum
  • Auto-cleanup temp dir after rendering

Usage

codemap github.com/charmbracelet/gum
codemap github.com/JordanCoin/codemap --depth 2
codemap https://github.com/anthropics/claude-code

Demo

╭───────────────────────── charmbracelet/gum ─────────────────────────╮
│ Files: 118 | Size: 224.7KB                                          │
│ Top Extensions: .go (59), .sh (11), .tape (10), .yml (9), .md (6)   │
│ ↳ github.com/charmbracelet/gum                                      │
╰─────────────────────────────────────────────────────────────────────╯

Test plan

  • Test with github.com/user/repo format
  • Test with https://github.com/user/repo format
  • Verify temp dir cleanup
  • Verify flags work (--depth, --skyline, etc.)

🤖 Generated with Claude Code

- Detect GitHub/GitLab URLs and clone to temp dir
- Show repo name (e.g., "charmbracelet/gum") instead of temp dir
- Add source indicator line: ↳ github.com/charmbracelet/gum
- Quiet git clone (no output noise)
- Auto-cleanup temp dir after rendering

Usage:
  codemap github.com/charmbracelet/gum
  codemap github.com/JordanCoin/codemap --depth 2

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

If a path like github.com/user/repo exists locally (e.g., ~/go/src/github.com/...),
use the local path instead of cloning from remote.

Only clone when the path doesn't exist locally.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@JordanCoin JordanCoin merged commit 411dd33 into main Jan 1, 2026
12 checks passed
@JordanCoin JordanCoin deleted the feat/remote-repo-support branch January 1, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants