github/gh-aw

GitHub Agentic Workflows

What it solves

Developers often need automation that can reason, interpret, and adapt—like triaging issues, reviewing pull requests, or investigating CI failures. Traditional GitHub Actions are deterministic and scripted, which works well for builds, tests, and deploys but not for tasks that require judgment.

GitHub Agentic Workflows fills that gap. It lets you add AI-powered steps to your existing CI/CD without replacing what you already have. Instead of writing brittle scripts for ambiguous jobs, you describe the goal in natural language and let an AI agent handle the reasoning, all while keeping the safety guardrails of GitHub Actions.

How it works

You create a workflow as a Markdown file with two parts:

  • YAML frontmatter that configures triggers, permissions, permitted tools, and which AI engine to use.
  • The Markdown body that tells the agent what to accomplish—its instruction prompt.

The gh-aw CLI extension (installable via gh extension install github/gh-aw) compiles this Markdown into a standard GitHub Actions workflow (a .lock.yml file). When you run that workflow, it executes the AI agent job, which is read-only and sandboxed by default. Any GitHub writes the agent wants to make go through safe-outputs jobs: they buffer, validate, and apply the changes in a separate step with scoped permissions.

Supported AI engines include GitHub Copilot, Claude Code, OpenAI Codex, Google Gemini, and Pi. The resulting workflow is just a normal Actions workflow, so it fits into your existing CI/CD.

Who it’s for

Developers and teams who use GitHub Actions and want to add intelligent automation without giving AI agents full write access or complex custom infrastructure. It’s particularly useful for tasks like issue triage, pull-request review, documentation upkeep, dependency analysis, or generating repository reports. The README emphasises that it complements—not replaces—conventional CI/CD.

Because security is a core concern, this tool is for teams that are willing to review permissions and supervise AI-generated actions carefully. The README explicitly warns that using agentic workflows requires human supervision and carries risk.

Highlights

  • Defines AI workflows in plain Markdown with YAML frontmatter—no separate DSL.
  • Compiles to a standard GitHub Actions workflow via the gh aw compile command.
  • Read-only, sandboxed agent jobs by default; writes go through validated safe-outputs jobs.
  • Integrates with multiple AI engines (Copilot, Claude Code, Codex, Gemini, Pi).
  • Security and permissions are first-class design concerns, configurable by the workflow author.
  • Existing CI/CD is unaffected; agentic workflows are additive.

Related

  • Project
  • Project
  • Project
  • Project
  • Project