Skip to content

Commit 3bea091

Browse files
committed
tweak docs
1 parent 848c601 commit 3bea091

11 files changed

Lines changed: 23 additions & 152 deletions

File tree

docs/src/content/docs/guides/mcps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: MCP Integration
2+
title: MCP Guide
33
description: Learn how to use Model Context Protocol (MCP) servers with GitHub Agentic Workflows to connect AI agents to external tools, databases, and services.
44
---
55

docs/src/content/docs/guides/web-search.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Web Search with MCP
2+
title: Web Search Guide
33
description: Learn how to add web search capabilities to GitHub Agentic Workflows using Tavily MCP server.
44
---
55

docs/src/content/docs/reference/cache-memory.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: Cache Memory
33
description: Complete guide to using cache-memory for persistent file storage across workflow runs using GitHub Actions cache and simple file operations.
4+
sidebar:
5+
order: 1400
46
---
57

68
The `cache-memory` feature enables agentic workflows to maintain persistent file storage across workflow runs using GitHub Actions cache infrastructure and simple file operations.

docs/src/content/docs/reference/command-triggers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Command Triggers
33
description: Learn about command triggers and context text functionality for agentic workflows, including special @mention triggers for interactive automation.
44
sidebar:
5-
order: 600
5+
order: 500
66
---
77

88
GitHub Agentic Workflows add the convenience `command:` trigger to create workflows that respond to `/my-bots` in issues and comments.

docs/src/content/docs/reference/concurrency.md

Lines changed: 12 additions & 143 deletions
Original file line numberDiff line numberDiff line change
@@ -2,81 +2,20 @@
22
title: Concurrency Control
33
description: Complete guide to concurrency control in GitHub Agentic Workflows, including agent job concurrency configuration and engine isolation.
44
sidebar:
5-
order: 600
5+
order: 1300
66
---
77

8-
GitHub Agentic Workflows provides sophisticated concurrency control to manage how many AI-powered agent jobs can run simultaneously. This helps prevent resource exhaustion, control costs, and ensure predictable workflow execution.
8+
GitHub Agentic Workflows provides concurrency control to manage how many AI-powered agentic workflow runs can run simultaneously. This helps prevent resource exhaustion, control costs, and ensure predictable workflow execution.
99

10-
## Overview
10+
Concurrency control uses a dual-level approach:
11+
- **Workflow-level concurrency**: Limit based on workflow name and type (name, issue, PR, branch, etc.)
12+
- **Agent job concurrency**: Limit based on AI engine via the `engine.concurrency` field
1113

12-
Concurrency control in GitHub Agentic Workflows uses a dual-level approach:
13-
- **Workflow-level concurrency**: Context-specific limiting based on workflow type (issue, PR, branch, etc.)
14-
- **Agent job concurrency**: Controls concurrent execution of agent jobs using the `engine.concurrency` field
14+
This provides both fine-grained control per workflow and flexible resource management for AI execution.
1515

16-
This dual-level approach provides both fine-grained control per workflow and flexible resource management for AI execution.
16+
## Workflow-Level Concurrency
1717

18-
## Agent Job Concurrency Configuration
19-
20-
The `concurrency` field under the `engine` section controls concurrency for the agent job. It uses GitHub Actions concurrency syntax:
21-
22-
```yaml
23-
engine:
24-
id: claude
25-
concurrency:
26-
group: "my-group-${{ github.workflow }}"
27-
cancel-in-progress: true
28-
```
29-
30-
### Default Behavior
31-
32-
**Default:** Single job per engine across all workflows
33-
34-
When no `engine.concurrency` is specified, the default pattern is:
35-
```yaml
36-
concurrency:
37-
group: "gh-aw-{engine-id}"
38-
```
39-
40-
This ensures only one agent job runs at a time for each engine across all workflows and refs, preventing resource exhaustion.
41-
42-
### Configuration Examples
43-
44-
**Default (single job per engine):**
45-
```yaml
46-
engine:
47-
id: claude
48-
# No concurrency specified - uses gh-aw-claude
49-
```
50-
51-
**Per-workflow concurrency:**
52-
```yaml
53-
engine:
54-
id: claude
55-
concurrency:
56-
group: "gh-aw-claude-${{ github.workflow }}"
57-
```
58-
59-
**Per-branch concurrency with cancellation:**
60-
```yaml
61-
engine:
62-
id: copilot
63-
concurrency:
64-
group: "gh-aw-copilot-${{ github.ref }}"
65-
cancel-in-progress: true
66-
```
67-
68-
**Simple string format:**
69-
```yaml
70-
engine:
71-
id: claude
72-
concurrency: "custom-group-${{ github.workflow }}"
73-
```
74-
75-
## How It Works
76-
77-
### Workflow-Level Concurrency
78-
79-
The workflow-level concurrency uses context-specific keys based on the trigger type:
18+
By default, the workflow-level concurrency uses context-specific keys based on workflow name and the trigger type:
8019

