DSH Toolbox

Send messages between your DSH machines

dsh-bus writes each message into a private git repository you own, and the other machine reads it with a git pull. No server, no account, no port forwarding.

Copying prompts through a chat app loses the tail of long code blocks and leaves no receipt. This keeps the text byte for byte, records a hash, and writes an ack when the other side has read it.

Works with two machines or ten. Each machine registers a name once; after that it is one command to send and one to read.

What one message contains

The text, the sender, the recipient, a timestamp, the byte count and a SHA-256 of the text. The receiver recomputes both numbers and refuses the message when they disagree.

Attachments are recorded as a name and a hash; add --with-paths when you also want the sender file path. Files up to 256 KB can travel inline, stored once under their hash, and pulled back with get.

Install on each machine

Needs Node.js 20 or newer and git. Install the tool one of two ways — the release package is the one that needs no npm account — then point it at a private repository you own; that repository is the mailbox.

git clone https://github.com/FindSomeSkills/dsh-bus.git

# or unzip dsh-bus-0.3.2.zip from Releases, cd into the folder you unzipped, then run node bin/dsh-bus.mjs help

Point it at your mailbox

One repository holds every device. Make it private: message bodies are stored as plain text. After init, ~/.dsh-bus/config.json exists and status prints configured true; after heartbeat, state/<device>/heartbeat.json appears in the repository.

node bin/dsh-bus.mjs init --repo https://github.com/your-name/dsh-bus-data.git --device mac-mini
node bin/dsh-bus.mjs heartbeat

Send, read, acknowledge

Every command prints JSON, so a session can parse the result instead of scraping a screen.

node bin/dsh-bus.mjs send --to mac-mini --file prompt.md
node bin/dsh-bus.mjs poll
node bin/dsh-bus.mjs ack <message id>

Compare two machines

heartbeat writes what this machine runs: kernel version, Node version, installed plugins with versions, bundle order, preset and permission level, plus the process listening on the web port. diff compares the two snapshots and names the package and the two versions when they differ.

node bin/dsh-bus.mjs heartbeat
node bin/dsh-bus.mjs diff

When the network drops

A send that cannot push is written to a local outbox and reported as queued. The next send, poll or flush retries it; each message carries an id, so the receiver shows it once even if it was pushed twice.

What it will not do

It does not move session files, merge sessions, sync credentials, or edit the other machine’s configuration. It never starts or restarts DSH — anything that needs a restart is printed as a command for you to run.

Common questions

Do both machines need the same Node version?

No. Node 20 or newer on each. The heartbeat records the versions so a mismatch shows up in diff.

Where do messages live?

In the private git repository you point it at: bus/<device>/ for messages, ack/ for receipts, state/ for heartbeats. Your local cursor stays in ~/.dsh-bus and is never pushed.

Can more than two machines join?

Yes. Every machine runs init with the same repository and a different --device name; send --to "*" reaches all of them.

Is the mailbox repository public?

It must be private. Message bodies are stored as plain text.