> ## Documentation Index
> Fetch the complete documentation index at: https://ee3fad1-spikonado.manicule.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://ee3fad1-spikonado.manicule.dev/docs/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://ee3fad1-spikonado.manicule.dev/docs/api/mcp.
> Every agent surface: https://ee3fad1-spikonado.manicule.dev/docs/.well-known/llms-manifest.json

# GitHub (/docs/use/github)

<!-- agent-signals: reading_time_min: 1 · est_tokens: 356 · updated: 2026-11-12 -->
Related: [Projects and threads](/docs/use/projects-and-threads.md), [Models and providers](/docs/use/models-and-providers.md), [What the agent can do](/docs/use/agent-tools.md), [Instructions and skills](/docs/use/instructions-and-skills.md), [Hardware](/docs/use/hardware.md), [Purchases](/docs/use/purchases.md)

> Connect GitHub so Sprocket's agent can link pull requests to threads, watch their checks and reviews, and settle threads when they merge.

The agent uses the [GitHub CLI](https://cli.github.com) for pull requests and other GitHub work. Sprocket installs it for you.

## Sign in

Sprocket's copy of the GitHub CLI is only on the agent's `PATH`. Install the [GitHub CLI](https://cli.github.com) yourself, then run this on the computer that runs Sprocket:

```sh
gh auth login
```

**Settings → Version Control** then shows **Signed in as** and your GitHub username. You can add a token there instead. It needs read access to pull requests.

For GitHub Enterprise, add each host with its own token on the same page.

## Pull requests in threads

The agent links the pull requests it works on to the thread. They appear in the thread's **Pull requests** list with their current status. The agent can wait on a pull request until its checks finish or a reviewer comments.

To settle a thread when its pull requests merge, turn on **Settle threads when their PRs merge** in [Settings → General](/docs/reference/settings#general).

## Commits

Sprocket tells the agent to add Sprocket as a co-author on its commits. Turn this off in [Settings → General](/docs/reference/settings#general).

## Turn off GitHub

Turn off GitHub in **Settings → Version Control**. The agent then can't link pull requests, and their status stops refreshing.
