From 3ff75efde4395edc318aa45177954acb1ede1c38 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 20 Aug 2026 20:21:51 +0000
Subject: [PATCH 01/11] Initial plan
From 7caa3848360be83fd64aab695eb98e05f0dc64fe Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 20 Aug 2026 20:28:58 +0000
Subject: [PATCH 02/11] Clarify quick start lock file and CLI add commands
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
---
docs/src/content/docs/setup/cli.md | 8 +++
docs/src/content/docs/setup/quick-start.mdx | 61 +++++++++++++++++++++
2 files changed, 69 insertions(+)
diff --git a/docs/src/content/docs/setup/cli.md b/docs/src/content/docs/setup/cli.md
index 2c2ee507d52..ba3136a5e35 100644
--- a/docs/src/content/docs/setup/cli.md
+++ b/docs/src/content/docs/setup/cli.md
@@ -146,6 +146,14 @@ Commands are organized by workflow lifecycle: creating, building, testing, monit
### Getting Workflows
+If you are choosing between the similar setup commands, use `add-wizard` for guided interactive installation of an existing workflow, `add` for direct or scripted installation of an existing workflow, and `new` to scaffold a fresh workflow you plan to author.
+
+| Command | Best fit |
+|---------|----------|
+| [`gh aw add-wizard`](#add-wizard) | Guided, interactive setup for an existing workflow, including prompts for engine auth and secrets |
+| [`gh aw add`](#add) | Direct, non-interactive installation of an existing local, remote, or packaged workflow |
+| [`gh aw new`](#new) | Scaffold a new workflow template in this repository before writing custom instructions |
+
#### `init`
Initialize repository for agentic workflows. Configures `.gitattributes`, creates the dispatcher skill file (`.github/skills/agentic-workflows/SKILL.md`), and performs non-interactive setup. With the Copilot engine (`--engine copilot`), it also creates the Agentic Workflows custom agent (`.github/agents/agentic-workflows.md`) and enables MCP server integration by default (use `--no-mcp`/`--no-agent` to skip these Copilot-specific artifacts). Use `--no-skill` to skip dispatcher skill creation. Non-Copilot engines skip Copilot-specific artifacts; see [Initializing for non-Copilot engines](#initializing-for-non-copilot-engines).
diff --git a/docs/src/content/docs/setup/quick-start.mdx b/docs/src/content/docs/setup/quick-start.mdx
index af3b580d380..fff2bdc557d 100644
--- a/docs/src/content/docs/setup/quick-start.mdx
+++ b/docs/src/content/docs/setup/quick-start.mdx
@@ -126,6 +126,67 @@ This will take you through an interactive process to:
> [!NOTE]
> The `.lock.yml` is the compiled GitHub Actions workflow generated from your Markdown source. GitHub Actions executes this file; regenerate it with `gh aw compile` after frontmatter changes instead of editing it by hand. See [Lock File](/gh-aw/reference/workflow-structure/#lock-file-header) for the full explanation.
+For example, a short Markdown source file compiles into a longer GitHub Actions workflow:
+
+
+
+
+
+**Markdown source (`.md`)**
+
+```aw title=".github/workflows/issue-helper.md"
+---
+name: Issue Helper
+on:
+ issues:
+ types: [opened]
+permissions:
+ contents: read
+ issues: read
+engine: copilot
+---
+
+Summarize the new issue and suggest next steps.
+```
+
+
+
+
+
+**Compiled workflow (`.lock.yml`, excerpt)**
+
+```yaml title=".github/workflows/issue-helper.lock.yml"
+# This file was automatically generated by gh-aw. DO NOT EDIT.
+name: "Issue Helper"
+on:
+ issues:
+ types:
+ - opened
+
+permissions: {}
+
+jobs:
+ activation:
+ runs-on: ubuntu-slim
+ permissions:
+ contents: read
+ issues: read
+ steps:
+ - name: Generate workflow metadata
+ id: generate_aw_info
+ ...
+ agent:
+ needs: activation
+ runs-on: ubuntu-slim
+ steps:
+ - name: Run agent
+ ...
+```
+
+
+
+
+
**Configuring authentication?** Select the engine you chose above:
From e510a90bc10672fd012acc5fd96b8ef571f098da Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 20 Aug 2026 20:30:37 +0000
Subject: [PATCH 03/11] Clarify lock file excerpt details
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
---
docs/src/content/docs/setup/quick-start.mdx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/docs/src/content/docs/setup/quick-start.mdx b/docs/src/content/docs/setup/quick-start.mdx
index fff2bdc557d..31a556f9086 100644
--- a/docs/src/content/docs/setup/quick-start.mdx
+++ b/docs/src/content/docs/setup/quick-start.mdx
@@ -163,11 +163,11 @@ on:
types:
- opened
-permissions: {}
+permissions: {} # gh-aw applies permissions on generated jobs
jobs:
activation:
- runs-on: ubuntu-slim
+ runs-on: ...
permissions:
contents: read
issues: read
@@ -177,7 +177,7 @@ jobs:
...
agent:
needs: activation
- runs-on: ubuntu-slim
+ runs-on: ...
steps:
- name: Run agent
...
From 0e5a20b62c05fb294bcf7db4852981353c78ebc5 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 20 Aug 2026 20:32:05 +0000
Subject: [PATCH 04/11] Move CLI chooser above lifecycle section
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
---
docs/src/content/docs/setup/cli.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/src/content/docs/setup/cli.md b/docs/src/content/docs/setup/cli.md
index ba3136a5e35..fc2bba98a39 100644
--- a/docs/src/content/docs/setup/cli.md
+++ b/docs/src/content/docs/setup/cli.md
@@ -144,8 +144,6 @@ For `init`, `update`, and `upgrade`, use `--create-pull-request` instead.
Commands are organized by workflow lifecycle: creating, building, testing, monitoring, and managing workflows.
-### Getting Workflows
-
If you are choosing between the similar setup commands, use `add-wizard` for guided interactive installation of an existing workflow, `add` for direct or scripted installation of an existing workflow, and `new` to scaffold a fresh workflow you plan to author.
| Command | Best fit |
@@ -154,6 +152,8 @@ If you are choosing between the similar setup commands, use `add-wizard` for gui
| [`gh aw add`](#add) | Direct, non-interactive installation of an existing local, remote, or packaged workflow |
| [`gh aw new`](#new) | Scaffold a new workflow template in this repository before writing custom instructions |
+### Getting Workflows
+
#### `init`
Initialize repository for agentic workflows. Configures `.gitattributes`, creates the dispatcher skill file (`.github/skills/agentic-workflows/SKILL.md`), and performs non-interactive setup. With the Copilot engine (`--engine copilot`), it also creates the Agentic Workflows custom agent (`.github/agents/agentic-workflows.md`) and enables MCP server integration by default (use `--no-mcp`/`--no-agent` to skip these Copilot-specific artifacts). Use `--no-skill` to skip dispatcher skill creation. Non-Copilot engines skip Copilot-specific artifacts; see [Initializing for non-Copilot engines](#initializing-for-non-copilot-engines).
From f73bd49cabb56cda3f86b640632f64a4aecdca55 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 20 Aug 2026 20:32:50 +0000
Subject: [PATCH 05/11] Clarify job-scoped permissions note
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
---
docs/src/content/docs/setup/quick-start.mdx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/src/content/docs/setup/quick-start.mdx b/docs/src/content/docs/setup/quick-start.mdx
index 31a556f9086..1d010fd608e 100644
--- a/docs/src/content/docs/setup/quick-start.mdx
+++ b/docs/src/content/docs/setup/quick-start.mdx
@@ -163,7 +163,7 @@ on:
types:
- opened
-permissions: {} # gh-aw applies permissions on generated jobs
+permissions: {} # intentionally empty; gh-aw scopes permissions per job
jobs:
activation:
From f3a81dd61c27f1b6f6aae404e67df4f0e26cf378 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 20 Aug 2026 20:33:29 +0000
Subject: [PATCH 06/11] Note omitted agent job permissions
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
---
docs/src/content/docs/setup/quick-start.mdx | 1 +
1 file changed, 1 insertion(+)
diff --git a/docs/src/content/docs/setup/quick-start.mdx b/docs/src/content/docs/setup/quick-start.mdx
index 1d010fd608e..edd69c640c5 100644
--- a/docs/src/content/docs/setup/quick-start.mdx
+++ b/docs/src/content/docs/setup/quick-start.mdx
@@ -178,6 +178,7 @@ jobs:
agent:
needs: activation
runs-on: ...
+ # Permissions are scoped here too, omitted for brevity.
steps:
- name: Run agent
...
From e700d11f235087daa2984e6b2eb7dc1b13a2771a Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 20 Aug 2026 20:34:06 +0000
Subject: [PATCH 07/11] Clarify source permissions transformation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
---
docs/src/content/docs/setup/quick-start.mdx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/src/content/docs/setup/quick-start.mdx b/docs/src/content/docs/setup/quick-start.mdx
index edd69c640c5..762ca52545e 100644
--- a/docs/src/content/docs/setup/quick-start.mdx
+++ b/docs/src/content/docs/setup/quick-start.mdx
@@ -163,7 +163,7 @@ on:
types:
- opened
-permissions: {} # intentionally empty; gh-aw scopes permissions per job
+permissions: {} # source-level permissions move to generated jobs
jobs:
activation:
From d1e368981bd552cc8617bd04d16c530c892824fe Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 20 Aug 2026 20:34:45 +0000
Subject: [PATCH 08/11] Clarify omitted agent permissions note
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
---
docs/src/content/docs/setup/quick-start.mdx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/src/content/docs/setup/quick-start.mdx b/docs/src/content/docs/setup/quick-start.mdx
index 762ca52545e..1992949d9f3 100644
--- a/docs/src/content/docs/setup/quick-start.mdx
+++ b/docs/src/content/docs/setup/quick-start.mdx
@@ -178,7 +178,7 @@ jobs:
agent:
needs: activation
runs-on: ...
- # Permissions are scoped here too, omitted for brevity.
+ # Same permissions as activation job, omitted for brevity.
steps:
- name: Run agent
...
From da7619c87fc04159a86aca3cd63749d7c70038ee Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 20 Aug 2026 20:35:23 +0000
Subject: [PATCH 09/11] Show agent job permissions in excerpt
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
---
docs/src/content/docs/setup/quick-start.mdx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/docs/src/content/docs/setup/quick-start.mdx b/docs/src/content/docs/setup/quick-start.mdx
index 1992949d9f3..b477dafa49e 100644
--- a/docs/src/content/docs/setup/quick-start.mdx
+++ b/docs/src/content/docs/setup/quick-start.mdx
@@ -178,7 +178,9 @@ jobs:
agent:
needs: activation
runs-on: ...
- # Same permissions as activation job, omitted for brevity.
+ permissions:
+ contents: read
+ issues: read
steps:
- name: Run agent
...
From 5f99056c3ee18f6ac9c250b1316956601ee66ac4 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 20 Aug 2026 20:36:50 +0000
Subject: [PATCH 10/11] Move excerpt annotation into prose
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
---
docs/src/content/docs/setup/cli.md | 2 +-
docs/src/content/docs/setup/quick-start.mdx | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/docs/src/content/docs/setup/cli.md b/docs/src/content/docs/setup/cli.md
index fc2bba98a39..aea2a476f08 100644
--- a/docs/src/content/docs/setup/cli.md
+++ b/docs/src/content/docs/setup/cli.md
@@ -144,7 +144,7 @@ For `init`, `update`, and `upgrade`, use `--create-pull-request` instead.
Commands are organized by workflow lifecycle: creating, building, testing, monitoring, and managing workflows.
-If you are choosing between the similar setup commands, use `add-wizard` for guided interactive installation of an existing workflow, `add` for direct or scripted installation of an existing workflow, and `new` to scaffold a fresh workflow you plan to author.
+Use this chooser for the similarly named setup commands:
| Command | Best fit |
|---------|----------|
diff --git a/docs/src/content/docs/setup/quick-start.mdx b/docs/src/content/docs/setup/quick-start.mdx
index b477dafa49e..8b94a31860c 100644
--- a/docs/src/content/docs/setup/quick-start.mdx
+++ b/docs/src/content/docs/setup/quick-start.mdx
@@ -126,7 +126,7 @@ This will take you through an interactive process to:
> [!NOTE]
> The `.lock.yml` is the compiled GitHub Actions workflow generated from your Markdown source. GitHub Actions executes this file; regenerate it with `gh aw compile` after frontmatter changes instead of editing it by hand. See [Lock File](/gh-aw/reference/workflow-structure/#lock-file-header) for the full explanation.
-For example, a short Markdown source file compiles into a longer GitHub Actions workflow:
+For example, a short Markdown source file compiles into a longer GitHub Actions workflow. In the compiled excerpt, the top-level `permissions` map is empty because `gh-aw` moves source-level permissions onto the generated jobs that need them.
@@ -163,7 +163,7 @@ on:
types:
- opened
-permissions: {} # source-level permissions move to generated jobs
+permissions: {}
jobs:
activation:
From 2029e81404f9ec34aa83703ca8bd4ef0c6b0ef3d Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 20 Aug 2026 20:37:32 +0000
Subject: [PATCH 11/11] Refine CLI chooser wording
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
---
docs/src/content/docs/setup/cli.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/src/content/docs/setup/cli.md b/docs/src/content/docs/setup/cli.md
index aea2a476f08..51c866dbe54 100644
--- a/docs/src/content/docs/setup/cli.md
+++ b/docs/src/content/docs/setup/cli.md
@@ -144,7 +144,7 @@ For `init`, `update`, and `upgrade`, use `--create-pull-request` instead.
Commands are organized by workflow lifecycle: creating, building, testing, monitoring, and managing workflows.
-Use this chooser for the similarly named setup commands:
+Use this table to choose between the similarly named setup commands:
| Command | Best fit |
|---------|----------|