Your machines and workflows
An assistant with Commands switched on can run commands on your computers through a Command runner — a small program you start on each machine. You approve every command (or a whole workflow at once) before anything runs.
Add another PC (for example an Arch Linux PC)
- Get
vexyline-runner/runner.pyfrom the vexyline-tools repository (https://github.com/vexyline/vexyline-tools) onto the PC. - Run it as the user it should act as — it can only do what that user can. For a separate user, e.g.
assistant:sudo -iu assistant python3 runner.py --token <a long random token>To start it with that user's session, make it a user service (~/.config/systemd/user/vexy-runner.service, thensystemctl --user enable --now vexy-runner). - In the app: Settings → Providers → Machines → Add a machine. Give it a short name (e.g.
arch), the PC's address —192.168.1.20,192.168.1.20:8765,mypc.localor a domain all work — and the token. Test connects to the runner and shows which user and system it runs as, and whether workspace sync is available. - Switch on Commands for the assistant that should use it. With several machines, the assistant names the one it wants (
arch); you see the machine on every approval card.
Commands with sudo only work without a password prompt (sudo -n), and only for what you've allowed that user in sudoers — keep that list short.
Workflows
A workflow is a saved routine: a Library entry written as simple Markdown, which you can read and edit.
# Update the Arch PC
Machine: arch
Stop on failure: yes
## 1. Check free space
df -h /
## 2. Update packages
sudo -n pacman -Syu --noconfirm
(each step's command goes in a ```sh block)
Ask an assistant to run a workflow: you get one card listing every command; after you approve, the steps run in order, stopping at the first one that fails, and the assistant tells you what each did. Ask it to save a routine it just worked out ("save these steps as a workflow") and it creates one from the commands that succeeded.
Workspaces: code on your phone, run on your machine
Upload a project as a .zip in a conversation: it becomes a workspace in the Library, and its code is mapped (files, functions, how they call each other). Code edits happen in the workspace on your phone, and the workspace keeps a history of them.
Open the workspace entry to:
- Sync with
(the button with the machine's name) — both ways: files made or changed on the machine since the last sync come back to the phone first (recorded in History, so they can be undone; build output, dependencies and .gitstay there), then the phone's changes go out (only files the phone put there are ever deleted there). A file changed on both sides keeps the phone's version, and the machine's is saved beside it as<file>.machine. Assistants that work on the machine sync back the same way, so their work shows up in the phone's workspace. - README — a workspace with a
README.mdshows it at the top, rendered. - Files and History are headers you tap to fold: Files starts open, History closed (it is read when you open it). A
.mdfile opens Rendered, with Text for its source. - Checkpoint — mark this moment; you (or an assistant, after asking you) can return to it.
- History — each batch of code edits (per reply, per workflow step, per pull), with a button to reverse it. Reversing never overwrites a source file edited since; reversing a reversal brings the edits back.
A coding task on your machine (without the phone)
A long coding task can run on a computer by itself, with the same engine the app uses: on that machine, from the project folder of the Vexyline source, run
node server/agent-worker/run.mjs --dir path/to/project --task "what to do" --provider openai --model gpt-4.1 --key-env OPENAI_API_KEY
(--allow-shell lets it run your tests and build; --continue resumes a task from its saved plan; keys are read from the environment variable you name, never typed on the command line).
One workflow per routine
To change a workflow, an assistant edits it in place (its steps, one step, its title, trigger or inputs) — it does not make a second one with the same name. A routine you approved must be approved again after a change.
Running things without a machine
Steps written in js or python run inside the app (a sandbox), even offline for JavaScript. Python downloads once the first time. This needs the app build that includes the sandbox (react-native-webview).
Workflow steps, in full
Under each ## step heading you can add:
> target: archor> target: sandbox— where it runs (default: sh → the machine, js/python → the app)> on failure: continueor> on failure: retry 2> timeout: 300(seconds)> action: sync pushor> action: sync pull src/main.py— instead of code{{prev.stdout}}in a command — the previous step's output> capability: image-generationwith the inputs as a ```json block — the step does what an assistant can do, in the app (for example make a picture from references). Its output is the whole record: request id, model, the references used, the new picture's id and folder. A picture made this way is a candidate: only you can approve it.
And at the top: Workspace: my-app and Trigger: every 6h / daily 09:00 / after sync.
Routines — workflows that run by themselves
Open a workflow with a trigger and switch on Run by itself. That approves these exact steps: if the workflow changes in any way, it stops running by itself until you approve it again. Assistants can write workflows and ask to run them, but only you can make one run by itself. Routines run while the app is open. For something an assistant should check on its own even with your phone off, use a goal (Room menu → Goals).
Scripts and workflows without a machine
Any assistant can write scripts and workflows that run inside the app — no Commands switch needed. Ask for example: "create a workspace with a script that makes a value and another that uses it, then a workflow that runs both". It creates the files (python can import the other file; JavaScript can require() it), and the second step gets the first one's output. Only steps that run on a machine need Commands switched on for that assistant.