Fixing Ghost Contributors on GitHub Repositories for Your Engineering Metrics Dashboard

When tracking team velocity and maintaining an accurate engineering metrics dashboard, clean repository metadata is essential. Recently, a GitHub community discussion highlighted a persistent UI bug where the repository homepage's Contributors sidebar continued to display an AI assistant (such as `@codex` or `@claude`) long after history rewrites or removal, even though the official contributors API correctly listed only human team members.

Developer checking git repository statistics and contributor analytics on a dashboard.
Developer checking git repository statistics and contributor analytics on a dashboard.

The Problem: Stale Sidebar Cache

Developer @shadiataya raised an issue where the repository homepage showed five contributors, including Codex, despite having only four active members. A deep dive into the commit history across the main branch confirmed zero author, committer, or co-author attributions to Codex. Similar to past reports involving ghost AI tool attributions, the root cause is a stale server-side cache on the repository homepage sidebar box that fails to reindex following branch modifications or history rewrites.

Visualizing git branch synchronization and repository settings management.
Visualizing git branch synchronization and repository settings management.

The Community Workaround

While waiting for GitHub support to manually rebuild the index can take time, community member @pballada shared a clever, user-tested workaround to force GitHub to recompute the contributors graph without disrupting your codebase or commit history.

Steps to Force a Cache Refresh

  • Navigate to your repository Settings → General → Default branch.
  • Rename your default branch from main to a temporary name (e.g., main-tmp).
  • Visit the repository homepage once to trigger the cache invalidation and check the sidebar.
  • Rename the branch back to main.

Because renaming a branch updates open pull request bases and branch protections automatically, this method is relatively safe. However, teams using GitHub Pages with a legacy build type should exercise caution.

# Recommended sequence for team execution during a quiet window:
1. Alert teammates to pause pushes.
2. Rename main -> main-tmp in repository settings.
3. Verify repository homepage.
4. Rename main-tmp -> main.
5. Check Settings -> Pages to ensure deployment remains intact.

Why Clean Metadata Matters

Accurate repository statistics aren't just about aesthetics; they are critical for teams relying on transparent development metrics. Whether you are defining key performance indicators or evaluating team output through an engineering metrics dashboard, removing phantom contributors ensures your analytics tools, third-party integrations, and team contribution graphs reflect reality. If this manual branch-renaming workaround fails to clear the cache, reaching out directly to GitHub support remains the final recourse.

|

Dashboards, alerts, and review-ready summaries built on your GitHub activity.

 Install GitHub App to Start
Dashboard with engineering activity trends