8120
**For issue workflows:**
8221
```yaml
@@ -126,20 +65,18 @@ jobs:
12665
cancel-in-progress: true
12766
```
12867

129-
This controls concurrent execution of agent jobs across all workflows, preventing resource exhaustion from too many concurrent AI executions.
68+
This controls concurrent execution of agentic workflow runs across all workflows, preventing resource exhaustion from too many concurrent AI executions.
13069

13170
### Complete Example
13271

133-
Here's how both levels work together in a generated workflow:
72+
Here's how both levels work together in a workflow:
13473

13574
```yaml
13675
name: "Issue Responder"
13776
on:
13877
issues:
13978
types: [opened]
14079
141-
permissions: {}
142-
14380
# Workflow-level: Context-specific concurrency
14481
concurrency:
14582
group: "gh-aw-${{ github.workflow }}-${{ github.event.issue.number }}"
@@ -156,13 +93,6 @@ jobs:
15693
...
15794
```
15895

159-
### Dual-Level Application
160-
161-
The dual-level concurrency provides complementary control:
162-
163-
1. **Workflow-level**: Prevents conflicts between runs of the same workflow on different contexts (e.g., different issues or PRs)
164-
2. **Agent job concurrency**: Controls concurrent execution of agent jobs based on configured pattern
165-
16696
**Example scenario:**
16797
- 5 different issues trigger the same workflow
16898
- Workflow-level concurrency allows all 5 to start (different issue numbers)
@@ -224,8 +154,8 @@ engine:
224154
# Default: gh-aw-claude
225155
```
226156

227-
- Copilot agent jobs use the `gh-aw-copilot` concurrency group
228-
- Claude agent jobs use the `gh-aw-claude` concurrency group
157+
- Copilot agentic workflow runs use the `gh-aw-copilot` concurrency group
158+
- Claude agentic workflow runs use the `gh-aw-claude` concurrency group
229159
- Both can run simultaneously without conflict
230160

231161
## Cancellation Behavior
@@ -244,28 +174,6 @@ concurrency:
244174
cancel-in-progress: true
245175
```
246176

247-
## Benefits
248-
249-
### Cost Control
250-
- **Prevents runaway costs**: Controls concurrent AI job execution
251-
- **Predictable resource usage**: Known concurrency patterns
252-
- **Flexible configuration**: Customize per workflow or engine
253-
254-
### Resource Management
255-
- **Prevents resource exhaustion**: Ensures system stability with default single-job-per-engine pattern
256-
- **Fair resource distribution**: Agent jobs queue when concurrency limit is reached
257-
- **Maintains throughput**: Activation and other jobs continue running
258-
259-
### Engine Isolation
260-
- **Independent limits**: Each engine has its own default concurrency group
261-
- **No cross-engine interference**: Copilot agent jobs don't block Claude agent jobs
262-
- **Flexible configuration**: Customize concurrency per engine
263-
264-
### Simplicity
265-
- **Default global lock**: Single job per engine by default
266-
- **Standard GitHub Actions syntax**: Familiar concurrency configuration
267-
- **Consistent behavior**: Predictable execution patterns
268-
269177
## Custom Concurrency
270178

