Dev Agent
A developer agent that picks up GitHub issues and implements the requested changes. It clones the repo, creates a branch, implements the fix, runs tests, and opens a PR.Setup
- Copy
agent-config.tomlandACTIONS.mdintoagents/dev/in your project - Edit
agent-config.toml:- Set
orgsto your GitHub organization - Set
authorto the GitHub username whose issues should be picked up - Set
triggerLabelto the label that marks issues as ready for development
- Set
- Run
al doctorto verify credentials
Trigger modes
Webhook (recommended): Fires when an issue is labeled withready-for-dev (configurable via triggerLabel). Requires a GitHub webhook configured in config.toml — see Webhooks docs.
Scheduled: Runs on a cron schedule (default: hourly). Searches for open issues matching the configured org, author, and triggerLabel.
How it works
Each run, the agent:- Finds an issue to work on (from webhook trigger or scheduled search)
- Acquires a resource lock to prevent duplicate work
- Clones the repo and creates a branch (
agent/<issue-number>) - Reads the issue and any planner comments for context
- Implements the changes, following project conventions
- Runs all available checks (lint, type check, tests, build) and fixes failures
- Commits, pushes, and opens a PR
- Labels the issue as
agent-completed
Custom Dockerfile
The dev agent uses thegh CLI, which isn’t in the base image. Add a Dockerfile to the agent directory (only needed for Docker mode):