ai newsMi., 25. Nov.
EilmeldungYale’s Sonnenfeld: Nvidia is a ‘detriment’ to U.S. industrial might — not a champion

t3code erlaubt Remote-Freigaben für Claude Code und Codex

Das Tool löst ein Präsenzproblem: Freigabeanfragen von Agenten sterben oft mit der Terminal-Session ab. Mit t3code lassen sich Approvals für Claude Code und den Codex CLI aus der Ferne bestätigen.

dev.toMontag 19:19 · 23.11.DE5 Min. Lesezeit

Die Seite meldet sich um 3:12 Uhr nachts. Der Agent ist mitten in einer Migration, der Deckel der Workstation ist zugeklappt, und die Freigabeanfrage ist mit dem PTY gestorben. Die Modellqualität ist nicht das Problem, sondern die Verfügbarkeit. Claude Code und die Codex CLI verrichten nur dann nützliche Arbeit auf der Maschine, die das Checkout, die Sprach-Toolchain, private Git-Credentials und die für das Repository deklarierten MCP-Server enthält. SSH in tmux wirkt in einer kurzen Demo brauchbar. Es scheitert, sobald eine Freigabeanfrage in eine unleserliche Zeile umbricht oder der Laptop in den Ruhezustand geht und die Session samt unsauberem Worktree verschwindet.

Für diese Aufteilung habe ich mir pingdotgg/t3code angesehen. Ich bin ein externer Nutzer, der das Tool in eine bestehende Cursor- und VS-Code-Umgebung einfügt. Ich behandle das Telefon nicht als zweiten Editor, und ich pflege das Projekt nicht.

Drei Rollen sollten keine gemeinsame Trust-Grenze teilen. Der Agent läuft auf dem Host, im Repository, mit der Berechtigung, Dateien zu lesen und die Toolchain auszuführen. Nichts aus dem öffentlichen Internet sollte sich an ihn anbinden. Der Supervisor, t3code, sitzt auf demselben Host. Er verwaltet die Session-Lebensdauer und bietet eine kleine Intent-Oberfläche an: genehmigen, ablehnen, unterbrechen, eine Folgefrage senden, Status lesen. Er bindet sich an Loopback. Ein Telefon in einem anderen Netzwerk erreicht ihn über einen authentifizierten Tunnel oder ein privates Overlay, nicht über einen Port auf allen Interfaces. Der Client zeigt anstehende Aktionen an und sendet diese Intents. Er speichert keine Repository-Credentials und sammelt keine Shell-Historie.

Wenn der Host in den Ruhezustand wechselt, stirbt der Agent mitten im Befehl, und das Worktree kann unsauber sein. Ich setze eine halb angewendete Änderung nicht über eine neu verbundene WebSocket fort. Ich öffne den Baum erneut im Editor, prüfe den Diff und fahre entweder von einem bekannten Commit aus fort oder verwerfe die Session. Der Idle-Kill nach 1800 Sekunden ist beabsichtigt: Ein Agent mit Credentials soll nicht herumstehen. Wenn der Client erneut verbindet und der Listener weg ist, starte ich eine neue Session auf dem Host. Anstehende Freigaben werden nicht erneut abgespielt. Eine abgebrochene WebSocket hinterlässt uncommitteten lokalen Zustand, keinen abgeschlossenen Durchgang.

Cursor und VS Code bleiben dort, wo Diffs angewendet werden und wo MCP-Server tatsächlich laufen. Diese Server auf einem Telefon neu zu hosten, erweitert den Zugriff auf lokale Werkzeuge bei nahezu keiner Gewinn an Prüfqualität. So eingesetzt ist t3code ein Session- und Freigabepfad. Es ist kein Remote-MCP-Gateway.

Die anderen Bruchstellen sind unspektakulär und leicht zu übersehen. Der Client zeigt "Befehl erlauben" ohne den vollständigen Argumentvektor und das Arbeitsverzeichnis an, sodass ein Tipp etwas genehmigt, was ich am Schreibtisch abgelehnt hätte. Zwei Modellrouten laufen auseinander, eine innerhalb von Cursor und eine innerhalb der vom Supervisor gestarteten CLI, und die Token-Logs stimmen nicht mehr mit der Session überein, die ich zu messen glaubte.

Ich halte eine OpenAI-kompatible Base URL für die IDE und für jede CLI-Session, die der Supervisor startet, gleich, damit Failover und Request-Logs vergleichbar bleiben. Der folgende Block ist mein Harness, geschrieben in die User-Settings und eine lokale Env-Datei. Es ist kein Upstream-t3code-Schema. Falls ein Release andere Schlüssel verwendet, bleiben die Invarianten: Loopback-Bind, Token aus der Umgebung, cwd fest auf das Repository, ein Relay für beide Frontends.

