Skip to content
narmaPublic
forked from yeroo/agwinterm

About

A native Windows terminal built for AI coding agents — a homage/port of umputun's agterm.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

 
 

Latest commit

 

History

703 Commits

Folders and files

Repository files navigation

Agwinterm — narma's Windows terminal for AI coding agents

CI Release Downloads License: MIT

Releases · User guide · Control API

agwinterm is a native Windows terminal with a full control API, in a fast, custom-drawn Win32 + Direct2D shell. Shells are organized into workspaces, each holding the sessions for one project or context, and everything it holds is an object a script can address. The bundled agwintermctl creates sessions and types into them, reads a pane's text back, runs a program in an overlay and returns its exit status, sets a session's status, opens a dashboard, moves windows, and reads all of that state back out over a local named pipe.

This is narma's independently maintained fork of Boris Kudriashov's Windows agwinterm. Its workspace and control model grew out of umputun's agterm for macOS.

What the fork adds

  • Reconnect to running shells. The Windows host keeps a hosted shell and its Ghostty terminal state alive across GUI restarts. Session ownership
  • Work across Windows, WSL and macOS. Run the CLI and agent hooks inside a WSL distribution, opt into recoverable Linux sessions with ZMX, attach to a running agterm session over SSH, or expose an owned WSL terminal to a Mac viewer. WSL setup
  • Give scripts a richer interface. Wait for agent status changes, ask a question with native controls, run a program over one pane, or display a local HTML page using WebView2. Control API · Cookbook compatibility
  • Navigate long-running work. Filter the sidebar, reopen recently closed work across windows and zoom a focused pane while its split peer keeps running. Working sets · Recently closed work

See the upstream comparison for the baseline, architecture and verification procedures.

Terminal features

  • Workspaces and sessions. Sessions are grouped under named workspaces in a sidebar with drag-reorder, flags, unread badges, multi-select, and reopen for closed sessions and workspaces. A live dashboard shows a grid of sessions at once.
  • Control API and CLI. agwintermctl drives almost everything over a named pipe, with full read-back: the tree with split ratios and pane ids, window state, session output, a pane's caret column, the age of a status.
  • Splits, scratch, quick terminal and overlays. Split a session side by side or stacked, open a scratch or a detached quick terminal, run a program in an overlay over a session or over one pane of it, or show a passive HUD.
  • Agent status and skill. Agents report their state through hooks or the API as a colored dot and a title-bar bell. Opt-in installers add the agent skill, Claude Code / Codex / Devin status hooks, shell integration and the CLI on PATH.
  • Claude Code binding and auto-resume. A claude wrapper ties each conversation to its pane, so a restart re-launches every bound pane and the conversation comes back.
  • Restore and session ownership. Hosted shells run in a separate Ghostty owner process and survive a UI quit or crash. When upgrading from the previous Windows host, setup checkpoints the open windows, saves a backup and closes the old shells. The new version restores the layout, configured commands and history saved with restore-buffer enabled.
  • A real Windows terminal. Default Terminal Application registration, Kitty graphics, the Kitty keyboard protocol, ligatures, elevated and de-elevated sessions side by side, and agterm's menus — File, View, Navigate, Help — as a menu bar in the title bar (Alt or F10).
  • Accessible. The terminal is a UIA text document for Narrator and NVDA, every control is in the UIA tree, and new output is announced.
  • Themes. ~580 bundled themes retint the whole window, fonts apply live, and an optional mode follows Windows light/dark.

A lot of "does it have X?" questions have the same answer: bind X yourself. A command line in keymap.conf names any shell line and a map line binds it to a key chord or leader chord, and an overlay gives an interactive program a real terminal over the session, so a git UI or a file manager is two lines away. Install the agent skill and ask the agent in your session for what you want; it knows the syntax.

agwinterm

More screenshots

The Settings window, on the Agent Status tab, where the status colors and the blocked sound are chosen:

Settings

Sixel graphics are currently unsupported by the Ghostty adapter.

