---
title: "Run commands and verify a UI"
description: "Use the Terminal panel for tests and dev servers, check UI changes in the Browser panel, and browse files in Explorer."
slug: "working-with-autohand-code/code/desktop/terminal-and-browser"
sidebar:
  label: "Terminal and browser"
---

## The right-hand panel

Terminal, Browser, Explorer, and Git open as tabs in the right-hand panel. Use **+** in the panel header to add one, the expand button to maximize the panel, and the close button on a tab to remove it.

<img className="ah-shot-light" src="/images/desktop/app/files-light.webp" alt="Right-hand panel with Terminal, Browser, and Explorer tabs, showing the harbor-web file tree and a Search files field." width="2880" height="1800" />
<img className="ah-shot-dark" src="/images/desktop/app/files-dark.webp" alt="Right-hand panel with Terminal, Browser, and Explorer tabs, showing the harbor-web file tree and a Search files field." width="2880" height="1800" />

The right-hand panel with Terminal, Browser, and Explorer tabs. Explorer is open, with a file search box and the project tree.

## Open a terminal

Choose **Terminal**. It opens in the task's working directory: the project folder, or the worktree when the thread uses one. A task can have several terminals. Check where you are before running anything, especially after switching between Local and a worktree.

**macOS / Linux**

```bash
pwd
git status --short
```

**Windows**

In PowerShell:

```powershell
Get-Location
git status --short
```

The shell depends on your setup. Use commands for that shell.

Run the commands your repository already defines. The terminal runs `npm test`, `cargo test`, or your scripts as they are; it does not change them.

For commands you run often, **Add action** in the thread header saves a project command, such as a test or dev script, so you can run it with one click.

## Start a development server

1. Install dependencies with the project's package manager if needed.
2. Run its development command in a terminal.
3. Read the host and port from the server output.
4. Leave it running while you test.

The **Local Servers** section of the Environment panel lists the development servers running for the project. Worktrees do not isolate ports: if another task or your own server already uses a port, choose a different one. Stop only the processes that belong to this task.

## Check a UI in the Browser panel

Choose **Browser** and open the URL your dev server printed. Confirm the page loaded before you ask the agent to judge it.

For a UI change, check the changed behavior, keyboard use, error states, and the viewport sizes that matter. A passing build is not a browser check. Whether an agent can drive the browser depends on the agent and its permissions; opening the panel does not authorize browsing or account actions.

The Browser panel keeps its own sign-in sessions, separate from your everyday browser. Sign in only when the task needs it, and never paste passwords or cookies into the chat.

## Explorer and editors

**Explorer** searches and previews project files. **Open in** in the Environment panel opens the project in an installed editor such as VS Code, and the **Agent** / **Editor** switch opens Desktop's built-in editor. Save your edits and avoid editing a file while an agent turn is changing it.

## Platform-specific panels

- **iOS Simulator** needs a Mac with Xcode and its simulators installed.
- **Computer use** (beta) controls other apps and is available on macOS only. It is set up in **Settings > Computer use**, not through the Browser panel.
- **AppSnap** captures another app's window into a task. See [permissions and tools](/working-with-autohand-code/code/desktop/permissions-and-tools#computer-use-and-appsnap).
