Open History to see the last commit
1# Source Control Integrations
2
3T3 Code connects to your Git hosting provider so you can create pull requests, review code, and manage repositories without leaving the app.
4
5## Supported Providers
6
7T3 Code works with the platforms your team already uses:
8
9- **GitHub** – Pull requests, repository creation, and clone integration
10- **GitLab** – Merge requests, repository publishing, and hosted clones
11- **Bitbucket** – Pull request workflows (via API token authentication)
12- **Azure DevOps** – Pull request support for Microsoft-hosted repositories
13
14## What You Can Do
15
16### Start Projects from Anywhere
17
18**Clone repositories directly**
19
20- Open the Command Palette (`Cmd/Ctrl + K`) → **Add Project**
21- Choose **GitHub repository**, **GitLab repository**, **Bitbucket repository**, **Azure DevOps repository**, or paste any **Git URL**
22- Enter the repository path (`owner/repo`, `group/project`, `workspace/repository`, or `project/repository`) or a full Git URL, pick a destination, and start coding
23
24**Publish local projects to the cloud**
25
26- Have a local Git repository without a remote?
27- Use the **Publish Repository** action to create a new hosted repository (GitHub, GitLab, Bitbucket, or Azure DevOps), add it as your origin remote, and push, in one flow
28- If the local repository has no commits yet, publishing creates the remote and wires it up but does not push. Make a commit, then push normally.
29
30### Manage Code Reviews Without Context Switching
31
32**Create pull requests while you work**
33
34- Push a branch and create a pull request from the Git actions controls in the toolbar
35- T3 Code can suggest titles and descriptions based on your commits
36- With **Repository conventions** selected, generated source control text follows the project's
37 `AGENTS.md` along with recent commit subjects. Claude writers also follow `CLAUDE.md`
38- Supports GitHub Pull Requests, GitLab Merge Requests, Bitbucket Pull Requests, and Azure DevOps Pull Requests
39
40**Stay on top of open reviews**
41
42- See if your current branch already has an open PR/MR
43- When an agent finishes a turn on your thread's branch, T3 Code checks for a newly opened
44 PR/MR if background activity is enabled for that repository. Known reviews keep their normal
45 refresh schedule.
46- Open several reviews from the **Pull requests** page as tabs in the right panel
47- Your authored reviews stay at the top and use the selected sort within their group. By default,
48 see passing and approved reviews first, passing reviews awaiting approval next, and conflicting
49 reviews last. Smaller changes come first within each readiness group, and finished reviews follow
50 open work when all states are visible.
51- Filter the list by author or labels, rank authors by merges in the loaded results, see label and
52 change-size context on each row, and sort the results currently shown by readiness, update time,
53 creation time, or change size. Your filters, search, scope, and sort are restored when you return.
54- Merge now, or on GitHub, GitLab, and Azure DevOps, leave an auto-merge instruction with a chosen
55 strategy while checks are outstanding; see the completed state in the same control after the
56 pull request merges
57- On GitHub, approve fork workflows that are waiting to run and open a revert pull request for a
58 merged change
59- Timeline line counts stay hidden on merge commits, where GitHub's totals include upstream changes
60 brought in from the base branch
61- While working in a thread, open linked reviews in the same compact right-panel tabs without
62 leaving the conversation
63- Show a file tree next to a review's **Code** tab, or a thread's **Diff** panel, to browse the
64 changed files as folders and jump straight to any of them. The toolbar toggle remembers your
65 choice.
66- Enable **Settings → General → Proactive panels** to open a newly linked review automatically and
67 switch to the completed turn's diff when agent work finishes
68- Open the review directly in your browser with one click
69- If T3 Code cannot load a GitHub pull request, including when GitHub rate limits requests, use
70 **Open on GitHub** in the error view
71- Command-click (Control-click on Windows and Linux) a pull request number in the sidebar to open it in your browser instead of in T3 Code
72- Check out a teammate's branch to review code locally
73
74**Fix what you wrote, in place**
75
76- Comment while closing an open pull request or reopening a closed one when the host offers that
77 action
78- Rewrite a pull request's title and description from the review itself, in Markdown, with a
79 preview before you save
80- Rewrite your own comments the same way, wherever they are shown
81- Works on GitHub, GitLab, and Bitbucket. Azure DevOps takes a new title and description; its
82 comments stay read-only here, as they already were
83- On GitHub, put a label on a pull request or take one off from the **Labels** row of the review.
84 Changing labels needs triage access or better on the repository
85
86### Know Your Setup at a Glance
87
88The **Source Control settings** page shows you exactly what's connected:
89
90- ✅ Which providers are authenticated and ready
91- ⚠️ What's missing and how to fix it
92- 👤 Which account is signed in (when available)
93
94Run a quick **Rescan** after setting up a new machine or changing credentials.
95
96## Getting Started
97
98### For GitHub (Recommended for most users)
99
1001. Install the GitHub CLI (version 2.81.0 or newer) on the machine running T3 Code:
101 ```bash
102 brew install gh
103 ```
1042. Sign in:
105 ```bash
106 gh auth login
107 ```
1083. Open **Settings → Source Control** in T3 Code and verify GitHub shows as authenticated
109
110You can now clone, publish, and create pull requests.
111
112### For GitLab
113
1141. Install the GitLab CLI:
115 ```bash
116 brew install glab
117 ```
1182. Authenticate:
119 ```bash
120 glab auth login
121 ```
1223. Check **Settings → Source Control** to confirm the connection
123
124### For Bitbucket
125
126Bitbucket uses tokens instead of a CLI tool. Two options, both set as environment variables on the
127machine running T3 Code.
128
129Recommended, a Bitbucket access token:
130
131```bash
132export T3CODE_BITBUCKET_ACCESS_TOKEN="your-access-token"
133```
134
135Or an Atlassian account email plus API token, with read/write access to pull requests and
136repositories, plus read access to your user account (`read:user:bitbucket`, used to verify the
137connection):
138
139```bash
140export T3CODE_BITBUCKET_EMAIL="you@example.com"
141export T3CODE_BITBUCKET_API_TOKEN="your-token"
142```
143
144If both are set, the access token wins. Restart T3 Code and verify the connection in **Source
145Control settings**.
146
147### For Azure DevOps
148
1491. Install Azure CLI:
150 ```bash
151 brew install azure-cli
152 ```
1532. Add the DevOps extension:
154 ```bash
155 az extension add --name azure-devops
156 ```
1573. Sign in:
158 ```bash
159 az login
160 ```
161
162---
163
164## Requirements & Troubleshooting
165
166**Git is required** – T3 Code uses Git for all local operations. Ensure `git` is installed on your server.
167
168**Server-side setup** – Authentication happens on the machine running T3 Code (the server), not your local browser. If you're using a hosted or team instance, your administrator may have already configured providers.
169
170**Common issues:**
171
172- **Provider shows "Not authenticated"** – Run the login command for that provider (e.g., `gh auth login`) in a terminal on the server, then rescan in Settings
173- **GitHub says it could not verify sign-in status** – T3 Code needs GitHub CLI 2.81.0 or newer to check sign-in status. Update `gh` (e.g., `brew upgrade gh`), then rescan
174- **Bitbucket not connecting** – Double-check your environment variables are set in the correct shell profile and the server was restarted
175- **Can't push to a remote** – Verify your Git remote URL matches the provider you've authenticated with (SSH vs HTTPS remotes may need different credentials)
176
177**Need more help?** Check your provider's CLI documentation:
178
179- [GitHub CLI](https://cli.github.com/)
180- [GitLab CLI](https://gitlab.com/gitlab-org/cli)
181- [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/)