How to Preview an AI Agent's Front-End Work on Your Phone

Want to preview AI agent changes on your phone? Learn how a Sharkly Agent serves its page on your Wi-Fi so you can check it before code review.

Ryan Mitchell

Ryan Mitchell

4 December 2026

How to Preview an AI Agent's Front-End Work on Your Phone

Quick answer: To preview AI agent changes on your phone in Sharkly, ask the Agent to start the dev server on its task’s Computer bound to 0.0.0.0 and post the local network link in the Task. Any phone, tablet or laptop on the same Wi-Fi opens that link, and the page updates when the Agent edits it again.

An Agent says the page is done. The diff looks fine. Then a teammate opens it on a phone and the sign-in form is unreadable.

If you don’t have an organization yet, Sharkly is free to start, and the getting started guide takes you to a first run.

Before you start

You need three things in place:

  1. A Computer with a Runtime. Ours is a Mac running Claude Code, connected to Sharkly with an install token. The preview runs on this Computer, so it must be on the same network as your phone. See how Computers work if yours isn’t connected.
  2. A web page the Agent can serve. Cancel Anything ships a fake streaming site called StreamBox for demos, started with npm run demo:site on port 4173.
  3. An Agent that works in that folder. We used Juno, the team’s PM Agent (Claude Code, Sonnet 5.5), set to run directly in the project folder.
The Computers page in Cancel Anything: the Mac that runs the team's Agents, online, with its Runtimes listed

Look at the status badge: the Computer must show Available, because the preview server runs on it, not in the cloud.

How previewing an Agent’s work on a phone works

The 2026-10-07 changelog describes the behavior: when an Agent runs front-end changes in a task’s local environment on your computer, a phone, tablet or another computer on the same local network can open the preview address, and you can ask the Agent to post the link in the task comments. The same release made running tasks outlive the terminal that started them, so the preview stays up after the Agent’s run ends.

In practice that’s a loop of four moves: assign, serve, open, send back.

Sequence diagram: you assign the task to the Agent in Sharkly; the Agent runs on your Computer, edits the page and starts a dev server bound to 0.0.0.0; it posts the preview link in the task; your phone opens the link over the same Wi-Fi; you send a change back; the Agent edits the file and the same server serves the new page on reload

One detail decides whether this works: the bind address. A server listening on 127.0.0.1 (loopback) only answers the computer it runs on. A server listening on 0.0.0.0 answers every network interface, including the Wi-Fi address your phone can reach. The Node.js server.listen docs cover the host argument.

Preview AI agent changes on your phone in Sharkly, step by step

Create a Task in your Space (we used type Build) and put the preview request in the body. Ours, CAAN-69, asked for four things: a viewport tag on every StreamBox page, a HOST setting on the demo server with 127.0.0.1 as the default, the server started with HOST=0.0.0.0, and the link posted as a comment.

Task CAAN-69 in Cancel Anything: a Build task delegated to Juno that asks for a viewport tag, a HOST setting and the preview link as a comment

Step 4 in the body is the part that matters: name the port and path, and say where the link goes.

Why the viewport tag? Without <meta name="viewport">, a phone browser lays the page out at a desktop width of about 980px and shrinks it. MDN’s viewport guide explains the default.

Step 2: Assign the Agent and start the run

Set the Agent in the Task’s assignee field (Juno, in our case). The run appears in the Task’s conversation panel. If the Agent has working hours, the run waits in Queued with a start time; click Run now in the banner to start it at once.

When the run finishes, the Agent’s reply carries the link. Juno posted the StreamBox address on the Computer’s Wi-Fi IP, port 4173, plus the log path and the exact command to stop the server.

Juno's reply in the task conversation: the StreamBox preview at the Computer's local network address on port 4173, the log path and the command to stop the server

Ask for the stop command every time. The server keeps listening after the run ends, and anyone on that network can open it.

Juno also reported 11 of 11 tests passing, a clean typecheck and an HTTP 200 from the link, and said it had not opened the page on a real phone. That honesty is useful: the Agent checked reachability, not how the page feels in your hand.

Type or tap the link on any device on the same network. On StreamBox, tap Sign in with both fields empty to reach the account page.

Which device we used: no second phone was on that Wi-Fi during our session, so we opened the LAN address in Chrome emulating an iPhone 13 screen (390px wide) on the hosting Mac. It’s the same address a phone uses; the network rules in the limits section below decide whether your phone gets through.

The account page looked right. The sign-in card did not: the Email and Password fields sat side by side, about 20px tall, with text under 16px, which makes iOS Safari zoom in when you tap a field.

Step 5: Send one change back from what you saw

Reply in the same conversation with what you saw and what you want. We wrote that the fields were too small to tap and asked for them stacked, full width, at least 44px tall with 16px text, keeping the same ids and labels. The 44px figure comes from Apple’s touch target guidance.

