install.sh: CLI file sends + OSF shorthand in agent context

The installed AGENTS.md / CLAUDE.md now document the headless file-send
form and teach agents that "OSF" is user shorthand for omarchy-send
("OSF report.pdf to gav" → omarchy-send -to gav report.pdf).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
28allday 2026-06-07 15:13:25 +01:00
parent 2342beff10
commit d68421ac97

View file

@ -282,6 +282,10 @@ this machine. It speaks the LocalSend protocol, so phones, desktops, and other
servers can send **files** and **plain-text messages** to this machine over the servers can send **files** and **plain-text messages** to this machine over the
local network or a Tailscale tailnet. It can also send outbound. local network or a Tailscale tailnet. It can also send outbound.
**Shorthand:** "OSF" means omarchy-send. When the user says e.g. "OSF
report.pdf to gav" or "OSF that over to the laptop", run the headless CLI send
described below — `omarchy-send -to "<alias>" <paths…>`.
**Where received files live —** incoming files are saved under the *receive **Where received files live —** incoming files are saved under the *receive
directory*: directory*:
@ -305,15 +309,20 @@ foreground TUI, not a background daemon. Start it with:
On a headless box, run it inside a TTY (tmux, or `ssh -t`). It listens on TCP On a headless box, run it inside a TTY (tmux, or `ssh -t`). It listens on TCP
port **53317**. Auto-accept and an optional PIN live in the config / Settings tab. port **53317**. Auto-accept and an optional PIN live in the config / Settings tab.
**You can SEND messages from the CLI** — no TUI, no TTY, works from scripts and **You can SEND messages AND files from the CLI** — no TUI, no TTY, works from
agents. To message another device (e.g. to notify the user on their desktop): scripts and agents. To message another device (e.g. to notify the user on
their desktop), or to send files/folders to it:
omarchy-send -to "<device alias>" -message "<text>" omarchy-send -to "<device alias>" -message "<text>"
omarchy-send -to "<device alias>" <file-or-folder>…
omarchy-send -to "<device alias>" -message "<text>" <file>…
Add `-send-pin <pin>` if the target requires a PIN, and `-wait 30s` to allow Flags must come before the paths. A folder is sent whole (structure recreated
longer for discovery. Works over the LAN and Tailscale alike; exit code 0 means on the receiver). Add `-send-pin <pin>` if the target requires a PIN, and
delivered. To send files, pass paths instead (`omarchy-send <file>…`) — that `-wait 30s` to allow longer for discovery. Works over the LAN and Tailscale
opens the TUI with them staged, so it needs a TTY. alike; exit code 0 means delivered. The receiving device must be running its
receiver (this TUI, or LocalSend) and may prompt its user to accept. Paths
*without* `-to` open the TUI instead, which needs a TTY.
**Config:** `~/.config/omarchy-send/config.json` **Config:** `~/.config/omarchy-send/config.json`
(keys: `alias`, `receiveDir`, `port`, `autoAccept`, `pin`, `knownPeers`, …). (keys: `alias`, `receiveDir`, `port`, `autoAccept`, `pin`, `knownPeers`, …).
@ -344,10 +353,14 @@ land in `@@RECV_DIR@@`** (authoritative: the `receiveDir` key in
`~/.config/omarchy-send/config.json`). Files still transferring carry a `.part` `~/.config/omarchy-send/config.json`). Files still transferring carry a `.part`
suffix — skip them. Text messages appear in the TUI's Messages tab, not on disk. suffix — skip them. Text messages appear in the TUI's Messages tab, not on disk.
Receiving requires the TUI running (`omarchy-send`; use tmux or `ssh -t` when Receiving requires the TUI running (`omarchy-send`; use tmux or `ssh -t` when
headless). **You can SEND a message to another device from the CLI** (no TUI/TTY, headless). **You can SEND messages and files to another device from the CLI**
fine for scripts and agents): `omarchy-send -to "<alias>" -message "<text>"` (no TUI/TTY, fine for scripts and agents):
(plus `-send-pin <pin>` if the target requires one); exit 0 = delivered. Works `omarchy-send -to "<alias>" -message "<text>"` and/or
over LAN and Tailscale. Full notes: `~/.config/omarchy-send/AGENTS.md`. `omarchy-send -to "<alias>" <file-or-folder>…` (flags before paths; add
`-send-pin <pin>` if the target requires one); exit 0 = delivered. Works
over LAN and Tailscale. **"OSF" is user shorthand for omarchy-send** — "OSF
<file> to <alias>" means run that CLI send. Full notes:
`~/.config/omarchy-send/AGENTS.md`.
<!-- END omarchy-send (managed by installer) --> <!-- END omarchy-send (managed by installer) -->
BLK BLK
sed -i "s|@@RECV_DIR@@|$RECV_DIR|g" "$blk" sed -i "s|@@RECV_DIR@@|$RECV_DIR|g" "$blk"