> ## Documentation Index
> Fetch the complete documentation index at: https://codspeed.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Performance Agent

> CodSpeed's AI agent that sets up benchmarks, explains performance changes, and proposes fixes directly in GitHub.

The CodSpeed Performance Agent is an AI agent that sets up benchmarks and CI
configurations, explains regressions, and proposes code fixes. Use it from the
**CodSpeed dashboard** to set up a repository, or mention `@codspeedbot` in any
**pull request comment**, **issue comment**, or **review comment** for ongoing
performance work.

> [!NOTE]
>
> The Performance Agent was previously called the Wizard. Both names, and
> `@codspeedbot`, refer to the same agent.

![@codspeedbot responding to a GitHub pull request comment with a performance breakdown and proposed fix](https://mintcdn.com/codspeed/GE_LrYDPyn_qQoG5/assets/wizard-github-improvement.png?fit=max\&auto=format\&n=GE_LrYDPyn_qQoG5\&q=85\&s=ccae24d887514d60cb78f038d392198b)

`@codspeedbot` responding to a GitHub pull request comment with a performance breakdown and proposed fix

## Example usage

* **Performance breakdown**: ask for a summary of how a branch or pull request
  affects performance.

  ```
  @codspeedbot what's the performance impact of this PR?
  ```

* **Explain a regression**: ask the agent to investigate why a benchmark
  regressed and describe the root cause.

  ```
  @codspeedbot explain the regression on bench_parse
  ```

* **Propose a fix**: ask the agent to investigate a regression and open a pull
  request with a targeted fix.

  ```
  @codspeedbot fix the regression on bench_serialize
  ```

* **Add benchmarks**: request benchmarks for a specific function or module.

  ```
  @codspeedbot add a benchmark for the parse_config function
  ```

> [!NOTE]
>
> `@codspeedbot` requires the CodSpeed GitHub App to be installed on your
> repository. If you used the Performance Agent from the dashboard for initial
> setup, the app is already installed.

> [!NOTE]
>
> The Performance Agent is enabled by default on all accounts and organizations,
> but can be disabled by an admin in the settings.

## Next steps

> [card] [MCP Server](https://codspeed.io/docs/ai/mcp.md)
>
> Connect AI coding assistants to your CodSpeed performance data directly from
> your editor.

> [card] [Agent Skills](https://codspeed.io/docs/ai/skills.md)
>
> Teach AI assistants to set up benchmarks and optimize performance
> autonomously.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.