alvinunreal/tmuxai
AI-Powered, Non-Intrusive Terminal Assistant
What it solves
TmuxAI provides an intelligent, AI-powered pair programmer that lives directly inside your tmux terminal sessions. It solves the problem of needing to switch between your terminal and external AI tools by observing your existing terminal panes, understanding your context, and executing commands on your behalf without interrupting your workflow.
How it works
TmuxAI operates within a single tmux window using a dedicated chat pane for communication and an execution pane for running commands. It functions in three primary ways:
- Observe Mode: It reads the content of your visible panes to understand your current task, shell, and operating system, then suggests commands for you to approve.
- Prepare Mode: It customizes your shell prompt to track command execution and exit codes more precisely, removing the need for fixed wait times.
- Watch Mode: It proactively monitors your terminal activity to provide suggestions for efficiency, security, or error detection based on your goals.
Who it’s for
It is for developers and system administrators who spend their time in tmux and want an AI assistant that understands their terminal environment, respects their existing workflow, and can execute tasks directly within their workspace.
Highlights
- Context-Aware: Automatically captures context from all open tmux panes to inform its responses.
- Safety-First: Commands are checked against whitelist/blacklist patterns and require user confirmation before execution.
- Extensible: Supports custom Knowledge Bases (markdown files) and Skills (metadata-rich instructions) to teach the AI project-specific workflows.
- Context Management: Includes a "squashing" feature to summarize chat history and manage token usage efficiently.
- Flexible Input: Supports multiline input via your preferred external text editor for complex prompts.
Related
- Project
- Project
- Project
- Project
- Project