Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

herdr

БесплатноЗапускает вложенные скриптыНе проверен

Drive the herdr terminal workspace manager, as the herdr TUI or the Herdr app and its herdr-core (`hc`) server: inspect workspaces, tabs, and panes, hand work…

bendruckerот bendrucker★ 18 звёзд на GitHub

Об этом скилле

Herdr

Under HERDR_ENV=1, a request naming a pane, tab, workspace, or split is about this session's herdr layout.

Herdr App

HC_TERMINAL_ID set means this session runs in a herdr-core terminal, usually under the Herdr app. The herdr CLI and everything below drive the TUI's server, a separate process that can't see the app's terminals. Take commands from the manuals the installed binaries print:

  • hc --skill: terminals and agents, including starting, reading, sending to, and waiting on them. $HC_TERMINAL_ID is this session's address.
  • herdr-app --skill: the window, including spaces, tabs, layouts, and splits. herdr-app commands lists every command.

Dispatch a sibling agent by creating its worktree with wt switch --create <branch> --no-cd, then hc run --bg --name <branch> --cwd <worktree> claude "<prompt>". Claude Code reports its own status to herdr-core. Leave the herdr-core server running, since hc server stop ends every terminal.

Command Surface

!bash "${CLAUDE_SKILL_DIR}/scripts/commands.sh"

For flags not shown above, herdr <group> <command> --help is complete: defaults, enum values, preconditions. Where the CLI and this file disagree, follow the CLI.

Bare herdr launches or attaches the TUI in this pane. A mutating command in bare form runs on its defaults instead of printing usage, so herdr workspace create creates a workspace.

Current Workspace

!bun "${CLAUDE_SKILL_DIR}/scripts/orient.ts"

Columns are workspace, then pane agent/status session cwd title, with cwd shown only when it differs from the workspace checkout. That view projects herdr api snapshot, which returns this machine's workspaces, tabs, panes, layouts, and agents in one call. Prefer it to a sequence of list calls, and read it raw when the projection is wrong: herdr api snapshot | jq .

If the block reports a failure instead of a workspace listing, stop here and use ordinary tools. Nothing below reaches a server.

Output Formats

Most commands answer with a single-line JSON envelope. Pipe them through jq -r '.result...' rather than reading them raw:

{"id":"cli:pane:list","result":{"panes":[...],"type":"pane_list"}}

Others print plain text, and jq on those fails with Invalid numeric literal. Terminal content and human explanations are one kind: pane read, agent read, agent explain. Anything reporting local installation instead of live session state is the other: plugin list, plugin config-dir, config check, integration status, server agent-manifests.

Exit 2 is a syntax error, wrong before it reached a server. Exit 1 is a failure at one: JSON on stderr from the local server, and plain text from a --machine command that could not reach the remote.

Addressing

A pane exists whether or not an agent runs in it. pane commands drive the raw terminal, and agent commands drive the recognized process inside one.

An agent target is a live agent name or the pane ID hosting it, and nothing else. agent list prints a terminal_id and an agent kind beside those, and either one passed as a target yields agent_not_found, indistinguishable from a missing agent.

Take your own identity from the environment: HERDR_ENV, HERDR_PANE_ID, HERDR_TAB_ID, HERDR_WORKSPACE_ID, HERDR_SOCKET_PATH. HERDR_ENV=1 marks a pane herdr launched.

Name a target on every command that takes one. Use --current for the calling pane, an explicit ID otherwise. A pane command with no target may resolve to the UI-focused pane, which can belong to the user or another client.

IDs are opaque handles shaped w1 for a workspace, w1:t1 for a tab, and w1:p1 for a pane. Read them out of responses rather than composing them: pane split returns .result.pane, tab create returns .result.tab and .result.root_pane, workspace create returns all three. Closed IDs are never reused. pane move mints a new workspace-qualified pane ID, so take the pane forward as .result.move_result.pane.pane_id and drop .result.move_result.previous_pane_id. The moved process keeps the stale ID in its inherited HERDR_PANE_ID, so target it by the ID the move returned.

Machines

The orientation block and HERDR_* describe this machine. Before running herdr machine list, passing --machine, or acting on an ID from another machine, read references/machines.md.

Splits

Default to a sibling pane in the current tab under the caller's $PWD. A separate workspace, tab, worktree, or directory needs the user to ask for it.

Split right on a wide pane and down on a tall one, alternating direction across successive splits rather than slicing one axis into an unusable strip. herdr pane layout --pane "$HERDR_PANE_ID" reads the shape when it is not obvious.

--no-focus keeps the user's cursor where it is. Move focus only when they asked to switch.

Safety

Leave the server alone. herdr server stop takes down every pane

Полный SKILL.md на GitHub

Установить herdr в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash(bun "${CLAUDE_SKILL_DIR}/scripts/orient.ts")
Bash(bash "${CLAUDE_SKILL_DIR}/scripts/commands.sh")
Bash(herdr api snapshot:*)
Bash(herdr --help:*)
Bash(herdr agent --help:*)
Bash(herdr pane --help:*)
Bash(herdr workspace --help:*)
Bash(herdr tab --help:*)
Bash(herdr plugin --help:*)
Bash(herdr worktree --help:*)
Bash(herdr agent prompt --help:*)
Bash(herdr agent start --help:*)
Bash(herdr agent list:*)
Bash(herdr agent get:*)
Bash(herdr agent read:*)
Bash(herdr agent wait:*)
Bash(herdr agent explain:*)
Bash(herdr pane list:*)
Bash(herdr pane get:*)
Bash(herdr pane current:*)
Bash(herdr pane read:*)
Bash(herdr pane layout:*)
Bash(herdr pane wait-output:*)
Bash(herdr workspace list:*)
Bash(herdr worktree list:*)
Bash(herdr tab list:*)
Bash(herdr plugin list:*)
Bash(herdr plugin action list:*)
Bash(herdr plugin log list:*)
Bash(herdr plugin config-dir:*)
Bash(herdr machine list:*)
Bash(hc --skill)
Bash(hc --help:*)
Bash(hc ls:*)
Bash(hc get:*)
Bash(hc read:*)
Bash(hc wait:*)
Bash(herdr-app --skill)
Bash(herdr-app commands:*)

Вложенные файлы

references/agents.mdreferences/machines.mdreferences/plugins.mdreferences/reviewr.mdscripts/commands.shscripts/orient.ts

FAQ

Что делает скилл herdr?

Drive the herdr terminal workspace manager, as the herdr TUI or the Herdr app and its herdr-core (`hc`) server: inspect workspaces, tabs, and panes, hand work to sibling coding agents in other panes (distinct from in-session `Agent` subagents), split panes for collaborative file viewing or long-running processes, and correlate panes to Claude sessions. Load this when the decision to hand a task to another pane's agent arrives mid-task, and when opening a file alongside the user, starting a dev server or log tail the user should watch, capturing another pane's output, or asking what else is running. Pane, tab, workspace, and split are herdr's terms. In a session herdr hosts, a request naming one is a herdr request even when it never says herdr.

Как установить скилл herdr?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл herdr запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить herdr с