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

# Hand off a Sazabi issue to Replicas

> Connect Sazabi to Replicas, send a diagnosed production issue to a coding agent, and follow the pull request from the issue thread.

Once Sazabi identifies the root cause of a production issue, choose **Fix** to send it to a Replicas agent. The agent works in your repository. Its progress, questions, and pull request appear in the Sazabi issue thread.

## Connect Replicas to Sazabi

1. In Replicas, give the [GitHub integration](https://docs.replicas.dev/features/github.md) access to the repository and add it to an [environment](https://docs.replicas.dev/features/environments.md).
2. Ask a Replicas organization admin to create an organization key in [Settings → API Keys](https://app.replicas.dev/dashboard/settings?tab=api-keys).
3. As a Sazabi organization admin, open [Settings → Integrations](https://app.sazabi.com/settings/integrations), select **Replicas**, and choose **Connect**. Enter the key and check that your repository appears under **Repositories**.

## Start a fix

Open the issue in Sazabi, choose **Fix**, and select **Replicas** if it is not already the project default. Confirm the repository and base branch if prompted, then choose **Fix with Replicas**. Follow the attempt in the issue thread.

From an authenticated [Sazabi CLI](https://docs.sazabi.com/reference/cli/issues), set `ISSUE_ID` to the Sazabi issue ID and run:

```bash theme={null}
sazabi issues fix "$ISSUE_ID" --agent replicas
sazabi agent-dispatches list --issue-id "$ISSUE_ID"
```

Use the [agent dispatch commands](https://docs.sazabi.com/reference/cli/agent-dispatches) to reply to the agent or cancel the attempt.

If the repository is missing or Replicas isn't offered under **Fix**, see [Sazabi's setup and troubleshooting guide](https://docs.sazabi.com/catalogs/integrations/replicas).

## Query Sazabi from a Replicas workspace

To investigate logs and incidents from a workspace, add **Sazabi** from the environment's [suggested MCP servers](https://docs.replicas.dev/features/environments.md#mcps), or install the native [Sazabi plugin](https://docs.replicas.dev/features/plugins.md#install) for SDK access. Sign in to Sazabi for the option you choose. Neither is required for the Fix handoff.


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