GitHub Agentic Workflows: Automate Repos with AI Agents
GitHub Agentic Workflows bring AI coding agents into GitHub Actions. Write automation in Markdown, run it with read-only defaults and explicit guardrails. Now in technical preview.
TL;DR
- GitHub Agentic Workflows let you automate repository tasks using AI coding agents that run in GitHub Actions, authored in plain Markdown
- Workflows run with read-only permissions by default, with write operations requiring explicit approval through "safe outputs"
- Use cases include continuous triage, documentation updates, test improvement, CI failure investigation, and code simplification
- Now in technical preview — works with Copilot CLI, Claude Code, or OpenAI Codex depending on your configuration
The Big Picture
GitHub just shipped something that changes how repository automation works. Not incrementally. Fundamentally.
GitHub Agentic Workflows are AI coding agents that run inside GitHub Actions. You describe what you want in Markdown. The agent figures out how to do it. Issues get triaged. Documentation stays current. CI failures get investigated with proposed fixes. Test coverage improves automatically.
This isn't about replacing CI/CD. It's about handling the subjective, repetitive work that traditional YAML workflows can't express. The stuff that requires judgment but doesn't require a human sitting there doing it manually.
The architecture is defense-in-depth. Workflows run read-only by default. Write operations require explicit approval through pre-defined "safe outputs" — creating a PR, commenting on an issue, adding a label. Sandboxed execution. Tool allowlisting. Network isolation. GitHub built this to run continuously across millions of repos, not as a one-off experiment.
GitHub Next calls this "Continuous AI" — integrating AI into the software development lifecycle the same way CI/CD integrated automated testing and deployment. The difference is that multi-agent workflows often fail without proper guardrails. GitHub's approach puts those guardrails front and center.
How It Works
The workflow format is deceptively simple. Two parts: YAML frontmatter for configuration, Markdown for instructions.
Here's a workflow that generates a daily repo status report:
---
on:
schedule: daily
permissions:
contents: read
issues: read
pull-requests: read
safe-outputs:
create-issue:
title-prefix: "[repo status] "
labels: [report]
tools:
github:
---
# Daily Repo Status Report
Create a daily status report for maintainers.
Include
- Recent repository activity (issues, PRs, discussions, releases, code changes)
- Progress tracking, goal reminders and highlights
- Project status and recommendations
- Actionable next steps for maintainers
Keep it concise and link to the relevant issues/PRs.The frontmatter defines the trigger, permissions, allowed tools, and safe outputs. The Markdown describes the intent. The agent handles execution.
When you add this to your repo, GitHub compiles it into a lock file that runs as a standard GitHub Actions workflow. The agent executes with the permissions you specified. If it needs to write anything, it goes through the safe outputs you pre-approved.
The agent can use different engines — Copilot CLI, Claude Code, OpenAI Codex — depending on your configuration. Each workflow run with Copilot typically incurs two premium requests: one for the agentic work, one for a guardrail check through safe outputs.
GitHub's security architecture prevents prompt injection attacks. The agent can't escalate permissions. It can't access tools you didn't allowlist. It can't perform GitHub operations you didn't explicitly approve in the safe outputs section.
This is fundamentally different from running a coding agent CLI directly in a GitHub Actions YAML workflow. That approach often grants agents more permission than required. GitHub Agentic Workflows enforce read-only by default and rely on safe outputs for write operations. Tighter constraints. Clearer review points. Stronger control.
The workflow Markdown is code. You review it. You version it. You evolve it intentionally. If you want to change what the agent can do, you modify the frontmatter. If you want to change what the agent should do, you modify the Markdown instructions.
What This Changes For Developers
Six categories of automation become practical that were difficult or impossible with traditional YAML workflows:
Continuous triage: Automatically summarize, label, and route new issues. Home Assistant uses this to analyze thousands of open issues and surface what matters — which problems affect the most users, what's trending, what needs maintainer attention.
Continuous documentation: Keep READMEs and docs aligned with code changes. The Cloud Native Computing Foundation uses this to improve documentation automation across their ecosystem.
Continuous code simplification: Repeatedly identify code improvements and open pull requests. Not feature work. Routine refactoring, dead code removal, complexity reduction.
Continuous test improvement: Assess test coverage and add high-value tests. The agent identifies gaps, writes tests, opens PRs for review.
Continuous quality hygiene: Proactively investigate CI failures and propose targeted fixes. The agent analyzes logs, identifies root causes, suggests patches.
Continuous reporting: Create regular reports on repository health, activity, and trends. Metrics, analytics, goal tracking, actionable next steps.
Carvana is using agentic workflows for changes that span multiple repositories. The flexibility and built-in controls give them confidence to leverage this across complex systems at scale.
The mental model: if repetitive work in a repository can be described in words, it might be a good fit for an agentic workflow.
This doesn't replace your build, test, or release pipelines. It augments them. It handles the subjective judgment calls that CI/CD can't express deterministically. GitHub Copilot's recent updates show the company is serious about making AI agents a core part of the developer workflow, not a side experiment.
Try It Yourself
The easiest way to create a workflow is with an interactive coding agent. Prompt it with:
Generate a workflow that creates a daily repo status report for a maintainer. Use the instructions at https://github.com/github/gh-aw/blob/main/create.mdThe agent will confirm your intent, write the Markdown file, and validate it. You review, refine, and add it to your repo.
If you prefer manual setup:
# Install the GitHub CLI extension
gh extension install github/gh-aw
# Create your workflow file at .github/workflows/daily-repo-status.md
# Add the frontmatter and instructions shown earlier
# Compile the workflow to generate the lock file
gh aw compile
# Commit and push both files
git add .github/workflows/daily-repo-status.md .github/workflows/daily-repo-status.lock.yml
git commit -m "Add daily repo status workflow"
git push
# Add required secrets for your coding agent
# See https://github.github.com/gh-aw/reference/engines/ for detailsStart with low-risk outputs. Comments, drafts, reports. Once you're comfortable, enable pull request creation. Pull requests are never merged automatically — humans must always review and approve.
For inspiration, check out Peli's Agent Factory, a guided tour through workflow patterns you can adapt. Design patterns include ChatOps, DailyOps, DataOps, IssueOps, ProjectOps, MultiRepoOps, and Orchestration.
The Bottom Line
Use this if you maintain repos with repetitive judgment calls that don't require human attention but do require more than deterministic scripts can handle. Issue triage, documentation updates, test coverage, CI failure investigation — these are all good fits.
Skip it if you're looking to automate feature development or replace your CI/CD pipelines. That's not what this is for. Agentic workflows handle subjective, repetitive tasks. They augment CI/CD, not replace it.
The real opportunity is for open source maintainers and enterprise teams operating at scale. Maintainer burnout is real — open source projects in 2026 face unprecedented scale and noise. Agentic workflows can handle the grunt work so maintainers focus on decisions that actually need human judgment.
The real risk is treating this like a magic wand. Workflows need clear instructions. They need appropriate boundaries. They need human oversight. Treat the workflow Markdown as code. Review changes. Keep it small. Evolve it intentionally.
GitHub Agentic Workflows are in technical preview now. Install gh-aw, add a starter workflow, run it. Share what you build in the Community discussion or the #agentic-workflows channel in the GitHub Next Discord.
Source: GitHub Blog