Sync the outer terminal window/tab title to the focused herdr workspace, tab, and agent session — on Windows, in native PowerShell, with no Bun/Node runtime.
Useful for terminals and clients that track the terminal title (similar to tmux set-titles), so
resumed herdr sessions are easy to recognize in the window list.
This is a standalone Windows port of window-title-sync by Joel (Moshi), MIT-licensed. herdr runs no shell on Windows and its
bashis WSL, so the originalbun sync-title.jscannot drive it there; this plugin ships the same behavior as a pure-PowerShell script (sync-title.ps1) that needs no runtime. If you are on macOS/Linux, use the original cross-platform plugin instead.
herdr plugin install aclima01/herdr-powershell-title-syncFor local development from this folder:
herdr plugin link .The plugin picks the first available title:
- herdr pane metadata title, when an integration reports one.
- herdr display agent and custom status.
- Latest user prompt from local Codex or Claude Code session files.
- herdr's detected agent name.
- The focused tab as a fallback, numbered by its switch order (prefix + N).
The focused workspace name is appended in parentheses. Examples:
codex: Implement title sync (app-ios)
claude (app-ios)
tab 2 (app-ios)
herdr plugin action invoke aclima.powershell-title-sync.refreshThe plugin runs locally and sends nothing over the network. As a fallback it reads local Codex and Claude Code session JSONL files to find a useful title when herdr does not expose one directly, so prompt text may appear in your terminal window/tab title.
- herdr
0.7.0or newer, on Windows. - Windows PowerShell 5.1 (built in). No Bun/Node needed.
Based on window-title-sync by Joel (Moshi).
The title-selection logic mirrors the original sync-title.js field for field; this repo is the
Windows/PowerShell port. Licensed MIT (see LICENSE).