Skip to content

DocsTools

Preview and devices

Open your dev server in the app's preview, let agents check their work in it, and run an iPhone or Android phone per worktree.

Tenslo Code's Devices settings: how phones reach your computers over Wi-Fi or Tailscale, the computers they can reach, and a row to pair a phone.

The preview

The preview is a browser for the app you are building, inside its worktree. Open it from the + menu of the tab strip (Browser, ⇧⌘B on a Mac), from the ports card, or by clicking a web address a terminal prints. A worktree can have several pages, each a tab with its own history; its pages share sign-ins, which go when the worktree is removed.

  • The toolbar has back, forward, reload, the address, Open in browser and DevTools.
  • Pick an element pastes a short description of what you clicked (its tag, text, component, source line and selector) into the worktree's agent terminal, without pressing Enter, so you can add what to change.
  • DevTools opens as a tab beside the page and keeps its console while hidden.
  • Pages open Responsive, or at phone (390 px), tablet (768 px) or desktop (1440 px) width.
  • A pop-up or a new-tab link opens as another tab; downloads go to your system browser.

Ports

The status bar shows how many ports the worktree's terminals listen on. Its card lists each server with its program and terminal; a click opens it in the preview, and its menu opens it in your system browser, copies the address, goes to its terminal, or stops the server. The app never connects to a port until you open it.

For a project on an SSH host, the preview reaches the host itself, so pages keep the host's port numbers and hot reload, cookies and sign-in callbacks work. Opening a port in your system browser forwards that one port to this computer, on the same number when it is free; the card says which ports are forwarded.

Agents in the preview

Claude Code and Codex sessions that Tenslo Code starts can drive the preview: open a page, click, type, read the console and network requests, and take screenshots, to check their own work. An agent reaches every tab of its worktree's preview, outside sites included, and can open up to three tabs of its own. It can only send a page to a local address itself, and it cannot read or change cookies. The toolbar says when an agent is using a page. These tools need Node 20.19, 22.12 or later on the machine.

Settings › Preview sets where links open (it asks by default), the size new pages open at, zoom, light or dark pages, and whether agents may use the browser.

Devices

On a Mac, each worktree can have its own phone: an iPhone simulator or an Android emulator, live in a Device tab. Choose Device in the + menu, then Start iPhone or Start Android phone. Tap, scroll and type in the pane; take a screenshot to the Desktop, shut it down, or delete it with its apps and data.

  • The iPhone needs Xcode, opened once.
  • Android needs the Android SDK and a phone system image for this Mac's chip; Android Studio's Device Manager adds one.
  • The phone is kept apart from your own simulators. Closing the tab or quitting shuts it down, and deleting the worktree deletes it.

Agents drive the worktree's phone with tenslo-code-device, which is on the PATH of agent sessions Tenslo Code starts and comes with a device skill. It runs agent-device, which you install once:

npm install -g agent-device

The pane says who is driving. When you touch the phone, the agent waits and tries again. The Device tab is not on Windows or Linux yet, and real phones are not supported yet.

Linking computers to your Tenslo account and pairing the phone app are in Settings › Devices; see Install.

Next

Choose what every agent starts with: Agent kit.

Checked against the app on .