The ping loop was tearing down working connections every ~60s: the plugin would reconnect, get replaced, and the thread would die with "replaced by a newer connection" on the next message. The plugin read its socket with `await self._on_message(...)` inline, so a frame was only read once the previous handler finished. `turn.start` blocks for an entire Hermes turn, which meant a ping sent mid-turn was not merely answered late — it was never read off the socket at all. The server counted the misses and closed a perfectly healthy connection. Dispatch command handlers as tasks so the read loop keeps draining, and answer pings inline since they never touch Hermes. Handler tasks are held in a set (asyncio keeps only a weak reference) and their failures logged. Server side, `Effect.forever` kept probing after a connection was retired, so a dead connection logged further misses against a socket nobody was using; the probe now interrupts itself once it has torn the connection down. Ping tolerance is also widened — a Python event loop under a heavy turn can be slow to schedule even when healthy, and killing a working connection is far worse than noticing a dead one a few seconds later. Worst-case detection stays inside REQUEST_TIMEOUT (10 + 6*3 = 28s against 30s) so an in-flight request over a dead socket still fails with the liveness reason rather than a generic timeout. The regression test drives the real `_supervise` loop rather than a copy of it: an earlier version reimplemented the loop in the test and passed against the very bug it was meant to catch. Co-Authored-By: Claude Opus 5 (1M context) <[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
- Getting started
- Remote access
- Keeping T3 Code in sync
- Architecture overview
- Provider guides
- Operations
- Reference
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.