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

# On-call Slack agent with Agent Vault

> Investigate production errors from Slack with an agent that holds no API keys.

The on-call agent is a Slack agent that investigates production errors. When you mention it in a channel, it reads the error in Sentry, traces it to the code and the commit that caused it, and proposes a fix. When you ask, it opens a pull request with the fix or files a GitHub issue.

> [card] [On-call Slack agent reference architecture](https://github.com/Infisical/agent-reference-architectures/tree/main/slack-agents/on-call)
>
> The code and the setup steps for Docker and a virtual machine, in the reference repo.

## How it works

1. A Slack bridge receives each mention and runs the agent with the message, in a clone of your repository. The reference architecture uses Claude Code as the agent.
2. The agent reads the error from the Sentry API, and uses `git` and `gh` to find the commit, and to open a pull request or file an issue when you ask.
3. Every request goes through an Agent Vault [proxy](https://infisical.com/docs/documentation/platform/agent-vault/proxies), which attaches the real credential for Anthropic, GitHub, Sentry, and Slack, and blocks hosts outside the agent's [access bundle](https://infisical.com/docs/documentation/platform/agent-vault/access-bundles.md).

## Prerequisites

* An [Agent Vault project](https://infisical.com/docs/documentation/platform/agent-vault/projects.md) where you have the [**Admin** role](https://infisical.com/docs/documentation/platform/agent-vault/access-control#product-membership)
* A Slack workspace where you can [create apps](https://api.slack.com/apps)
* A [Sentry](https://sentry.io/) project, and a [GitHub](https://github.com/) repository with at least one commit
* [Docker](https://docs.docker.com/get-started/get-docker/) with Docker Compose, or a Debian or Ubuntu virtual machine


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