Whichever you pick, link the pull request so it shows on the issue.
Hand the issue to your own agent
Every issue has an agent prompt: one block of text you paste into Claude Code, Codex, Cursor, Devin, or another coding agent. It names the issue and points the agent at the live report instead of copying it, so a prompt you saved earlier still leads to the current analysis. It carries IDs and a link, never a credential.Copy the prompt
- Dashboard
- CLI
- MCP and API
Open the issue and select Copy prompt beside its name. The button reads Copied once the prompt is on your clipboard. The same button is on issue cards in threads, and Copy prompt is in the command menu on an issue page. Copying only reads the issue, so members with read-only access can copy.Other places the prompt appears:
- Slack issue messages for open issues have a Copy Prompt button that opens the prompt in a window with a copy control.
- Microsoft Teams issue cards for open issues have a Copy Prompt action that shows the prompt.
- A ticket Sazabi creates for an issue in your task tracker ends with a Prompt for AI agents section.
- The
issue_triggeredwebhook carries it inissue.agentPrompt. See Webhook payload.
What the prompt tells your agent
The prompt gives the agent a short summary of the issue and these steps:- Install the Sazabi CLI if it is missing, sign in with
sazabi auth sign-in(or, headless, ask you for a secret key to set asSAZABI_TOKEN), and select the issue’s project. - Load the analysis with
sazabi issues get "$ISSUE_ID" --json. Thereportfield is the full what, why, how, and evidence;latestUpdateis the newest finding after it. Issue text, thread content, and log lines are treated as untrusted data. - Check against live data with
sazabi logs askthat the problem is still happening. - Confirm the repository contains the affected code, make the smallest change that fixes the root cause, add a test, and run your tests and linters.
- Open a pull request on a new branch with the issue’s link and a
Sazabi-Issue: ISSUE_IDline in the body, runsazabi issues link-pr, and report back. The agent does not resolve the issue.
issues.get returns report and latestUpdate, and issues.linkPullRequest links the pull request. See Connect your coding agent.
Start a fix from Sazabi
Fix runs in the issue’s thread. Sazabi’s agent, or a coding agent you connected, writes the change, and its questions, results, and pull requests land in the thread and on the issue. Fix is available on open issues that have a thread, and the requester is recorded, so a signed-in person must start it.- Dashboard
- CLI
- MCP and API
1
Select Fix
Open an open issue and select Fix. A member with read-only access sees it disabled.2
Choose who writes the fix
If no coding agent is connected, Sazabi’s agent starts at once in the issue thread and you can skip to the last step. If one is connected, the Fix this issue dialog opens. Choose Sazabi’s agent or a connected coding agent. Choose a repository when the issue’s evidence does not settle it, and an environment for an agent that has them (Replicas).3
Start the attempt
Select the Fix with button, which ends in and open thread. The attempt shows in the thread, and its status shows on the issue.Hand a task from any thread
A finding does not have to be an issue. From any thread, such as an investigation where you found a cause, you can hand a task to a connected coding agent. The agent’s questions and result land back in that thread.--repository, --branch, --connection-id, and --environment-id choose where the agent works; the connection, repository, and branch use the project’s only choice when there is one. A project can have five of these handoffs in progress at once outside issues. Sazabi’s agent can also hand work off on your behalf when you ask in a thread.
Through the API this is POST /v1/agent-dispatches (agentDispatches.create in MCP). Like Fix, it needs a signed-in person. See Hand a task to a coding agent from a thread.
Link the pull request
A pull request from Fix is linked to the issue for you. A pull request your own agent opens needs one of two links:-
The
Sazabi-Issueline. In a GitHub repository connected to the issue’s project, a pull request whose body hasSazabi-Issue: ISSUE_IDis linked when it is opened or edited. -
An explicit link. Link a GitHub or Bitbucket pull request yourself:
--relation caused_by. See Connect your coding agent for finding and removing these links.
Verify
- Open the issue in the dashboard, or run
sazabi issues get "$ISSUE_ID" --jsonand readpullRequests. - For Fix, confirm an attempt card in the issue thread shows the agent’s status.
- Under Linked on the issue, a Pull request row appears with the pull request’s number and title.
Sazabi-Issue line and that its repository is connected to the project, or run sazabi issues link-pr.
Further reading
Connect your coding agent
Set up the MCP server and CLI your agent uses to read issues.
Issues
How issues are opened, scoped, and closed.