Skip to content

gar

Tool by aryrabelo

Lets a coding agent hand shell steps to a human terminal that runs them with a real PTY and returns output as JSON.

No screened screenshot yet

What it does

gar lets a coding agent register shell steps that a person runs in their own terminal. The steps run in a PTY, so sudo prompts, ssh and Ctrl-C work, and the agent reads back output and exit codes as JSON. On Herdr app, a gar-run dialog opens and the outcome is sent back to the requesting terminal with hc send.

Install with go install. The agent uses gar add with a reason, the human runs gar run in the same workspace, and the agent reads the result with gar show or gar wait. The documentation is in Portuguese.

Delegates sudo, ssh, and interactive commands to a human PTY, returning JSON output and exit codes via Herdr gar-run dialogs and hc send.

From the author's README

Good for

Works with

Needs

Go toolchainhc (herdr-core) for app notifications

Similar tools

Same job, overlapping tags and integrations.

All of Editors, sessions & worktrees

herdr-plugins

by JacobAtchley

Adds a set of Rust TUI plugins for Herdr: command palette, git glance, project runner and agent inbox.

Editors, sessions & worktrees31 mo ago

vim-herdr-navigation

by paulbkim-dev

Moves focus with Ctrl+h/j/k/l across Vim or Neovim splits and Herdr panes, crossing edges in either direction.

Editors, sessions & worktrees1181 mo ago

cruise-ctrl

by moonquddus

Answers Claude Code '1. Yes' permission prompts automatically, as a wrapper, a herdr plugin or an app mod.

Editors, sessions & worktrees025 days ago

RexAgentRestore

by pattont

Saves agent chats in Rex panes and resumes them after a restart, and imports herdr tabs and splits.

Editors, sessions & worktrees539 days ago

herdr-commander

by lurepos

Lists tasks from VS Code, npm, Cargo and Makefile files and runs the chosen one in a tab or split.

Editors, sessions & worktrees419 days ago

multiplexer-sidebar

by milanglacier

Shows tmux, Zellij and herdr sessions and agents in a sidebar or fullscreen dashboard with live previews.

Editors, sessions & worktrees244 days ago

revdiff

by umputun

Shows diffs, files and plans in a Go TUI where you add line notes that go back to the calling agent.

Editors, sessions & worktrees978today

sendoff

by exviolet

Shows a prompt editor that sends multi-line prompts as one block to Herdr, tmux, or Orca agent panes.

Editors, sessions & worktrees215 days ago