See Your AI

Running the harness on Linux

The harness is developed on macOS. It has been run on Ubuntu, but Linux is not tested for each release, and the installer and service files have had less use there. This page covers what is different.

Prerequisites

The harness shells out to these — install them first:

Tool Why Install (Ubuntu)
bun runs the harness https://bun.sh (installs to ~/.bun/bin)
git brain sync (skipped for non-git bots) sudo apt install git
tmux every bot runs in a tmux session (run fails with “tmux not found on PATH” if missing) sudo apt install tmux
cron / crontab the single machine-wide schedule tick sudo apt install cron if missing
lsof, curl naming what holds the daemon port sudo apt install lsof curl
claude the agent the bot is — on PATH, or on the bot’s EXTRA_PATH see below

Speech to text

For the microphone in Talk. seeyourai speech setup downloads the model and tries the whole thing; the two programs are yours to install, as it never uses sudo. It prints the command for your distribution. None of this has been tested on a Linux machine.

  ffmpeg whisper-cli
Ubuntu 26.10 and newer, Debian 14 ffmpeg whisper.cpp-tools
Ubuntu 26.04 ffmpeg whisper.cpp
Arch ffmpeg whisper-cpp
Alpine ffmpeg whisper.cpp (community)
Fedora ffmpeg-free build it (whisper-cpp there is only the library)
older Ubuntu and Debian, others ffmpeg build it

With Homebrew on Linux, brew install whisper-cpp is another way. To build it (git, cmake and a C++ compiler; a few minutes):

git clone --depth 1 https://github.com/ggml-org/whisper.cpp
cd whisper.cpp
cmake -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF
cmake --build build -j2 --target whisper-cli
install -Dm755 build/bin/whisper-cli ~/.local/bin/whisper-cli
seeyourai speech setup

The claude CLI — especially with the Claude desktop app

The harness launches each bot by running claude …. On a server install that’s whatever claude is on your PATH. But if you use the Claude desktop app on Linux, there is often no claude on your PATH at all — the app bundles the CLI at a versioned path:

~/.config/Claude/claude-code/<version>/claude

Because the path carries a version, don’t hard-code it. Add a small stable shim on your PATH that always execs the newest bundled build:

mkdir -p ~/.local/bin
cat > ~/.local/bin/claude <<'EOF'
#!/usr/bin/env bash
# Stable shim -> newest Claude CLI bundled by the desktop app.
exec "$(ls -d "$HOME"/.config/Claude/claude-code/*/claude 2>/dev/null | sort -V | tail -1)" "$@"
EOF
chmod +x ~/.local/bin/claude

Then point the bot’s declaration EXTRA_PATH at the shim (plus your package manager’s bin, e.g. Homebrew for tmux):

seeyourai bot config <bot> set EXTRA_PATH='/home/you/.local/bin:/home/linuxbrew/.linuxbrew/bin'

Interactive first-run prompts will hang a headless bot

This applies on macOS too. A bot has no keyboard, so an interactive prompt on first launch freezes it. There are three, in sequence, and (counter-intuitively) --dangerously-skip-permissions suppresses none of them on a fresh config. The watchdog answers the second one for the bot’s own folder; the other two are yours:

  1. Onboarding wizard (theme picker):
    Welcome to Claude Code vX.Y.Z
    Let's get started. Choose the text style that looks best with your terminal
    
  2. Folder-trust dialog (first time the CLI opens the bot’s BOT_DIR):
    Quick safety check: Is this a project you created or one you trust?
    ❯ No, exit
      Yes, I trust this folder
    
  3. Bypass-permissions acceptance (because BOT_CMD uses --dangerously-skip-permissions):
    WARNING: Claude Code running in Bypass Permissions mode
    ❯ 1. No, exit   2. Yes, I accept
    

Clear them for the config the bot uses (~/.claude.json + ~/.claude/settings.json by default) before starting the bot.

Onboarding and bypass-permissions are once per machine. These are Claude Code’s own files; the keys above can change between its versions.

Watch for one-time feature prompts too

Even after the three gates above, a feature-announcement prompt can appear on the first launch after a CLI update and block the bot — e.g. “Try the new fullscreen renderer?”. Mitigate by:

Isolated vs. shared CLI config

By default the bot’s claude shares ~/.claude.json with your interactive/desktop Claude Code. That’s the quickest path (auth is reused) but the bot and your own sessions then share global CLI state. The harness has no per-bot setting for this.

Service (always-on) — systemd user unit

Run each bot as a systemd user service so it survives crashes and reboots. Copy init/linux/seeyourai.service.example to ~/.config/systemd/user/seeyourai-<bot>.service and replace BOTNAME.

The thing that bites on Linux is the unit’s PATH. A user service does not get your shell’s PATH. The template lists the usual places (~/.bun/bin, ~/.local/bin, Linuxbrew, the system dirs); if bun, tmux or claude lives elsewhere, add its directory there.

systemctl --user daemon-reload
systemctl --user enable --now seeyourai-<bot>
systemctl --user status  seeyourai-<bot>      # -> Active: active (running)

enable --now is safe if the bot is already running in a tmux session — the service adopts it (the log says “already running”) and supervises from there; Restart=always relaunches it if the session dies.

Units from before KillMode=process was in the templates need it added. Without it systemd ends everything a unit ever started, and the first bot (or the dashboard) started the tmux server that every bot is in: stopping that one unit ends them all. seeyourai doctor names such units, and stop and restart (a bot or the daemon, from the dashboard too) refuse while one is running.

systemctl --user edit --full seeyourai-<bot>   # under [Service]:  KillMode=process
systemctl --user edit --full seeyourai-daemon  # the dashboard too
systemctl --user daemon-reload                   # takes effect without a restart

Units of other services are not touched. A KillMode in a drop-in works; doctor reads only the file itself.

Survive reboots with no login (headless box): enable lingering so the user manager starts at boot instead of at first graphical login:

sudo loginctl enable-linger "$USER"