### Install Collie binary and start core Source: https://github.com/altans/collie/blob/main/docs/install.md Install Collie as a standalone binary using the install script, then verify the core runs and start Collie. When no multiplexer is named, Collie picks the core and writes COLLIE_MUX=herdr-core to ~/.config/collie/.env. ```bash curl -fsSL https://colliepwa.dev/install.sh | sh hc server status # or open herdr-app, which starts the core collie start ``` -------------------------------- ### Install and start Collie with mise Source: https://github.com/altans/collie/blob/main/docs/install.md Use `mise use -g` to install Collie version 1.14.2 from the GitHub backend and start it. This writes the tool to `~/.config/mise/config.toml` and adds the release's `bin/` to PATH, working on Linux and macOS without Bun or compilation. ```bash mise use -g github:AltanS/collie@1.14.2 collie start ``` -------------------------------- ### Install collie-bin from Omarchy repository Source: https://github.com/altans/collie/blob/main/docs/install.md Installs collie-bin from Omarchy's pacman repository and starts Collie with the herdr multiplexer. The first start must name the multiplexer because both tmux and Herdr are present. ```bash sudo pacman -S collie-bin COLLIE_MUX=herdr collie start ``` -------------------------------- ### Install on Linux Source: https://github.com/altans/collie/blob/main/docs/install.md Downloads and runs the install script, then starts the bridge as a systemd --user service. The script installs a prebuilt binary for x86_64 or arm64. The service stops when you log out. ```bash curl -fsSL https://colliepwa.dev/install.sh | sh collie start ``` -------------------------------- ### Start collie after installation Source: https://github.com/altans/collie/blob/main/packaging/aur/README.md Starts the collie application after installation. Collie classifies this tree as a 'packaged' install and never updates it in place; 'collie update' declines and suggests 'sudo pacman -Syu collie-bin' instead. ```bash collie start ``` -------------------------------- ### Install Collie as Herdr plugin Source: https://github.com/altans/collie/blob/main/docs/install.md Install the Collie Herdr plugin and invoke its start action. Start the Herdr server first (herdr or herdr server &). Works on Linux and macOS. ```bash herdr plugin install AltanS/collie herdr plugin action invoke start --plugin herdr.collie ``` -------------------------------- ### First run output from collie start Source: https://github.com/altans/collie/blob/main/docs/install.md Example output from collie start on first run, showing build progress, bridge start, tailscale serve, and the connection banner. If health check fails, see Troubleshooting. ```console $ collie start building web UI (first run)… # linked clone only; a GitHub install already built …bun install · typecheck · vite build output… bridge started (systemd --user: collie) tailscale serve (https) → tailnet :443 -> 127.0.0.1:8787 ✓ Collie is running · v1.0.0+b158755 service systemd --user (collie) · active local http://127.0.0.1:8787 tailnet https://myhost.tail1234.ts.net ``` -------------------------------- ### Install Collie plugin from local clone Source: https://github.com/altans/collie/blob/main/docs/install.md Clone the Collie repository and link it as a Herdr plugin, then invoke the start action. Use this for local development or testing. ```bash git clone https://github.com/AltanS/collie.git && cd collie herdr plugin link "$(pwd)" herdr plugin action invoke start --plugin herdr.collie ``` -------------------------------- ### Seed config before first start Source: https://github.com/altans/collie/blob/main/docs/install.md Creates the config directory and copies the .env.example file to .env before the first start. Do not run the cp after a start as it overwrites the COLLIE_MUX value written by start. ```bash mkdir -p ~/.config/collie cp ~/.local/share/collie/current/.env.example ~/.config/collie/.env ``` -------------------------------- ### Start Herdr Source: https://github.com/altans/collie/blob/main/docs/five-minute-install.md Start Herdr to open a pane for your agent (e.g., claude). ```bash herdr ``` -------------------------------- ### Install on Arch Linux and Omarchy Source: https://github.com/altans/collie/blob/main/docs/install.md Builds the collie-bin package from this repository's PKGBUILD, then starts Collie. The package downloads the prebuilt binary without compiling. ```bash git clone https://github.com/AltanS/collie.git && cd collie/packaging/aur makepkg -si collie start ``` -------------------------------- ### Build and install locally with makepkg -si Source: https://github.com/altans/collie/blob/main/packaging/aur/README.md Builds and installs the package locally. Run from the packaging/aur directory. The -s flag pulls missing dependencies and -i installs the built package. ```bash makepkg -si ``` -------------------------------- ### Install on NixOS and Nix Source: https://github.com/altans/collie/blob/main/docs/install.md Installs the flake package and starts Collie. Works on x86_64-linux, aarch64-linux, and aarch64-darwin. ```bash nix profile install github:AltanS/collie#collie collie start ``` -------------------------------- ### Install Tailscale and sign in Source: https://github.com/altans/collie/blob/main/docs/five-minute-install.md Installs Tailscale and brings up the interface with the current user as operator, which is required for Collie to use `tailscale serve`. ```bash curl -fsSL https://tailscale.com/install.sh | sh sudo tailscale up --operator=$USER ``` -------------------------------- ### Start Collie with Herdr multiplexer Source: https://github.com/altans/collie/blob/main/docs/five-minute-install.md Start Collie using Herdr as the multiplexer. This runs Collie in the background, runs tailscale serve, and saves herdr as the multiplexer for future runs. ```bash COLLIE_MUX=herdr collie start ``` -------------------------------- ### Restart, install hooks, and start agent Source: https://github.com/altans/collie/blob/main/docs/multiplexers.md After editing .env, restart Collie and install beacon hooks once per host (tmux, zellij, tern need it; Herdr gets hook edges). Then open a window or tab for the agent and run the agent command in it. ```bash collie restart # after every .env edit collie hooks install claude # once per host; tmux, zellij and tern need it, Herdr gets hook edges # open a window or a tab for the agent tmux -S /run/user/1000/collie-tmux.sock new-window -n claude zellij --session collie-zellij action new-tab --name claude claude # in that window or tab ``` -------------------------------- ### Copy quick-replies.toml example to config Source: https://github.com/altans/collie/blob/main/docs/configure.md Copies the example configuration file to the user config directory. Run this before editing your custom quick replies. ```bash cp quick-replies.toml.example ~/.config/collie/quick-replies.toml ``` -------------------------------- ### Install ColliePWA on your computer Source: https://github.com/altans/collie/blob/main/README.md Run this command to install ColliePWA on your computer. Requires curl, tar, and a sha256 utility. No sudo or compiler needed; checksums are verified automatically. ```bash curl -fsSL https://colliepwa.dev/install.sh | sh ``` -------------------------------- ### Install Herdr Source: https://github.com/altans/collie/blob/main/docs/five-minute-install.md Install Herdr using the official install script. ```bash curl -fsSL https://herdr.dev/install.sh | sh ``` -------------------------------- ### collie trick guide and propose commands Source: https://github.com/altans/collie/blob/main/web/src/lib/tricks/README.md Commands for guiding trick writing and proposing a trick folder. The guide prints plain text instructions; propose sends the folder over the walky socket. Use --json for structured output and --request-id to set a UUID. ```bash collie trick guide [--json] # how to write a trick, as plain text; needs no bridge collie trick propose [--request-id ] [--json] ``` -------------------------------- ### Copy launchers.toml example to config Source: https://github.com/altans/collie/blob/main/docs/configure.md Copies the example launchers.toml to the user config directory, next to keys.toml. ```bash cp launchers.toml.example ~/.config/collie/launchers.toml ``` -------------------------------- ### Install Collie on Windows via PowerShell Source: https://github.com/altans/collie/blob/main/README.md One-line installer for Windows using PowerShell. Downloads and runs the install script from colliepwa.dev. Windows 11 x64 is tested; the platform is experimental until an update between two real releases is proven. ```powershell irm https://colliepwa.dev/install.ps1 | iex ``` -------------------------------- ### Check Tailscale version Source: https://github.com/altans/collie/blob/main/docs/five-minute-install.md Verify the Tailscale command is installed and working before proceeding. ```bash tailscale version ``` -------------------------------- ### Copy keys.toml example to config directory Source: https://github.com/altans/collie/blob/main/docs/configure.md Use this command to copy the example keys.toml file to the Collie configuration directory, located next to commands.toml. ```bash cp keys.toml.example ~/.config/collie/keys.toml ``` -------------------------------- ### Install collie-bin with AUR helper Source: https://github.com/altans/collie/blob/main/docs/install.md Installs collie-bin using an AUR helper once it is available on the AUR. The same command is used for later updates. ```bash paru -S collie-bin # or: yay -S collie-bin collie start ``` -------------------------------- ### Run collie from install dir Source: https://github.com/altans/collie/blob/main/docs/upgrading.md For standalone installs, the binary is at ~/.local/share/collie/current/bin/collie or /bin/collie. Use these commands to check the version from the install script's layout or a source build/linked clone. ```bash # the install script's layout cd ~/.local/share/collie/current && bin/collie version # a source build or a linked clone cd ~/my/collie-checkout && bin/collie version ``` -------------------------------- ### Interactive STT setup with bin/collie stt setup Source: https://github.com/altans/collie/blob/main/docs/voice-and-push.md Walks through provider selection, base URL, model, API key, and spoken language. The keyless mode sends no Authorization header. The language setting only applies to the openai-compatible provider. ```console $ bin/collie stt setup Which speech-to-text provider? openai-compatible any endpoint that speaks POST /audio/transcriptions — the public OpenAI API, or a local whisper.cpp / parakeet.cpp server, which is the zero-egress choice and the one to prefer. codex borrow your own `codex` sign-in. No new key, no new account — and a private endpoint that may break without notice. local-cli run a transcription command already on this machine, such as whisper-cli or muesli-cli. Its stdout is the transcript. provider [openai-compatible]: The API base, INCLUDING its version prefix — the provider appends /audio/transcriptions. local http://127.0.0.1:8080/v1 (whisper.cpp / parakeet.cpp — nothing leaves the host) cloud https://api.openai.com/v1 (room audio leaves this machine) base URL: http://127.0.0.1:8080/v1 The model the endpoint understands. Empty takes Collie's default, gpt-transcribe. model [gpt-transcribe]: whisper-1 API key [none]: The language you speak, as a two-letter ISO-639-1 code — en, de, tr, ja. LEAVE IT EMPTY to let the model detect it, which is what you want if you mix languages in one sentence. Name one only if short clips keep coming back in a language you did not speak: a few seconds of accented audio is too little for the model to detect from, and it guesses. spoken language [auto-detect]: en ✓ speech-to-text configured — /home/you/.local/state/collie/stt.json (owner-only) Live immediately — no restart needed. The bridge re-reads this file per request. Check it end to end with `collie stt test`. ``` -------------------------------- ### Start Collie (Herdr plugin and standalone) Source: https://github.com/altans/collie/blob/main/docs/install.md Commands to start Collie as a Herdr plugin or standalone. The Herdr plugin returns JSON; standalone prints a connection banner. ```bash herdr plugin action invoke start --plugin herdr.collie # Herdr plugin collie start # standalone ``` -------------------------------- ### POST /starter/:id Source: https://github.com/altans/collie/blob/main/bridge/mux/durable/WIRE.md Starts a starter with the given ID. The request body must be a StarterRequest. ```APIDOC ## POST /starter/:id ### Description Starts a starter with the given ID. The request body must be a StarterRequest. ### Method POST ### Endpoint /starter/:id ### Parameters #### Path Parameters - **id** (string) - Required - Starter identifier. #### Request Body - **StarterRequest** (object) - Required - Starter data. ### Response #### Success Response (200) - **StarterReply** - Starter response. #### Error Response - **400** - `bad-body`, `bad-id` - **403** - `caller-refused` - **404** - `no-such-starter` - **409** - `request-id-reused`, `not-supported` - **413** - `too-large` - **422** - `starter-failed` - **503** - `starting` ``` -------------------------------- ### Verify installed version Source: https://github.com/altans/collie/blob/main/docs/upgrading.md Run these commands to verify the installed version. Expect the newest tag. ```bash bin/collie update --status herdr plugin action invoke version --plugin herdr.collie bin/collie version ``` -------------------------------- ### Install Herdr and check version (PowerShell) Source: https://github.com/altans/collie/blob/main/docs/five-minute-install.md Installs Herdr via the official installer and verifies the version is 0.9.3 or newer. Run in PowerShell. ```powershell irm https://herdr.dev/install.ps1 | iex herdr --version ``` -------------------------------- ### Copy spaces.toml example to config root Source: https://github.com/altans/collie/blob/main/docs/configure.md Run this command to create your own spaces.toml from the example file. The file lives next to keys.toml under your config root. ```bash cp spaces.toml.example ~/.config/collie/spaces.toml ``` -------------------------------- ### Opt into prereleases on standalone install: curl install.sh --beta Source: https://github.com/altans/collie/blob/main/docs/upgrading.md Installs the newest prerelease on a standalone machine. The --beta flag opts into that major's prereleases until the final release arrives. ```bash curl -fsSL https://colliepwa.dev/install.sh | sh -s -- --beta ``` -------------------------------- ### Start ColliePWA with COLLIE_MUX=herdr Source: https://github.com/altans/collie/blob/main/README.md Starts ColliePWA on your tailnet using the Herdr multiplexer. Alternatives include herdr-core, tmux, or zellij. Without COLLIE_MUX, collie start checks for Herdr, tmux, and zellij and prompts you to pick one; Herdr core is offered only if the Herdr TUI is absent. ```bash COLLIE_MUX=herdr collie start # or: herdr-core, tmux, zellij ``` -------------------------------- ### Read and run install.sh from source Source: https://github.com/altans/collie/blob/main/docs/install.md Fetch the install script from the repository to review it, then run it. The script is POSIX sh and never calls sudo. ```bash curl -fsSL https://raw.githubusercontent.com/AltanS/collie/main/scripts/install.sh | less curl -fsSL https://raw.githubusercontent.com/AltanS/collie/main/scripts/install.sh | sh ``` -------------------------------- ### Install cloudflared as a system service Source: https://github.com/altans/collie/blob/main/docs/deployment.md Installs cloudflared as a service using the config file so the tunnel survives a reboot. Requires sudo. ```bash sudo cloudflared --config ~/.cloudflared/config.yml service install ``` -------------------------------- ### Print phone address (PowerShell) Source: https://github.com/altans/collie/blob/main/docs/five-minute-install.md Prints the address to open on the phone. ```powershell collie url ``` -------------------------------- ### Start Collie Source: https://github.com/altans/collie/blob/main/docs/claude-code-on-your-phone.md Starts Collie. The first run checks for Herdr, tmux, and zellij, writes your choice to `.env`, starts `tailscale serve`, and prints a tailnet URL. ```bash collie start ``` -------------------------------- ### Initialize, develop, check, and enable a trick Source: https://github.com/altans/collie/blob/main/docs/tricks.md Four commands to create and manage a trick: init creates the folder with a starter program and notes, dev runs it once and prints output without sending to the phone, check scans for five risky things, and on enables it. The on command refuses in an agent's pane, so the user must confirm. ```sh collie trick init disk-space collie trick dev disk-space collie trick check ~/.config/collie/tricks/disk-space collie trick on disk-space ``` -------------------------------- ### StarterRequest Source: https://github.com/altans/collie/blob/main/bridge/mux/durable/WIRE.md Request to start a new conversation. ```APIDOC ## StarterRequest ### Description Request to start a new conversation. ### Fields - **requestId** (string) - Required - Request identifier ``` -------------------------------- ### Build Collie from source Source: https://github.com/altans/collie/blob/main/docs/install.md Clone the repository, checkout the latest stable tag, build the runtime and UI, verify, and optionally link to PATH. Requires Bun and git. ```bash # 1. Clone and checkout latest stable tag git clone https://github.com/AltanS/collie.git ~/.local/share/collie cd ~/.local/share/collie git checkout --detach "$(git tag --list 'v*' | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | sort -V | tail -1)" # 2. Build runtime and UI bash scripts/collie-ctl.sh build # 3. Verify bin/collie version # 4. Optional: link to PATH bin/collie link ``` -------------------------------- ### Copy commands.toml example to config directory Source: https://github.com/altans/collie/blob/main/docs/configure.md Use this command to copy the example commands file to your Collie config directory. This is the first step to define your own slash commands. ```bash cp commands.toml.example ~/.config/collie/commands.toml ``` -------------------------------- ### Start Collie with herdr-core and install collie hooks for Claude Source: https://github.com/altans/collie/blob/main/docs/multiplexers.md Use COLLIE_MUX=herdr-core to start Collie with the new Herdr core. Install the collie hooks for Claude to enable History and Chat for Claude panes. ```bash COLLIE_MUX=herdr-core collie start collie hooks install claude # History and Chat for Claude panes ``` -------------------------------- ### Install the durable SDK with npm or Bun Source: https://github.com/altans/collie/blob/main/docs/durable-agents.md Install the experimental durable SDK in your durable agent's folder. Requires Node 22.19+ or Bun 1.4+. Use the `experimental` dist-tag; the `latest` tag carries no promise. ```bash npm install @colliepwa/durable-sdk@experimental # or bun add @colliepwa/durable-sdk@experimental ``` -------------------------------- ### Add ~/.local/bin to PATH Source: https://github.com/altans/collie/blob/main/docs/five-minute-install.md Add ~/.local/bin to your PATH if collie version does not print a version. ```bash echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc ``` -------------------------------- ### Install SDK and pinned peers Source: https://github.com/altans/collie/blob/main/docs/durable-agents.md Install the SDK and its pinned peer dependencies for the durable-harness path. Requires Node 22.19 or later and the Pi packages your agent already uses. ```bash npm install @colliepwa/durable-sdk@experimental durable-harness@0.0.1-beta.6 \ @workflow/world@5.0.5 @workflow/world-local@5.1.2 ``` -------------------------------- ### Start Collie with tuios and install tuios integration for Claude Code Source: https://github.com/altans/collie/blob/main/docs/multiplexers.md Use COLLIE_MUX=tuios to start Collie with the tuios multiplexer. Run the tuios integration install once so tuios hears the agent's hooks. Requires tuios 0.8.3 or newer. ```bash COLLIE_MUX=tuios collie start tuios integration install claude-code # once, so tuios hears the agent's hooks ``` -------------------------------- ### Set up local-cli provider with JSON args Source: https://github.com/altans/collie/blob/main/docs/voice-and-push.md Uses JSON array syntax for --args to pass arguments containing spaces, since quotes are kept as typed without a shell. The command name is resolved at setup time and the full path is saved. ```bash bin/collie stt setup --provider local-cli --command whisper-cli \ --args '["-m", "/srv/my models/ggml-base.bin", "-nt"]' ``` -------------------------------- ### Install WalkyTalky skill to a specific harness Source: https://github.com/altans/collie/blob/main/docs/walky-talky.md Installs the skill into a harness that Collie did not find automatically. Valid harness names are claude, codex, opencode, pi, omp, or gemini. Restart the agent after installation because it reads its instructions at start. ```sh collie skill install claude ``` -------------------------------- ### collie stt setup Source: https://github.com/altans/collie/blob/main/docs/commands.md Configure voice input. ```APIDOC ## collie stt setup ### Description Configure voice input. ### Method CLI ### Command `collie stt setup` ### Response No response body specified. ``` -------------------------------- ### Build without Nix Source: https://github.com/altans/collie/blob/main/CLAUDE.md Standard build command for developers without Nix installed. ```bash bun run build ``` -------------------------------- ### Install and start Herdr, then run Claude Code Source: https://github.com/altans/collie/blob/main/docs/claude-code-on-your-phone.md Installs Herdr via curl or Homebrew, starts the Herdr terminal workspace manager, and runs Claude Code in the pane it opens. Detach with Ctrl+b then q, or close the terminal; the Herdr server keeps panes and Claude Code running. Run 'herdr' again to reattach. ```bash curl -fsSL https://herdr.dev/install.sh | sh # or: brew install herdr herdr # start Herdr, or reattach to it claude # in the pane Herdr opens ``` -------------------------------- ### Run Collie binary directly Source: https://github.com/altans/collie/blob/main/docs/install.md Run the Collie binary directly from the install directory to check the version. ```bash ~/.local/share/collie/current/bin/collie version ``` -------------------------------- ### View Collie logs Source: https://github.com/altans/collie/blob/main/docs/troubleshooting.md Display Collie logs to find the reason the service isn't starting. ```bash bin/collie logs ``` -------------------------------- ### cat filler2.txt (truncated output, second view) Source: https://github.com/altans/collie/blob/main/web/src/fixtures/panes/omp--v18-4-switch-truncated.txt Another view of the same file, showing the first few lines and the Switch Model panel. The output is truncated similarly, with the same content as the first example. ```text $ cat filler2.txt gamma quartz beta gamma alpha beta orbit river orbit gamma orbit stone ember meadow cloud pixel meadow river meadow pixel harbor stone river pixel delta orbit delta beta cloud pixel gamma stone orbit orbit pixel alpha meadow harbor maple ember stone maple quartz cloud pixel alpha ember quartz meadow cloud lantern harbor quartz orbit gamma maple lantern ember beta … cloud pixel beta gamma orbit lantern ember meadow maple orbit river river cloud alpha meadow stone delta harbor meadow delta meadow orbit meadow gamma gamma orbit orbit river delta cloud delta lantern ``` -------------------------------- ### Reset the example Source: https://github.com/altans/collie/blob/main/examples/durable-harness/README.md Stops the server and removes the workflow data and shipped.txt to start over. ```sh rm -rf .workflow-data shipped.txt ``` -------------------------------- ### Create .env file in config folder Source: https://github.com/altans/collie/blob/main/docs/windows.md Create the Collie config folder if missing and open the .env file in Notepad. Notepad asks to create the file if it is not there; click Yes. ```powershell New-Item -ItemType Directory -Force "$env:APPDATA\herdr\plugins\config\herdr.collie" notepad "$env:APPDATA\herdr\plugins\config\herdr.collie\.env" ``` -------------------------------- ### Enable linger for Collie Source: https://github.com/altans/collie/blob/main/docs/five-minute-install.md Keeps Collie running after logout and reboots, for example on a host you reach by SSH. Run once. ```bash loginctl enable-linger $USER ``` -------------------------------- ### Standalone setup commands for lead Source: https://github.com/altans/collie/blob/main/docs/deployment.md Commands to pair and configure a deputy on the lead for standalone deployments. Run while everything is healthy. ```bash bin/collie pair bin/collie crew deputy nas bin/collie crew status ``` -------------------------------- ### Update Collie via package manager Source: https://github.com/altans/collie/blob/main/docs/upgrading.md For packaged installs, update Collie with your package manager. The example shows pacman, nix, and brew commands. ```bash sudo pacman -Syu collie-bin # or `nix profile upgrade collie`, or `brew upgrade collie` ``` -------------------------------- ### Run muse with approval mode and judge off Source: https://github.com/altans/collie/blob/main/web/src/fixtures/panes/muse--approval-ls-147.txt Starts Muse Code 1.4.7 in approval mode with untrusted and judge off. The command is run from /tmp/qaapprove. ```bash cd /tmp/qaapprove && muse --approval-mode untrusted --approval-judge off ``` -------------------------------- ### Run Windows release rehearsal Source: https://github.com/altans/collie/blob/main/CLAUDE.md Run from the workspace root before tagging a minor or major release. Installs, updates, and rolls back a Windows build on the test VM; takes 13–16 minutes. Requires the release commit to be committed first. ```make make win-rehearse LOCAL=collie ``` -------------------------------- ### Push main, watch CI, then push tag Source: https://github.com/altans/collie/blob/main/CLAUDE.md Mandatory release recipe: push main, watch CI, then push the tag. The two-step form is preferred because a red CI costs nothing before the tag exists. ```bash git push origin main gh run watch # or: gh run list --commit "$(git rev-parse HEAD)" git push origin vX.Y.Z ``` -------------------------------- ### Caddy Configuration for Public Host Source: https://github.com/altans/collie/blob/main/docs/deployment.md Minimal Caddy config for a host reachable on ports 80 and 443. Caddy automatically gets and renews the certificate. For a private name, add the tls dns block from the NetBird example. ```caddyfile collie.example.com { reverse_proxy 127.0.0.1:8787 } ``` -------------------------------- ### terminal.run: start a new terminal Source: https://github.com/altans/collie/blob/main/HC_API.md Starts a new terminal. With no argv and no line, the machine's own shell is used; cwd defaults to the core's own. When started from inside an hc terminal, the new terminal becomes that terminal's child and the parent gets notes typed into it; no_parent:true and no_notify:true avoid both, and the adapter sends both. herdr-app adopts a terminal that carries herdr.space and herdr.tab; an id Herdr doesn't know becomes a new space or tab (AGENTS.md). ```json → terminal.run {"cwd":"~/.cache/collie-lab/hc-lab","labels":{"herdr.space":"splab0001", "herdr.tab":"tblab0001"},"no_parent":true,"no_notify":true} ← {"address":"t4","labels":{"herdr.space":"splab0001","herdr.tab":"tblab0001"},"keep":false, "parent":null,"notify":false,"cols":200,"rows":120,"state":"live",…} ``` -------------------------------- ### Initialize, develop, and check a trick Source: https://github.com/altans/collie/blob/main/docs/tricks-authoring.md Run these commands in order to create a trick folder, run its program once to preview what ColliePWA would draw, and validate the manifest and search the code. None of these commands writes to a phone or posts to the Hill. ```sh collie trick init my-trick collie trick dev my-trick collie trick check ~/.config/collie/tricks/my-trick ``` -------------------------------- ### Kickstart launchd agent when loaded but not running Source: https://github.com/altans/collie/blob/main/docs/troubleshooting.md Use when `collie status` reports 'loaded, not running' on macOS. The launchd job is loaded but no process runs, so the log is empty. Run these commands to start the job by hand. ```bash launchctl kickstart gui/$(id -u)/herdr.collie collie status ``` -------------------------------- ### Run Playwright tests with the rig Source: https://github.com/altans/collie/blob/main/web/e2e/rig/README.md Run the rig-based Playwright test suite from the web directory. The global setup starts the rig and the global teardown prints a results table and stops the rig. ```sh cd web && bunx playwright test -c e2e/rig/playwright.config.ts ``` -------------------------------- ### Setting up the deputy node Source: https://github.com/altans/collie/blob/main/PACK_DEPUTY_RFC.md Commands to pair the lead node, name the deputy, and verify the pack status. ```bash # on the lead collie pair # if nothing is paired yet — the door needs a credential collie pack deputy nas # names the deputy; restarts the lead; pushes the warrant; # restarts each peer over your ssh (pack-ops.json) collie pack status # confirm: "deputy: nas (generation 3) — anchored on 2/2 peers" ``` -------------------------------- ### Add other machines to your crew with collie crew add Source: https://github.com/altans/collie/blob/main/docs/five-minute-install.md Run this command on the host to add other machines to the same phone. It lists machines from your ssh config, Herdr, and the Herdr core; type the numbers of the machines you want. Each machine gets one confirm after probing and before anything is written, and joins under the name Herdr gives it. If using the core, run `hc machine add --install ` first so `collie crew add` finds that host. ```bash collie crew add ``` -------------------------------- ### collie trick view commands for agent view Source: https://github.com/altans/collie/blob/main/docs/tricks-authoring.md Two commands the agent uses to draw the view: 'start' begins the view with rules, and 'show' displays the screen data. The first line the agent gets ends with the command that prints Collie's view help and these rules. ```sh collie trick view triage start --session
--rules "Reading the test output" collie trick view triage show --session
screen.json ``` -------------------------------- ### Run design reference page Source: https://github.com/altans/collie/blob/main/README.md Starts a local page that renders every final UI state from mock data. Listens on 127.0.0.1 only; port 5199 answers /api calls itself. Use COLLIE_DEV_HOST and COLLIE_DEV_HOSTS to bind to a tailnet address for phone access. ```bash cd web && bun run design ``` -------------------------------- ### Bash script to install revised audio set and measure levels Source: https://github.com/altans/collie/blob/main/web/src/fixtures/panes/claude--v2303-permission-bash-bg-agent-rm--w80.txt Run by a general-purpose agent to replace audio files in the earshot directory and measure their properties. Includes a dangerous `rm -f` on a possibly-empty variable path, triggering a permission prompt. ```bash S=/var/home/devel/projects/sample-workspace/experiments/showreel; D=$S/audio/earshot; P=/tmp/earshot-work/pool; rm -f $D/*.wav $D/*.params.json cp_() { cp -L $P/$1.wav $D/$2.wav; } cp_ key-f key; cp_ key-g key-alt1; cp_ key-d key-alt2 cp_ enter-c enter; cp_ enter-b enter-alt1; cp_ enter-a enter-alt2 cp_ tap-j tap; cp_ tap-b tap-alt1; cp_ tap-m tap-alt2 cp_ notify-s2 notify; cp_ notify-s3 notify-alt1; cp_ notify-c notify-alt2 cp_ whoosh-a whoosh; cp_ whoosh-c whoosh-alt1; cp_ whoosh-b whoosh-alt2 cp_ impact-d impact; cp_ impact-c impact-alt1; cp_ impact-e impact-alt2 cp_ glitch-c glitch; cp_ glitch-a glitch-alt1; cp_ glitch-b glitch-alt2 cp_ lock-b lock; cp_ lock-f lock-alt1; cp_ lock-c lock-alt2 cp_ shimmer-f shimmer; cp_ shimmer-d shimmer-alt1; cp_ shimmer-c shimmer-alt2 cp_ slide-l slide; cp_ slide-g slide-alt1; cp_ slide-j slide-alt2 python3 -c " import json for src,dst in [('notify_s2','notify'),('notify_s3','notify-alt1')]: p=json.load(open(f'/tmp/earshot-work/{src}.json')); json.dump(p, open('$D/'+dst+'.params.json','w'), indent=1, sort_keys=True) " cd $S && python3 -c " from scipy.io import wavfile; import numpy as np for n in 'key enter tap notify whoosh impact glitch lock shimmer slide'.split(): sr,x=wavfile.read(f'audio/earshot/{n}.wav'); x=x.astype(float)/2**31 x = x[:,None] if x.ndim==1 else x a=np.abs(x).max(axis=1); e=np.convolve(a**2,np.ones(240)/240,'same') print(n.ljust(8), x.shape[1], 'dur', round(len(x)/sr,3), 'peak', round(20*np.log10(a.max()),1), 'env_t', round(e.argmax()/sr,3)) "; sed -i 's/^for n in .*$/for n in "key enter tap notify whoosh impact glitch lock shimmer slide".split():/' /tmp/earshot-work/scripts/level.py; python3 /tmp/earshot-work/scripts/level.py ``` -------------------------------- ### Run phone leg with scratch bridge Source: https://github.com/altans/collie/blob/main/scripts/harness-canary/README.md Starts a scratch bridge as a child process for the phone leg. The bridge binds 127.0.0.1 on a free port, never using ports 8787-8799, and gets a temporary HOME and COLLIE_STATE_DIR inside the run folder. ```sh bun run harness:lab --leg phone --version claude=2.1.302 # a scratch bridge ``` -------------------------------- ### Download and run install.ps1 manually on Windows Source: https://github.com/altans/collie/blob/main/docs/install.md Save the script, review it, then run it with execution policy bypass. Useful for inspecting the script before execution. ```powershell Invoke-WebRequest -OutFile install.ps1 https://colliepwa.dev/install.ps1 notepad install.ps1 powershell -ExecutionPolicy Bypass -File .\install.ps1 ``` -------------------------------- ### Systemd unit ExecStart and environment for a named instance Source: https://github.com/altans/collie/blob/main/docs/deployment.md The unit written by `collie start` sets COLLIE_PORT, COLLIE_INSTANCE, COLLIE_PLUGIN_ROOT, HERDR_PLUGIN_CONFIG_DIR, and EnvironmentFile. `--instance ` on ExecStart distinguishes bridges for instances sharing one binary. ```ini ExecStart=/bin/collie _exec-bridge --instance Environment=COLLIE_PORT=8788 Environment=COLLIE_INSTANCE= Environment=COLLIE_PLUGIN_ROOT= Environment=HERDR_PLUGIN_CONFIG_DIR= EnvironmentFile=-/.env ``` -------------------------------- ### Run the server with Node and Bun Source: https://github.com/altans/collie/blob/main/examples/durable-harness/README.md Requires Node 24 and Bun 1.4 or later. The server prints 'desk listening on http://127.0.0.1:8420' and refuses to start without a COLLIE_TOKEN of 32 bytes or more. The --import flag is needed because the example reads the SDK from this clone. ```sh cd examples/durable-harness bun install --frozen-lockfile export COLLIE_TOKEN=$(openssl rand -hex 32) node --import ./tests/node/register.mjs server.ts ``` -------------------------------- ### Opt into prereleases on Herdr-managed install: herdr plugin install --ref Source: https://github.com/altans/collie/blob/main/docs/upgrading.md Installs a specific tag to opt into prereleases on a Herdr-managed install. The reinstall does not restart the service; a separate restart action is required. ```bash herdr plugin install AltanS/collie --ref --yes # a reinstall does not restart the service herdr plugin action invoke restart --plugin herdr.collie ``` -------------------------------- ### GET /hello Source: https://github.com/altans/collie/blob/main/bridge/mux/durable/WIRE.md The adapter calls this endpoint to discover the program's version range and to check if it is a durable program. The first call is made without the version header, and a later call with the version header is used to tell the program the negotiated version. ```APIDOC ## [GET] /hello ### Description The adapter calls this endpoint to discover the program's version range and to check if it is a durable program. The first call is made without the version header, and a later call with the version header is used to tell the program the negotiated version. ### Method GET ### Endpoint /hello ### Parameters #### Headers - **X-Collie-Session** (string) - Optional - The version header. On the first call, this header is omitted. On later calls, it must contain the negotiated version. If the header is present and invalid, the program returns a 409 response. ### Response #### Success Response (200) - **service** (string) - Required - Must be `"collie-durable"` to indicate a durable program. #### Error Response (409) - **code** (string) - Required - `"incompatible"` - **range** (object) - Required - The program's supported version range. - **min** (number) - Required - Minimum version. - **max** (number) - Required - Maximum version. - **refusal** (object) - Optional - A `VersionRefusal` object (see below) that names both ranges. SHOULD be included when the header is an integer. ### Request Example ``` GET /hello ``` ### Response Example ``` 200 OK { "service": "collie-durable" } ``` ``` 409 Conflict { "code": "incompatible", "range": { "min": 1, "max": 1 }, "refusal": { "code": "version", "collie": [1, 1], "program": [1, 1] } } ``` ``` -------------------------------- ### Pin a specific Collie version during install Source: https://github.com/altans/collie/blob/main/docs/install.md Install a specific version by setting COLLIE_TAG. Useful for pinning or fixing an existing install. ```bash curl -fsSL https://colliepwa.dev/install.sh | COLLIE_TAG=v1.0.0 sh ``` -------------------------------- ### Run the glyph key generator and tests Source: https://github.com/altans/collie/blob/main/docs/themes.md Initial commands to generate keys and run tests for a new icon set. Requires bun and bunx. ```sh bun scripts/glyph-keys.ts cd web && bunx vitest run --project dom src/components/icons src/lib/theme cd web && bun run build && ls dist/glyphs cd web && bun run design ``` -------------------------------- ### Install and check Codex hook status Source: https://github.com/altans/collie/blob/main/docs/multiplexers.md Install the Codex hook and verify its status. The status output shows the config file path and whether the hook is installed. ```console $ collie hooks install codex $ collie hooks status /home/you/.codex/config.toml: installed ``` -------------------------------- ### Delete custom task name before collie start Source: https://github.com/altans/collie/blob/main/docs/windows.md Run this PowerShell command to delete a task registered under a custom name before running `collie start`, otherwise two supervisors will start the bridge. ```powershell schtasks /Delete /TN "" /F ``` -------------------------------- ### Set up OpenRouter-compatible provider with Whisper model Source: https://github.com/altans/collie/blob/main/docs/voice-and-push.md Use this command to configure the speech engine with an OpenAI-compatible provider pointing to OpenRouter. The model `openai/whisper-large-v3-turbo` accepts all container formats (wav, ogg/opus, webm/opus, mp4/m4a AAC), unlike `mistralai/voxtral-small-24b-2507-stt` which rejects webm/opus and mp4/m4a AAC with 400 errors. Replace `` with your OpenRouter API key. ```bash bin/collie stt setup --provider openai-compatible \ --url https://openrouter.ai/api/v1 --model openai/whisper-large-v3-turbo --key ``` -------------------------------- ### Set up Whistle speech-to-text in the terminal Source: https://github.com/altans/collie/blob/main/docs/voice-and-push.md Use these commands to fetch the Whistle model, set it as the host engine, use an existing copy, remove it, or check status. `--host` asks before replacing a provider set up on purpose; `--yes` answers that question for non-interactive runs. `--remove` leaves other providers alone, and `collie stt off` removes the provider while keeping the model. ```console $ bin/collie stt whistle # fetch the model once $ bin/collie stt whistle --host # also make Whistle this host's engine $ bin/collie stt whistle --from # use a copy you already have, same hash check $ bin/collie stt whistle --remove # remove the model, and the host engine if it is Whistle $ bin/collie stt status # shows the model line ``` -------------------------------- ### Create AUR package with initial push Source: https://github.com/altans/collie/blob/main/packaging/aur/README.md Creates the AUR package by pushing it once by hand, because the AUR creates a repository on its first push and the job does not. Clones the remote, copies PKGBUILD and .SRCINFO, commits, and pushes. ```bash git clone ssh://aur@aur.archlinux.org/collie-bin.git /tmp/collie-bin cp packaging/aur/PKGBUILD packaging/aur/.SRCINFO /tmp/collie-bin/ cd /tmp/collie-bin && git add PKGBUILD .SRCINFO && git commit -m "Initial import" && git push ``` -------------------------------- ### Start Collie instance hc Source: https://github.com/altans/collie/blob/main/docs/multiplexers.md Starts the second Collie instance with the environment variable COLLIE_INSTANCE=hc. ```bash COLLIE_INSTANCE=hc collie start ``` -------------------------------- ### Common .env configuration for all non-Tailscale front doors Source: https://github.com/altans/collie/blob/main/docs/deployment.md Every front door except Tailscale uses these three lines in Collie's .env, then a restart. COLLIE_SKIP_SERVE=1 indicates you own the door, COLLIE_PUBLIC_HOSTS is the hostname the phone opens, and COLLIE_ALLOWED_ORIGINS is the same as an origin. The proxy or tunnel must run on the same host as Collie. ```bash COLLIE_SKIP_SERVE=1 # you own the door, not Collie COLLIE_PUBLIC_HOSTS=collie.example.com # the hostname the phone opens COLLIE_ALLOWED_ORIGINS=https://collie.example.com # the same, as an origin ``` -------------------------------- ### Initialize, develop, and propose a trick from an agent's pane Source: https://github.com/altans/collie/blob/main/docs/tricks-authoring.md In an agent's pane, init creates the folder in the agent's own work folder as a draft. Use these commands to create the draft, run it once, and propose it for approval. ```sh collie trick init my-trick collie trick dev ./my-trick collie trick propose ./my-trick ``` -------------------------------- ### Launch shell start script Source: https://github.com/altans/collie/blob/main/web/src/fixtures/panes/shell--omp-launch-window.txt Executes the shell start script from the collie-lab cache path. ```bash exec '~/.cache/collie-lab/omp-gang/15-crew-ext/state/harness/omp/start.sh' ``` -------------------------------- ### collie trick init Source: https://github.com/altans/collie/blob/main/docs/commands.md Initialize a trick. Optionally with shell integration and a target directory. ```APIDOC ## collie trick init ### Description Initialize a trick. Optionally with shell integration and a target directory. ### Method CLI ### Command `collie trick init [--sh] [--dir ] ` ### Parameters - `--sh` (flag) - Optional - Enable shell integration. - `--dir ` (string) - Optional - Target directory. - `` (string) - Required - The trick ID. ### Response No response body specified. ``` -------------------------------- ### Set up local-cli provider with command and args Source: https://github.com/altans/collie/blob/main/docs/voice-and-push.md Configures the local-cli provider to run an existing transcription command per recording. The command must be an absolute path or a name on PATH; relative paths are refused. The file path is always the last argument. ```bash bin/collie stt setup --provider local-cli \ --command /Applications/Muesli.app/Contents/MacOS/muesli-cli --args transcribe bin/collie stt test ``` -------------------------------- ### Install Claude hooks for core panes Source: https://github.com/altans/collie/blob/main/docs/multiplexers.md Installs the Claude hooks once, for History and Chat in the core's Claude panes. ```bash collie hooks install claude ``` -------------------------------- ### ASKING_TOOLS Source: https://github.com/altans/collie/blob/main/docs/durable-sdk.md Example vocabulary: the names of the support desk's two asking tools. ```APIDOC ## ASKING_TOOLS ### Description Example vocabulary: the names of the support desk's two asking tools. ``` -------------------------------- ### Example output of collie mux list Source: https://github.com/altans/collie/blob/main/docs/multiplexers.md Example table output showing multiplexers, presence, driven-by instance, and hints. ```text MUX PRESENT DRIVEN BY HINT herdr yes next (8788) herdr-core yes hc (8794) tern no - tmux yes tmux (8789) tuios no - zellij yes - COLLIE_INSTANCE= COLLIE_PORT= COLLIE_MUX=zellij collie start durable a program, not a terminal - ``` -------------------------------- ### Pause the collie service (Herdr-managed and standalone) Source: https://github.com/altans/collie/blob/main/docs/upgrading.md Stops the service. For Herdr-managed installs, invoke the stop action; for standalone installs, run bin/collie stop. ```bash herdr plugin action invoke stop --plugin herdr.collie # Herdr-managed bin/collie stop # standalone ``` -------------------------------- ### Run touch demo.txt with Bash tool Source: https://github.com/altans/collie/blob/main/web/src/fixtures/panes/claude--v2323-rc-on-rewind--w100.txt Command executed via the Bash tool to create an empty file named demo.txt in the project folder. The tool reported completion and the assistant confirmed the file now exists and is empty. ```bash touch demo.txt ```