A living book about agentic workflows, agent orchestration, and agentic scaffolding
This document explains how to enable the self-maintaining features of this book.
If you need the operator runbook pointer, start with content.md.
https://<username>.github.io/<repository>Ensure the following permissions are enabled in Settings → Actions → General:
In addition to tokens and workflow permissions, coding agents must be available to this repository as assignable actors.
Minimum requirement:
copilot-swe-agent is available (required for assignment-based PR handoff).Optional additional agents:
openai-code-agentanthropic-code-agentVerify from the repository root with GitHub CLI:
gh api graphql \
-F owner='<owner>' \
-F repo='<repo>' \
-f query='query($owner:String!, $repo:String!) { repository(owner:$owner, name:$repo) { suggestedActors(capabilities: [CAN_BE_ASSIGNED], first: 100) { nodes { __typename ... on Bot { login } } } } }' \
--jq '.data.repository.suggestedActors.nodes[] | select(.__typename == "Bot") | .login'
If the expected bots are missing, complete the GitHub coding-agent integration setup and repository access grants before testing phase dispatch handoffs.
For the main branch:
pages.yml)main branch, manual dispatchbuild-pdf.yml)book/**/*.md, manual dispatchissues.opened for standard intake ACKworkflow_dispatch for agentic routingissues.labeled for downstream GH-AW stagesdaily-research-updates.lock.yml)weekly-editorial-quality.lock.yml)Set GH_AW_GITHUB_TOKEN in repository secrets.
This token is used by safe-outputs writes so label-based stage triggers can launch downstream workflows.
Recommended:
Issues: Read and writePull requests: Read and writeContents: Read and writeActions: Read and write (only if you use PAT-based workflow dispatch fallback)Classic PAT fallback:
repo scope (only if fine-grained PAT cannot be used)Set TAVILY_API_KEY to enable the Tavily MCP server for external web discovery in research workflows.
If this secret is not set, research still runs with GitHub search plus Playwright-based retrieval.
Set these if you want phase dispatch workflows to select Codex or Claude before falling back to Copilot:
OPENAI_API_KEY for Codex engine runsANTHROPIC_API_KEY for Claude engine runsIf either key is missing or invalid at runtime, dispatch falls through to the next engine in the configured order. Each phase dispatcher posts a token-health comment on the issue so operators can verify which credentials are still valid.
The research workflow can use external research tools by default:
curl may be used for simple retrieval on allowed domains.TAVILY_API_KEY is configured) for broad web discovery when direct retrieval is not enough.GH_AW_GITHUB_TOKEN (Fine-Grained PAT)SettingsDeveloper settings -> Personal access tokens -> Fine-grained tokensGenerate new tokenOnly select repositories -> select arivero/agentbookIssues: Read and writePull requests: Read and writeContents: Read and writeSettings -> Secrets and variables -> Actions -> New repository secretGH_AW_GITHUB_TOKENOPENAI_API_KEYSettings -> Secrets and variables -> Actions -> New repository secretOPENAI_API_KEYANTHROPIC_API_KEYSettings -> Secrets and variables -> Actions -> New repository secretANTHROPIC_API_KEYThe following labels are used by the automated workflows:
acknowledgedblog-track (optional: notable non-core items; assessment auto-routes to fast-track)triaged-fast-tracktriaged-for-researchresearched-waiting-opinionsphase-1-completephase-2-completeassignedrejectedGH-AW compiled workflows support repository variables for model selection:
GH_AW_MODEL_AGENT_COPILOT: model override for main agent runsGH_AW_MODEL_DETECTION_COPILOT: model override for threat-detection runsIf these variables are unset, workflows use GH-AW defaults.
main branchbook/chapters/main branchacknowledgedAll workflows support manual triggering:
main)# Install dependencies
bundle install
# Serve locally
bundle exec jekyll serve
# View at http://localhost:4000
Requires Pandoc and LaTeX:
# Install dependencies (Ubuntu/Debian)
sudo apt-get install pandoc texlive-latex-base texlive-fonts-recommended texlive-latex-extra
# Generate PDF
cat book/README.md book/chapters/*.md > combined.md
pandoc combined.md -o book.pdf --pdf-engine=xelatex --toc --number-sections
issues: writebook/chapters/book/index.md table of contentsEdit .github/ISSUE_TEMPLATE/suggestion.yml to customize the suggestion form.
Modify _config.yml and _layouts/ to change the appearance.
For issues or questions: