GitHub Actions

Warp's GitHub Actions integration lets you run Oz agents directly inside your CI workflows, using your repo context and GitHub permissions to automate coding tasks.

Warp's GitHub Actions integration lets you run Oz agents directly inside your CI workflows. Using the oz-agent-action Github Action, you can delegate tasks such as code review, issue triage, bug fixing, or automated maintenance to the agent as part of a standard Actions pipeline.

The agent runs inside your workflow, uses your repository context, and can open pull requests or comment on issues using your GitHub permissions.

circle-info

For more detailed setup instructions, please refer to the Oz Agent Actionarrow-up-right repo.

This page explains what the integration does, how to use it in workflows, and common patterns for automating development tasks with Warp.

In this demo

  • Automated PR reviews with both summary feedback and inline suggestions

  • One-click batching and committing of agent suggestions directly from the GitHub UI

  • Automatically fixing failing CI checks by opening a suggested PR

  • Suggesting fixes for small review comments (“nits”) without checking out code locally


What the GitHub Actions integration does

The oz-agent-action is a GitHub Action that wraps the Oz CLI and:

  • Runs an Oz agent inside an Actions job

  • Caches package installation for faster builds

  • Captures the agent's output for use in subsequent workflow steps

  • Lets you pass workflow context, event data, and previous step outputs into the agent prompt

  • Allows the agent to comment on PRs, post results, or open branches via the GitHub CLI

  • Supports inline code suggestions that can be batched and committed directly from the GitHub pull request UI

  • Enables using pre-built skills or custom skills for specialized tasks

Requirements

To use Oz agents in GitHub Actions, you need:

The agent runs using your GitHub account’s permissions for the workflow run.

Quick start

For detailed setup instructions, please refer to the Oz Agent Actionarrow-up-right repo.

To run agents from GitHub Actions, you must store your Warp API Key as a GitHub Actions secret. This allows your workflow to authenticate with Warp securely.

Add your Warp API Key to GitHub Secrets

  1. Go to your repository on GitHub.

  2. Navigate to: Settings > Secrets and variables > Actions.

  3. Click New repository secret.

  4. Set the secret name to WARP_API_KEY.

  5. Paste your Warp API Key into the Secret field.

  6. Click Add secret.

Add the Oz Agent Action to your workflow

Once your WARP_API_KEY secret is set, add a step to your workflow:

The agent will run inside your workflow and return its output to subsequent steps.

Working with agent output

The action sets the following output:

Use output_format: json for structured, machine-readable results:

This allows downstream steps to branch, format messages, or post results programmatically.

circle-info

Because the agent is fully prompt-driven, you can insert it anywhere in a GitHub Actions workflow, pass in files or event context, and control whether the output is human-readable comments or structured JSON for downstream automation.

Debugging and session sharing

For debugging workflows, you can enable session sharing so teammates can open a live interactive agent session:

This posts a cloud agent session sharing link to the job logs. Anyone with the link can inspect the agent's execution directly.

The session sharing option also accepts multi-line configuration for the recipients of the share link.

Using Skills

Skills provide reusable instructions for Oz agents. You can use pre-built skills from the oz-skills repositoryarrow-up-right or create custom skills for your specific workflows. Skills can also be deployed as standalone agents to run on a schedule or in response to events.

How to use skills

You can specify a skill using the skill input parameter, either instead of or in combination with prompts:

Skill format options

The skill parameter supports multiple formats for referencing skills:

  • skill_name - Searches for the skill in your repository's skill directories

  • repo:skill_name - Uses a skill from a specific repository

  • org/repo:skill_name - Uses a skill from a specific organization's repository

Combining skills with prompts

You can combine skills with prompts to provide specialized context while customizing the specific task:

In this example, the code-review skill provides the base context and approach for code review, while the prompt narrows the focus to security concerns in authentication code.

circle-info

Skills help maintain consistency across your workflows and can encapsulate best practices for common tasks like code review, issue triage, or automated testing.


Common use cases

The oz-agent-action supports several automation patterns commonly used in CI.

1. Responding to comments with @ mentions

What it does:

  • Listens for comments containing a trigger phrase

  • Sends the comment and thread context into the agent

  • Agent replies directly to the comment

  • If code changes are requested, the agent commits fixes to the PR branch

When to use:

  • Interactive coding assistance during review or issue triage.

circle-info

Private repositories require org membership for @oz-agent

If your repository is in a private GitHub organization, you must invite the oz-agent userarrow-up-right as a member of your organization before using @oz-agent mention workflows. Without this:

  • @oz-agent will not appear in GitHub's autocomplete when writing comments.

  • Comments containing @oz-agent will not trigger the workflow, because GitHub does not recognize the mention.

This is a GitHub platform limitation for private organizations — any user must be an org member to be mentioned in comments on private repos.

Public repositories are not affected by this requirement.

2. Automated pull request review

What it does:

  • Automatically runs when PRs open or switch to “ready for review”

  • Agent inspects changed files, analyzes the diff, and comments inline

  • Optionally posts a summary comment

When to use:

  • Fast initial review before human reviewers step in.

3. Automatically fix issues

What it does:

  • Detects when the label is added

  • Agent analyzes the issue description and repo context

  • Creates a PR with a fix (fix/issue-NUMBER)

  • Or comments explaining why automation wasn’t possible

When to use:

  • Automating bug fixes, small features, or maintenance tasks.

4. Daily issue summaries

What it does:

  • Runs daily at 09:00 UTC

  • Fetches issues created in the past 24 hours

  • Generates a categorized summary

  • Sends the summary to Slack via webhook

When to use:

  • Daily visibility into new work across your repositories.

5. Fixing failing CI checks

What it does:

  • Triggers when specified CI workflows fail

  • Pulls failure logs

  • Attempts to diagnose and fix the root cause

  • Opens a PR with the fix and comments with a link

When to use:

  • Reducing downtime from failing builds or flaky tests.

6. Suggest fixes for review comments

What it does:

  • Triggers when a pull request review is submitted

  • Fetches review comments and stores them in review_comments.json

  • Sends comments and context to an agent to decide which ones are simple, actionable fixes

  • Generates responses.json with explanations and suggestion blocks for each fixable comment

  • Replies inline to the original review comments with the generated suggestions

When to use:

  • Quickly addressing straightforward review feedback such as typos, naming tweaks, style nits, and small refactors.


Troubleshooting

@oz-agent mention doesn't trigger the workflow

If you're tagging @oz-agent in a PR or issue comment and the workflow doesn't run:

  1. Check org membership (private repos only): In private organizations, the oz-agent GitHub user must be a member of your organizationarrow-up-right. Without this, GitHub won't recognize the mention and the issue_comment event won't match the workflow trigger. Ask an org admin to invite oz-agentarrow-up-right via Settings > People > Invite member.

  2. Verify the workflow file: Ensure your workflow is on the default branch and the trigger condition matches @oz-agent (e.g. contains(github.event.comment.body, '@oz-agent')).

  3. Check workflow permissions: The workflow must have the appropriate permissions (e.g. issues: read, pull-requests: write) to respond.

@oz-agent doesn't appear in GitHub autocomplete

GitHub only suggests users who are members of the organization when typing @ in comments on private repositories. Invite oz-agentarrow-up-right to your organization to make it appear in autocomplete.

Note: Even if @oz-agent doesn't autocomplete, you can still type the mention manually — but the workflow will only trigger if the user is an org member (for private repos).

Last updated

Was this helpful?