
Give your eve agent GitHub tools
Quick Answer
Vercel AI introduces GitHub Tools with an eve toolset, allowing users to create a GitHub agent in just nine lines of code.
Quick Take
Vercel AI introduces GitHub Tools with an eve toolset, allowing users to create a GitHub agent in just nine lines of code. The agent can utilize a 'maintainer' preset and requires approval for write actions, ensuring safety by default. High-volume read tools are optimized to limit model visibility while maintaining full payloads for channels.
Key Points
- Create a GitHub agent using just nine lines of code.
- Utilize the 'maintainer' preset for easy configuration.
- Write tools like mergePullRequest require approval by default.
- High-volume read tools trim model visibility for efficiency.
- Multiple presets available: code-review, issue-triage, and more.
📖 Reader Mode
~1 min readGitHub Tools now ships an eve toolset through the new @github-tools/sdk/eve subpath. One file in agent/tools/ can register every GitHub tool, or use a preset such as maintainer, so you can build a complete GitHub agent in nine lines of code.
// agent/instructions.md
You are a GitHub code review assistant.
// agent/agent.ts
import { defineAgent } from "eve";
export default defineAgent({
model: "anthropic/claude-sonnet-5",
});
// agent/tools/github.ts
import { createGithubTools } from "@github-tools/sdk/eve";
export default createGithubTools({
preset: "maintainer",
});
Configure your GitHub agent with the 'maintainer' preset from GitHub Tools
Safe by default: Every write tool, such as
mergePullRequest, requires approval unless you opt out. Gate individual tools withalways,once, or an input-dependent predicate; pauses survive restarts and deploys.Presets:
code-review,issue-triage,repo-explorer,ci-ops, andmaintainerscope the toolset, alone or merged.Trimmed reads: High-volume read tools such as
listPullRequestFilesandgetCommittrim what the model sees, while channels still get full payloads.
Get started by following the knowledge base guide.
— Originally published at vercel.com
Want this in your inbox every morning?
Daily brief at your local 8am — bilingual EN/中文, free.
More from Vercel AI
See more →
The Agent Stack
The Agent Stack by Vercel AI provides essential building blocks for creating production-grade agents, enabling seamless integration across multiple AI models and secure operations. It features components like AI Gateway for model routing, Workflow SDK for durable execution, and Vercel Connect for scoped access, streamlining agent development and deployment across various platforms.

