TmuxAI:AI 驱动的非侵入式终端助手
TmuxAI 是一款 AI 驱动的非侵入式终端助手,它在你的 tmux 窗口中提供上下文感知的帮助。它能实时理解终端显示内容,无需特殊配置即可与现有 tmux 设置兼容。TmuxAI 支持通用终端,包括嵌套 shells、SSH 连接等。它提供 PREPARE 和 WATCH 模式,增强命令跟踪和主动监控。TmuxAI 开源,提供聊天和执行窗格演示,展示其在终端操作中的辅助能力。
无聊的反乌托邦开发 (BORING DYSTOPIA DEVELOPMENT)
AI 驱动的非侵入式终端助手
TmuxAI 是一款非侵入式的终端助手,它在你的 tmux 窗口中与你并肩工作。TmuxAI 的设计理念模仿了人类在终端上的协作方式。就像坐在你旁边的同事一样,TmuxAI 观察你的屏幕,理解屏幕上可见的内容,并据此提供帮助。
curl -fsSL https://get.tmuxai.dev | bash
$tmuxai find large files and cleanup some space
TmuxAI » I'll help you find large files taking up space in this directory.
TmuxAI » find . -type f -size +100M -exec du -h {} \; | sort -rh | head -5
Do you want to execute this command? [Y]es/No/Edit:
TmuxAI » Found several large files in node_modules and logs directories.
TmuxAI » rm -i ./logs/debug-*.log
Do you want to execute this command? [Y]es/No/Edit: _
01 功能特性
上下文感知的终端辅助
TmuxAI 实时读取并理解你的所有终端窗格中显示的内容,并根据你实际工作的内容提供智能帮助。
零配置设置
可以立即与你现有的 tmux 设置一起工作,无需特殊的 shells、封装器或终端模拟器。只需安装并运行即可。
通用终端兼容性
适用于嵌套的 shells、SSH 连接、数据库 CLIs、网络设备 shells (Cisco IOS, Juniper 等) 以及任何其他基于文本的终端界面。
PREPARE 模式
通过自定义的 shell 提示增强命令跟踪,提供精确的命令完成检测和退出代码感知,从而实现更准确的辅助。
WATCH 模式
将 TmuxAI 转换为一个主动的助手,它可以监控你的终端活动,并根据你指定的目标提供改进或解释。
开源
作为开源软件提供。免费使用 TmuxAI 并使其适应你的工作流程。
02 演示
CHAT PANE
TmuxAI»start docker container mysql and then connect to mysql shell.
First I'll start the container:
TmuxAI»docker run --name mysql_container -e MYSQL_ROOT_PASSWORD=password -d mysql:latest
Do you want to execute this command? [Y]es/No/Edit:
TmuxAI» Now I will connect to the mysql shell.
TmuxAI»docker exec -it mysql_container mysql -u root -p
Do you want to execute this command? [Y]es/No/Edit:
TmuxAI» I'll now send the password to the mysql shell.
TmuxAI»Sending keys: password
TmuxAI»Sending keys: Enter
TmuxAI» I've successfully connected to the MySQL shell.
EXEC PANE
$ docker run --name mysql_container -e MYSQL_ROOT_PASSWORD=password -d mysql:latest
6d76ba47b7f
$ docker exec -it mysql_container mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 9
Server version: 8.2.0 MySQL Community Server - GPL
Copyright (c) 2000, 2023, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
TmuxAI
© 2025 Boring Dystopia Development