What you will build

  • A GitHub Actions workflow that triggers on pull requests.
  • An Autohand agent that reviews changed files.
  • A script that posts the review back to GitHub.

Prerequisites

  • A GitHub repository with Actions enabled.
  • An Autohand API key stored as AUTOHAND_API_KEY.
  • A GitHub token with pull request comment permissions.

Step 1: create the workflow

Step 2: post the review

The post-review.js script reads the agent output and creates a PR comment.

Step 3: tune the prompt

Iterate on the prompt to match your team's review style. Include context such as coding standards, test expectations, and areas to ignore.

Next steps

Add a check that fails the build when the agent finds blocking issues, or extend the bot to suggest code changes.