Brunel’s GitHub integration lets agents read your codebase directly from GitHub — no local clone required. It is configured per project and works alongside the Code Sources feature in each session.Documentation Index
Fetch the complete documentation index at: https://docs.brunelagent.ai/llms.txt
Use this file to discover all available pages before exploring further.
How it works
When a project has GitHub configured, sessions can switch their code source to GitHub mode. The planning agent will read files from the connected repository and branch rather than from a local folder on your machine. There are two GitHub modes:| Mode | How it authenticates | Who configures it |
|---|---|---|
| GitHub (App) | Brunel GitHub App installation — works for private repos, no personal token needed | Admin or Owner, per project |
| GitHub (Personal) | Your own GitHub OAuth connection | Each user, in Settings → Integrations |
Setting up the GitHub App (Admin)
GitHub App is the recommended mode for teams because it authenticates through an installation rather than a personal account.- Open the project and go to Project Settings → GitHub Integration
- Click Connect GitHub App
- Your system browser will open to the GitHub App installation page — authorize Brunel to access your repositories
- After authorization, the browser will redirect back to Brunel automatically
Only project Admins and Owners can connect or disconnect the GitHub App.
Selecting a repository and default branch
Once the GitHub App is connected:- In Project Settings → GitHub Integration, select a Repository from the dropdown — this is populated from your GitHub App installation
- Select a Default Branch — the branch the agent will read from by default
- Click Save GitHub Settings
Connecting your personal GitHub account (per user)
GitHub (Personal) mode uses your individual GitHub OAuth connection. This is a per-user setting — each team member connects their own account.- Go to Settings → Integrations
- Under GitHub, click Connect
- Complete the OAuth flow in your browser
githubRepo configured will offer GitHub (Personal) as a code source option.
Worktree folder
You can configure a custom folder name for git worktrees created from sessions:- In Project Settings → GitHub Integration, find the Worktree Folder field
- Enter a relative path (default:
.worktree) - Save
.gitignore.
See Code Sources & Worktrees for how worktrees are created and used in sessions.
Disconnecting
To disconnect the GitHub App:- Go to Project Settings → GitHub Integration
- Click Disconnect