Step 4: Automation
Run inspections, reminders, weekly reports, and audits with scheduled tasks: available scenarios, creation steps, and verification.
Automation (Autopilot) is an Agent task that runs on a schedule. It does not wait for Issue events; it runs proactively on a cron schedule and is suitable for inspections, reminders, summaries, and audits.
Video walkthrough: automation in five steps
Create a task from a template → fill in the name, engine, and inspection instruction → set the schedule and preview the cron expression → trigger a run immediately → open the execution history to read the result and log.
Automation and pipelines are different
| Comparison | Pipeline | Automation |
|---|---|---|
| Trigger | Issue, PR, comment, and other events | Schedule (cron) or manual trigger |
| Work object | The current Issue | Issues, PRs, dependencies, and documentation in the current repository |
| Typical output | Branch, PR, review comments | Inspection report, reminder, summary, findings |
| Best for | Delivering one requirement | Periodic checks and operations |
1. Built-in scenarios
When creating an automation, you can select a template directly:
| Template | Usual schedule | What it does | Typical output |
|---|---|---|---|
| Issue board inspection | Daily at 09:00 | Find Issues with no updates for more than 7 days and blocked Issues | Stale/blocked counts and a suggested close list |
| PR review reminder | Weekdays at 10:00 | Find PRs that have not been reviewed for more than 24 hours | PR list, authors, and review reminders |
| Bug triage | Weekdays at 09:00 | Assess the severity of backlog Issues | Priority recommendations and assessment notes |
| Weekly progress report | Mondays at 17:00 | Summarize work completed, in progress, and blocked during the past 7 days | Structured weekly report |
| Dependency audit | Mondays at 08:00 | Run a dependency audit and find vulnerabilities and outdated dependencies | Vulnerable packages, outdated dependencies, and remediation suggestions |
| Documentation check | Mondays at 14:00 | Check documentation against recent code changes | Missing documentation list and completion suggestions |
The schedules above are typical rhythms. Confirm the schedule in the form when you create the task; you can change it.
2. Create an automation
1. Open the Automation page
After selecting the target repository, open Automation in the left navigation. The list shows the name, schedule, last and next run, and enabled status.
2. Select a template or create from scratch
- When the list is empty, click a template card to create a task quickly.
- When tasks already exist, click New task.
- When no template fits, click Create from scratch.
3. Complete the basic information
| Field | Required | Description |
|---|---|---|
| Task name | Yes | Used in the list; include the repository and purpose |
| Execution engine | No | Leave empty to broadcast to all online engines; select a specific engine to fix the executor |
| Skill | No | Select an Auto Agent Skill; leave empty for instruction-only mode |
| Inspection instructions | Yes | Define the steps, scope, and output format clearly |
4. Select the Skill and engine
If the scenario requires a fixed method, first upload or select an Auto Agent Skill in Scenes & Skills:
- Open Scenes & Skills → Skills.
- Select Repository skills or Personal skills.
- Click + Add Skill.
- Select Auto Agent as the Skill type.
- After uploading, return to the automation form and select the Skill under Skill.
The engine can be left empty to use broadcast, or limited to an online engine on a specific Worker. Automation tasks are also affected by engine availability.
5. Write the inspection instructions
Instructions should be executable steps, not a single sentence such as "check it". For example, for an Issue inspection:
1. List all open Issues in the current repository.
2. Find Issues with no updates for more than 7 days.
3. Find Issues with a blocked label or a blocked note in the description.
4. Group the output into "stale / blocked / suggested close".
5. For each Issue, include the Issue number, title, last update time, and suggested action.
The form provides Polish: write a rough draft first and let AI turn it into clearer instructions. Review the polished text yourself; do not use it without checking.
6. Set the schedule
Two modes are available:
- Structured: select daily, weekly, or monthly, the time, and the day of the week.
- Advanced: enter a cron expression directly.
The page shows a cron preview and the next run time. Confirm the preview before saving.
7. Set execution options
| Option | Effect |
|---|---|
| Maximum retries | 0–10, default 3; number of retries after a failed run |
| Working branch | When enabled, injects GRAPE_WORK_BRANCH so the task works on the specified branch |
| Custom configuration | Injects values into the Agent as environment variables; do not put secrets in the prompt |
8. Save, enable, and verify immediately
- Click Create or Save.
- Confirm that the task status is enabled.
- Click Run now to run it once instead of waiting for the next cycle.
- Open the execution history and review the result, duration, and retry count.
- If there are findings, open them and decide whether to dispatch them as Issues.
- Keep the task enabled after verification.
3. How to use each scenario
Issue board inspection
- Template: Issue board inspection
- Schedule: daily at 09:00
- Focus: Issues with no updates for more than 7 days, blocked Issues, and Issues that can be closed
- Before use: confirm that Issue status and label fields are available in the repository
- After output: dispatch items that need action as Issues, or close stale Issues that are already complete
PR review reminder
- Template: PR review reminder
- Schedule: weekdays at 10:00
- Focus: PRs that have not been reviewed for more than 24 hours, authors, and summaries
- Before use: confirm that the repository PR list can be read and that the team has a clear review owner
- After output: send the reminder to IM, or add reviewers to the PR
Bug triage
- Template: Bug triage
- Schedule: weekdays at 09:00
- Focus: untriaged backlog, severity, and priority labels
- Before use: confirm that the label system exists and that the Agent has permission to write labels
- After output: review the priorities manually, then put confirmed bugs into the pipeline
Weekly progress report
- Template: Weekly progress report
- Schedule: Mondays at 17:00
- Focus: work completed, in progress, and blocked during the past 7 days
- Before use: confirm that Issue status and close time are accurate
- After output: send it directly to the team channel or use it as weekly meeting material
Dependency audit
- Template: Dependency audit
- Schedule: Mondays at 08:00
- Focus: vulnerable dependencies, outdated dependencies, and remediation suggestions
- Before use: confirm that the repository can run build and audit commands on a Worker
- After output: dispatch remediation Issues by severity; do not upgrade everything automatically at once
Documentation check
- Template: Documentation check
- Schedule: Mondays at 14:00
- Focus: whether documentation was updated for recent code changes
- Before use: confirm that the relationship between the documentation and code directories is clear
- After output: generate a documentation completion list and assign it to the documentation owner
4. How to review execution results
Open the task details:
| Area | What to review |
|---|---|
| Basic information | Name, repository, Skill, engine, and maximum retries |
| Schedule | Cron expression, next run, and last run |
| Execution history | Status, start time, duration, retry count, and result; a newly created task that has not run yet shows "No execution records yet" |
| Logs | Click Logs to open the corresponding Agent task |
| Findings | Findings, severity, and whether they have been dispatched as Issues |
| Subscription | Enable when execution results must be received continuously |
If the execution status is failed, review the result and logs first, then check whether the engine is online, whether the Skill exists, and whether the instructions require permissions that are not available.
5. Common issues
| Symptom | Cause | Action |
|---|---|---|
| The task did not run at the scheduled time | The task is paused, the cron expression is incorrect, or the service time is wrong | Check the status and next run time, then click Run now to verify |
| Manual triggering also fails | The engine is offline, the Skill does not exist, or the instructions return an error | Check the execution history and logs; fix the engine or Skill first |
| The run succeeds but produces no result | The instructions do not specify an output format | Specify grouping, fields, and conclusions in the instructions |
| The result is unreliable | The scope is too broad, permissions are insufficient, or the data source is stale | Narrow the repository or time range and verify permissions and data |
| Duplicate Issues are created automatically | There is no deduplication rule | Require deduplication by title or number in the instructions, or output findings only |
6. Completion criteria
- [ ] The Automation page is open and the target repository is selected.
- [ ] A template is selected or a task is created from scratch.
- [ ] The name, instructions, and schedule are completed.
- [ ] A Skill or engine is selected, or broadcast is confirmed.
- [ ] The task has run successfully with Run now.
- [ ] The execution history, logs, and findings have been reviewed.
- [ ] The task is enabled and the next run time is correct.
Related
Workbench and Issue Center | Skill management | How an Issue moves through the pipeline | Runtime and Worker




