核心用法与用例(3/3)

Validate pull request changes by actually running the software — not just reading code or running tests

Check out the complete QA changes plugin with ready-to-use code and configuration.

Automated QA testing goes beyond code review and CI: instead of reading diffs or running the test suite, the QA agent actually runs the software and verifies that changes work as claimed. It sets up the environment, exercises changed behavior as a real user would (browser, CLI, API requests), and posts a structured report with evidence.

This is Layer 2 of the Verification Stack, complementing the code review agent.

Overview

The QA agent follows a four-phase methodology:

  1. Understand — Reads the PR diff, title, and description. Classifies changes (new feature, bug fix, refactor, config) and identifies entry points (CLI commands, API endpoints, UI pages).
  2. Setup — Bootstraps the repository: installs dependencies, builds the project, notes CI status.
  3. Exercise — The core phase: spins up servers, opens browsers, runs CLI commands, makes HTTP requests — testing the changed behavior as a real user would. For bug fixes, it reproduces the bug on the base branch and verifies the fix on the PR branch.
  4. Report — Posts a structured QA report as a PR comment, with evidence (commands run, outputs, screenshots) and a verdict (PASS / FAIL / PARTIAL).

The QA agent knows when to give up: after exhausting multiple approaches without progress, it reports what it tried and stops — rather than spinning endlessly.

