Examples
Complete, copy-pasteable GitHub agents for every framework, eve, the AI SDK, Vercel Workflow, and Chat SDK, plus a manager agent that delegates to scoped sub-agents.

Build a GitHub agent from one of these examples

Each page below is a complete, runnable agent: every file it needs, not just the interesting snippet. They cover the same ground as Frameworks but end-to-end, with a real task, a real preset, and Vercel Connect wired in as the token source.

Pick an example

ExampleFrameworkTaskPreset
Stale issue triagereve extensionComment on and close inactive issuesissue-triage
Release notes generatorAI SDKDraft release notes from merged PRsrelease-manager
CI failure botVercel WorkflowDiagnose and report failing workflow runsci-ops
Issue triage botChat SDK@mention triage on GitHub, durable multi-turnissue-triage
Manager agent with sub-agentseve extensionRoute requests to specialist sub-agentscode-review, issue-triage, release-manager

Shorter, single-file snippets (toolpick, evlog, selective approval) live on the Recipes page.

Every example uses Vercel Connect

Each example mints its GitHub token from a Vercel Connect connector instead of a long-lived GITHUB_TOKEN: nothing to store or rotate, and scopes derived from the preset. Swap connectGithubTools for createGithubTools({ token: process.env.GITHUB_TOKEN }) if you'd rather manage a PAT yourself, see Tokens & Auth for the trade-offs.

Why not just read the framework pages?

The Frameworks section shows the shape of each integration in isolation. These examples show a complete agent solving one real job: every config file, every env var, the exact preset and approval policy for that job, so you can copy the whole thing and adapt it rather than assembling it from fragments.

External references