T3 Code integrates with GitHub, GitLab, Forgejo, Gitea, Bitbucket, Azure DevOps, GitCafe, Cursor Origin, Linear, and Jira Cloud to clone/publish repos, review and merge pull requests, manage issues, and watch CI.
Install Git and authenticate on the machine running your T3 Code server (for remote environments, do this on the remote machine), then click Rescan in Settings → Source control & issues.
| Host | Setup |
|---|---|
| GitHub | 1) Save a token in Settings → Source control & issues → GitHub, 2) set GH_TOKEN (GH_ENTERPRISE_TOKEN + GH_HOST for Enterprise), or 3) sign in with GitHub CLI 2.81.0+ (gh auth login; use --hostname for Enterprise). Pick accounts or disable hosts in Settings when multiple gh logins exist. |
| GitLab | Install GitLab CLI and run glab auth login. |
| Forgejo / Gitea | Install fj (fj --host https://your-server auth add-token) or gt 2.0+ (gt auth login --host https://your-server; it replaces the archived tea, so sign in again). Prefers fj, falls back to gt (use gt for subpath-hosted servers). Use full URLs when multiple servers exist. |
| Bitbucket | Save a repo/project/workspace Access token or Atlassian email + API token (with repo/PR read-write, read:user:bitbucket, read:workspace:bitbucket) in Settings → Source control & issues → Bitbucket, or set T3CODE_BITBUCKET_ACCESS_TOKEN / T3CODE_BITBUCKET_EMAIL + T3CODE_BITBUCKET_API_TOKEN in the server env (or service.env). |
| Azure DevOps | Install Azure CLI, run az extension add --name azure-devops, then az login. |
| GitCafe | Save a token in Settings, set CAFE_TOKEN (+ CAFE_HOST), or install @gitcafe/cli and run cafe auth login --host https://git.cafe/api. Line comments are not yet supported; stack merges/updates are native. |
| Cursor Origin | Install Origin CLI and run origin auth login (origin auth setup-git if push prompts for credentials). Uses private HTTPS repos; GitHub-mirrored PRs stay on GitHub. |
| TanStack Source (private beta) | Set T3CODE_FEATURE_FLAGS=tanstack_source and restart the server. Save a token in Settings, set SRC_TOKEN, or run src auth login --web. Supports live CI logs, private PRs on public repos, and issues. |
Note: Git
pushandclonestill require Git SSH/HTTPS credentials on the server, separate from API tokens.
Note: With several
gtservers and nofjlogin,owner/repoand newly published repositories go togt's default server (gt config set default_host https://your-server). With severalgtaccounts on one server, pick one withgt auth switch <user> --host https://your-server. If an SSH remote uses a different host name than the server's web address, rungt config set ssh_host <ssh-host> --host https://your-server.
- New project: Run New project from the command palette (
Cmd/Ctrl+K) or Add Project to initialize a new Git repo in~/.t3/projects/<slug>with a README, icon, and first commit (optionally creating a private GitHub repo). - Clone: Use Add Project to pick a host (enable non-GitHub hosts in Settings → Source control & issues) or paste a Git URL or web page URL. Cloning runs in the background so you can draft your first prompt immediately; falls back to HTTPS if SSH auth fails. Enable Clone into host folders (Settings → Threads, or Source control on mobile) for
ghq-style<host>/<owner>/<repo>paths. - Publish: For a local repo without a remote, Publish Repository creates the remote, adds
origin, and pushes commits.
A turn's diff shows only that turn's own edits, commits, and conflict fixes—excluding unrelated files brought in by a pull, merge, or rebase. Use the branch comparison to view everything changed against your base branch.
- Commits view (web/desktop): Switch the Diff pane source picker to Commits to inspect the latest 100 local commits one by one.
- Commit links: Links to local commits open in the Diff pane (follows Settings → Diffs → Open pull requests in T3 Code;
Cmd/Ctrl+Clickopens in browser). - Multi-repo projects: Use the repository picker in the Diff pane and expand per-repo rows in thread details. See Projects with several repositories.
- Create: Commit, push, and open PRs from a thread's Git actions. Configure AI-generated commit/PR writing style in Settings → Source control & issues → Commits & pull requests (Repository conventions or Custom instructions).
- Review: Open Pull requests to inspect diffs, comments, checks, commits, and request reviewers. Draft line comments stay local until submitted. If new commits are pushed while you review, click Load new commits before merging or submitting.
- Saved views: Save and update filter/sort setups under Views → Save current view (stored per device).
- Mark files viewed: Check off files in the Code tab to collapse them (reopens as Changed on new pushes). Syncs natively with GitHub; stored on your T3 Code server for other hosts.
- Mobile: Open Pull requests across environments (cached lists, details, guides, and diffs stay readable offline). Tap Work on PR to start a worktree thread on the PR's branch.
- Quick actions & options:
- Enable Remove agent credits when merging in Settings → Source control & issues to strip recognized agent co-author/generated-by trailers on GitHub merge/squash commits (keeps human co-authors).
- Hold
Shiftin the GitHub PR list (web/desktop) to drag-close multiple PRs (Esccancels). - GitHub, GitLab, and Azure DevOps support auto-merge; GitHub also supports approving fork workflows and opening revert PRs.
- Azure DevOps comments must be edited on the host site; Bitbucket cannot reopen declined PRs.
Turn on Settings → Source control & issues → Review guides to add a Guide tab to pull requests. Click Write guide to have Claude or Codex read the PR in a temporary read-only checkout and produce an ordered tour of the change (highlighting Look closely spots and grouping mechanical changes at the end).
- Customize emphasis/ordering via Review guide instructions in Settings → Source control & issues (project-overridable).
- On web, select lines in any stop to add review comments or ask an agent about that stop.
- Agents can also generate guides for multiple PRs when asked. Choose Rewrite guide from the PR's ⋯ menu after new pushes.
Disabled by default. In Settings → Environments → Pull request sharing (Pull request routing on mobile), opt in trusted environments to Read PRs or Read and act so review reads/actions can route through another connected environment signed into the same account on the same host (credentials never leave their machines). Enable on both source and target environments; only grant Read and act to environments you control.
Threads can link multiple PRs (even across repos on the same host). Creating a PR via Git actions, gh pr create, glab mr create, or an agent's link_pull_request links it automatically; manage links from Linked items or the command palette.
Previously loaded lists, review details, guides, and diff pages remain readable on mobile without a connection, including after restarting the app. Saved content refreshes when the environment reconnects; submitting changes requires a connection.
Enable Remove agent credits when merging in Settings → Source control & issues to remove recognized agent co-author and generated-by lines from GitHub merge and squash commit messages. Human co-authors stay credited. The setting is off by default and projects can override it. It also applies to auto-merge, but not merge queues or native stack merges. Original commits keep their messages, so merge and rebase can still retain agent credits in those commits.
On web and desktop, hold Shift in the GitHub pull request list for quick actions. To close several, press Close, drag across the rows in the same group, and release. Press Escape before releasing to cancel. Failed closes stay in the list so you can retry them.
GitHub, GitLab, and Azure DevOps support auto-merge while checks are outstanding. GitHub also supports approving waiting fork workflows and opening a revert pull request for a merged change.
Pull request sharing is off by default. In Settings → Environments → Pull request sharing (Pull request routing under Environments on mobile), choose Read PRs or Read and act for each environment you trust to share its source control access. Enable both the original environment and the environment answering its requests on this client. Read and act can use broader permissions than the original environment's credential; only enable it for environments you control and trust. Changing a saved endpoint or removing an environment clears its permission.
Review details, linked PR status, and permitted review actions can then use another connected environment signed in to the same account on the same host. Each needs a project on that host. A connected local environment is preferred for actions and can answer slow or failed reads. Browsers and mobile clients need a paired environment to use its GitHub credentials. Credentials stay on their machines. Previously verified credentials remain usable for routing for ten minutes during a GitHub outage; new credentials must be verified first. An action with an uncertain result is never automatically retried elsewhere. Listings, diffs, and checkout or PR creation from Git actions continue to use the project's environment.
For Azure DevOps, use the host website to change comments. Bitbucket does not support reopening a declined pull request.
To see the callers and likely tests of what a pull request changes, expand Potentially affected in the Code tab. See Code navigation.
Review guides are in beta. Turn on Review guides in Settings → Source control & issues to add the Guide tab to pull requests on that server. On mobile, move between stops with Next and the back button; a stale guide offers a rewrite and hides excerpts that no longer match the current change.
The Guide tab gives you a tour of a pull request without reading it line by line: stops through the change in reading order. Each stop points at the lines worth reading, and a stop marked Look closely has a call only a maintainer can make. Mechanical changes such as renames and snapshots are grouped at the end, and every changed file appears somewhere on the tour. Conversations already resolved in review are left out. For a pull request in a stack, the guide covers that layer only, and may point out what a lower layer introduced or what a higher one uses.
Choose Write guide to have the review guide model from Settings → Source control & issues read the change in a temporary checkout; without one set, the source control writer model is used. Nothing in the checkout is changed, and a large pull request takes a few minutes; you can go elsewhere in the app. On web, you are told when the guide is ready; on mobile, return to the guide to check its progress. Claude and Codex can write guides. The guide is kept for everyone using this server. To write it again, for example after a push or after changing the model or instructions, choose Rewrite guide from the pull request's ⋯ menu.
On web, while reading a stop, select lines in an excerpt to add a comment to your review or ask an agent about them; comments wait with the ones from the Code tab until you send the review. Choose a suggested question, or Ask about this stop, to open a thread that already knows which stop you are on. Finish review on the last stop opens the review with everything you collected.
Agents can write guides too: ask one to prepare guides for a set of pull requests, and it starts them for you. Each is read through the project whose checkout has that repository.
To shape guides to your taste, write Review guide instructions in Settings → Source control & issues, such as what to show first or what to skip; projects can override them. They change emphasis and ordering, not the guide's layout or which files it covers.
Tick a file off in the Code tab once you have read it and it collapses; the toolbar keeps a running count. A tick belongs to the pull request rather than to a commit, so scoping the tab to a single commit keeps them. A file pushed to after you cleared it comes back marked Changed.
On GitHub these are GitHub's own viewed marks, so a review carries between T3 Code and github.com in either direction. Forgejo, GitLab, Bitbucket, Azure DevOps, and Cursor Origin expose no record T3 Code can read, so the server you are connected to keeps them instead: they follow you across the apps connected to that server, but the host's own site will not show them, and the count reads viewed in T3 Code.
On mobile, open a changed file and mark it viewed from its header. Viewed files collapse, and their marks follow the same rules as on web and desktop.
- Not authenticated: run the provider's login command on the server, then rescan. For Bitbucket, check the credentials saved in Settings → Source control & issues, or confirm the running server received the environment variables.
- GitHub sign-in cannot be verified: update GitHub CLI to at least 2.81.0, or save a token in Settings → Source control & issues.
- Push fails despite a connected account: check the Git remote's credentials. SSH and HTTPS remotes can require separate setup from the hosting provider's API access.
- A review cannot load: open it on the host website while resolving connectivity, permissions, or rate limits.
A thread can hold several pull requests, including reviews from another repository on the same host.
Use Link pull request in the command palette or Linked items panel, or right-click a
pull request link in the conversation. Creating a pull request from Git actions links it automatically,
and so does an agent creating one with gh pr create or glab mr create. Agents can link other
pull requests with the link_pull_request tool.
Agents can also read, open, update, reply on, and merge pull requests in the thread's repository through T3 Code's own tools, which use the same sign-in as the Pull requests page. An agent merges only the commit it last read: if someone pushed since, the merge is refused. On github.com an agent can also land a GitHub stack in one merge, like Merge stack below.
Use Link pull request to thread in the command palette to keep a pull request with the thread. From a review on the Pull requests page, Link to thread lets you search for an active thread. The review header also lists the threads that link to it, including archived threads, so you can return to their context.
Thread badges show a stack's layer count or the current review number with a count of additional links. Clicking a badge with more than one review opens the Linked items panel. On mobile, the Git overview lists linked reviews and their stacks; tap a review to open it. Linking and unlinking are available in the web and desktop clients.
The Linked items panel lists every review and groups stacks. Unlink a review from its row menu. An unlinked stack layer stays out of later syncs. Open linked reviews refresh on the server; closed reviews refresh periodically so reopening one on the host is detected. Merged reviews refresh when requested. Settling a thread refreshes its open and closed reviews once; after that they stop refreshing until you unsettle it. With Auto-settle merged threads enabled, a thread can settle after every linked review is terminal. An open or unsynced link keeps it active.
Ask the agent to watch, monitor, or babysit a pull request and it calls watch_pull_request. While
the thread is active, the server checks the pull request every two minutes and wakes the agent when a
check fails or waits for a maintainer's approval, the required checks pass, the other checks finish after a failure, someone else comments or reviews, or the branch starts to
conflict. On github.com it also wakes the agent, with GitHub's reason, when the merge queue drops
the pull request without merging it. Threads in a project that watch the same pull request share one check. On GitHub, a check
first asks whether anything changed and reads the pull request only when it did, which keeps
watching inside GitHub's rate limit. Comments from your own account do not wake it. When the pull
request merges or closes, watching ends, and the agent is woken once unless it merged or closed the
pull request itself with the host's CLI. A reopened pull request needs a new watch. Watching also ends after 10 wakes in a row that bring only comments, after 8
failed reads in a row, or when you press Stop on the thread. A rate limit only pauses watching.
Settling or archiving a thread also ends all its watches. Unsettle the thread before starting a new
watch. Watching a pull request again does not repeat check or conflict news its last
watch already reported; unlinking the pull request clears that. Subagents cannot watch pull requests; the thread that delegated to them does. To start or stop
it yourself, use the row menu in the Linked items panel. In the thread details card, a
watched pull request shows an eye; click it to stop watching.
A watched thread counts as working while the pull request still has checks running, so it stays in the Working section, including after the agent pushes a fix. Once every check has finished, including review bots that report as checks, the thread returns to your inbox: what happens next is up to a person. That includes a workflow waiting for a maintainer to approve it, which runs only once someone does. If you ask the agent to act on the pull request itself, such as merging it once a teammate approves, the thread stays in Working until the pull request merges or closes. The watch stays on and still wakes the agent on new comments, failed checks or conflicts, and a watched thread never auto-settles.
Agents read a pull request's status, failed checks, and review feedback through T3. These tools
reuse the app's cached data and watches. T3 redirects supported gh reads from local agent
sessions, including Claude and Codex, to these tools. Writes and unsupported reads still use
gh. For a read the tools cannot answer, prefix the command with T3_GH_DIRECT=1.
To allow direct reads, turn off Send agents' GitHub reads through T3 in Settings → Labs →
Zack. The change applies when an agent session next starts. The setting covers ordinary
gh commands found on the agent's PATH; shell overrides, absolute executable paths, and
externally hosted providers can run outside it.
When quota runs low, T3 pauses background refreshes to protect a reserve for interactive actions. The message distinguishes this pause from exhausted quota or a GitHub throttle. REST and GraphQL have separate primary quotas; a GitHub secondary throttle pauses both. Cached data remains available during a pause.
Cross-repository links use a project on the same host. Azure DevOps reviews require a project checked out from the matching organization and repository.
The Issues page lists the issues of every project whose remote is on GitHub, GitLab, Azure DevOps or Forgejo, grouped per tracker account. Open it from the sidebar's utility row or with Open issues in the command palette. Filter by open or closed, by your involvement (assigned, opened by you, mentioning you), and by tracker. Under Projects, uncheck the projects you do not want to see; the list remembers them, and a project you add later shows. The search box asks the tracker itself where it can search. Press Load more at the end of a group to read further back. The Views menu saves and restores a search, filter, and sort setup, as it does for pull requests.
To list Linear issues beside a project's, connect Linear with an API key under Settings → Source control & issues, then pick one or more teams for that project there. Pick another team at any time to add it; uncheck every team to unbind the project. Each team's issues appear in the Linear group of the issue list, sorted with the rest by last update, and each can be loaded further on its own. Agents file new issues in the first team picked unless you name another bound team.
Select an issue to open it beside the list: description, comments, state changes, linked pull requests, labels, assignees, and reactions. Linked pull requests open in the same panel. You can comment, edit the title and description, change labels and assignees, react, and close or reopen (with a close reason where the tracker records one) when the tracker and your account allow it. An issue read through a project that does not own its repository is shown read-only.
An issue can be kept with a thread the way a pull request can: open it beside the thread (issue
links in the conversation open there) and use Link to this thread in its header; Unlink
undoes it. Click the issue badge in the thread sidebar to see its issues and pull requests in
Linked items. Select an issue there to open it beside the thread. Agents link the issues they
work on with the link_issue tool.
Writing to a tracker over a remote connection requires the source-control:write scope.
The Pull requests page displays stack layer positions and navigation:
- Merge stack: Merges the selected PR and every open layer below it together, respecting branch rules and merge queues.
- Rebase stack: Updates remote branches bottom-to-top without modifying your local checkout (may rewrite history and restart checks).
Open Issues from the sidebar utility row or Open issues in the command palette to browse, filter, search, save views, comment, edit, and transition issues across GitHub, GitLab, Azure DevOps, Forgejo, Linear, and Jira Cloud.
- Linear: Connect an API key in Settings → Source control & issues and bind one or more teams per project (supports multiple Linear accounts). Agents file new issues in the first bound team unless another is named. An issue linked by its full URL needs no binding: any thread, No project threads included, can open and change an issue from a connected workspace, as far as your Linear account allows.
- Jira Cloud: Connect your site (
yourteam.atlassian.net), account email, and an API token in Settings → Source control & issues, then bind Jira projects (supports multiple Jira sites and accounts). Issues move along their workflow's transitions; reactions and linked pull requests are not available, and new issues are filed as a Task. On a Jira Service Management issue, a comment is an Internal note the customer never sees unless you switch it to Reply to customer before sending. - Link to threads: Click Link to this thread on an issue beside a thread (or let agents call
link_issue) to track it in Linked items. - Remote issue writes require the
source-control:writescope.
- Not authenticated: Run the host's CLI login on the server and click Rescan (for Bitbucket/tokens, verify Settings or server env vars).
- GitHub verification fails: Upgrade
ghto 2.81.0+ or save a token in Settings. - Push fails: Check Git SSH/HTTPS credentials separately from API auth.
- Fork PR badge missing: Set upstream with
git branch --set-upstream-to=<remote>/<branch>.