Skip to content

Contributor list can include bot and AI-agent accounts (cursoragent is one today) #326

Closed

Description

@IanoNjuguna

Problem

The build-time fetch that feeds the homepage community section filters contributors with a type check plus a hard-coded Dependabot name check:

// scripts/fetch-github-data.js:47
.filter(user => user.type !== 'Bot' && !user.login.toLowerCase().includes('dependabot'))

GitHub only labels some automation accounts as type Bot. cursoragent is reported as type User, so the type check never catches it, and the login check only covers Dependabot.

Evidence (checked against the live API, 2026-10-14)

$ gh api "repos/IntersectMBO/developer-experience/contributors?per_page=100" \
    --jq '.[] | "\(.type)\t\(.contributions)\t\(.login)"'
...
Bot     28   dependabot[bot]
User     1   cursoragent

cursoragent sits at position 15 in the API's contribution order, which is exactly the boundary of the script's .slice(0, 15), so it flickers in and out of the rendered list depending on tie ordering:

  • present in the 2026-08-01 snapshot currently committed to the repo
  • absent from a fetch run today

Whatever it renders, it is then displayed as a contributor by website/src/components/CommunitySection/Contributors.tsx.

Impact

The community section can present an AI coding agent as a person who contributed to the repository. Any claude, copilot[-_]swe[-_]agent, codex-agent or devin-* account would behave the same way, because they are type User too.

Suggested fix

Filter the login against automation patterns in addition to the type check — e.g. bot, dependabot, agent, copilot, claude, cursor, codex, devin.

Widening the slice is not a fix: it only moves the boundary and lets the next automation account through.

Notes

An implementation of the suggested fix exists on a local branch, chore/exclude-agent-contributors (one commit, scripts/fetch-github-data.js, not yet pushed). It will reference this issue when it is opened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions