mirror of
https://github.com/Kynde/dais.git
synced 2026-10-20 08:32:28 +02:00
v1.3.0
Three improvements to the cockpit, all about typing into the right window. Target labels: `target list` now reports what is actually running in each tmux target — pane_current_command and pane_current_path — so the header reads `app:claude.0 claude ~/dais` instead of a bare pane spec. One list-panes -a call (daemon/pane-details) serves every slot and doubles as the liveness answer, which is cheaper than the per-slot pane-exists? calls it replaces (those stay as the tmux-down fallback). Rows are indexed under both the window-NAME and window-INDEX spec forms, because a stored target may use either. A :focus target can't be introspected (no kdotool here), so it stays bare. dais-top elides the cwd middle-first and then drops it, and the command after it, as the header runs out of columns — the ear/armed/live block is never the part pushed off screen. Keyboard lock: dais-top is a single-key control surface, so typing into it by mistake flips real state. `k` ignores every key (each swallowed one is acknowledged in the footer); Ctrl-] or F12 always leaves a lock, and while locked any other key just shows the way out. `K` cycles an idle auto-lock (off -> 15 -> 30 -> 60s, persisted next to the theme file) — off by default, and it never fires while an overlay is open. Passthrough: `p` forwards keys to the active target instead of dropping them, so the window you typed into by accident behaves like the pane you meant. Printable runs go as text, the rest as chords (Enter, Tab, S-Tab, arrows, C-<letter>, M-<char>). It refuses a :focus target and falls back to keylock, re-checking per chunk since voice can move the active slot mid-pass: ydotool types into whatever has focus, which during passthrough is dais-top itself — every key would re-enter its own stdin. New `send` op carries it: raw delivery to the active target, router bypassed, exactly one of text or keys, chords still executor-validated so an unknown one is refused rather than typed. Honors dry-run like any other delivery. Deliberately NOT recorded — an event line per keystroke would turn events/*.jsonl into a keylogger transcript. Also exposed as `dais-ctl send [--keys]`, with zsh completion. executor: the bridge needs unbracketed paste (a single keystroke must look like typing, not a paste per character), so tmux-type-plan takes a bracketed? flag; dictation stays bracketed as one deliberate paste, and text still travels on stdin either way. And a latent bug it turned up: send-keys "S-Tab" exits 0 but delivers a PLAIN Tab — shift-tab is its own tmux key name, BTab. That silently broke shift-tab, which is how Claude Code cycles permission modes. ai/ records the tmux traps (BTab, per-pane info needs list-panes -a, the bracketing, the focus feedback loop); tools/README.md documents the keys.
dais — Do As I Say
Personal Linux voice control for controlling TUI coding agents for Linux.
Dais transcribes locally and routes each uttterance as either a command or dictation. The output is delivered to a tmux pane or the focused app.
The core idea here is that the agent receiving the voice input can clean up the transcript. All that's needed is to inform the agent about it, and for this there's the brief prompt for that.
mic · VAD · transcription
|
daemon --> commands ---\
| |
\------> dictation -------> tmux paste / ydotool
Primary motivation: hands-free coding in the car
- dais voice controls an agent session
- airc Tmux remote control supporting remote viewing in a browser (e.g. Tesla) and has Android app for also controlling.
Deprecated
- swyd First phase tmux viewer written for Tesla's browser. The features were merged into airc, and swyd is now deprecated.
Run
systemctl --user start dais # unit: tools/dais.service (enabled here)
tools/dais-ctl status
tools/dais-vad # open mic; say "voice off" to stop
See tools/README.md for the tools and the voice-command reference.
Reading order
FABLE_PLAN.md— design decisions with rationale, milestone status.tools/README.md— usage, examples, voice commands.BRIEF.md— the notice a driven agent should read (dais-ctl brief).AGENTS.md+ai/— for coding agents working on this repo.GOAL.md,CODEX_PLAN.md— original goal notes and an alternative plan.
Languages
Clojure
69.4%
JavaScript
22.4%
Python
7.9%
Shell
0.3%
