# GitHub

![Example of Superconductor bot responding to a PR comment request to make headers bold](</docs/_next/static/media/pr-comment-example.0qzm4l1duiagw.jpg>)

## Enabling the GitHub integration [#enabling-the-github-integration]

GitHub is connected at two levels:

1. **Workspace** — Install the Superconductor GitHub App on your GitHub organization or account during [workspace setup](/docs/quick-start#workspace-setup). This gives your workspace access to repositories. If you [create additional workspaces](/docs/workspaces), you'll be prompted to connect GitHub for each one. You can manage installations and set repository defaults in [Workspace Settings → GitHub](https://www.superconductor.com/workspaces/default/integrations/github).
2. **Project** — Link specific repositories to a project when [creating or editing the project](/docs/projects). Projects can only use repos that are already connected at the workspace level. Repos are optional; see [Projects without repositories](/docs/projects#projects-without-repositories).

<Callout>
**Why do I link repos at both levels?** The workspace connection determines which repos Superconductor *can* access. The project-level link determines which repos a specific project's agents *will* work in. This lets you give your workspace access to all your organization's repos while scoping each project to just the repos it needs.
</Callout>

<Callout type="info">
If you connect an empty GitHub repository with no branches, Superconductor will create an initial `README.md` commit so agents can clone the repo and start work.
</Callout>

## Creating pull requests from Superconductor [#creating-pull-requests-from-superconductor]

You can create and manage pull requests directly from the Superconductor app. See [Creating pull requests](/docs/implementations#creating-pull-requests) in the Implementation docs for details.

### AI-generated PR descriptions [#ai-generated-pr-descriptions]

When Superconductor creates a pull request, it automatically generates a PR description using AI. The description summarizes what changed and why based on the ticket, the conversation between you and the agent, the commit message, and the diff itself.

The generated description includes:

- A brief summary of the changes
- Key changes as bullet points
- Screenshots or visual changes, if the implementation produced any artifacts

For detailed walkthroughs of files, review order, and diff-specific commentary, use [Guided Review](/docs/implementations/review). For an independent quality score and follow-up list, use [QA Checks](/docs/implementations/qa-checks). The PR description stays intentionally concise.

If your repository has a [pull request template](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/creating-a-pull-request-template-for-your-repository), Superconductor will follow its structure when generating the description.

PR descriptions are generated using Superconductor's own infrastructure and API keys — this doesn't use your account's API credentials or count against your usage. If the generation fails for any reason, Superconductor falls back to using the raw ticket description.

Every PR created by Superconductor also has buttons at the bottom of the description that link back to Superconductor: **View implementation**, **App Preview** (if available), and **Guided Review**. Superconductor's replies to PR comments use the same buttons.

## Tagging Superconductor in GitHub [#tagging-superconductor-in-github]

Tag `@superconductor` or use `/sc` in PR comments (including inline review comments) to interact with agents:

- **Existing implementation**: If the PR has an associated Superconductor implementation, the agent will work in that context and respond to your comment.
- **New implementation**: If not, a new ticket and implementation will be created in the Superconductor project linked to this repo that best matches your workspaces.

This lets you request changes, ask questions, or get help directly from GitHub without switching to the Superconductor app.

<Callout>
When a Superconductor user is requested as a reviewer on a Superconductor PR, they're automatically added as a [follower](/docs/implementations#following-implementations) of the implementation and will see it appear in their Activity Sidebar.
</Callout>

## PRs created outside of Superconductor [#prs-created-outside-of-superconductor]

Configure how Superconductor handles PRs created outside the app in **Project Settings**. You can leave them alone, launch a preview environment, or launch a preview environment and automatically generate a [Guided Review](/docs/implementations/review). When either launch option is enabled, any new PR opened on the project's repositories automatically creates a linked Superconductor ticket. See [Treatment of PRs created outside of Superconductor](/docs/projects#treatment-of-prs-created-outside-of-superconductor) for details.

## Matching repos to projects [#matching-repos-to-projects]

You can set default projects for repositories in [Workspace Settings → GitHub](https://www.superconductor.com/workspaces/default/integrations/github). This determines which project is used when `@superconductor` mentions on PRs in that repository create new tickets. If no default is set, Superconductor will try to find a matching project automatically. If it can't determine which project to use, it will reply on the PR asking you to specify one.

![Workspace Integrations page showing GitHub organizations with repository default project settings](</docs/_next/static/media/github-workspace-integrations-default-projects.2_acttgse7buv.jpg>)

## Running automations when a pull request is merged [#running-automations-when-a-pull-request-is-merged]

Superconductor can run a project action when a pull request is merged in a connected repository. Create an automation with the **On a GitHub event** trigger, then choose which repositories and base branch it should watch. The automation can create a ticket, launch an implementation, or send a message to an agent. A [throttle period](/docs/projects/automations#throttle-period) stops a burst of merges from starting a run each time.

See [Automations](/docs/projects/automations#on-a-github-event) for the full setup.

## Tips for using the GitHub integration [#tips-for-using-the-github-integration]

### Choose a specific model [#choose-a-specific-model]

<div style={{maxWidth: '900px'}}>
![Default agent profile setting in Account Settings](</docs/_next/static/media/default-agent-profile.0o2024jtmp4hv.jpg>)
</div>

When you don't specify a model, Superconductor uses your **Default agent profile** from [Account Settings](/docs/account-settings#default-agent-profile) — the same setting is shared by the Slack, GitHub, and Linear integrations.

If you haven't set a default, or the profile you chose isn't configured for the project the request targets, Superconductor falls back to the [best available profile](/docs/agents/credentials#best-available-credentials). It picks the first agent in that order for which your project has valid credentials configured.

To pick a specific model instead, add `model:MODEL_NAME` to your comment:

```
@superconductor model:claude_opus Fix the failing test in auth_controller
```

You can also use quotes for model names with spaces: `model:"gpt-6.1-sol medium"`. Straight or curly quotes, double or single, all work. Models are matched fuzzily, so `model:opus` will match `claude_opus`.

<Callout>
If none of the default models have configured credentials, Superconductor will let you know and list available models. You can specify a different model using `model:MODEL_NAME`, or configure credentials in your Project or Account settings.
</Callout>

### Specify a project [#specify-a-project]

If a repo belongs to multiple projects, tell Superconductor which one to use with `project:PROJECT_NAME`:

```
@superconductor project:"My Project" Add dark mode support
```

If the repo only belongs to one project, you can skip this — Superconductor picks it automatically.

### Use inline review comments for file-specific requests [#use-inline-review-comments-for-file-specific-requests]

When you mention `@superconductor` in an inline review comment on a specific file or line, the agent automatically gets the file path, line numbers, and diff context. This is a great way to point the agent at exactly the code you want changed.

### View directory of projects and models [#view-directory-of-projects-and-models]

Type `@superconductor help` to see a list of available projects and models you can use.

## Support for Issues, Projects, and Wikis [#support-for-issues-projects-and-wikis]

We currently do not support GitHub Issues, Projects, or Wikis as ticket sources. Please [let us know](mailto:team@superconductor.com) if you'd like us to!