8000 GitHub - hongnoul/gwae: Infinite scroll terminal multiplexer and agent orchestrator for macOS · GitHub
[go: up one dir, main page]

Skip to content
hongnoulPublic

Repository files navigation

gwae

gwae

MIT license total GitHub release downloads GitHub stars latest stable release

gwae demo: agents on an infinite no-shrink strip grid

Tested with Ghostty and Jcode on MacBook Pro M4

Vision: the most faithful infinite-scrolling desktop for parallel coding agents on a Mac. No VM required.

Install

Developed and tested on macOS only. Contributions for Windows are welcome.

Linux: niri is the scrolling window manager that inspired gwae.

curl -fsSL https://hongnoul.github.io/gwae/install.sh | bash

or with Homebrew:

brew install hongnoul/tap/gwae

Features

Official docs are still WIP.

Feature Default What it does
Heads-up display hold ⌥ A map of every pane, shown while ⌥ is held; click a tile to focus it
Explorer ⌥+d Runs your file explorer (yazi by default, [empty_strip] command) beside focus; opening a file spawns the agent in its directory. Empty strips run it automatically
Spawn command gwae spawn -- <cmd> Opens a shell pane beside focus in the running gwae and types the command into it
Drag to copy drag Left-drag selects and copies on release via pbcopy with OSC 52 fallback for remote sessions

When to use gwae (and how it compares vs tmux and herdr): running several CLI coding agents at once, tmux panes shrinking into slivers, or wanting niri's scrolling layout in the terminal.

Keybindings

Every chord is reprogrammable from ~/.config/gwae/gwae.toml. Changes apply live.

[keys]
"alt+n" = "new_column"
"alt+enter" = "unbind"
"alt+u" = "scroll_up:10"
"ctrl+alt+x" = "kill_pane"

[option_glyphs]
"ħ" = "alt+h"

Keys are ctrl, alt (or option), shift plus a character or enter, tab, esc, backspace, up, down, left, right, pageup, pagedown, home, end, delete, insert, space, f1 to f24. Commands: focus_left/down/up/right, move_pane_left/down/up/right, spawn_agent, split_below, new_column, cycle_width, toggle_full_width, kill_pane, quit, explore, toggle_help, scroll_up[:N], scroll_down[:N], and unbind to hand the chord back to the pane. [option_glyphs] maps characters macOS types for Option chords (US layout built in) to a key, so other layouts work. gwae keys prints the effective keymap and gwae doctor reports bad entries.

Interactive tutorial

⌥ + / opens the cheat sheet.

Vim-style movement, like a tiling WM: ⌥ + h left · ⌥ + j down · ⌥ + k up · ⌥ + l right

Paste this into an agent pane:

You are teaching me gwae, a scrolling terminal multiplexer. I am inside a
gwae pane talking to you. I am a beginner: assume I know nothing beyond
typing in a terminal. Walk me through each step below one at a time. For
each step, tell me exactly what to press, what I should see, and how to
confirm it worked. Wait for my confirmation before moving on. If something
does not work, stop and help me fix it before continuing. Do not skip
ahead and do not dump all steps at once.

0. Fix the modifier key first. Nothing below works without this. Have me
press ⌥+/ . If the cheat sheet opens, it works; press Esc to close it.
If a special character types instead, tell me to set Option to act as
Meta in my terminal (Terminal.app: Preferences, Profiles, Keyboard, Use
Option as Meta Key; iTerm2, Ghostty, WezTerm have the equivalent), then
retry. Do not proceed until ⌥+/ opens the cheat sheet.
1. Open a pane: have me press ⌥+Enter once. Confirm a new shell pane
appears to the right.
2. Move: have me press ⌥+h and ⌥+l to move between the two panes.
Confirm the focus ring follows. Then have me press ⌥+k and ⌥+j.
Mention click-to-focus only after these work.
3. Open more: have me press ⌥+Enter until there are 6 panes. If I get
lost, remind me ⌥+h/l moves between panes. Point out the viewport
scrolling right while every pane keeps its width.
4. Reshape: have me press ⌥+r to cycle the focused column's width, then
⌥+b to split below. Mention ⌥+f
(full width) and ⌥+Shift+h/j/k/l (move pane in all four directions)
only after these work.
5. Agents: have me press ⌥+; to spawn an agent (first press asks for the
command and saves it as `agent`). Confirm Cmd+V pastes text into the pane
(native terminal paste). Mention ⌥+d (explorer, spawns the agent where you open a file) and gwae run
"claude" (CLI start) after.
6. History: have me press ⌥ plus the up and down arrows to scroll the
focused pane's history (add Shift for a bigger jump). Then have me
press ⌃+⇧+K and ⌃+⇧+J for the three-line transcript scroll. Left and right arrows
always type into the pane, never scroll. Confirm history moves without
moving focus.
7. Pane map: have me hold ⌥ for the dashboard, a map of every pane.
Mention clicking a tile focuses it.
8. Help and quit: show ⌥+/ (cheat sheet), ⌥+q (close pane),
⌥+Shift+q (quit; last pane exiting quits gwae).
9. Health: only now, have me type exit in panes until one shell is left,
then run gwae doctor in it and confirm exit 0. If anything fails, run
gwae init. Mention ~/.config/gwae/gwae.toml (all keys optional,
live-reloads) only here, at the end.

Development

git clone https://github.com/hongnoul/gwae
cd gwae
cargo build
cargo test --workspace

Benchmark

Metric Method gwae herdr 0.9.1 tmux 3.7c
Echo p50 Keystroke to visible echo in a real PTY harness, median 0.34 ms 0.48–0.50 ms 0.36–0.37 ms
Echo p90 Keystroke to visible echo in a real PTY harness, 90th pct 0.36–0.38 ms 0.54 ms 0.42–0.43 ms
Spawn p50 New pane request to first painted frame, median 0.48–0.52 ms 0.63–0.70 ms 4.1–4.7 ms

Agent instructions

if you are an ai agent driving gwae, read docs/agents.md before spawning panes.

Releases

Packages

Contributors

Languages

0