
gPTY
io.github.godot-pty由 GitHub 帳號 godot-pty 發布v0.8.0更新於 Nov 7, 2026
Spawn panes, inject input and read output in a tiling terminal workspace
概覽
讓助理操控本機平鋪終端機工作區:開新窗格、注入輸入、讀取輸出、執行指令並檢索 Markdown 知識庫。
- 可以做什麼
- 開新、列出、聚焦與關閉終端機窗格,儲存與載入具名版面配置。
- 對窗格注入文字,讀取畫面與回捲內容,查看窗格狀態。
- 在新窗格執行指令並等待輸出符合樣式,或向帶標籤的窗格廣播。
- 搜尋並讀取 Markdown wiki 儲存庫,並對庫內結果加權。
- 管理 GUI 守護程序與概念觸發器,查詢版本資訊。
- 適用情境
- 適合需要助理在使用者桌面的真實 shell 工作階段中作業的情況,例如執行建置或測試、觀察輸出、協調多個終端機,而不必抓取終端機介面。也適合讀取本機 Markdown 知識庫。
- 執行需求
- 需在本機安裝 gpty CLI(cargo install gpty 需要 Rust 工具鏈與 C 編譯器),MCP 用戶端透過 stdio 啟動 gpty mcp。多數指令需要已執行的 gPTY GUI,經由 Unix socket(GPTY_SOCKET 或預設執行階段路徑)連線。僅限桌面端;未宣告驗證機制。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 gPTY,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
gPTY - a desktop workspace built on Rust and Godot. It provides a tiling grid for panes (terminals, code viewers, file trees, wikis, media, and more), a concept capture engine, and a JSON-RPC/MCP control surface so AI agents and automation tools can spawn panes, inject text, and observe output on terminals without scraping a TUI. Every pane can be driven from a shell, a script, or an agent over one public API. It is a side project in active development and a vast majority of this codebase, including most of the Godot UI layout and the Rust (gpty-core) GDExtension bridge, was generated using various LLMs under human review; and as such, the underlying code may contain unidiomatic patterns and/or bugs. It does not follow the core UNIX philosophy very well, as in, it does aim to do several things; though it does also intend to do them all well.
Features
Panes
Watch: the pane grid split and reflow
[Two more shells split in beside the first, then one closes and the grid reflows]
- Tiling grid - split, resize, and rearrange independent shell sessions; save and reload named layouts, workspaces (tab sets), and profiles.
- Emulation -
alacritty_terminalgrid with16/256/true color, scrollback with regex search, and wrapped text selection. - Memory - scrollback, settings, and workspaces restore on restart, with full-text search across each pane's history.
- File Tree - Native Godot OS file tree browser.
- Code Viewer - Text and Markdown rendered in a pane.
- Wiki - a vault of plain Markdown notes with full-text search, a live-preview editor,
[[wikilinks]], backlinks, and a link graph, reopened where you left off. The shipped Knowledge Base profile opens the bundled wiki inside a release. - Media - play local audio and video in a pane through a pinned, minimal FFmpeg backend (v0.7).
cli_view- stream any command's output into a pane, so a plugin can add UI without a Godot SDK.- Interface - one design system across every pane, overlay and dialog: a dark theme and a light theme that follows the desktop, a UI scale, keyboard rings on the pane chrome, the Wiki pane and the vault graph, and accessible names for screen readers (v0.8).
Watch: the wiki vault, its link graph and a CLI search
[The wiki pane, the link graph, and a vault search over the same notes]
Watch: audio and video in a pane
Watch: a command streamed into its own pane
Agents & Automation
Watch: tagged panes, one broadcast and agent state badges
[Two tagged panes run the same broadcast, then declare working and failed]
Watch: a concept routing output into the adjacent pane
- One API, three doors - the same operations are available as a JSON-RPC socket, the
gptyCLI, and an MCP server: spawn panes, inject input, read output, run a command and wait for a pattern, broadcast to tagged panes. The server is listed in the official MCP registry asio.github.godot-pty/gpty. - Agent state badges - an agent declares
workingorneeds attentionfrom its own pane and the tab shows it. Display only. - Observability panes - Reasoning passively shows documented agent lifecycle events (OMP today, adapter-neutral vocabulary); Inspector is a private, tool-free Q&A session. gPTY never orchestrates agent state.
- Concepts - regex triggers on terminal output capture the reply and route it into an adjacent pane. Write your own in Settings, by hand or in the visual graph editor. Concepts display only; they never type into a shell.
Limited Extensibility
- Plugins - manifest-based, reviewed in the GUI before install, with a public registry.
Status
- Documentation & Blogs: https://gpty.dev
- Releases ship
SHA256SUMSand build-provenance attestations; the control socket is owner-only. - The repository tracks OpenSSF recommendations; registered as OpenSSF Project 16201, scorecard: securityscorecards.dev.
- Release assets carry SLSA Build Level 2 provenance.
- The project has been added to the Linux Foundation & health will be tracked via LFX Insights.
Installation & Usage
Standalone binaries (no Godot install required) are published on GitHub Releases for Linux, macOS, and Windows.
Every release also bundles the gPTY knowledge base; the Knowledge Base profile in the sidebar opens the bundled wiki from your user data.
In the file names, <version> is the release tag you downloaded (for example v0.7.0).
Verifying releases
Each release publishes a SHA256SUMS listing every asset. Check the file you downloaded before running it:
Checksums catch a corrupted or tampered download in transit. Each asset also carries a build-provenance attestation binding it to the workflow run that built it:
The binaries are not code-signed (see SECURITY.md).
CLI
The gpty binary controls a running GUI over JSON-RPC IPC, and every release bundle ships it next to the GUI. It is also on crates.io - cargo install gpty puts the same binary on PATH (a Rust toolchain and a C compiler are required, for its bundled SQLite), and that copy is what an MCP client launches for gpty mcp. The CLI starts one on demand only for commands a fresh workspace can satisfy - new-pane and layout load - while gpty daemon start starts one explicitly and --no-daemon never starts one. Every other command needs a workspace that already exists, so it fails with no gpty GUI is running (start one with \gpty daemon start`) instead of opening a window it cannot use. Building from source (cargo build -p gpty, or cargo build --workspace) is only needed when working on the CLI itself; if you install it that way, **reinstall it after a version bump** (cargo install --path crates/gpty-cli --force). A stale gptyearlier onPATH` shadows the release's CLI and fails opaquely (a subcommand it lacks dies in clap before any IPC), which is why the CLI warns once, on stderr, when it sees that the running GUI's version or IPC protocol differs from its own - the warning names both sides, but the reinstall is the fix.
Once the GUI is running (launched from Godot or a release binary), the CLI connects over a Unix socket ($XDG_RUNTIME_DIR/gpty.sock on Linux, or GPTY_SOCKET env var):
See gpty --help for all subcommands and flags.
MCP integration
gpty ships an MCP (Model Context Protocol) server so AI agents and coding harnesses can control the workspace. The repo-root mcp.json declares it for auto-discovery:
- Direct: run
gpty mcpover stdio - exposes a tool per CLI subcommand (new-pane,list-panes,kill-pane,focus-pane,inject,pane-read,pane-status,pane-run,pane-wait,broadcast,vault-search,vault-read,vault-weight,layout-*,daemon-*,concept-*,version). - Manifest:
gpty schema --format mcpprints the MCP tool manifest (JSON Schema, works without a running GUI) for hand-off to agent configurations.
Tool schemas are generated from the same clap definitions as the CLI (crates/gpty-cli/src/commands/schema.rs), so they cannot drift from gpty --help.
Roadmap
See ROADMAP.md for what is released, in progress, and planned, one page per release chain.
Security
See SECURITY.md for the threat model, reporting process, and what gpty does not defend against. Implementation rules - the Concept Engine's ReDoS stance, PTY environment sanitization, IPC hardening, OSC 52 restrictions - live in the security rules.
Contributing
See CONTRIBUTING.md for setup instructions, build commands, testing, code style, and the pull request process. Project roles, access and succession are in MAINTAINERS.md and GOVERNANCE.md. Participation is covered by CODE_OF_CONDUCT.md; where to ask for help is in SUPPORT.md.
Changelog
See CHANGELOG.md for the complete versioned changes and history.
License
gPTY is free software, licensed under the GNU General Public License, version 3 or later - see LICENSE for the full text.
LICENSE-EXCEPTIONS.md adds two permissions under section 7 of that license, so the ecosystem side stays permissive:
- Plugins, extensions, and adapters are not required to be GPLv3. Anything that works with gPTY over its CLI, JSON-RPC, MCP, or event interfaces - including native pane types - may be licensed under Apache-2.0, MIT, or any other terms you choose, and shipped alongside gPTY without obligation.
- Configuration and data files carry no copyleft. Profiles, workspaces, layouts, concepts, and settings are yours to license however you like; the default
*.jsonfiles shipped with gPTY are Apache-2.0.
Copyright (C) 2026 Neil Pathare.
gPTY is distributed in the hope that it will be useful, but absolutely without any warranty and assumes no liability for any usage by end-users; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
來源:README.md,提交 fccb971
工具
0版本歷史
4- v0.8.0最新Nov 7, 2026
- v0.7.2Nov 3, 2026
- v0.7.1Nov 1, 2026
- v0.7.0Oct 26, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分