← 插件

Ghosty Terminal

Aditya Borakati9次安装

GPU-accelerated terminal for Paseo powered by ghostty-webgpu (libghostty-vt WASM) with WebGPU/WebGL2 rendering, font ligatures, Kitty Graphics, file links, regex find, and MCP agent tools.

$ paseo plugin add aborakati/ghosty-terminal
Ghosty Terminal 截图 1Ghosty Terminal 截图 2Ghosty Terminal 截图 3Ghosty Terminal 截图 4

该插件的概览尚未翻译为你的语言,因此以英文显示。

Ghosty Terminal adds a GPU-accelerated terminal panel to Paseo powered by ghostty-webgpu (libghostty-vt compiled to WebAssembly) over a daemon-hosted node-pty session. It renders with WebGPU (with automatic fallback to WebGL2 and Canvas 2D SIMD), supports OpenType font ligatures, Nerd Font icon fallbacks, inline Kitty Graphics images, regex find, clickable file links, live Paseo theme sync, notifications, and MCP agent tools.

Requires Paseo 0.15.0-beta.2 or later (Paseo 0.18.3 or later for opening file links inside Paseo panes, auto-open, and tab-close cleanup). Works on the Paseo desktop and web apps; mobile clients show a notice because the terminal canvas runs in the browser engine.

Setup and supported systems

  • The daemon host needs npm on its command path. Installation runs npm ci against the committed lockfile, rebuilds node-pty, and copies the ghostty-webgpu WebAssembly files into a generated client module so the terminal never downloads code at runtime.
  • Windows (x64, arm64) and macOS (x64, arm64) use the prebuilt node-pty binaries. Linux compiles node-pty during installation and needs Python 3, make, and a C++ compiler.
  • The client needs WebGPU, WebGL2, or Canvas 2D. The renderer picks the first one available.

Features

  • GPU-accelerated rendering: Uses ghostty-webgpu (libghostty-vt WASM) with WebGPU, WebGL2, and Canvas 2D fallback. All WASM assets are inlined at install time with zero external network requests.
  • Fonts, ligatures, and icons: Pick any installed monospace or Nerd Font (or enter a custom CSS font stack), pair it with an automatic or explicit Nerd Font icon fallback, adjust font size (10-24 px) and line height (1.0-1.5), and toggle OpenType programming ligatures (->, =>, !==, ===, <=, >=, ::, |>). Changes apply live without restarting the shell.
  • Kitty Graphics Protocol: Displays inline PNG, RGB, and RGBA images (a=q, a=t, a=T, a=p, a=d) anchored to terminal scrollback.
  • Live theme sync: Follows Paseo's light and dark themes automatically without resetting the running shell.
  • Regex find and clickable links: Press Ctrl+F / Cmd+F for case-sensitive or regular-expression search across the viewport and scrollback. Ctrl+Click / Cmd+Click opens URLs or resolves relative file paths (src/app.ts:42:5) using OSC 7 working-directory tracking (Shift/Alt+Click opens beside).
  • Live status and notifications: Shows active Ghostty terminals as a sidebar workspace badge, tracks dynamic titles (OSC 0/2, active directory, agent name), marks background tab activity, and forwards OSC 9 / OSC 99 / OSC 777 desktop alerts plus non-zero or long-running (OSC 133) command completions to Paseo notifications.
  • Agent integration: Exposes five MCP tools (ghostty_list_terminals, ghostty_create_terminal, ghostty_send_keys, ghostty_capture_terminal, ghostty_kill_terminal) to interactive agent sessions, registers Ghostty Terminal as a composer attachment source, and adds Insert Ghostty terminal output to the agent Command Center.
  • Image paste and file drop: Paste a screenshot or drop files onto the terminal to insert their saved paths at the prompt (see Data and access for where the files live and when they are deleted).
  • Opt-in Paseo Terminal takeover: With Open Paseo's Terminal button as Ghostty on (off by default), terminals started from Paseo itself (source client) open as Ghostty tabs when a desktop or web client has that workspace on screen. Agent, script, and worktree terminals, requests with PASEO_GHOSTTY_BYPASS=1, and everything else stay Paseo's. Paseo's exited terminal tab is closed when the daemon can identify it; otherwise it stays until you close it.

Opening and configuring

  • Open a terminal from the workspace header button, the workspace new-tab menu, the Command Center (New Ghostty terminal), or /ghostty in chat.
  • Configure fonts, icon fallback, ligatures, rendering (immediate by default for the lowest typing latency, or frame-synced), default shell (auto-detected PowerShell 7, Windows PowerShell, cmd, Git Bash, WSL, Nushell, zsh, bash, fish, or a custom command), extra arguments, notifications, and agent tool access under Settings -> Terminal.

Shell persistence and cleanup

  • Shells run on the Paseo daemon host with a 2 MB scrollback ring buffer, so switching workspaces or reloading Paseo re-attaches and replays scrollback without killing the process.
  • Closing a Ghostty tab (on Paseo 0.18.3+) terminates its PTY immediately. Archiving a workspace terminates all Ghostty sessions in that workspace. Detached idle sessions are swept after 6 hours.

Data and access

  • Shells run on the daemon host as the user running Paseo, with that user's environment and file access.
  • Terminal output stays between the daemon and your Paseo clients. The plugin makes no network requests of its own.
  • When agent tools are on (Settings -> Terminal), interactive agents can list terminals, start shells, send keystrokes, and read terminal output. Output an agent reads, and output you attach from the composer, goes to that agent's provider like any other prompt content. Turn the setting off to remove the tools.
  • Font discovery reads the installed font list on the daemon host (Windows registry, fc-list, or the macOS font folders) and probes fonts in the client. It does not send the list anywhere else.
  • Terminal takeover (opt-in): When on, Paseo runs the terminal it was asked for through a short Node script on the daemon host. The script talks only to a private local endpoint owned by the plugin (a Windows named pipe, or a unix socket in an owner-only temp directory) and presents a single-use random token that expires after 30 seconds. The script and the endpoint carry no terminal output.
  • Pasted images and dropped files: Paste an image (or any file) from the clipboard, or drag files onto the terminal, and the plugin uploads them to the daemon host and types their absolute paths at the prompt, quoted for the host's shell (PowerShell and cmd on Windows, POSIX shells elsewhere). Agent CLIs such as Claude Code and Codex read the file from that path. Up to 8 files per paste or drop, 24 MiB per file. Plain text paste is unchanged. The files stay on the daemon host in a private temporary directory (paseo-ghostty-attachments-<random> under the system temp folder, owner-only permissions). The plugin deletes each file 30 minutes after upload, deletes the oldest files first once the folder passes 128 MiB, and deletes the whole folder when the plugin stops or reloads. A daemon crash can leave the folder behind; the next upload removes folders idle for more than an hour. The files never leave the daemon host unless you or an agent send them elsewhere.