Add background agent commits to AI code tracking API

Feature request for product/service

Background Agent (GitHub, Slack, Linear,…)

Describe the request

Commits and PRs created by a Cursor background agent should be trackable via the AI code tracking API.

We use the AI code tracking API to get AI lines contributed per commit in some PR in order to label PRs with how much was Cursor-generated. However, the commits created by the background agent can’t be found using the [email protected] user, so the metrics are completely off.

It would be great if these commits could be tracked as well.

Second, what are the conditions for when some commit is tracked? We’ve experienced inconsistent results for:

  • whether a commit is tracked if it’s committed in the Cursor terminal versus outside it
  • whether the lines are correctly marked as Cursor-generated (e.g. showing 0 lines generated by composer when they were all Cursor-generated)