Your other computers#
Brain on one computer uses every other computer that runs Mewla as its own hands: your Mac with its logged-in apps and browser, a Mac mini that stays on, a Linux box with your repositories. Brain starts Workers there, reads their files and runs commands there. The Work, its turns, questions and results stay with the Brain that started it. There is no second Brain in between.
Switch between them#
Tap the cat. Under Computers, the computer page lists every other computer with its state (Online, Offline, Pair again, or how many requests wait for you there). Tap one to switch to it: the app returns to that computer's Brain, and the header reads "Connecting…" until it is up. ⓘ on a computer opens its details. Exactly one computer is current at a time.
Connect two computers#
Pair your phone with both computers: tap the cat, then Pair a computer (Connect and pair). The next time you open the computer page with both online, the app asks you once:
Let Mac and Linux work as one? Each can then start Workers, read files and run commands on the other, as you.
Two computers that work as one are your shell on both: that is the feature. Nothing crosses between them before your yes. On Yes, your phone, which both already trust, asks one for a one-time invite and hands it to the other, which pairs with it and pins its key; then it tells both that you said yes. No terminal, no copying links, no visit to either computer.
Not now is kept: the app does not ask about that pair again by itself. The other computer's row then reads "Paired · waiting for your yes", and Answer in the computer's details asks again. The app never joins two computers without asking, and never joins again a pair you took apart.
One of the two must be able to reach the other: over Tailscale, an HTTPS address, or the address your phone uses (not Mewla Relay, which only your phone can use). A Mac reached only through Mewla Relay dials out to the other computer instead, so one such computer is fine. When neither can reach the other, the computer's details say so.
Remove computer in a computer's details ends it: your other computers
forget it, it forgets them, and Workers it started on them become plain
Sessions there. A computer that is offline then is told what to run when it is
back. A computer that only another computer knows, not your phone, is not
touched; remove it with mewla computers remove on the computer that knows it.
From a terminal instead:
# on one computer
mewla computers invite
# on the other
mewla computers add <invite> -name mac
# then your yes, on each of the two
mewla computers allow mac # on linux: mac may work here
mewla computers allow linux # on mac: linux may work here
mewla computers allow <computer> -no takes a yes back on that computer.
It stops new Workers, file reads and commands from that computer at once;
Workers it already started there keep running and stay its own, and a command
already running finishes, until you close them or remove the computer.
Removing a computer, on either side, also ends the yes: paired again, the two
wait for a new one.
Only you, in a terminal of your own, can say it: Brain, a Worker or a command
another computer runs is refused.
The computers reach each other over the same addresses your phone uses: Tailscale, an HTTPS address, or Mewla remote access. Plain HTTP on a shared Wi-Fi network is refused.
Use it#
Talk to Brain as usual. When a task needs another computer, because of an app, a logged-in site or files that live there, Brain starts a Worker there:
You: Use Feishu to send this week's report to A.
Brain: Feishu is on the Mac. A Worker there is sending it.
…
Brain: Sent. The Worker on the Mac confirmed it in Feishu at 14:02.
If you name a computer, Brain uses it. Otherwise it picks the one that has what the task needs, and asks you only when either would do and the result would differ, or when the computer it needs is offline.
The Work card says where its Worker runs ("on Mac"). Tap the Worker: the app switches to that computer and opens its Session, so its terminal, Screen and files are one tap away. The Worker's questions and permission prompts come to the Brain that started it, like any Worker's: a prompt a hook holds on the Mac is decided by the Brain that owns the Work (or by you there), never by the Mac's own Brain. Only when that computer cannot be reached does the Mac's app ask you.
Workers on another computer#
mewla worker spawn -computer mac -executor claude -cwd ~/Projects/site -context ./brief "…"
- The Worker is this Brain's.
worker send,capture,answer,status,closeandreleasetake itsrw-…id as for a Worker here. Its turns, prompts and result land in this Brain's Work ledger. - The other computer checks the executor, model and folder itself and refuses what it does not have, in its own words.
- A
-contextfolder is copied to that computer and the brief names the copy; the Worker writes its report next to it. Read it from here withmewla computers read mac:<path>. - A Work stays on the computer it started on: a continuation or retry of that Work goes there again.
- A Worker started by another computer shows in that computer's own
worker listwithlent_to. Its own Brain and Workers can see it but not send, answer or close it; the person can still step in on its terminal.
Files and commands#
mewla computers read mac:~/Projects/site/RESULT.md # print a file there (-o FILE saves it)
mewla computers ls mac:~/Projects/site # list a folder there
mewla computers read "Paul's MacBook Pro:~/x/RESULT.md" # a name with spaces or an apostrophe: quote it
mewla computers run mac -- git -C ~/Projects/site status # run a command there, exit code included
run replaces ssh to a computer that runs Mewla. It runs as you, stops after
two minutes unless you give -timeout (30 minutes at most), stops everything
the command started, and keeps up to 640 KB of what it printed. The other
computer logs each run. A path written as mac:<path> in Brain's reply opens
that file with one tap, by the computer's name as the computer page shows it
(a name with spaces, an apostrophe or Chinese works the same; two computers
with one name are not linked).
A computer's own rules#
Each computer keeps its own rules for agents, in one place on it: "ask before using the screen while I'm in a call", "no builds on battery". Only you write them: in the app (the computer's details, Rules), or in a terminal of your own on that computer:
mewla computers rules -set "No builds on battery."
mewla computers rules -file rules.md
mewla computers rules -clear
mewla computers rules mac # read another computer's rules
Brain, its Workers and other computers can read the rules but not write them.
Every Worker started on that computer gets them in its brief, whichever
computer's Brain started it, with who wrote them ("written by you, in the app
(Pixel)" or "…, in a terminal on this computer"). mewla computers list shows
each computer's rules, its executors and the sign-in each one uses, so Brain
picks a computer and an executor that are there. The rules are kept to 4,000
characters.
Two entries of one name#
A computer that comes back under a new identity (reinstalled, or its Mewla
state reset) and is paired again replaces its old entry: the old one, not
heard from since before the new pairing, is left out of computers list
(-all shows it, marked replaced by). A name that more than one entry
carries never picks one, whether the other is offline, replaced or a test
daemon beside the real one: Brain names it by the start of its id, or you
remove the one you no longer use.
When a computer is offline#
A Worker keeps running when the link to it drops. Its card says since when the
computer was not heard from. What it reports in the meantime waits on that
computer, in order, and arrives when the link is back; the Work then catches
up. Nothing that could repeat an effect is sent again: an input whose arrival
is unknown is marked so, and Brain checks the Worker (capture, status)
before sending another. Starting a new Worker, reading a file or running a
command needs the computer online and fails at once otherwise, naming since
when it was offline.
What the app sees of the other computers#
The app reads every paired computer from the one it is connected to. It does
not connect to each of them. It sends {"type":"computers"} over its
WebSocket, and gets the same computers message again, unasked, when a paired
computer comes or goes or reports a new count, or when this computer's remote
access connection changes. Each entry has daemon_id, name, online,
last_seen and version. It also has open_requests: how many requests wait
for the person on that computer. Fields:
onlineandlast_seen. These say whether this computer's channel to the other one is up, and when it last opened, closed or carried a frame. The time when a channel opens or closes is kept incomputers.json, solast_seensurvives a restart.open_requestson an entry. The other computer reports it over the channel and re-sends it when it changes. The entry carries it only while the channel is up. An offline computer, or one older than this field, has none, which means unknown, not zero.- The count rule.
- Each Brain Work that asks a question and is not closed or snoozed counts one.
- Each visible Session counts its pending approvals. A Session with none counts one if it needs you or is blocked on a prompt.
- Brain's own Session counts one while it is blocked on a prompt.
- A blocked action Brain still holds is not counted. Neither are DSH interactions.
open_requestsat the top level. This is the same count for this computer.connectionis present only while remote access is on. It comes fromremote-status.json:phaseisconnecting,connectedoroffline.causeis the current error.connected_atis when the relay connection last came up.last_failureandlast_failure_atare the newest failed stretch: its newest cause, and when it began. That is the first failure after the connection was last up, so "Relay unreachable · 13:40" survives retries, the recovery and a restart.- A phone that reaches this computer only through the relay cannot hear this while the relay is down. It shows the last one it received.
- A self-hosted relay (
relay.json) records no status.
In the app#
Tap the cat on home for the computer page. Its Computers section lists every other computer with what the connected one reports: - "Online"; - "Online · 1 needs you", which also puts a red dot on that row and on the cat; - "Offline · last seen 13:40"; - "Pair again" when that computer no longer knows the phone, which only the phone can find out.
One tap switches to a computer. While the phone cannot reach the connected computer through Mewla's relay, the tray and the page's Needs fixing give that computer's own last word on its relay, with when it began ("Relay unreachable · 13:40"). The page keeps it across a restart of the app.
Commands#
mewla computers list [-all] # who you can reach, their executors and rules
mewla computers rules [mac] [-set …] # a computer's own rules (-set: yours, here only)
mewla computers allow mac [-no] # your yes: mac may work here
mewla computers read|ls mac:<path> # a file or folder there
mewla computers run mac -- <command> # a command there
mewla computers remove mac # forget a computer (see below)
mewla worker spawn -computer mac … # a Worker there
What the other computer may do#
A computer you connect gets its own key, of a separate kind from your phone's,
bound to that computer's own identity key: a fresh invite cannot put another
computer in its place. It shows up in mewla devices list as (computer).
After your yes, over that key the other computer's daemon, and only its
daemon, can start Workers here and steer the ones it started, read regular
files and run commands here, as you. That is as much as ssh to this
computer, so say yes only for your own computers. Before the yes the two only
see each other come and go.
Text never opens any of it: a page, a file or a message cannot start or steer anything on another computer; only the daemon's own commands, run by Brain, its Workers or you, can. Workers started by another computer belong to it alone.
A command another computer runs here gets a plain login environment (home,
user, path, language), not this daemon's, plus a mark naming that computer
(MEWLA_CALLER=computer:mac). With that mark, as from any Session Mewla
manages, mewla refuses what only you do: -force, pairing, approving or
removing devices, connecting or approving outside agents, joining or allowing
computers, writing rules, and reaching a further computer. Every request
mewla sends carries the mark, whatever the command. This is
cooperative, like the mark of a Worker: a program that clears its environment
before calling mewla looks like your own shell. The run is logged with the
program's name and the length of its arguments, not the arguments.
A Mewla started for tests (MEWLA_NO_COMPUTERS=1, set by Mewla's own test
scripts) never pairs with, dials or lets in another computer.
Remove computer in the app ends it at once and for good. mewla computers
remove, mewla computers allow <computer> -no or mewla devices revoke also
end it at once; the app shows the pair as waiting for your yes and does not
join it again by itself. See
Security and privacy.