Skip to content

Changes, files, preview and terminal

Beside the conversation is a tools panel with a tab for each way of looking at a thread’s work. Open it with the last button in the thread’s header or ⌥⌘B. On a phone, the tabs are in the Thread actions menu at the top right.

The panel doesn’t open because a tab has something new. A dot appears on the tab instead. The one exception is an agent that asks to show you a running app: on the desktop, that opens Preview.

Tab Key Shows
Threads Only on a thread that has started threads of its own
Side chats Only on a thread that has side chats
Changes ⌘D What the thread changed
Files The thread’s folder
Preview ⌘⇧P The web app the thread is running
Artifacts ⌘⇧A Visuals and documents the agent published
Terminal Shells in the thread’s folder
PR The pull request, before and after it exists

⌘⇧↵ maximizes the panel, and [ and ] step through files and artifacts.

On the desktop a thread reopens the way you left it: the same tab, at the same width, maximized if it was.

Changes is a diff of the thread’s folder. The Compare with picker chooses what it’s compared against:

  • The base branch, the default, shown as “vs main”: everything this thread has done.
  • This turn: what changed since the agent’s previous answer.
  • Since last review: what changed since you last accepted the thread’s work or marked it read.
  • One of the earlier turns, or one of the commits on the branch.

A thread that made commits lists them under the header, folded as “3 commits by this thread”. Pick one to see that commit alone.

Comment on any line and the comment joins your draft. Arrows on the “12 unmodified lines” bars reveal the hidden lines around a change, and each file’s header can switch from Changes to Whole file.

The header also switches between a unified and a split diff, and collapses or expands every file at once. Generated files start collapsed. A very large diff lists its first 1,000 files.

Some files get special treatment:

  • Images show before and after.
  • Markdown can be read as source, as rendered changes, or as the finished document.
  • package.json and lockfiles get a card listing each dependency added, removed, upgraded or downgraded, with breaking version steps flagged.

In a Local thread, Changes covers the whole checkout, not only what this thread did, and says so at the top.

Files is a tree of the thread’s folder with a viewer: highlighted code, rendered Markdown with diagrams, images, and HTML in a sandbox. It stays current as the agent works.

You can comment on lines here as in Changes. Files opens by itself at the right line when you click a path in the agent’s answer or in terminal output.

A search box above the tree finds files by name. In a browser on the computer that runs endurable, Open in opens the thread’s folder, or the file you’re looking at, in an editor or the file manager installed there.

When a process in the thread’s folder listens on a port, Preview lists it. Pick a port and the app loads in the panel. The agent can also open Preview for you when it wants to show you something.

Each thread is given its own PORT environment variable, the same one every time, so two threads’ dev servers don’t collide. A dev server that reads PORT just works.

The address bar has Reload, an address you can edit, and Open in new tab. Each port has an × that hides it until its server restarts.

Preview is reachable from your phone as well, over the same connection as the rest of endurable. With Tailscale on, Open on your phone shows a QR code for the page you’re looking at.

Some servers aren’t web pages: a database, a cache, an API you want to hit with your own tools. When the thread runs in a sandbox or on another machine, its ports aren’t on your computer, so psql or a database app can’t reach them.

Forward to localhost, in Preview’s address bar, fixes that. It opens the port on your computer and passes every connection through to the thread’s port. A strip under the address bar says where it is: “Forwarded to localhost:5432 on this computer”, with Copy and Stop forwarding. Connect to that address as if the server ran on your computer:

Terminal window
psql -h localhost -p 5432 -U postgres

The forward uses the same port number when it’s free on your computer, and another one when it isn’t. The strip always shows the one to use.

The agent can ask you for a forward, when it starts something you’ll want to connect to. Preview opens on that port, shows the agent’s reason and a Forward to localhost button, and doesn’t try to load the port as a web page. The agent can’t forward a port itself: only you can.

