Implements the new-thread workspace model: every new thread starts from the
resolved default workspace mode instead of inheriting the previous thread's
choices, and worktree threads pin a fresh remote base with visible provenance.
Surface-derived defaults
- New `deriveThreadEnvModeFromSurface` setting (default on): attached
surfaces (desktop app, loopback browser on a host-managed environment)
default to the current checkout; detached surfaces (remote browser,
mobile, relay/SSH) default to a fresh worktree. Explicit
`defaultThreadEnvMode` still pins a mode globally when derivation is off,
keeping the wire value decodable by older clients.
- Sticky per-draft inheritance retired: sidebar/new-thread actions no longer
seed mode/branch/worktree from the active thread. `chat.newLocal` remains
the explicit current-checkout exception (draft-only).
- Per-project override (`projectThreadEnvModeOverrides` client setting) via
an explicit "Always … for this project" action in the workspace picker —
the only sanctioned way a composer choice retrains the default.
Fresh worktree bases without a blocking fetch
- `WorktreeBasePlanner`: fetch within the 30s freshness window counts as
fresh; concurrent fetches dedupe per repository; a failed fetch with a
successful fetch within the last hour proceeds on the last-known remote
commit (fail-visible, "stale" provenance); otherwise the bootstrap fails
closed and never silently falls back to a local ref.
- Composer prefetch: worktree-mode drafts fire `vcs.prefetchRemote` on open
so the send-time check almost always hits the fresh window.
- `newWorktreesStartFromOrigin` now defaults on.
Provenance and registry
- Bootstrap records a `worktree.base-pinned` thread activity (base ref, sha,
provenance, fetch time); the branch toolbar renders the pinned fact
("Worktree · a1b2c3f") with provenance on hover.
- `WorktreeRegistry` persists thread↔worktree records to
`stateDir/worktree-registry.json`, updated at bootstrap and on thread
deletion — groundwork for lifecycle/GC tooling.
- Deterministic branch naming: worktree branches derive from the thread id
(`t3code/<uuid-prefix>`), with collision suffixing server-side.
Composer UX
- Dirty-checkout disclosure both directions with one-click mode switch.
- Workspace picker labels choices as "this draft only".
Co-Authored-By: Claude Fable 5 <[email protected]>
T3 Code
T3 Code is a minimal web GUI for coding agents (currently Codex, Claude, Cursor, and OpenCode, more coming soon).
Installation
Warning
T3 Code currently supports Codex, Claude, Cursor, and OpenCode. Install and authenticate at least one provider before use:
- Codex: install Codex CLI and run
codex login- Claude: install Claude Code and run
claude auth login- Cursor: install Cursor CLI and run
cursor-agent login- OpenCode: install OpenCode and run
opencode auth login
Run without installing
npx t3@latest
Tip: Use npx t3@latest --help for the full CLI reference.
Desktop app
Install the latest version of the desktop app from GitHub Releases, or from your favorite package registry:
Windows (winget)
winget install T3Tools.T3Code
macOS (Homebrew)
brew install --cask t3-code
Arch Linux (AUR)
yay -S t3code-bin
Some notes
We are very very early in this project. Expect bugs.
We are not accepting contributions yet.
There's no public docs site yet, checkout the miscellaneous markdown files in docs.
Documentation
If you REALLY want to contribute still.... read this first
Install vp
T3 Code uses Vite+ so you'll need to install the global vp command-line tool.
macOS / Linux
curl -fsSL https://vite.plus | bash
Windows
irm https://vite.plus/ps1 | iex
Checkout their getting started guide for more information: https://viteplus.dev/guide/
Install dependencies
vp i
Read CONTRIBUTING.md before opening an issue or PR.
Need support? Join the Discord.