GitHub
GitHub is the primary integration for Agent HQ. It enables Pilot to work directly with your repositories — cloning code, creating branches, making changes, and opening pull requests.
Connecting your account
Section titled “Connecting your account”- Go to Integrations in the sidebar
- Click Connect next to GitHub
- You’ll see a device code — copy it
- Click the link to go to GitHub’s verification page
- Paste the device code and authorize the Agent HQ application
- Return to Agent HQ — your GitHub account is now connected
Organization access
Section titled “Organization access”If your repositories belong to a GitHub organization, you may need to grant the Agent HQ OAuth application access:
- Go to your GitHub organization settings
- Navigate to Third-party access or OAuth App policy
- Approve the Agent HQ application
What Pilot can do with GitHub
Section titled “What Pilot can do with GitHub”Repository operations
Section titled “Repository operations”- Clone — pull down your repo into an isolated sandbox
- Branch — create task-specific branches (e.g.,
taskyou/fix-auth-bug-abc123) - Commit — commit code changes with clear messages
- Push — push branches to your remote
- Pull Request — open PRs with descriptive titles and bodies
When a task runs
Section titled “When a task runs”- The linked repo is cloned into the task’s sandbox
- A new branch is created from the project’s default branch
- Pilot makes code changes on this branch
- Changes are committed and pushed
- A pull request is created linking back to the task
Pull request format
Section titled “Pull request format”PRs created by Agent HQ include:
- Title — a concise summary of the change
- Body — what was changed, why, and any relevant context
- Link — a reference back to the task in Agent HQ
Linking repos to projects
Section titled “Linking repos to projects”When creating or editing a project:
- Click Connect Repository
- Select a repo from the list of your accessible repositories
- Choose the default branch (main, master, develop, etc.)
- Save
The repo is now linked. All tasks in this project will use this repo as their starting point.
Troubleshooting
Section titled “Troubleshooting”Cannot see a repository
Section titled “Cannot see a repository”- Ensure your GitHub account has access to the repo
- For organization repos, verify the OAuth app is authorized
- Try disconnecting and reconnecting GitHub
Push failed
Section titled “Push failed”- Check that your GitHub account has write access to the repo
- Verify the branch isn’t protected in a way that blocks pushes
- Check that the GitHub integration is still connected (token not expired)
Authentication errors
Section titled “Authentication errors”GitHub tokens can expire. Go to Integrations and click Reconnect next to GitHub to refresh your credentials.