Claude Code incorrectly creates issues in anthropics/claude-code instead of current working repo

Resolved 💬 2 comments Opened Aug 28, 2025 by soenmie Closed Aug 28, 2025

Issue Description

When asked to create GitHub issues, Claude Code sometimes incorrectly defaults to creating issues in anthropics/claude-code repository instead of the repository in the current working directory.

Expected Behavior

Claude Code should:

  1. Detect the current working directory's git repository
  2. Use the detected repository for issue creation
  3. Only use anthropics/claude-code for issues specifically about Claude Code itself

Actual Behavior

Claude Code may create issues in anthropics/claude-code even when working in a different repository context.

Suggested Fix

  • Add validation to check current git repository before creating issues
  • Prompt for confirmation if attempting to create issues outside the current repo
  • Default to the repository in the current working directory

Impact

This can lead to issues being created in the wrong repository, requiring manual cleanup and migration.

View original on GitHub ↗

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