The model

  • Window. A top-level bundle of workspaces and sessions with its own sidebar; agwintermctl window addresses each one.
  • Workspace. A named group of sessions for one project or context.
  • Session. One running shell with a name, a working directory, an optional one-line context, and its own scrollback. It is the row you see in the sidebar, and it keeps running while you work in another one.
  • Split, scratch and quick. A session can split into two shells side by side or stacked, both sharing its one sidebar row. A scratch terminal opens over it for a quick aside; the quick terminal is a detached window of its own.
  • Overlay. One program running in a temporary terminal over a session, or over one pane of a split. It disappears when the program exits (unless opened with --wait, which keeps it until closed) and leaves the shell underneath unchanged.

Install

Download the self-contained Windows x64 build from this fork's releases.

  • agwinterm-setup-<version>.exe — per-user installer (Start-menu shortcut and uninstaller).
  • agwinterm-portable-<version>-win-x64.exe — a single self-contained exe, no installation; settings still live under %LOCALAPPDATA%\agwinterm. The CLI and WSL helpers for Linux x64/ARM64 are embedded and extracted on first use to %LOCALAPPDATA%\agwinterm\portable-tools.

Standard assets use .NET 11. The separate agwinterm-net10- assets are the supported .NET 10 option. Starting with v0.30.5, .NET 10 builds keep .NET 10 on updates; all older builds move to .NET 11. The agwinterm-net11- aliases keep updates working for older .NET 11 builds. The updater checks this fork and selects assets for the running build.

Binaries are currently unsigned, so SmartScreen warns on first run → More info → Run anyway. Release artifacts carry Sigstore build-provenance attestations:

gh attestation verify <file> --repo narma/agwinterm

The installer is deliberately minimal. The integrations are opt-in from inside the app, from the command palette (Ctrl+Shift+P) or Settings, and safe to rerun: Install Command-Line Tool (PATH), Install Agent Status Hooks, Install Agent Skill and Install Shell Integration (the same four are agwintermctl install cli|hooks|skill|shell), and default-terminal registration in Settings → General.

For WSL, select the distribution's session before installing: integrations use its Linux user and home directory. WSL sessions support the control CLI, agent hooks and resume, bash/zsh working-directory tracking, Linux command overlays, and path conversion for Explorer and file drops. See WSL setup.

Scripting agwinterm

agwintermctl drives a running agwinterm over a local named pipe speaking newline-delimited JSON, one command per invocation. Inside a session AGWINTERM_PIPE and AGWINTERM_SESSION_ID are already set, so a bare agwintermctl targets the instance and pane it runs in. Terminal output is not streamed; session text reads a session's buffer when a script needs to see it.

$sid = agwintermctl session new --workspace-name demo --create-workspace --cwd $PWD --no-select  # the new session's id
agwintermctl session split on --axis horizontal --target $sid           # add a stacked shell; answers its pane id
agwintermctl session type "git status`n" --target $sid                  # drive a session you are not looking at
agwintermctl session text --target $sid --lines 10                      # read its terminal back
agwintermctl session status blocked --target $sid                       # set the sidebar status dot
agwintermctl session overlay open "lazygit" --block                     # run a program over the session, get its exit
agwintermctl tree --json                                                # dump the whole model as JSON

session type returns once the keystrokes are queued, so a following session text races the shell, and session write only paints: the program's next repaint, or any pane resize, paints over it.

The same interface covers windows, splits, overlays, dashboards, HUDs, notifications, events, themes, images and restoration. agwintermctl --help lists the session, sidebar, restore, surface and image verbs; the agent skill (agwintermctl install skill) carries the full set, and docs/control-api.md documents the replies a script can rely on.

Documentation

Report bugs in Issues.

Related projects

  • agterm by umputun is the macOS original whose design this project follows.

The fork maintains its control API contract for the Windows product. Ghostty owns Windows terminal state.

Attribution

agwinterm exists because of umputun and agterm. agterm's design — a terminal that treats AI coding agents as first-class citizens, with per-session status, workspace navigation, a detached quick terminal, a native picker, and a language-agnostic control socket — is the blueprint this project follows. agwinterm is a tribute and a port of the ideas and UX, not of the code. Thank you, umputun. 💜

License

MIT © 2026 Boris Kudriashov. Bundled theme files retain their upstream (iTerm2-Color-Schemes, MIT) licensing.

About

A native Windows terminal built for AI coding agents — a homage/port of umputun's agterm.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages