Skip to main content

Overview

GitHub tool allows you to search repositories, manage issues, and interact with GitHub’s API. The user asks about a repo or issue; the agent calls the GitHub API and returns the answer.

Installation

Environment Variables

Get your token from GitHub Settings.

Quick Start

1

Simple Usage

2

With Configuration

Use the same tool with an agent — see Usage with Agent below, or pass env vars and options from the sections above.

Usage with Agent

Available Methods

search_repos(query, limit=10)

Search GitHub repositories.

get_repo(owner, repo)

Get repository details.

list_issues(owner, repo, state=“open”)

List repository issues.

create_issue(owner, repo, title, body)

Create a new issue.

Common Errors

How It Works


Best Practices

Read the GitHub token from the environment and grant only the scopes the task needs.
GitHub throttles unauthenticated and heavy requests. Authenticate and retry with backoff.
Fetch issues and commits in pages so the agent processes manageable chunks.

Bitbucket

Bitbucket repos

Linear

Issue tracking

Jira

Project management