Repository navigation
Using the website
The same conversations, in a browser. This is the version to use from a phone or a tablet, or if you would rather not run the desktop app at all.
bash tools/start-web-desktop.shThat starts the engine and the website and opens a browser at the two-pane layout. If you would
rather open it yourself, bash tools/start.sh starts everything and prints the URL without
launching anything.
On another device on the same network, replace localhost with your Mac's address — see
Opening it from your phone. That works because the website
listens on every interface by default, which also means anyone else on that network can reach
it with no password — see What is running for what that exposes and how to
avoid it. bash tools/start.sh --local-only binds it to this Mac.
| Script | What it starts |
|---|---|
bash tools/start-app.sh |
The macOS app, plus an API server so a browser can watch the same conversation |
bash tools/start-web-desktop.sh |
The website, opening a browser at the desktop layout |
bash tools/start-web-mobile.sh |
The website, opening a browser forced into the phone layout |
All three can run at once, and they share one engine — start a conversation in the app and it appears in the browser, and the other way round.
bash tools/start-app.shOpens ChatBots.app and brings up an API server behind it, so http://localhost:7789 shows the
same conversation in a browser. Use --no-engine for the app on its own:
bash tools/start-app.sh --no-engineStop the server with bash tools/start-app.sh --stop, or ⌘Q the app.
bash tools/start-web-desktop.shTwo panes, side by side. Options pass straight through:
bash tools/start-web-desktop.sh --port 7990 # a different port
bash tools/start-web-desktop.sh --open none # do not open a browser
bash tools/start-web-desktop.sh --local-only # 127.0.0.1 only; not reachable from the network
bash tools/start-web-desktop.sh --stopbash tools/start-web-mobile.shOpens a browser forced into the phone layout — one column, touch-sized controls — even though you are on a desktop. Useful for seeing what a phone user gets without picking one up, and for a narrow window beside your editor.
The forced view travels in the URL, so it applies to that tab only:
http://localhost:7788/?view=phone
You can also type it by hand. Auto or Desktop in the header leaves the forced view at any time, and the choice is remembered for next time.
This is checked rather than asserted. The capture harness opens both forced views on a desktop-sized browser and fails if
?view=phonedoes not produce a single-column page no wider than a phone, or?view=desktopa two-pane one.
bash tools/start-app.sh # the app, and an engine on 7789
bash tools/start.sh --port 7788 # the website, in front of the same engineStart a conversation in the app, open the website, and you are watching the same one.
bash tools/start.sh --port 7990 --engine 7991
bash tools/start.sh --status reports what is running, and --stop stops it. All of them stop
by process id, never by name.
Leave the Terminal window open while you use it: that is the server. Stop it with Control-C,
or bash tools/start.sh --stop from another window.
Two things, and it is worth knowing which is which:
| The engine | Does the actual work: loads the models, runs the conversation. Listens on 7789, loopback only |
| The website | Serves the page and forwards requests to the engine. Listens on 7788, on every network interface by default |
Caddy sits in front if you have it installed (the installer suggests it). If you do not, the
engine serves the page itself — everything works either way. bash tools/start.sh --status
tells you which is in use.
The website is the exposed part. It listens on every interface so your phone can reach it,
and the API behind it has no password, so anyone on the same network can read every kept
conversation, start, pause and steer runs, change the topic and the seats, upload documents and
open any share page. If that is not what you want, bash tools/start.sh --local-only binds it to
127.0.0.1 and keeps it on this Mac — at the cost of phone access. The engine is always
loopback-only, and if Caddy is not installed the website is too, so nothing is exposed then.
It is the same feature set as the desktop app, laid out for whatever screen you are on.
Two panes side by side, with the topic and controls across the top.
One column, like a messaging app — because two panes on a 360-point screen would give each about fifteen characters, which is not a conversation. Everything else is the same.
The layout chooses itself from the size of the screen. If it guesses wrong, the Auto / Phone / Desktop switch in the header overrides it, and the choice is remembered.
| Topic | Top of the page. Locked once a conversation has started |
| Start / Pause / Stop / Save / Clear | Next to the topic |
| Kept | Reopen a conversation from an earlier session, or copy a read-only link to one |
| Line-up | Choose who is in the room, or let the app draw a random one |
| Add files | Below the topic. Appears only when there is something attached on a phone |
| Condense | Summarise the older turns now, before the prompt grows into the context limit |
| Show / Research | Which kind of conversation. See Personas |
| Quick / Standard / Deep | How long a research session may run. See Running a research session |
| Auto / Phone / Desktop | Layout override |
| Your name and persona | Who you are, as the room sees you. See Taking part |
| Persona picker | In each pane, next to the participant's name |
| Vote buttons | Under each contribution, and the scorecard sits in the status bar |
| Message box | Bottom of the page, always visible |
| Download .md | On a research report |
Renaming works by tapping the participant's name.
The point of the web interface is that you can carry a conversation around.
- Find your Mac's local address: System Settings → General → Sharing, and look at the
name under Local hostname. It will be something like
your-mac.local. - On the phone, open
http://your-mac.local:7788.
Both devices need to be on the same Wi-Fi. If it does not load, your Mac's firewall may be blocking the port — System Settings → Network → Firewall.
This is the exposure described in What is running. It works because the
website listens on every interface and the API has no password, so anyone on that Wi-Fi can do
everything you can: read every kept conversation, start and steer runs, change the topic and the
seats, upload documents and open share links. Use a network you trust, or start it with
bash tools/start.sh --local-only and use the phone layout on this Mac instead.
Add it to your home screen: in Safari, Share → Add to Home Screen. It then opens without the browser chrome, which is a much better shape for a conversation.
- The keyboard does not cover the message box, and the conversation scrolls cleanly under it.
- Text is sized so that focus does not cause the page to zoom.
- Rotation, and the address bar hiding as you scroll, are both handled.
- Landcape on a small phone hides the parameter strip, because it is not what you are reading.
Save downloads the same plain text log the desktop app writes: timestamps, each message once, the two participants merged into one conversation.
A finished research report has its own Download .md button and keeps its headings and claim labels, so it stays readable.
Kept opens the list of conversations from earlier sessions: topic, opening line, message count and date. Open puts one back on screen, Link copies a read-only link that replays it in a browser, Delete removes it from disk — after asking, because it is a delete rather than a hide — and New clears the screen and starts again.
The list is the same list the desktop app shows, because it is the same engine's. A conversation started in the app is there in the browser, and the other way round. See Keeping and sharing.
Line-up applies a ready-made room or a scenario in one step, and a random draw reports the seed it used so the same room can be drawn again. See Line-ups and scenarios.
The message box is yours: what you type goes into the shared log and the next speaker answers it. Your own name and persona are set under You, and they tag your contributions in the log and the export. See Taking part.
Under each contribution, two buttons record whether it moved the argument forward. The scorecard sits in the status bar, Clear votes forgets them all, and none of it is ever sent to a model — the audience's verdict is kept beside the transcript rather than in it.
Useful for scripting, or for checking the server is alive:
curl http://localhost:7788/api/health
curl http://localhost:7788/api/state | head -c 400
curl http://localhost:7788/api/report # after a research session/api/health is the listener's own report rather than a bare "ok": the connections it is holding,
the streams it has open, the connections it has refused, the error it stopped with if it did, and the
last twenty things that went wrong — a connection a client dropped, a request the parser refused, a
connection turned away because too many were open. That history is deliberately short and the reasons
carry no conversation text, because the endpoint is unauthenticated and reachable from the network.
The website does not need the app at all — it is a separate process:
bash tools/start.sh # engine + website, no appAnd the desktop app does not need the website. Use either, or both.
bash tools/start.sh --status # what is running
bash tools/start.sh --stop # stop everythingIf a port is already in use, the script says so and suggests alternative ports:
bash tools/start.sh --port 7990 --engine 7991The page does not load. Is the Terminal window still open? That is the server. Check
bash tools/start.sh --status.
It loads on the Mac but not the phone. Same Wi-Fi, and check the firewall. Some routers isolate wireless clients from each other. If it does load on the phone, remember that the whole interface and API are then open to that network with no password — see What is running.
The page is stale after an update. Reload with ⌘⇧R. The server sends Cache-Control: no-store, but a browser will sometimes hold on anyway.
A model turn never finishes. Look at ChatBots/.run/engine.log. If it mentions a model
error, see Troubleshooting.
Next: Personas · Running a research session