Vercel — AI · · 1 min read

Give your eve agent GitHub tools

Mirrored from Vercel — AI for archival readability. Support the source by reading on the original site.

GitHub 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 with always, once, or an input-dependent predicate; pauses survive restarts and deploys.

  • Presets: code-review, issue-triage, repo-explorer, ci-ops, and maintainer scope the toolset, alone or merged.

  • Trimmed reads: High-volume read tools such as listPullRequestFiles and getCommit trim what the model sees, while channels still get full payloads.

Get started by following the knowledge base guide.

Discussion (0)

Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.

Sign in →

No comments yet. Sign in and be the first to say something.

More from Vercel — AI