HeadlinesBriefing favicon HeadlinesBriefing.com

gpty: Godot and Rust Multi-PTY Emulator

Hacker News •
×

gpty is a PTY foundation built on Godot and Rust, offering a tiling grid for panes like terminal, code, and file-tree, plus a concept capture engine and JSON-RPC/MCP control surface. AI agents can spawn panes, inject text, and observe output without scraping a TUI.

Key features include full DEC STD 070 via alacritty_terminal with 16/256/true color, scrollback regex search, and wrapped text selection. A public API provides JSON-RPC IPC socket, CLI, and MCP server. The concept engine uses RegEx triggers on PTY output to capture replies and route them into adjacent panes, never injecting input. Agent observability includes a reasoning pane and inspector pane for private Q&A.

Persistence auto-saves scrollback, settings, workspaces, and profiles to SQLite/JSON with full-text search. Cross-platform binaries are available for Linux, macOS, and Windows without needing a Godot or Rust toolchain. Most code was generated using LLMs, so it may contain unidiomatic patterns or bugs.

Component choices include portable-pty for cross-platform PTY, vte for ANSI parsing, tokio for async runtime, and alacritty_terminal for grid rendering. Standalone binaries are on GitHub Releases for Linux, macOS, and Windows. The CLI controls a running GUI over JSON-RPC IPC, with commands like gpty new-pane, inject, and layout save. An MCP server enables AI agents to control the workspace.