tm
A fast, offline, deterministic natural-language interface for tmux. Type what you mean, get the tmux command.

The challenge.
tmux is indispensable for remote engineering, but arcane keybindings and syntax combinations lead to constant tab switching and command lookups.
The solution.
Engineered a sub-millisecond, dependency-free Python CLI tool that parses natural language intent into verified tmux commands without cloud APIs or probabilistic hallucinations.
Under the hood.
Deterministic grammar tokenizer using regex patterns, synonym normalization tables, and Levenshtein distance matching for commands and pane IDs.
The implementation.
tm translates plain English into tmux commands using regular expressions, a tokenizer, a synonym map, and fuzzy matching. It parses in under a millisecond (7.6 microseconds warm parse+build time), runs entirely offline with zero external dependencies, and asks for clarification instead of guessing. A safer, deterministic alternative to LLMs for terminal multiplexing.
Engineering highlights.
- Zero external dependencies: runs anywhere Python 3 is installed without pip install.
- Sub-millisecond latency: instantaneous execution without network round trips.
- Safe interactive mode: clarifies ambiguous commands instead of executing unpredictable shell actions.