$EDITOR
. Paste the following Agent definition
into the file:
description
of an Agent is used by the Router to
decide which Agent to run for a given input. In this example we want the Agent
to run only when the alert is about GitHub Actions workflow failures on main
branches or releases, not pull request failures.
prompt
is where you give the Agent instructions, written in a runbook
format. Make sure any instructions you give are achievable using the tools
you have allowed the Agent to use (see below).
tools
section explicitly grants permission to use specific tools. You can
list individual tools, or use wildcards and regex patterns to limit what the
Agent can use.
To see all of the available tools your Unpage installation has access to, run:
shell_get_last_failing_run
shell_fetch_run_logs
shell_noninteractive_claude_code_run
shell_commit_and_open_pull_request
gh
),
Claude Code in Headless Mode,
and standard git commands to interact with GitHub Actions and automate fixes.
Custom shell commands allow you to extend the functionality of Unpage without
having to write a new plugin.
~/.unpage/profiles/default/config.yaml
and add the following:
gh
) and git commands. Make sure you have the GitHub CLI installed and
authenticated (gh auth login
) and that the repository is cloned locally.
See shell commands for more details.
unpage agent serve
and add the webhook URL to your PagerDuty account:
gh run list
gh run view --log