271179
You can override the automatic concurrency generation by specifying your own `concurrency` section in the frontmatter (for workflow-level concurrency):
@@ -333,45 +241,6 @@ engine:
333241
group: "gh-aw-copilot-${{ github.workflow }}" # Per-workflow concurrency
334242
```
335243

336-
### Monitoring and Adjustment
337-
338-
1. **Monitor workflow execution**: Use GitHub Actions insights
339-
2. **Track costs**: Review AI model usage and expenses
340-
3. **Adjust patterns**: Change concurrency groups based on needs
341-
4. **Test changes**: Validate new patterns with test workflows
342-
343-
## Troubleshooting
344-
345-
### Agent Jobs Queuing
346-
347-
**Symptom**: Agent jobs wait in queue instead of running
348-
349-
**Cause**: Concurrency group is blocking (e.g., default single-job-per-engine pattern)
350-
351-
**Solution**:
352-
- Customize `engine.concurrency` to allow more parallel execution
353-
- Use per-workflow or per-branch patterns if appropriate
354-
- Consider using different engines for different workflows
355-
356-
### Too Many Concurrent Runs
357-
358-
**Symptom**: High costs or resource usage from concurrent agent jobs
359-
360-
**Cause**: Concurrency pattern allows too many parallel executions
361-
362-
**Solution**:
363-
- Use more restrictive concurrency pattern (e.g., default `gh-aw-{engine-id}`)
364-
- Monitor usage patterns
365-
- Set appropriate patterns per engine
366-
367-
### Workflows Not Canceling
368-
369-
**Symptom**: Old pull request workflows continue running after new commits
370-
371-
**Cause**: Custom concurrency without `cancel-in-progress`
372-
373-
**Solution**: Ensure pull request workflows have `cancel-in-progress: true` in custom concurrency configuration
374-
375244
## Related Documentation
376245

377246
- [AI Engines](/gh-aw/reference/engines/) - Engine configuration and capabilities

docs/src/content/docs/reference/frontmatter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ engine:
474474

475475
### Agent Job Concurrency
476476

477-
The `concurrency` field in the engine configuration controls how many agent jobs can run concurrently. It uses GitHub Actions concurrency syntax:
477+
The `concurrency` field in the engine configuration controls how many agentic workflow runs can run concurrently. It uses GitHub Actions concurrency syntax:
478478

479479
```yaml
480480
engine:

docs/src/content/docs/reference/safe-outputs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Safe Output Processing
33
description: Learn about safe output processing features that enable creating GitHub issues, comments, and pull requests without giving workflows write permissions.
44
sidebar:
5-
order: 500
5+
order: 650
66
---
77

88
One of the primary security features of GitHub Agentic Workflows is "safe output processing", enabling the creation of GitHub issues, comments, pull requests, and other outputs without giving the agentic portion of the workflow write permissions.

docs/src/content/docs/reference/tools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Tools Configuration
33
description: Configure GitHub API tools, browser automation, and AI capabilities available to your agentic workflows, including GitHub tools, Playwright, and custom MCP servers.
44
sidebar:
5-
order: 500
5+
order: 600
66
---
77

88
This guide covers the available tools that can be configured in agentic workflows, including GitHub tools, Playwright browser automation, custom MCP servers, and engine-specific tools.
File renamed without changes.

pkg/parser/schemas/main_workflow_schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2852,15 +2852,15 @@
28522852
},
28532853
{
28542854
"type": "object",
2855-
"description": "GitHub Actions concurrency configuration for the agent job. Controls how many agent jobs can run concurrently.",
2855+
"description": "GitHub Actions concurrency configuration for the agent job. Controls how many agentic workflow runs can run concurrently.",
28562856
"properties": {
28572857
"group": {
28582858
"type": "string",
28592859
"description": "Concurrency group identifier. Use GitHub Actions expressions like ${{ github.workflow }} or ${{ github.ref }}. Defaults to 'gh-aw-{engine-id}' if not specified."
28602860
},
28612861
"cancel-in-progress": {
28622862
"type": "boolean",
2863-
"description": "Whether to cancel in-progress runs of the same concurrency group. Defaults to false for agent jobs."
2863+
"description": "Whether to cancel in-progress runs of the same concurrency group. Defaults to false for agentic workflow runs."
28642864
}
28652865
},
28662866
"required": ["group"],

0 commit comments

Comments
 (0)