Github Actions
Warp’s GitHub Actions integration lets you run Warp 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 Warp agents directly inside your CI workflows. Using the warp-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.
This page explains what the integration does, how to use it in workflows, and common patterns for automating development tasks with Warp.
What the GitHub Actions integration does
The warp-agent-action is a GitHub Action that wraps the Warp CLI and:
Runs a Warp 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
Requirements
To use Warp agents in GitHub Actions, you need:
A Warp API Key stored as a GitHub secret
A workflow with permissions that match your intended actions (for example, write access to PRs if the agent should commit or comment)
The
warp-agent-actionstep added to your workflowFamiliarity with GitHub Actions concepts — see the official docs for GitHub Actions
The agent runs using your GitHub account’s permissions for the workflow run.
Quickstart
For detailed setup instructions, please refer to the Warp Agent Actions repo.
To run Warp 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
Go to your repository on GitHub.
Navigate to: Settings > Secrets and variables > Actions
Select New repository secret
Set the secret name to
WARP_API_KEYPaste your Warp API Key into the Secret field
Click Add secret
Your secret will now appear in the list of available Actions secrets:


Add the Warp Agent Action to your workflow
Once your WARP_API_KEY secret is set, add a step to your workflow:
- name: Review code changes in Warp
uses: warpdotdev/warp-agent-action@main
with:
prompt: |
Review the code changes on this branch:
1. Use the `git` command to identify changes from the base branch.
2. Analyze the diff for style, security, or correctness issues.
3. If you have suggestions, use the `gh` command to comment on the PR.
warp_api_key: ${{ secrets.WARP_API_KEY }}The agent will run inside your workflow and return its output to subsequent steps.
Working with agent output
The action sets the following output:
steps.<step_id>.outputs.agent_outputUse output_format: json for structured, machine-readable results:
with:
output_format: jsonThis allows downstream steps to branch, format messages, or post results programmatically.
Debugging and session sharing
For debugging workflows, you can enable session sharing so teammates can open a live interactive agent session:
with:
share: trueThis posts an Ambient Agents Session Sharing link to the job logs. Anyone with the link can inspect the agent’s execution directly.
Common use cases
The warp-agent-action supports several automation patterns commonly used in CI.
1. Responding to comments with @ mentions
File:
examples/respond-to-comment.ymlUse case: Add “@warpdotdev fix this typo” or similar comments to a PR or Issue.
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.
2. Automated pull request review
File:
.github/workflows/review-pr.ymlUse case: Provide automated agent feedback when a PR is opened or marked ready for 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
File:
examples/auto-fix-issue.ymlUse case: Apply the
warp-agentlabel on an Issue to trigger automated fixes.
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
File:
examples/daily-issue-summary.ymlUse case: Scheduled summaries of newly opened issues.
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
File:
examples/fix-failing-checks.ymlUse case: Automatically attempt fixes when a workflow or test suite fails.
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.
Last updated
Was this helpful?