What It Does (and Doesn't)

* Run the actual application and interact with it
* Make real HTTP requests, run real CLI commands
* Open browsers and verify UI changes
* Reproduce bugs and verify fixes end-to-end
* Report with evidence (commands, outputs, screenshots)



* Run the test suite (that's CI's job)
* Analyze code for style or structure (that's code review's job)
* Run linters, formatters, or type checkers
* Substitute `--help` or `--dry-run` for real execution

Quick Start

GitHub Actions

Copy the example workflow into .github/workflows/qa-changes.yml in your repository and add your LLM_API_KEY to Settings → Secrets and variables → Actions. See the action.yml for all available inputs.

In a Conversation

You can also trigger QA manually in any OpenHands conversation. First, install the skill:

/add-skill https://github.com/OpenHands/extensions/tree/main/skills/qa-changes

Then invoke it:

/qa-changes

The agent will ask for the PR to test, or you can provide context directly:

/qa-changes — Please QA PR #42 on the my-org/my-repo repository.
Focus on the new dashboard page and verify it renders correctly.

QA Report Format

The QA agent posts a structured report as a PR comment:

## QA Report

**Status: PASS** ✅

### Changes Tested
- New `/api/health` endpoint returns 200 with version info
- Dashboard page renders at `/dashboard` with correct data

### Evidence
1. Started server with `npm run dev`
2. `curl http://localhost:3000/api/health` → 200 OK, body: {"status":"ok","version":"1.2.0"}
3. Navigated to http://localhost:3000/dashboard — page renders correctly
   [screenshot attached]

### Edge Cases
- Empty database state: dashboard shows "No data" placeholder ✅
- Invalid auth token: returns 401 as expected ✅

Customization

Change Types

The QA agent adapts its approach based on the type of change:

Change Type QA Approach
Frontend / UI Starts dev server, opens browser, verifies visual changes, tests interactions
CLI Runs commands with realistic arguments, verifies output, tests edge cases
API / Backend Starts server, makes HTTP requests, verifies responses and side effects
Bug fix Reproduces bug on base branch, verifies fix on PR branch (before/after)
Library / SDK Writes and runs a short script that imports and calls changed functions

Repository-Specific QA Guidelines

Add repo-specific QA instructions by creating .agents/skills/qa-guide.md:

---
name: qa-guide
description: Project-specific QA guidelines
triggers:
- /qa-changes
---

# QA Guidelines for [Your Project]

## Environment Setup
- Run `make setup` to initialize the development environment
- The dev server runs on port 8080

## Key Test Scenarios
- Always verify the admin dashboard at /admin after backend changes
- For API changes, test with both authenticated and unauthenticated requests

## Known Limitations
- The payment module requires a Stripe test key — skip payment flow testing

Integration with the Verification Stack

The QA agent is most powerful when used alongside the code review agent and the iterate skill as part of the full Verification Stack:

  1. Code review catches issues by reading the diff (style, security, data structures)
  2. QA catches issues by running the software (behavioral regressions, UI bugs)
  3. Iterate orchestrates the loop — fixing issues flagged by either verifier and re-polling until the PR is clean

Troubleshooting

<AccordionGroup>

Ensure your repository's setup instructions are documented in `README.md` or `AGENTS.md`. The agent follows these to bootstrap the environment. If setup requires special steps, add them to a custom QA guide.



PARTIAL means some scenarios passed and others failed or couldn't be tested. Read the report details — it will explain what worked and what didn't. Common causes: missing environment variables, external service dependencies, or insufficient permissions.



For large PRs with many changed entry points, the agent may need more time. Consider splitting large PRs into smaller, focused changes. You can also add a custom QA guide that prioritizes the most important scenarios.

</AccordionGroup>

Automate This

There are two ways to automate QA testing with OpenHands: as a GitHub Action (per-repo) or as an OpenHands Automation (org-wide, event-driven). The pattern mirrors the Automated Code Review setup.

Option A: GitHub Action (Per-Repo)

Use the qa-changes plugin as a GitHub Actions workflow. Copy the example workflow into .github/workflows/qa-changes.yml in your repository, add your LLM_API_KEY to Settings → Secrets and variables → Actions, and customize the trigger conditions and model as needed.

See the action.yml for all available inputs.

When to use this: You want per-repo control, need to integrate with existing CI checks, or want to pin specific action versions per repository.

Option B: OpenHands Automation (Org-Wide)

Before setting up an event-driven automation, complete the one-time prerequisites for GitHub event automations — install the GitHub App, create a team org, and claim your GitHub organization. Without these steps, GitHub events will silently never arrive.

OpenHands Automations lets you define the trigger once to cover all repositories matching your filter. Log in to OpenHands Cloud under your team org and send the following prompt in a new conversation. Replace YOUR_ORG with your GitHub organization name:

Create an OpenHands Cloud automation using the Plugin Preset with the following configuration:

**Name:** Automated QA: YOUR_ORG/*
**Plugin:** github:OpenHands/extensions (repo_path: plugins/qa-changes)
**Trigger events:** pull_request.opened, pull_request.ready_for_review, pull_request.labeled
**Filter:**
glob(repository.full_name, 'YOUR_ORG/*') && (
    label.name == 'qa-this'
    || (!label
        && !pull_request.draft
        && pull_request.author_association != 'FIRST_TIME_CONTRIBUTOR'
        && pull_request.author_association != 'FIRST_TIMER'
        && pull_request.author_association != 'NONE')
)
**Timeout:** 600 seconds

The QA agent should:
1. Check out the PR branch
2. Exercise the changed behavior as a real user would
3. Post a structured QA report as a PR comment with evidence (commands run, outputs, screenshots)

When to use this: You want a single configuration that covers all repos in your org, or you need the full OpenHands runtime for more advanced QA workflows.

When testing, you may need to create the qa-this label in your repo before you can apply it.

For a more detailed automation setup with progress comments and session links, see the Automated Code Review automation guide — the same pattern applies to QA.


Use the OpenHands Agent Canvas to gather, prioritize, and work through your daily development tasks

<iframe title="Performing Your Daily Workflow with AI Agents" />

This guide shows how to use the OpenHands Agent Canvas as a daily development work queue. The agent gathers work from GitHub and Slack, organizes it by urgency, gives you one task at a time, and can dispatch separate agents for work that can happen in parallel.

The video above demonstrates the same workflow for readers who prefer a video walkthrough. You do not need to watch it to follow this guide.

What you will build

At the end of this guide, one Agent Canvas conversation will:

  1. Collect pull requests, issues, notifications, and relevant Slack activity.
  2. Produce a prioritized report with links and a recommended first task.
  3. Help you complete that task or start a separate agent to work on another task.
  4. Continue with the next task when you are ready.

Prerequisites

  • Install and start Agent Canvas.
  • Complete first-time setup, including an OpenHands agent profile, a connected backend, and an LLM.
  • A GitHub account with access to the repositories you want to review.
  • A Slack workspace and permission to create or install a Slack app.

<img alt="Agent Canvas MCP library showing built-in GitHub and Slack integrations" />

The MCP library lists built-in integrations, including GitHub and Slack. Choose the HTTP Slack integration shown here when following this guide. The workflow can use other MCP integrations, such as Linear or Jira, but the examples below use GitHub and Slack.

Step 1: Connect GitHub

The agent needs GitHub access to find assigned issues, pull requests that need your attention, review requests, notifications, and CI results.

Create a GitHub token

  1. Open GitHub Developer Settings.
  2. Select Fine-grained tokens and choose Generate new token.
  3. Give the token a name, select Only select repositories when possible, and set an expiration date.
  4. Grant the minimum permissions for the work you want the agent to do:
Purpose Permissions
Gather and report work Metadata: read, Contents: read, Issues: read, Pull requests: read, Actions: read, Checks: read
Work on code or issues Add Contents: write and Issues: write
Update pull requests or post reviews Add Pull requests: write
  1. Generate the token and copy it. GitHub shows it only once.

<img alt="Agent Canvas GitHub MCP server setup dialog" />

The GitHub server dialog shows where to enter the server token and save it as a backend secret.

Add the GitHub MCP server

Use the backend where this conversation will run. The MCP server and its saved secret belong to that backend.

  1. In Agent Canvas, confirm the correct backend in the backend switcher.
  2. Open Customize in the left navigation.
  3. Open MCP Servers.
  4. Select GitHub from the MCP library.
  5. Paste the token into the token field.
  6. Leave the option to create a secret enabled, then save the server.
  7. Wait for the server card to report a healthy connection.

See MCP server settings for general configuration and troubleshooting details. Do not paste tokens into the conversation itself.

Step 2: Connect Slack

Slack access lets the agent find mentions, threads, and messages that need your response. The bot can read only channels it can access.

Create and install a Slack app

  1. Open the Slack API dashboard and select Create New App → From scratch.
  2. Choose the workspace where the app will read messages.
  3. In OAuth & Permissions, add these bot scopes:
Scope Purpose
channels:read List public channels
channels:history Read public-channel messages
groups:history Read private-channel messages where the bot is a member
users:read Resolve people mentioned in messages
chat:write Allow the agent to post replies when you explicitly ask it to
  1. Select Install to Workspace, approve the permissions, and copy the Bot User OAuth Token.
  2. Invite the bot to each channel it should monitor. The bot cannot read channels it has not joined.
  3. Find your workspace ID from your Slack workspace URL or Slack's workspace-ID guide.

<img alt="Agent Canvas Slack MCP server setup dialog" />

The built-in Slack integration dialog shows the workspace ID and bot-token fields, along with the option to save each value as a secret.

Add the Slack MCP server

The same Customize → MCP Servers screen is used for Slack.

  1. In Agent Canvas, open Customize → MCP Servers.
  2. Select Slack from the MCP library.
  3. Paste the bot token and enter the workspace ID.
  4. Keep secret creation enabled and save the server.
  5. Wait for a healthy connection, then verify that the bot can access the channels you want to search.

Step 3: Start the daily workflow conversation

Create a new conversation in Agent Canvas and send this prompt:

<img alt="Agent Canvas new conversation with the daily workflow prompt" />

Do my daily workflow using the connected GitHub and Slack MCP servers.

Gather:
- pull requests that need my attention or review
- assigned issues
- GitHub notifications and failing CI
- Slack mentions, threads, and messages that need a response

Group the results by urgency. For every item, include its title, why it matters,
and a direct link. End with the single highest-priority task for me to start.
Do not make changes or send messages without asking me first.

If you use Linear, Jira, or another connected service, add it explicitly to the prompt. For example:

Also check my assigned Linear issues and current cycle.

The agent may ask clarifying questions, such as which repositories or Slack channels to include. Answer those questions before asking it to produce the final report.

Step 4: Read the prioritized report

Ask for a report in this format if the first response is not organized clearly:

Organize the results into:
1. Immediate action
2. PRs waiting for my response
3. PRs requesting my review
4. Assigned issues
5. Slack highlights
6. GitHub notifications

Sort each section by urgency. Include direct links and finish by recommending one first task.

A useful report looks like this:

## Immediate action
- Fix failing CI on PR #123 — blocking the release — <link>

## PRs waiting for my response
- Address requested changes on PR #456 — <link>

## PRs requesting my review
- Review PR #789 — changes authentication behavior — <link>

## Assigned issues
- Document the new API behavior — <link>

## Slack highlights
- Reply to the deployment question in #engineering — <link>

## GitHub notifications
- Workflow failure on repository-name — <link>

## First task
Fix the failing CI on PR #123.

The report is a starting point, not a guarantee that every source contains actionable work. Ask the agent to search a specific repository, channel, or date range when an important item is missing.

Step 5: Work through one task at a time

When the agent recommends a task:

  1. Ask for links if the report does not include them: Give me the links for that task.
  2. Tell the agent whether you want investigation, implementation, or only a summary.
  3. Set the safety boundary before it changes anything. For example:
Inspect the failing CI on PR #123, explain the root cause, and propose a fix.
Do not edit files, push changes, or comment on GitHub until I approve the plan.
  1. After reviewing the result, ask it to implement the approved change, run the relevant checks, and report what changed.
  2. When the task is complete, ask:
I finished that task. Re-check the remaining work and give me the next highest-priority item.

The agent can inspect and edit files in its configured workspace, but its ability to push code, update GitHub, or post to Slack depends on the permissions granted to the MCP servers and the confirmation policy you use.

Step 6: Dispatch parallel work

Use a separate agent only for work that is independent of the task you are handling. For example:

Start a separate agent to inspect the failing CI and unaddressed review comments
on my other open pull requests. It may modify files in its own workspace and
run tests, but it must not push, merge, or post comments. Return a summary and
proposed changes when finished.

Before dispatching, specify:

  • Which repositories, pull requests, or issues it may access
  • Whether it may edit files
  • Which tests it should run
  • Whether it may push branches or post comments
  • What it should return when finished

Keep related changes in separate workspaces or branches to avoid overwriting your active work. Review a subagent's summary and diff before asking it to push or make external changes. You can continue the original conversation while the separate agent runs, then inspect its conversation from the Agent Canvas conversation list.

Troubleshooting

  • The agent cannot find GitHub work: confirm the GitHub MCP server is healthy, the token includes the required repositories, and the token has not expired.
  • Slack results are empty: confirm the bot is installed in the workspace and invited to each channel you want to search.
  • The agent reports no tools: start a new conversation after adding or changing an MCP server; MCP configuration is loaded when a conversation starts.
  • The report is too broad: name the repositories, Slack channels, date range, or task categories to include.
  • The agent tries to act too early: state that it must ask for approval before editing files, pushing, or posting messages.

Reference


Automating dependency updates and upgrades with OpenHands

Keeping dependencies up to date is essential for security, performance, and access to new features. OpenHands can help you identify outdated dependencies, plan upgrades, handle breaking changes, and validate that your application still works after updates.

Overview

OpenHands helps with dependency management by:

  • Analyzing dependencies: Identifying outdated packages and their versions
  • Planning upgrades: Creating upgrade strategies and migration guides
  • Implementing changes: Updating code to handle breaking changes
  • Validating results: Running tests and verifying functionality

Dependency Analysis Examples

Identifying Outdated Dependencies

Start by understanding your current dependency state:

Analyze the dependencies in this project and create a report:

1. List all direct dependencies with current and latest versions
2. Identify dependencies more than 2 major versions behind
3. Flag any dependencies with known security vulnerabilities
4. Highlight dependencies that are deprecated or unmaintained
5. Prioritize which updates are most important

Example output:

Package Current Latest Risk Priority
lodash 4.17.15 4.17.21 Security (CVE) High
react 16.8.0 18.2.0 Outdated Medium
express 4.17.1 4.18.2 Minor update Low
moment 2.29.1 2.29.4 Deprecated Medium

Dependency upgrades are often needed to fix security vulnerabilities in your dependencies. If you're upgrading dependencies specifically to address security issues, see our Vulnerability Remediation guide for comprehensive guidance on:

  • Automating vulnerability detection and remediation
  • Integrating with security scanners (Snyk, Dependabot, CodeQL)
  • Building automated pipelines for security fixes
  • Using OpenHands agents to create pull requests automatically

Compatibility Checking

Check for compatibility issues before upgrading:

Check compatibility for upgrading React from 16 to 18:

1. Review our codebase for deprecated React patterns
2. List all components using lifecycle methods
3. Identify usage of string refs or findDOMNode
4. Check third-party library compatibility with React 18
5. Estimate the effort required for migration

Compatibility matrix:

Dependency React 16 React 17 React 18 Action Needed
react-router v5 ✓ v5 ✓ v6 required Major upgrade
styled-components v5 ✓ v5 ✓ v5 ✓ None
material-ui v4 ✓ v4 ✓ v5 required Major upgrade

Automated Upgrade Examples

Version Updates

Perform straightforward version updates:

Update all patch and minor versions in package.json:

1. Review each update for changelog notes
2. Update package.json with new versions
3. Update package-lock.json
4. Run the test suite
5. List any deprecation warnings
Update dependencies in requirements.txt:

1. Check each package for updates
2. Update requirements.txt with compatible versions
3. Update requirements-dev.txt similarly
4. Run tests and verify functionality
5. Note any deprecation warnings
Update dependencies in pom.xml:

1. Check for newer versions of each dependency
2. Update version numbers in pom.xml
3. Run mvn dependency:tree to check conflicts
4. Run the test suite
5. Document any API changes encountered

Breaking Change Handling

When major versions introduce breaking changes:

Upgrade axios from v0.x to v1.x and handle breaking changes:

1. List all breaking changes in axios 1.0 changelog
2. Find all axios usages in our codebase
3. For each breaking change:
   - Show current code
   - Show updated code
   - Explain the change
4. Create a git commit for each logical change
5. Verify all tests pass

Example transformation:

// Before (axios 0.x)
import axios from 'axios';
axios.defaults.baseURL = 'https://api.example.com';
const response = await axios.get('/users', {
  cancelToken: source.token
});

// After (axios 1.x)
import axios from 'axios';
axios.defaults.baseURL = 'https://api.example.com';
const controller = new AbortController();
const response = await axios.get('/users', {
  signal: controller.signal
});

Code Adaptation

Adapt code to new API patterns:

Migrate our codebase from moment.js to date-fns:

1. List all moment.js usages in our code
2. Map moment methods to date-fns equivalents
3. Update imports throughout the codebase
4. Handle any edge cases where APIs differ
5. Remove moment.js from dependencies
6. Verify all date handling still works correctly

Migration map:

moment.js date-fns Notes
moment() new Date() Different return type
moment().format('YYYY-MM-DD') format(new Date(), 'yyyy-MM-dd') Different format tokens
moment().add(1, 'days') addDays(new Date(), 1) Function-based API
moment().startOf('month') startOfMonth(new Date()) Separate function

Testing and Validation Examples

Automated Test Execution

Run comprehensive tests after upgrades:

After the dependency upgrades, validate the application:

1. Run the full test suite (unit, integration, e2e)
2. Check test coverage hasn't decreased
3. Run type checking (if applicable)
4. Run linting with new lint rule versions
5. Build the application for production
6. Report any failures with analysis

Integration Testing

Verify integrations still work:

Test our integrations after upgrading the AWS SDK:

1. Test S3 operations (upload, download, list)
2. Test DynamoDB operations (CRUD)
3. Test Lambda invocations
4. Test SQS send/receive
5. Compare behavior to before the upgrade
6. Note any subtle differences

Regression Detection

Detect regressions from upgrades:

Check for regressions after upgrading the ORM:

1. Run database operation benchmarks
2. Compare query performance before and after
3. Verify all migrations still work
4. Check for any N+1 queries introduced
5. Validate data integrity in test database
6. Document any behavioral changes

Additional Examples

Security-Driven Upgrade

We have a critical security vulnerability in jsonwebtoken.

Current: jsonwebtoken@8.5.1
Required: jsonwebtoken@9.0.0

Perform the upgrade:
1. Check for breaking changes in v9
2. Find all usages of jsonwebtoken in our code
3. Update any deprecated methods
4. Update the package version
5. Verify all JWT operations work
6. Run security tests

Framework Major Upgrade

Upgrade our Next.js application from 12 to 14:

Key areas to address:
1. App Router migration (pages -> app)
2. New metadata API
3. Server Components by default
4. New Image component
5. Route handlers replacing API routes

For each area:
- Show current implementation
- Show new implementation
- Test the changes

Multi-Package Coordinated Upgrade

Upgrade our React ecosystem packages together:

Current:
- react: 17.0.2
- react-dom: 17.0.2
- react-router-dom: 5.3.0
- @testing-library/react: 12.1.2

Target:
- react: 18.2.0
- react-dom: 18.2.0
- react-router-dom: 6.x
- @testing-library/react: 14.x

Create an upgrade plan that handles all these together,
addressing breaking changes in the correct order.

Automate This

You can schedule weekly dependency checks using OpenHands Automations. Copy this prompt into a new conversation to set one up:

Create an automation called "Dependency Checker" that runs every Monday at 8 AM.

It should:
1. Scan all package.json and requirements.txt files
2. Check for outdated dependencies
3. Create a report listing packages with available updates (grouped by major/minor/patch)
4. Post the report to #engineering

Learn more at https://docs.openhands.dev/openhands/usage/use-cases/dependency-upgrades

Configure four independent automations in Agent Canvas to take GitHub issues through development, review, testing, and merge.

A software factory turns a GitHub issue into a tested, reviewed pull request and merges it when acceptance checks pass. Configure four automations: triage, developer, reviewer, and watchdog. You supply issues and acceptance criteria; agents implement and validate the changes.

<img alt="Step-by-step Canvas setup: model, scoped profiles, and four independent automations" />

This walkthrough requires Agent Canvas 1.24.0 or later, which supports agent profiles in automations and per-conversation Docker containers.

Before You Start

Use an Agent Canvas backend with Automation enabled and bounded Docker workspaces. Prepare a GitHub repository with clear test commands and three repository-scoped fine-grained personal access tokens:

Token Repository permissions
Triage Contents: read. Issues: read and write.
Developer Contents, Issues, Pull requests: read and write. Actions, Commit statuses: read.
Reviewer Contents and Actions: read. Issues, Pull requests, Commit statuses: read and write.

Metadata read access is included by GitHub. The watchdog reuses the developer token. The reviewer can publish findings and statuses but cannot push code. Add Workflows write permission to the developer token only if agents need to change GitHub Actions workflow files.

Configure Canvas

In the welcome screen, choose OpenHands, then configure your model and API key. For an OpenAI-compatible provider, use `Advanced` to enter the model name and base URL. Save and close the welcome screen.

&lt;img alt="Advanced model settings with the API key hidden" />



Open `Settings` → `Secrets` → `Add a new secret`. Save:

* `FACTORY_GITHUB_TRIAGE_TOKEN`
* `FACTORY_GITHUB_DEVELOPER_TOKEN`
* `FACTORY_GITHUB_REVIEWER_TOKEN`

Keep token values in this secret store. Automation forms use their names.



Open `Settings` → `Agent` → `Add agent profile`. Select your saved model. Under `Secrets`, choose `Choose secrets` and select only the token for that role. Use `Choose servers` with no MCP servers for these GitHub workflows, and disable model switching and sub-agents.

| Profile | Selected secret |
| - | - |
| `factory-triage` | `FACTORY_GITHUB_TRIAGE_TOKEN` |
| `factory-developer` | `FACTORY_GITHUB_DEVELOPER_TOKEN` |
| `factory-reviewer` | `FACTORY_GITHUB_REVIEWER_TOKEN` |

&lt;img alt="Triage profile with only the triage token selected" />

Add the Four Automations

Open Automate → Templates, search for each template below, and choose Continue with local setup. Each scanner resolves the saved token named in its form. The triage, developer, and reviewer profiles independently restrict what their delegated agents receive.

For every automation, add your owner/repo, set Check frequency to */5 * * * *, and enter the matching GitHub token secret name. Select the matching agent profile for triage, development, and review. The watchdog is deterministic and starts no agent, so leave its profile empty. Select Continue, inspect the summary, then Confirm and create. New automations start enabled; turn them off until all four are configured.

Select `factory-triage`. It prioritizes issues, checks dependencies, and establishes acceptance criteria before applying `ready-for-dev`.

&lt;img alt="Triage automation confirmation" />



Select `factory-developer`. Set `Trigger label` to `ready-for-dev`, `Branch prefix` to `factory/issue`, and `Pull request mode` to `Ready for review`.

&lt;img alt="Developer automation confirmation with the readiness label and branch prefix" />



Select `factory-reviewer`, keep `Trigger label` as `openhands-review`, and choose the desired review tone. The reviewer checks out the exact PR head, follows the repository's guidance, runs its relevant tests, posts a readable native review, and records exact-head review and test statuses.

&lt;img alt="Reviewer automation summary with the trigger label, review tone, and reviewer token secret" />



Leave the agent profile empty, select the developer secret, and use the same `factory/issue` prefix. It merges only a current branch with passing independent acceptance statuses and passing Actions runs when present.

&lt;img alt="Watchdog confirmation using the developer token and matching branch prefix" />

Start and Observe

Turn on all four automations. Open a small GitHub issue with observable acceptance criteria. Use Run now to start triage immediately, or wait for the schedule.

In Automate, open each automation to inspect its selected profile and activity. Follow the issue's development PR, readable review and exact-head test statuses, and final merge. Failed checks lead to revisions and fresh acceptance of the changed commit. Use the automation toggle to pause new scheduling while inspecting a problem.

The walkthrough targets neubig/airbnb-clone. In the recorded current-head deployment, six issues were triaged and six developers ran concurrently in Docker. Reviewer agents tested and accepted PR #87 through PR #92, and the watchdog merged all six. The final two reviews resumed after a graceful Canvas restart; when earlier merges made an accepted branch stale, the watchdog updated it and waited for a fresh exact-head review before merging. The earlier factory completed neubig/box-clone through the same automated development, review, testing, and acceptance path.

<img alt="Canvas automation dashboard with all four automations active, no failures, and recent factory activity" />


Explore how OpenHands can help with common software development challenges

OpenHands supports a wide variety of software development tasks. Here are some of the key use cases where OpenHands can help accelerate your work.

Each use case can be implemented in different ways—as a one-off conversation, a scheduled automation, a plugin, or through the SDK. Pick the approach that fits your workflow.

Take GitHub issues through development, independent review, testing, and merge with four automations.



Identify and fix security vulnerabilities in your codebase using OpenHands.



Set up automated PR reviews to maintain code quality and catch bugs early.



Validate PR changes by actually running the software as a real user would.



Quickly investigate production incidents, analyze logs, and generate fixes.



Understand, document, and modernize legacy COBOL systems while preserving business logic.



Automate dependency updates, handle breaking changes, and validate applications.



Orchestrate your entire daily development routine through AI agents — from triage to task execution to parallel remediation.



Analyze, migrate, and validate Apache Spark applications across versions.

Automate Any Use Case

Many use cases work best as scheduled automations. Browse ready-to-use automation templates on the Automations Overview page—just copy a prompt and paste it into OpenHands.

Ready-to-use prompts for vulnerability scans, code reviews, monitoring, and more.



Explore plugins in the OpenHands extensions repository for extended capabilities.



Build custom workflows and integrations using the Software Agent SDK.