For the complete documentation index, see llms.txt. This page is also available as Markdown.

Assigning issues to agents

Within Triage, users can assign issues to a coding agent. Once an issue is assigned to an agent, Runway can trigger the agent to start working and provide all the necessary context to help the agent resolve the issue. The agent pushes a fix to a dedicated branch, and Runway opens a pull request for your team to review.

Agents can run in your own GitHub Actions workflows, in a Claude Code routine, or in any service that can receive a webhook.

Assigning issues to agents is available on Enterprise plans only.

Creating an agent

To create an agent, navigate to the AI section of your Organization settings and click Create agent in the Agents section. You'll need permission to manage API keys. The setup walks you through four steps:

  1. Agent: give the agent a name and choose how it runs.

  2. Apps: choose the apps whose issues the agent can be assigned to.

  3. Set up: connect the agent to where it runs. This step depends on the type of agent.

  4. API key: Runway creates an API key for the agent. The agent's API key can only read Triage issues, and only for the agent's apps. If you need a new one, you can regenerate it from the agent's menu, which also revokes the old key.

Runway supports the following types of agents:

Agent
What you'll need

CI workflow: Claude Code (subscription)

GitHub Actions and a Claude subscription

CI workflow: Claude Code (API key)

GitHub Actions and an Anthropic API key

CI workflow: Codex (API key)

GitHub Actions and an OpenAI API key

CI workflow: My own workflow

GitHub Actions and a workflow of your own

Agent service: Claude Code routine

A routine in Claude Code on the web

Agent service: Standard webhook

Any service that can receive a webhook

Note that an agent's type can't be changed once it's created.

CI workflow agents

CI workflow agents run in a GitHub Actions workflow in the app's code repository, so the app needs a GitHub Actions integration. Runway provides a sample workflow: copy it and commit it to your repository's default branch.

The workflow also needs two repository secrets:

  • RUNWAY_API_KEY : the agent's API key, generated during creation.

  • The key for the agent itself, depending on its type:

    • Claude Code (subscription): CLAUDE_CODE_OAUTH_TOKEN, generated with claude setup-token.

    • Claude Code (API key): ANTHROPIC_API_KEY, an Anthropic API key.

    • Codex (API key): OPENAI_API_KEY, an OpenAI API key.

If you'd rather use a workflow of your own, choose My own workflow and pick the workflow for each app. It needs to run on workflow_dispatch with the inputs RUNWAY_TRIAGE_ISSUE_ID, RUNWAY_APP_ID, RUNWAY_TARGET_BRANCH and RUNWAY_FIX_BRANCH, read the issue with the agent's API key, and push its fix to RUNWAY_FIX_BRANCH.

Claude Code routine agents

Claude Code routine agents run in Claude Code on the web. Create a routine on the app's repository, removing any connectors it doesn't need, and use the prompt Runway provides as its instructions. Then add an API trigger to the routine, save it, and paste its token and Fire URL into Runway. Runway stores the token encrypted and never shows it again.

To let the routine read issues, add the agent's API key as a network secret of the routine's cloud environment. Keep in mind that routines are subject to Anthropic's own limits.

Standard webhook agents

Standard webhook agents work with any service that can receive a webhook. Runway sends a triageIssue.agentAssigned event to the agent's URL when it's assigned to an issue, and a triageIssue.agentUnassigned event when it's unassigned. Check out outgoing webhooks for more info.

The agentAssigned payload includes a targetBranch and a fixBranch: your service reads the issue from links.api using the agent's API key, and pushes its fix to fixBranch. If your service opens its own pull request instead, include runway-triage:<issue id> in its description so Runway can link it to the issue. For the full payload, see our API reference documentation.

Standard webhook agents can't be used with apps that have webhooks turned off.

Assigning issues to an agent

Agents show up alongside your teammates in an issue's assignee field, for the apps they're set up for. An issue can be assigned to one agent, and Runway starts the agent as soon as it's assigned. The agent works from the app's working branch. Agents assigned to closed issues aren't started.

To run an agent again on the same issue, unassign it and assign it again. If the agent already started work on the issue in the last 24 hours, Runway asks you to confirm before starting a new run.

The issue's timeline shows when an agent was assigned and how it was started (via webhook, GitHub Actions, or Claude routine, with a link to the GitHub Actions run), or why it couldn't be.

Agent issue limit

You can limit how many issues each agent can work on at the same time by navigating to App settings > Triage and setting the Agent issue limit. An issue stops counting towards the limit once the agent's pull request is linked, the agent is unassigned, the issue is closed, or 24 hours pass. Once an agent reaches the limit, it's greyed out in the assignee field. There's no limit by default.

Pull requests from agents

Each time an agent is assigned, it gets its own fix branch (runway-triage/<issue id>-<run id>). Once the agent pushes to it, Runway opens a pull request against the working branch, titled after the issue, and adds it to the issue's timeline. Runway keeps watching the fix branch for 24 hours after the agent is assigned.

If the agent opens its own pull request on GitHub instead, Runway links it to the issue as long as its branch, title, or description mentions the issue, with runway-triage:<issue id>.

By default, a pull request from an agent is only linked to the issue, and someone on your team submits the fix request. If you'd rather have Runway do it, set Agent pull requests to "Runway submits a fix request automatically" in the Triage section of your App settings. Runway then submits the fix request on the release the issue was reported on, or on the next release if the issue has none or the current release no longer takes fixes.

The fix request shows the agent as its requester, and your fix approval settings still apply.

Security recommendations

Issue text comes from your users, app store reviews, and tickets, so agents should always treat it as data rather than instructions. The sample workflows and the routine prompt already do this; if you write your own, we recommend doing the same.

We also recommend that your team:

  • Protect the working branch, so a person reviews every pull request from an agent.

  • Guard .github/workflows/** with CODEOWNERS or a required check.

  • Give agents only the tools, connectors, and network access they need.

  • Store the agent's API key as a secret, and regenerate it if it's ever exposed.

Last updated

Was this helpful?