Your reply starts a new run in the same conversation. Juno added one CSS rule to the sign-in inputs and left the server alone, because the demo server reads each file from disk on every request.

Juno's reply after the change: the sign-in fields are stacked, full width, 44px tall with 16px text, and the same server and preview address are still running

Same process ID, same log, same address. A reload on the phone shows the change.

Juno flagged one more detail: the page remembers that you signed in, so a normal reload skips the sign-in card. Open the link in a private tab to see it again.

Step 6: Review the result

The Agent hands the conversation back to you. The Task’s Conversations tab shows the chat flagged Needs your review.

The task's Conversations tab: the chat with Juno flagged Needs your review after the change-back run

Review the diff only after the page passes on the phone; the code review then covers code, not layout.

The real result

Three phone-width captures of the same sign-in card tell the story of the Task:

Three phone-width captures of the StreamBox sign-in card: without a viewport tag the page renders tiny, after the first run it fits the screen with small side-by-side fields, after the change-back the fields are stacked and full width

Left: the original page. Middle: after Juno’s first build run. Right: after the change sent back from the phone.

The final diff touched six files: the viewport tag on five StreamBox pages, one CSS rule on the sign-in inputs, side padding on the upgrade page, and one line in src/demo-server.ts reading the bind address from HOST. Nothing was committed; the edits wait for review in the working tree.

What went wrong for us

The PM Agent refused the job. Juno’s instructions say a PM doesn’t write code, so the first run ended with a handoff note and a question: assign an engineer, or approve an exception. We approved it as a one-off. For your team, assign front-end Tasks to an Agent whose instructions allow code changes, and skip a wasted run.

The run queued until 22:00. Juno has working hours, so the assignment showed Queued with a start time hours away. Run now in the conversation banner started it.

The server log printed the wrong address. With HOST=0.0.0.0, the log still said http://127.0.0.1:4173, because the printed origin was hardcoded. That address only works on the hosting Computer. Use the LAN address the Agent posts, not the one in the log.

Limits: same network only

The preview is local. Your phone and the Computer must share a network, and nothing on the way may block the port.

Architecture diagram: on the office Wi-Fi, a phone and a second laptop reach the dev server on the Computer when it listens on 0.0.0.0; a server bound to 127.0.0.1 only answers the Computer itself; a phone on mobile data outside the network cannot reach the preview

When the link won’t open, check these in order:

  1. Same network? A phone on mobile data, or on a guest Wi-Fi that isolates clients, can’t reach the Computer.
  2. Bind address. The server must listen on 0.0.0.0. For Vite that’s server.host or --host.
  3. Firewall. A desktop firewall can block incoming connections on the port. Ours was off.
  4. Server still running. The Agent’s log path shows whether it stopped.
  5. No address at all. Per the changelog, no preview address is produced when the Computer has none, for example when it isn’t on a network.

Variations

A design-heavy product team asks the Agent to post two links per Task, before and after, from two ports, so a designer compares both on the same phone in under a minute.

A support team with an internal help center has the Agent serve the draft article locally and posts the link to the person who reported the confusing page, who checks it on a tablet before the Task moves to review. Pair it with handoffs between Agents and people so the reply lands in the right conversation.

Recap checklist

  • The Computer is Available and on the same Wi-Fi as your phone.
  • The Task body asks for the server on 0.0.0.0, the port, the path and the link as a comment.
  • The page has a viewport tag.
  • The assigned Agent is allowed to change code, and its working hours won’t hold the run.
  • You open the LAN link from the Agent, not the address in the server log.
  • You send one concrete change back and reload in a private tab.
  • You stop the server with the command the Agent posted when review is done.

For how runs start, wait and finish, see the Agent run lifecycle, and the Agent task execution docs for errors a run can hit. Then pick one page in your repo and write the Task that asks for its preview link.

Explore more

How to Move From Zoho BugTracker to Sharkly

How to Move From Zoho BugTracker to Sharkly

Looking for a Zoho BugTracker alternative your AI agents can work in? Learn how to import bugs into Sharkly in four steps, then hand off one.

4 December 2026

Team Charter Template: Free Example for Human and AI Agent Teams

Team Charter Template: Free Example for Human and AI Agent Teams

Need a team charter template? Copy the free charter with a filled example, and learn to write the agent rules a team with AI agents needs.

4 December 2026

How to Import ClickUp Tasks Into Sharkly and Keep Them in Sync

How to Import ClickUp Tasks Into Sharkly and Keep Them in Sync

Want your ClickUp tasks in Sharkly? Learn the ClickUp Sharkly import step by step, keep a List in sync, and hand tasks to your AI coding agents.

4 December 2026

How to Preview an AI Agent's Front-End Work on Your Phone