This prompt guides you, a coding agent, to configure a repository for GitHub Agentic Workflows (gh-aw).
Configure this repository to use agentic workflows by:
- Installing the gh-aw CLI extension
- Running the initialization command
- Committing and pushing the changes
Run the installation script from the main branch of the gh-aw repository:
curl -sL https://raw.githubusercontent.com/github/gh-aw/main/install-gh-aw.sh | bashWhat this does: Downloads and installs the gh-aw binary to ~/.local/share/gh/extensions/gh-aw/
Verify installation:
gh aw versionYou should see version information displayed. If you encounter an error, check that:
- GitHub CLI (
gh) is installed and authenticated - The installation script completed without errors
~/.local/share/gh/extensionsis in your PATH
Run the initialization command:
gh aw initWhat this does:
- Configures
.gitattributesto mark.lock.ymlfiles as generated - Creates
.github/agents/agentic-workflows.agent.mdas the dispatcher agent for AI workflows - Configures VSCode settings in
.vscode/settings.json - Creates GH-AW MCP server configuration in
.vscode/mcp.json - Creates
.github/workflows/copilot-setup-steps.ymlwith setup instructions
Note: The command may prompt for additional configuration or secrets. If secrets are needed, gh aw init will provide instructions for setting them up. You don't need to configure secrets as part of this initial setup.
Check what files were created:
git statusYou should see new/modified files including:
.gitattributes.github/agents/agentic-workflows.agent.md.vscode/settings.json.vscode/mcp.json- And several other configuration files
Commit the initialization changes:
git add .
git commit -m "Initialize repository for GitHub Agentic Workflows"
git pushIf there is branch protection on the default branch, create a pull request instead and report the link to the pull request.
- Issue:
gh aw versionshows "unknown command" - Solution: Verify GitHub CLI is installed with
gh --version, then re-run the installation script
- Issue: GitHub API rate limit or authentication errors
- Solution: Ensure GitHub CLI is authenticated with
gh auth status
- Issue: Cannot write to installation directory
- Solution: Check that
~/.local/share/gh/extensionsis writable or run with appropriate permissions
After successful initialization, the user can:
- Add workflows from repos:
gh aw add githubnext/agentics - Create new workflows:
gh aw new <workflow-name>os using the agent - Use the AI agent: Type
/agentin GitHub Copilot Chat and selectagentic-workflows - Read documentation: Visit
https://github.github.com/gh-aw/
- Installation script:
https://raw.githubusercontent.com/github/gh-aw/main/install-gh-aw.sh - Documentation:
https://github.github.com/gh-aw/ - Repository:
https://github.com/github/gh-aw - Detailed setup guide: See
install.mdin the gh-aw repository