{ "editor": { "baseURL": "https://b-lost.com/v1", "apiKeyEnv": "B_LOST_API_KEY" }, "mcp": { "servers": { "repo-tools": { "command": "/home/dev/app/tools/repo-mcp", "args": [ "--root", "/home/dev/app" ] } } }, "agentHost": { "bind": "127.0.0.1", "port": 8787, "cwd": "/home/dev/app", "tokenEnv": "T3CODE_TOKEN", "idleKillSeconds": 1800, "model": { "baseURL": "https://b-lost.com/v1", "apiKeyEnv": "B_LOST_API_KEY" } } } Vollbildmodus öffnen Vollbildmodus verlassen Wenn ich Multi-Provider-Fallback über das Relay-Gateway von B-Lost benchmarke, schicke ich IDE-Chat und die überwachte CLI über denselben Hop und vergleiche Latenz, Fehlerrate und Verweigerungsverhalten auf einem Prompt-Batch. Das Telefon ruft diese URL nie auf. Es spricht nur mit dem Supervisor.

Das Hochfahren des Hosts besteht aus Umgebung plus einer Prüfung, dass der Listener Loopback nie verlassen hat:

export B_LOST_API_KEY = "$(pass show llm/b-lost)" export T3CODE_TOKEN = "$(pass show t3code/session)" cd /home/dev/app ss -ltnp | awk '$4 ~ /127.0.0.1:8787/' Vollbildmodus öffnen Vollbildmodus verlassen Ich prüfe den Socket, statt ein gesetztes Flag anzunehmen. Wenn 8787 nicht auf Loopback liegt, stoppe ich und korrigiere den Bind, bevor irgendein Tunnel existiert. Ein Tunnel, der einen Wildcard-Bind weiterleitet, ist der Weg, wie ein Session-Token zu einer Remote-Shell wird.

Lokale Ausführung hält Git-Schlüssel und MCP-Werkzeuge auf der Workstation, aber die Maschine muss wach bleiben. Den Agenten auf eine kleine Always-on-Box zu verschieben, beseitigt das Ruhezustandsproblem und erzeugt ein zweites Checkout, dessen Aktualisierung ich vergessen werde. Ich verwürfe lieber die Session. Ein Relay-Hop bedeutet, dass Prompts und Dateikontext https://b-lost.com/v1 überqueren, dieses Gateway liegt also innerhalb der Trust-Grenze. Das akzeptiere ich, weil ich ein einziges Log für Claude Code und Codex möchte. Wenn die Policy sagt, dass Quellcode die Maschine nur Richtung Modellanbieter verlassen darf, lasse den Agenten auf den Anbieter zeigen und halte t3code trotzdem auf localhost. Öffne den Supervisor nicht, um eine Routing-Präferenz auszugleichen.

Die Prüfung per Telefon eignet sich für kurze Befehle und ein Ja oder Nein. Sie ist ein schlechter Ort, um einen Diff mit mehreren tausend Zeilen zu lesen. Die gehen zurück an Cursor oder VS Code, die weiterhin die MCP-Session und den Language Server halten. Ich nutze den Remote-Client zum Genehmigen, Ablehnen und Nachsteuern. Ich nutze den Editor, wenn der Diff die eigentliche Arbeit ist.

Die schwerste Entscheidung ist, ob ein einziges Relay-Log es wert ist, Dateikontext über einen Hop zu schicken, den ich nicht selbst betreibe. Getrennte Routen halten den Prompt auf dem Anbieterpfad und machen IDE- und CLI-Verweigerungen unvergleichbar. Ich habe bis heute keine saubere Antwort, wenn der Laptop im Ruhezustand ist und die Policy sagt, dass der Prompt das Gebäude nicht verlassen darf.

Wo ziehst du diese Grenze, wenn der Agent bereits mitten in einer Änderung steckt und der einzige Bildschirm, den du hast, ein Telefon ist?

Automatisch übersetzt. Das Original auf Englisch ist unten aufklappbar.

Original (Englisch) anzeigen

The page hits at 3:12 a.m. The agent is halfway through a migration, the workstation lid is shut, and the approval prompt died with the PTY. Model quality is not the failure. Presence is. Claude Code and the Codex CLI only do useful work on the machine that holds the checkout, the language toolchain, private git credentials, and the MCP servers declared for that repo. SSH into tmux looks fine in a short demo. It fails when an approval prompt reflows into an unreadable line, or when the laptop sleeps and the session vanishes with a dirty worktree.

