Signal, in Note to Self¶
For Signal. Signal, the Signal logo, and all related names, designs, and slogans are registered trademarks of Signal Technology Foundation. Ragon works with Signal and is not endorsed by it.
The bridge is linked to your own Signal account as one more device, the way Signal Desktop is.
You write to Ragon in Note to Self, and its replies appear there too, each starting with 🐦.
By default the bridge sends each update as a new message and never edits one: the whole
answer arrives as one message, and a turn that is still silent after 20 seconds gets a single
"Still working…" message. If you prefer the answer to grow in one edited message (a
"🐦 Working on it…" line that says what Ragon is doing and becomes the answer, at the cost of
some flicker), switch the bridge to edit delivery: ragon signal delivery edit
(ragon signal delivery messages goes back; ragon signal delivery shows the current mode;
add --name NAME when the node has several bridges). Signal raises no notification for messages from
your own linked devices, so keep the chat open while you wait.
The bridge reads Note to Self only. It drops every other message it receives without storing or
answering it.
Run this on the node:
ragon signal setup --dry-run # prints every change it would make; changes nothing
ragon signal setup
Setup lists what it will change and asks for your password once (sudo). It then does the following:
- It creates a system account,
ragon-signal. The bridge runs as that account, so the agent can never read your Signal keys. - It downloads signal-cli and the Java runtime signal-cli needs. Each download is pinned by URL and SHA-256 and checked before it is unpacked. Nothing is bundled with Ragon, and no Java package is installed system-wide.
- It also checks signal-cli against its maintainer's OpenPGP signature, with a key pinned in Ragon.
- It installs the bridge and its system unit,
ragon-signal.service. - It shows a QR code. On your phone, open Signal → Settings → Linked devices → Link new device and scan the code.
- If the phone offers to transfer your message history, choose Don't transfer.
- It offers to make Note to Self's messages disappear after a week. Note to Self has a single timer, so this applies to your own notes as well as to Ragon's replies.
When setup has finished, open Note to Self and write /help. The commands are /new (start a new
chat), /threads, /use N, /stop and /status. When Ragon asks to run something, you
answer YES or NO.
What linking means. A linked device can read every message your account receives from now on,
and can send messages as you. signal-cli decrypts everything that arrives. The bridge acts on Note
to Self only, but the keys it holds are keys to your whole account. They are kept in
/var/lib/ragon-signal (mode 0700, owned by the bridge's own account), out of the agent's reach.
Day to day, on the node:
ragon signal status # running, paired, the air gap, strangers ignored, versions
ragon signal stop # stops the bridge now; it stays off until `ragon signal start`
ragon signal start
ragon signal delivery # how answers are delivered: messages (default) or edit
ragon signal delivery edit # one message edited as the answer grows; `messages` goes back
ragon signal setup --refresh # after `ragon update`: installs the new bridge for its account
ragon signal remove # undoes setup and deletes the keys; your Ask threads stay
ragon signal remove cannot unlink the device from your phone. Do that on the phone too: Settings →
Linked devices, then remove "Ragon". Signal also removes a linked device that has been offline
for about 30 days. If the node is switched off that long, run ragon signal setup again.
While a benchmark run holds the model on the node, Ragon does not answer from Signal. It replies with the run, how far it has got and roughly how long is left, and you ask again later.
If you would rather not link your own account, ragon signal setup --number +15551234567 registers a
separate number for Ragon instead (it needs a CAPTCHA and an SMS or voice code).
More than one Signal account. Each Signal account gets a bridge of its own, with a name. The
first is always default, set up by plain ragon signal setup (a name given for the first one is
refused); add another with --name:
ragon signal setup --name work # links a second account (or --number for its own number)
ragon signal status # one line per bridge
ragon signal stop --name work # with several bridges, the commands need --name
ragon signal remove --name work # removes that bridge only; the others keep running
Each bridge has its own system account and keys, so one cannot read another's. A node runs at most four, and setup needs 2 GB of memory to spare. A Signal account can have only one bridge. For now, every bridge on a node answers with the same Linux user's agent.
The bridge runs only on a Linux node. See specs/DREAMFERENCE_RAGON_SIGNAL.md in the repository
for the design and what has been verified.