DeckHand 1.5.1
A permanent local LLM assistant for a Linux desktop with a GPU. It runs all day, answers questions, works your files and your desktop apps with your consent, and steps aside when something else needs the graphics card. Three model lines on Ollama, a web page you can also open from your phone, a desktop app with a tray icon, dictation, speech, read-aloud and file translation. Bash + PHP + Free Pascal: no Python in the product.
Screenshot
The desktop app (GTK 3 + WebKit): line switchboard, mode bar, GPU and RAM readings in the sidebar, Models / Journal / Settings.
What it does
Three lines, one front door
Fast (small, always warm, also the router), General (reasoning, files and the computer, tool calling) and Language (multilingual chat and translation), plus automatic Vision when an image is attached. Auto routing, or pin a line for the whole chat. Presets per line, Load now / Unload, and model pulls from the catalog with progress.
It remembers
After each exchange the Fast line writes down lasting facts about you, and every exchange is kept with an embedding, so the next ask sees the facts and the most related earlier talks. Settings → Memory: on/off, list, add, delete, forget. Nothing leaves the PC.
Languages are packs
The page's languages are files, each with its own text direction and fonts; a few ship with it. Add any other language by name in Settings: your own model translates the page on the rig in a few minutes. A keyboard-layout fixer converts text typed in the wrong layout, learning your layouts from your typing.
Senses and the HIVE link, opt in
Settings has five switches, all off by default: read desktop notifications, watch the clipboard (only links are kept), watch shared folders for new files, timers, and the HIVE link that lets Claude or AI Cockpit hand it simple read-only tasks. Events are sorted by fixed rules, no model, and stay on the PC. Memory's Forget buttons now really clear, and server errors in chat are explained in plain words.
Awake, light, sleep
A daemon is the only process that talks to Ollama. It queues asks, streams answers and changes mode by itself: sleep while a heavier local workload (for example AI Cockpit sessions) owns the card, light while a cloud agent is active, awake otherwise. deckhand pause 60 forces an hour of sleep.
GPU guard
Every 15 s it samples VRAM, GPU load, temperature, Ollama's loaded models and the process list. When the card is hot, a known GPU app runs (image generation, Blender, Wine/Proton, OBS…), another program holds VRAM or RAM is low, heavy lines unload after 5 s idle and new asks go to Fast, with the reason shown and a "Run anyway" button. Automatic, ask first, or off.
43 tools with consent tiers
Files, clipboard, screenshot + vision, windows, launching apps, keys and typing, shell, timers, notes, web, mail, office documents, and macros with placeholders (a recorded sequence such as "send a message in a web messenger" runs with the contact and text filled in, asking once). Read-only tools run freely; writes inside the shared folders are free; everything else asks, as an approval card in the page or a dialog on the desktop. Typing, key presses, closing windows, shell and delete can never be set to Auto.
Shared folders, trash, taint guard
The agent sees only the folders you share, each Read only / Read and write / Full. Deleting moves to a trash, overwriting keeps the old copy. After it reads outside data (a file, a page, the clipboard) every change needs your approval for the rest of that request, so hidden instructions in a document cannot act by themselves.
Dictation and speech
The microphone button sends a clip to whisper.cpp on Vulkan (about 3 s per clip) with the speech model you pick: a large multilingual Whisper or a language-specialist model (for example ivrit.ai). Replies can be read aloud with Piper voices (one voice per language), espeak-ng as a fallback. deckhand say from the shell.
Read a file aloud
deckhand read book.epub speaks a text, PDF, EPUB, DOCX, ODT, HTML or Markdown file sentence by sentence, each sentence in its own language, the next one synthesised while the current one plays. Pause, resume, stop, and a saved position to continue later. Also from the page's Reader row and from the chat ("read me that file").
Translate files
deckhand translate handles .srt subtitles (time codes never sent), JSON language files (keys untouched) and gettext .po/.pot (empty strings only unless you say otherwise). Placeholders must come back identical, a bad batch is split and retried, leftovers keep the source and are listed in a report.
Page, app and phone
One HTML page with no libraries: English and other languages with full right-to-left layout, dark and light, colour-blind-safe state glyphs. Shown in a GTK 3 + WebKit desktop app whose tray icon is coloured by mode, or in any browser. Published to your own devices over Tailscale HTTPS it installs on a phone as a full-screen app with its own icon.
CLI and API
deckhand status | ask | pause | wake | token | url | ui | net | gateway | translate | say | read | version. The gateway is a token-guarded HTTP API with Server-Sent Events for streaming, so scripts and other apps can ask the same lines.
Requirements
- A Linux desktop (built and tested on Linux Mint; Debian and Ubuntu package names are printed by the installer) with systemd user services and an X11 session for the window and keyboard tools.
- Ollama on
127.0.0.1:11434and a GPU with enough VRAM for the models you choose. The defaults (a 4B always-warm model plus a 12B or 14B on demand) fit a 12 GB card; with less VRAM pick smaller models in the Models dialog. - Packages:
jq curl php-cli php-curl ffmpeg xdotool wmctrl xclip libnotify-bin zenity poppler-utils pandoc imagemagick. Optional: whisper.cpp with Vulkan for dictation, Piper voices for speech, Tailscale for phone access, Free Pascal to rebuild the desktop app.
Install and first run
bash deckhand-setup.sh # unpacks into ~/deckhand, installs the systemd user units and ~/.local/bin/deckhand
# keeps an existing config.sh (writes config.sh.new), never touches your data or token
# prints the apt packages it needs instead of running sudo itself
deckhand status # mode, daemon, gateway, loaded models
deckhand url # the page link with the token
deckhand ui # open the page (the app if built, else a browser app window)
deckhand ask "what is on my desktop?"
bash deckhand-setup.sh --no-services unpacks without enabling the services. Settings in ~/deckhand/config.sh: models per line, keep-alive, sleep rules, gateway bind, the folders the tools may use, GPU guard thresholds. Runtime data (queue, journal, approvals, token, log) lives under ~/scripts/cockpit_data/deckhand/.
Network and security
- Default bind is
127.0.0.1:8787: this PC only.deckhand netshows who can reach the page. deckhand net tailscalepublishes the page with a real certificate to the devices on your own tailnet and nowhere else; HTTPS is also what makes the phone's microphone work.deckhand net lanbinds to the Wi-Fi in plain HTTP (the token is the only lock).deckhand net localgoes back. Never port-forward the gateway on a router.- Every request needs the token. Consent for tools is enforced in the gateway, not in the page, and the shell tool refuses its deny list before it even asks.
Licence and credits
DeckHand is free to use. It is built on Ollama (MIT) for the language models, whisper.cpp (MIT) for dictation, the language-specialist speech model from ivrit.ai (Apache-2.0), Piper (MIT) for speech, with the voice "noa" under CC BY 4.0 (credit its author), espeak-ng (GPL-3.0) as the fallback voice, and llama.cpp under Ollama. The models (Gemma, Qwen and whatever you pull) keep their authors' licences. The desktop app is Free Pascal with GTK 3, WebKit2GTK and AppIndicator loaded at run time.
The installer is a readable self-extracting bash file: the whole source tree (daemon, tools, gateway, page, app source, tests) is inside it. tests/run.sh runs 101 checks against a fake Ollama without loading a real model.
Notes
- Honest limit: a 14B model takes about 10.5 GB on a 12 GB card, so with Ollama's default parallel setting Fast and General do not stay resident together; Ollama swaps them and the daemon re-warms Fast when enough VRAM is free. With
OLLAMA_NUM_PARALLEL=1they fit together. - Tool tests run on a separate virtual display so they never type into your real session.
- This is a personal assistant that got tidied up and documented, built for one desktop and shared as is. Read
config.shbefore you run it on yours.