[BUG] Marketplace Tool Uses Phantom "<git username>/repo-name.git" URL When Installing New Packages

Resolved 💬 3 comments Opened Mar 11, 2026 by cyrusjk Closed Mar 12, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Summary:
The claude plugins marketplace command incorrectly attempts to clone a non-existent repository
(https://github.com/<git username>/repo-name.git/) when adding new packages, even when no valid configuration references this
URL. This suggests a hardcoded fallback or caching issue within the Claude CLI tools.

NOTE: <git username> is a placeholder in this description for the users actual github username, not a literal.

Additional Notes:

  • Workaround: Manually cloning the repo into the marketplace directory resolves the issue temporarily, suggesting a

problem with the marketplace tool's internal logic.

  • Stub Persistence: The invalid URL appears unrelated to any active configuration, suggesting stale state in CLI

internals or an undocumented fallback mechanism.

What Should Happen?

The marketplace tool should:

  • Clone the repository specified in the command (anthropics/agent-skills) or configuration.
  • Never fallback to a predefined invalid URL (e.g., <git username>/repo-name.git/).

Error Messages/Logs

- CLI ignores the provided/repo and attempts to clone https://github.com/<git username>/repo-name.git/ (a non-existent
  repository).
- This occurs even after configuration and environment variables are explicitly reset.

Steps to Reproduce

Steps to Reproduce:

  1. Clean Environment:
  • Deleted ~/.claude/plugins/known_marketplaces.json and wiped ~/.claude/plugins/marketplaces/ and

~/.claude/plugins/cache/ directories.

  • Unset environment variables: CLAUDE_MARKETPLACE_URL, CLAUDE_PLUGINS_URL, and CLAUDE_REPO_URL.
  1. Attempt to Add Marketplace:

Ran: claude plugins marketplace add anthropics/agent-skills (or similar valid repo).

  1. Observe Behavior:

CLI attempts to clone https://github.com/<git username>/repo-name.git/ instead of the specified anthropics/agent-skills repo.

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.72

Platform

Other

Operating System

Ubuntu/Debian Linux

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

This bug was primarily authored by Claude Code based on attempts to resolve this issue, and it suggested filing this issue and summarized the textural answers for the most part.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