gx

Control Ghostty terminal sessions and panes programmatically via scripting.

24|1|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/ashsidhu/gx-ghostty --skill gx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gx
Source: https://github.com/ashsidhu/gx-ghostty/tree/main
Command: npx skills add https://github.com/ashsidhu/gx-ghostty --skill gx

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a comprehensive interface for controlling Ghostty terminals, enabling users to automate window and pane management, send commands, and interact with Claude Code teammates efficiently.

Core Features & Use Cases

  • Terminal Automation: List, peek, send input, and manage multiple Ghostty panes without focus stealing.
  • Workflow Integration: Create new windows or splits, close sessions, and orchestrate tasks across multiple terminal sessions.
  • Use Case: Automate running a script in a new terminal pane, monitor its output, and respond with commands, all from a scripting environment.

Quick Start

Use the gx skill to list all open terminals, send a command to a specific session, and manage terminal layouts with simple commands.

Frequently Asked Questions about gx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate shell scripting and control multiple Ghostty terminal sessions on macOS?

Shell scripting automation in Ghostty is achieved by programmatically listing active panes, sending commands, and managing window splits without focus stealing. The Skill orchestrates complex multi-pane workflows and monitors session output directly from scripts.

Can I send commands to a specific terminal pane without switching focus in Ghostty?

Yes, sending commands to specific Ghostty panes without focus stealing is supported. The Skill provides a programmatic interface to peek at session output and dispatch commands to targeted terminal panes in the background.

Does Ghostty terminal automation work with Claude Code integration?

Ghostty terminal automation fully supports Claude Code integration by interacting with teammates across multiple sessions. You can orchestrate tasks, create new splits for script execution, and monitor workflow outputs seamlessly.

What are the requirements for programmatically managing Ghostty windows and splits?

Managing Ghostty windows and splits programmatically requires macOS, Ghostty version 1.3 or higher, and granted accessibility permissions. These allow the scripting interface to control terminal sessions and automate layouts.

What is the best way to monitor script execution output across multiple terminal panes?

Monitoring script execution across multiple panes is done by using the Skill to peek at session outputs and orchestrate task responses from a scripting environment. It runs scripts in new splits and reacts to terminal output dynamically.