Aperture Bot
The coding bot that checks before it pushes.
Give it a task on any of your repos and watch it work. It opens a pull request only when Aperture Agent Check finds nothing red.
Add it to a repo by hand
No Aperture account: it runs on your GitHub runner with your model key.
- 1. Add your model key as a repository secret: Settings, Secrets and variables, Actions, New repository secret. The workflow below reads
XAI_API_KEY, for Grok; for another provider, setprovider(the action's settings). - 2. Let workflows open pull requests: Settings, Actions, General, Workflow permissions, tick “Allow GitHub Actions to create and approve pull requests”.
- 3. Add this workflow, then comment
/apertureand a task on an issue.
.github/workflows/aperture-bot.yml
name: Aperture Bot
on:
issue_comment:
types: [created, edited]
permissions:
contents: write
pull-requests: write
issues: write
jobs:
bot:
# Starts a runner only when the bot is asked: a comment or a ticked suggestion.
if: >-
(github.event_name == 'issue_comment' && github.event.action == 'created' && startsWith(github.event.comment.body, '/aperture'))
|| (github.event_name == 'issue_comment' && github.event.action == 'edited' && github.event.sender.type != 'Bot'
&& contains(github.event.comment.body, '<!-- aperture-bot ') && contains(github.event.comment.body, '- [x] '))
runs-on: ubuntu-latest
timeout-minutes: 45
concurrency:
group: aperture-bot-${{ github.event.issue.number }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: hankaws/aperture-bot@v1
with:
model-key: ${{ secrets.XAI_API_KEY }}
How it works
1
Ask
Here, or with a comment that starts with /aperture on an issue or a pull request. A question is answered on the thread; every reply ends with suggestions you can tick.
2
It works
On your GitHub runner, with your model key: it plans, makes the change, and runs Aperture Agent Check on it, with your tests in a container that has no network and no secrets.
3
You review
A pull request only when nothing is red. Otherwise a reply with what is still red and the change it did not push.
This page only reads GitHub and posts your ask, with your token. The run, the model key and the code stay on GitHub. The bot never touches .github/, secrets files or lockfiles, never merges, and stops at its token budget. The action on GitHub · Aperture Agent Check