Planner Agent
A triage agent that reads new GitHub issues, assesses whether they have enough detail, asks clarifying questions, and writes detailed implementation plans for the dev agent to follow.Setup
- Copy
agent-config.tomlandACTIONS.mdintoagents/planner/in your project - Edit
agent-config.toml:- Set
orgsto your GitHub organization - Set
authorto the GitHub username whose issues should be triaged - Set
triggerLabelto the label that marks issues as needing planning
- Set
- Run
al doctorto verify credentials
Trigger modes
Webhook (recommended): Fires when an issue is labeled withplan (configurable via triggerLabel) or when a new comment is added to a labeled issue. 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 works on one issue:- Finds an issue to triage (from webhook trigger or scheduled search)
- Acquires a resource lock to prevent duplicate work
- Reads the issue and all comments for full context
- Clones the repo to understand the codebase and project conventions
- Assesses whether the issue has enough detail to begin development
- Either asks clarifying questions or posts a detailed implementation plan
- When the plan is posted, the issue is ready for the dev agent to pick up
Pairing with the dev agent
The planner and dev agents work together:- A human creates an issue and labels it
plan - The planner agent triages it — asks questions or writes an implementation plan
- A human reviews the plan and labels the issue
ready-for-dev - The dev agent picks it up and implements the plan