一款名为 hrdx 的实验性终端复用器在 Hacker News 上发布,该项目使用 Go 语言编写,主打极简与轻量,专为 AI Agent 时代设计 1。hrdx 支持将项目作为工作区,并允许每个工作区包含多个标签页,用户可以在真实的 PTY 终端窗格中并行运行 Codex CLI、Claude Code、pi、zot 等 AI Agent 或普通 shell 1。为便于工具识别,hrdx 提供环境变量 HRDX=1 以供检测其运行环境,并支持 macOS、Linux 以及 Windows 10 1809+ 和 Windows 11 操作系统,其中 Windows 平台通过 ConPTY 实现 1。
在交互与功能细节方面,hrdx 采用类似 tmux 的 ctrl+b 作为前缀键,并提供 JSON socket API 以便脚本和编辑器控制运行中的会话 1。该工具的会话由轻量级后台进程(session holder)保持,用户退出后重新打开即可恢复 1。其状态文件的默认存储路径因系统而异:macOS 为 ~/Library/Application Support/hrdx/state.json,Linux 为 $XDG_CONFIG_HOME/hrdx/state.json,Windows 为 %AppData%/hrdx/state.json 1。此外,hrdx 项目采用 MIT 许可证 1。
A new experimental and minimalist terminal multiplexer named hrdx has been introduced on Hacker News, designed specifically for the era of AI agents 1. Written in Go, this lightweight tool allows users to treat projects as workspaces with multiple tabs per workspace 1. It supports running AI agents such as Codex CLI, Claude Code, pi, and zot, alongside regular shells, in parallel within real PTY terminal panes 1.
The multiplexer utilizes ctrl+b as a tmux-style prefix key and enables tools to detect if they are running inside hrdx via the HRDX=1 environment variable 1. It is compatible with macOS, Linux, and Windows 10 1809+ and 11 via ConPTY 1. Sessions are maintained by a lightweight background process called a session holder, allowing users to resume them after exiting and reopening the application 1. Additionally, hrdx provides a JSON socket API for scripts and editors to control running sessions, along with features like real terminal sessions, sidebar status indicators, custom agent harness, and theme and notification configurations 1. The default state file paths are set to ~/Library/Application Support/hrdx/state.json on macOS, $XDG_CONFIG_HOME/hrdx/state.json on Linux, and %AppData%/hrdx/state.json on Windows 1. The project is released under the MIT license 1.
评论
还没有评论,欢迎留下第一条。