Things to know:

  • A forward reaches only a server the thread is running. If that server stops, connections are refused until it starts again. Nothing else that later uses the port can be reached through it.
  • Forwards last until you stop them or endurable restarts. They also end when the thread is deleted or moves to another machine.
  • Forwarding works from a browser on the computer that runs endurable, opened at endurable’s own address. Not from a phone, and not from the hub’s address: Preview says so.
  • A thread that runs on this computer without a sandbox doesn’t need a forward. Its ports are already on localhost.

The Pick elements button lets you point at part of the page. Click an element and it joins your draft as a numbered chip, with an optional comment: “Element 2: make this button match the others”. Shift-click picks several. Esc ends picking.

The agent receives the element’s selector, text, markup and styles, and in a React development build, the components it’s rendered in. No screenshot is sent, because the agent can open the page itself.

Agents have a headless browser of their own. They use it to open the app they’re building, click through it, take screenshots and record video. It has no profile and no sign-ins, and it can reach only its own thread’s app.

Preview tells you what the agent is looking at: “The agent has /settings open · 2m ago”.

An artifact is something the agent made for you to look at instead of code: a chart, a table, a mock-up, a plan, a screenshot, a recording. Artifacts are versioned, and you always see the version that was shown at that point in the conversation.

Simple visuals such as stats, tables and plain charts are drawn with endurable’s own components, so they match your theme and read well on a phone. Anything more custom is an HTML page drawn in a sandboxed frame with no network access.

Every artifact has Save as file. You can select words in one and comment on them, as in the transcript.

A thread’s Artifacts tab also lists what its child threads and side chats published, in a section for each. Screenshots the agent took for its own use while working aren’t listed until you press Show at the foot of the tab.

The Artifacts button at the foot of the thread list opens a page of every artifact in a project, archived threads’ included, newest first. Search reads titles, thread names and the words in an artifact, and chips narrow the list to documents, visuals, images, recordings or files. Click a row to open the artifact, or its thread’s name to go to the thread.

⌘J opens a terminal in the thread’s folder. On the desktop it’s a drawer under the conversation, so you can keep it open beside any tab, and there’s a Terminal tab in the panel as well. On a phone ⌘J’s button opens the tab. You can open several terminals in tabs, and on the desktop split them side by side or top and bottom.

With tmux installed, terminals survive an endurable restart. Without it, they end when endurable stops, and say so.

Links and file paths in terminal output are clickable with ⌘-click, or a tap on a phone. Right-click, or a long press on a phone, opens a menu with Copy, Paste, Select all and Clear. The phone gets a row of soft keys for the ones its keyboard lacks, and since a drag there scrolls, Select text in the menu shows the terminal’s recent output as text you can select.

The commands an agent runs happen in terminals of their own. You see their output in the transcript, and a command that started a server keeps it running after the command returns. While a long command runs, it also shows as a read-only tab among your terminals.

Agents start dev servers and Docker Compose stacks and then forget about them. endurable keeps track. When a thread has something running, its header shows a chip such as 2 left running, which lists each thing and has Stop all.

They’re stopped automatically when you archive or delete the thread, and after the thread has been idle for two hours. Using the thread’s Preview counts as activity. Change or turn off the idle time in Settings → Idle & snooze.

To keep one thread’s servers up regardless, press Keep running in the chip’s list. They then run until you archive the thread. A Compose stack is stopped with docker compose down, without -v, so its volumes are kept.

The Running button at the foot of the thread list, which carries a count while anything runs, opens a page of what every thread has left running, on every machine. Each thing shows its ports, memory and CPU, and has its own Stop. Stop all… stops the lot after asking, leaving alone any thread whose agent is working.

The page also lists, read-only, endurable’s own processes and everything else on the computer that listens on a port. endurable stops only what its threads started.

Before a pull request exists, this tab is a preview of the one you could open. Afterward it shows the pull request as GitHub has it: status, checks, description and conversation. See Reviews and pull requests.

An extension can add its own tab: a database browser, a dashboard. These appear after the built-in ones.