I looked at pingdotgg/t3code for that split. I am an outside user fitting it under an existing Cursor and VS Code setup. I do not treat the phone as a second editor, and I do not maintain the project.

Three roles should not share a trust boundary. The agent runs on the host, in the repo, with permission to read files and run the toolchain. Nothing on the public internet should attach to it. The supervisor, t3code, sits on that same host. It owns session lifetime and exposes a small intent surface: approve, deny, interrupt, send a follow-up, read status. It binds to loopback. A phone on another network reaches it through an authenticated tunnel or a private overlay, not a port on every interface. The client draws pending actions and sends those intents. It does not store repo credentials and it does not accumulate shell history.

If the host suspends, the agent dies mid-command and the worktree may be dirty. I do not resume a half-applied edit over a reconnected websocket. I reopen the tree in the editor, inspect the diff, and either continue from a known commit or discard the session. Idle kill after 1800 seconds is deliberate: do not leave a credentialed agent parked. If the client reconnects and the listener is gone, start a new session on the host. Do not replay queued approvals. A dropped websocket leaves uncommitted local state, not a completed turn.

Cursor and VS Code remain where diffs get applied and where MCP servers actually run. Rehosting those servers on a phone widens access to local tools for almost no review quality. Used this way, t3code is a session and approval path. It is not a remote MCP gateway.

The other breaks are dull and easy to miss. The client shows "allow command" without the full argument vector and the working directory, so a tap approves something I would have rejected at the desk. Two model routes diverge, one inside Cursor and one inside the CLI the supervisor launched, and token logs no longer match the session I thought I was measuring.

I keep one OpenAI-compatible base URL for the IDE and for every CLI session the supervisor starts, so failover and request logs stay comparable. The block below is my harness, written into user settings and a local env file. It is not an upstream t3code schema. If a release uses different keys, the invariants stay: loopback bind, token from the environment, cwd pinned to the repo, one relay for both frontends.

{ "editor": { "baseURL": "https://b-lost.com/v1", "apiKeyEnv": "B_LOST_API_KEY" }, "mcp": { "servers": { "repo-tools": { "command": "/home/dev/app/tools/repo-mcp", "args": [ "--root", "/home/dev/app" ] } } }, "agentHost": { "bind": "127.0.0.1", "port": 8787, "cwd": "/home/dev/app", "tokenEnv": "T3CODE_TOKEN", "idleKillSeconds": 1800, "model": { "baseURL": "https://b-lost.com/v1", "apiKeyEnv": "B_LOST_API_KEY" } } } Enter fullscreen mode Exit fullscreen mode When benchmarking multi-provider fallback through B-Lost's relay gateway ( https://b-lost.com/v1 ), I send IDE chat and the supervised CLI through that same hop and compare latency, error rate, and refusal behavior on one prompt batch. The phone never calls that URL. It only talks to the supervisor.

Host bring-up is environment plus a check that the listener never left loopback:

export B_LOST_API_KEY = "$(pass show llm/b-lost)" export T3CODE_TOKEN = "$(pass show t3code/session)" cd /home/dev/app ss -ltnp | awk '$4 ~ /127.0.0.1:8787/' Enter fullscreen mode Exit fullscreen mode I check the socket rather than assuming a flag set. If 8787 is not on loopback, I stop and fix the bind before any tunnel exists. A tunnel that forwards a wildcard bind is how a session token becomes a remote shell.

Local execution keeps git keys and MCP tools on the workstation, but the machine has to stay awake. Moving the agent to a small always-on box removes the sleep problem and creates a second checkout I will forget to update. I would rather drop the session. A relay hop means prompts and file context cross https://b-lost.com/v1, so that gateway sits inside the trust boundary. I accept that because I want one log for Claude Code and Codex. If policy says source may leave the machine only toward the model vendor, point the agent at the vendor and still keep t3code on localhost. Do not open the supervisor to compensate for a routing preference.

Phone review is fit for short commands and a yes or no. It is a bad place to read a multi-thousand-line diff. Those go back to Cursor or VS Code, which still hold the MCP session and the language server. I use the remote client to approve, deny, and nudge. I use the editor when the diff is the actual work.

The hardest call is whether one relay log is worth putting file context on a hop I do not operate. Splitting routes keeps the prompt on the vendor path and makes IDE and CLI refusals incomparable. I still do not have a clean answer when the laptop is asleep and policy says the prompt must not leave the building.

Where do you draw that line when the agent is already mid-edit and the only screen you have is a phone?

Originaltitel: Remote Approval for Claude Code and Codex with t3codeQuelle: dev.to (dev.to). Original öffnen