[BUG] Claude Code continuously consumes Pro usage quota after GitHub MCP/GitHub CLI operations
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
Claude Code unexpectedly consumed a large amount of my Claude Pro usage quota after performing GitHub-related tasks through GitHub MCP and GitHub CLI.
The quota continued decreasing for an unknown period, even though I was no longer interacting with Claude Code.
Environment
- Subscription: Claude Pro
- OS: macOS
- Claude Code: Latest version available at the time
- GitHub MCP: Enabled
- GitHub CLI (
gh): Installed and authenticated
What I asked Claude Code to do
I only asked Claude Code to perform several read-only GitHub operations, including:
- List my private repositories
- List repositories I was invited to
- Read repository information
- Read GitHub issues
I did not ask Claude Code to analyze every repository or perform any large-scale code review.
Expected behavior
Claude Code should:
- Perform only the requested GitHub operations.
- Stop making tool calls after completing the requested task.
- Stop consuming Claude Pro quota once the task has finished.
Actual behavior
After the GitHub operations appeared to complete:
- Claude Pro usage quota continued decreasing.
- The quota was consumed for an unknown amount of time.
- I was no longer interacting with Claude Code.
- I could not determine what Claude Code was still doing.
Eventually, my Claude Pro usage window was exhausted.
Troubleshooting performed
To rule out local issues, I completely removed Claude Code following this guide:
https://viblo.asia/p/how-to-completely-remove-claude-code-a-clean-uninstall-guide-1j4lQD3KJwl
After uninstalling, I verified that no Claude process was running:
ps aux | grep claude
Output:
viet.nguyen 24613 0.0 0.0 410734640 1648 s000 S+ 8:35AM 0:00.01 grep claude
This confirms there were no active Claude Code processes remaining.
Possible cause
I don't know the exact root cause, but it appears that one of the following may be happening:
- GitHub MCP continues making tool calls after the visible task finishes.
- Claude Code retries MCP requests unexpectedly.
- A background agent continues processing after the client is no longer active.
- An MCP interaction results in excessive token consumption.
Unfortunately, there is currently no way for users to determine which tool calls are still running or why tokens are continuing to be consumed.
Additional information
This issue is difficult to reproduce consistently because the quota continues decreasing without any visible indication of what Claude Code is doing.
However, the issue has happened multiple times while interacting with GitHub through GitHub MCP and GitHub CLI, primarily when listing repositories or reading GitHub issues.
Given that Claude Pro usage is time-limited, unexpected background token consumption can quickly exhaust the available usage window without the user realizing it.
What Should Happen?
After completing the requested GitHub operations, Claude Code should:
- Stop making MCP/GitHub CLI tool calls once the requested task has finished.
- Stop consuming Claude Pro usage when there is no further user interaction.
- Only consume tokens for the operations explicitly requested by the user.
- Provide clear visibility into any ongoing background tasks or tool executions, if they exist.
Error Messages/Logs
Steps to Reproduce
- Launch Claude Code with GitHub MCP enabled and GitHub CLI (
gh) authenticated. - Ask Claude Code to perform GitHub read-only operations such as:
- List private repositories.
- List repositories I have been invited to.
- Read repository information.
- Read GitHub issues.
- Wait for Claude Code to complete the requested tasks.
- Stop interacting with Claude Code.
- Observe the Claude Pro usage window over time.
Result
Claude Pro usage continues to decrease for an unknown period, even though there is no further user interaction and no visible Claude Code process is running.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.222
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_