Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

devices.md

104 lines5.6 KB

1# Devices
2​
3The Device panel shows a live iOS Simulator or Android Emulator next to a
4thread, so you can watch an agent verify mobile work and tap the device
5yourself. Agents get the same device through `device_*` tools and the
6`agent-device` command line, which T3 Code sets up for them.
7​
8## Open a device
9​
10Open the right panel in a project thread and choose **Device**. On first use,
11the panel walks through three steps: starting the device hub, checking iOS and
12Android support, and choosing whether agents may control devices. Opening the
13panel alone does not download or start anything. If the hub is already
14installed, the setup screen says so and reuses it.
15​
16Choose a running device to watch it, or choose **Start** next to a stopped
17device to boot it. The panel shows when you or an agent starts a device.
18Each device opens in its own tab. Use **+ → Device** to open another, and
19double-click a tab name or choose **Rename** from its context menu to rename it.
20Only the visible tab streams video; switching tabs keeps both devices running.
21Choose **Float device over chat** in the toolbar to keep watching and tapping the
22device in a small window while the right panel shows something else; drag the
23window by its handle, resize it from any edge, and use **Open in right panel**
24to bring it back.
25Turn off the device hub in **Settings → Integrations → Devices** to stop the
26helper processes; simulators and emulators keep running until you power them
27off.
28​
29Simulators run on the machine that hosts the environment server. iOS needs
30macOS with Xcode. Android needs the SDK Platform-Tools, Android Emulator,
31and Command-line Tools (latest), plus a virtual device created in Android
32Studio's Device Manager. T3 Code detects standard SDK locations; set
33`ANDROID_HOME` for a custom location. The panel explains missing dependencies.
34After installing them, restart the environment server and refresh devices.
35​
36The screen is interactive: click and drag to touch, type while the screen is
37focused, and use the toolbar for Home, Back, and Recents on Android, rotate on
38iOS, and power off. Close the tab to stop watching; the device keeps running
39unless you power it off. Closed tabs stay closed after a reload. To watch the
40device again, choose it from **+ → Device**.
41​
42## Tools
43​
44The toolbar's **Tools** button opens a drawer for the open device. It shows the
45foreground app, and lets you switch light and dark mode, change text size,
46flip accessibility settings, overlay the accessibility element frames on the
47screen, set a fake location, and grant or revoke app permissions. iOS also
48exposes Liquid Glass, color filters, VoiceOver, and sending a test push
49notification; Android adds orientation and toggling the network. The drawer
50only shows what the platform can do, and every control reflects the value read
51back from the device after a change.
52​
53## Agents and devices
54​
55When an agent opens a device, it floats over the chat in web and desktop clients
56connected to the thread, the same way an agent-driven browser does. Turn off
57**Auto-show floating preview** in **Settings → Integrations → Browser** to open a
58right-panel tab instead. In the mobile app, open the agent's thread and tap the
59device button above the composer to watch the live screen and control it.
60If the thread has several devices open, choose one in the viewer. Closing the
61viewer stops streaming and leaves the device available to the agent. Device
62activity also appears in the thread timeline.
63​
64Agents drive the device through the `agent-device` command line. T3
65Code installs and starts it only after **Agent device access** is enabled. iOS
66taps build a small test runner on first use, which takes a couple of minutes
67once per server. Restart an existing agent session after granting access so it
68receives the device CLI environment.
69​
70To keep agents away from simulators, turn off **Agent device access** in
71**Settings → Integrations → Devices**. This hides the device tools from agents
72started from then on; your own Device panel is unaffected.
73​
74## Remote connections
75​
76The device stream goes through the environment server, so it works over the
77local network, Tailscale, and T3 Connect. Live video needs a secure page
78(HTTPS or localhost); on a plain-HTTP remote origin iOS falls back to a slower
79still-image stream and Android cannot show video.
80​
81## SSH device hosts
82​
83In Settings → Integrations → Devices, choose the environments that should use
84the host and add it under **Device hosts**. Enter an SSH alias or `user@host`, with
85an optional identity file and port. These resolve on the environment server,
86so use the SSH configuration and keys available there. Password prompts are
87not supported.
88​
89**Test connection** checks SSH, Node, npm, and platform tools without installing
90anything, with a result for each selected environment. Targets that resolve to
91the environment’s own machine are skipped, since its devices are already local.
92The first device listing installs pinned device tools on the host.
93Node 22 or newer and npm must be available to non-interactive SSH commands.
94T3 checks common Homebrew and Android SDK locations; custom installations need
95the appropriate PATH and ANDROID_HOME on the host.
96​
97The picker identifies devices by host when several hosts are configured.
98Connections recover after interruptions. Removing a host closes its device
99sessions and stops its T3 helpers when reachable; simulators keep running.
100​
101T3 provides discovery, streaming, and control. Arrange app builds,
102installation, and connectivity to development servers such as Metro separately.
103A simulator on another machine cannot reach Metro through your environment's
104localhost without forwarding or another reachable address.