Skip to main content
Many teams build internal AI agents — Jira bots, code-generation pipelines, automated PR reviewers — that commit code, open PRs, or comment under a dedicated service account. By default Weave treats those identities as human contributors. Custom AI agents let you register them so their activity rolls up into AI charts (AI output, AI output percentage, AI reviewer comments, etc.) instead of skewing your human metrics.

Who can use it?

  • Admin and Manager roles can create, edit, and delete custom AI agents
  • Custom AI agents apply organization-wide as soon as they’re saved

Setting up an agent

  1. Go to Settings → Custom AI agents
  2. Click Add custom AI agent
  3. Fill out the fields below and Save
After saving, you can edit the agent to upload a custom icon (JPG, PNG, or WebP). The icon shows up alongside built-in tools like Claude Code and Cursor wherever agents are listed.

Fields

Registrations

A registration ties the agent to a specific identity on a code platform. You need at least one. Each registration has:
  • Platform — GitHub, GitLab, Bitbucket, or Azure DevOps
  • Email — the exact git email the agent commits under (e.g. jira-ai@acme.com)
  • Email pattern — a wildcard for matching multiple addresses (e.g. *@bots.acme.com)
  • External ID — the platform-specific user ID (e.g. a GitHub numeric user ID)
You can provide any combination of email, email pattern, and external ID — Weave matches activity against whichever fields you set. Most teams start with only the email and add an external ID later if the agent ever commits under a different address.
Add a separate registration for each platform the agent operates on. A single agent can have one registration for GitHub and another for GitLab.

git-ai tool names

If you’re using git-ai for line-level AI attribution, list the tool identifiers your agent reports (for example jira-ai, internal-codegen). Names are case-insensitive. Lines attributed to any of these tools are credited to this agent.

How matching works

When Weave ingests a commit, PR, or review comment, it checks the author’s git email and platform user ID against every registration in your organization. The first matching agent wins, and the contribution is reclassified as AI activity attributed to that agent. Co-authors are matched the same way. A commit with a Co-authored-by: <agent name> <agent email> line, where the email matches a registration, is attributed to that agent, and the human who authored the commit keeps the output credit. This affects: Existing data is reclassified on the next analysis run — you don’t need to re-sync.

Crediting a human for agent-authored PRs

When an agent opens PRs or MRs under its own service account, you can choose who gets the output credit. Each agent has two settings:
  • Credit PR closer for authored PRs — output for PRs this agent authored goes to the person who merged or closed the PR. The code is still counted as AI output for the agent.
  • Count autonomous output as this agent — PRs this agent authored with no human co-author are counted as the agent’s own output, and the agent appears as its own row in the per-engineer code output view.
To credit a specific engineer instead of the closer, add a Co-authored-by line with the engineer’s git email to the agent’s commits. The engineer then gets the output credit for those commits. Use the same email the engineer commits with, so Weave can match it to their account.

Editing or removing an agent

From the Custom AI agents list:
  • Click an agent to edit its name, description, category, registrations, or git-ai tool names
  • Click the delete icon to remove it — past activity reverts to being counted as the underlying human identity
Last modified on October 19, 2026