Herdr logo

Herdr

Community
ulises-jeremias
herdr

Manage Herdr workspaces, tabs, and panes for Agent Toolkit swarms with eager windows, shell-aware execution, and reuse.

Overview

Publisherulises-jeremias
Repositoryagent-toolkit
Skill nameherdr
Stars
20
Forks
5
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by ulises-jeremias on GitHub. Read the source before you install it.

Installation

Install the Herdr AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ulises-jeremias/agent-toolkit/tree/main/plugins/agent-toolkit-complete/skills/herdr
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ulises-jeremias/agent-toolkit.git /tmp/agent-toolkit
mkdir -p .claude/skills
cp -r /tmp/agent-toolkit/plugins/agent-toolkit-complete/skills/herdr .claude/skills/herdr
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Herdr in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Herdr on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Herdr is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Herdr

Operate Herdr as the primary UI for agent-toolkit swarm — eager tabs, shell-consistent execution (zsh/bash via _user_shell()), and clean reuse of windows. This skill is the Herdr complement to swarm and swarm-observer.

When to use

  • Swarm was started with --ui herdr (default) and you need to inspect or recover Herdr state.
  • herdr workspace list/create/tab create/pane run behavior is unexpected (extra workspaces w7-wA for headless, wrong --cwd, or missing eager windows).
  • User prefers Herdr over tmux for its excellent interactive UX and wants to reuse tabs for sequential requests.

Prerequisites

  • herdr CLI installed and daemon running (herdr --version, herdr workspace list --json works; --json may be unsupported on older binaries — fallback to text).
  • Swarm run exists: .agent-toolkit/swarm/runs/<run-id>/state.json with ui: herdr.
  • Repo is a Git directory (worktrees are created under .agent-toolkit/swarm/runs/<run-id>/worktrees/).

Workflow

1. Verify backend and shell

bash
agent-toolkit swarm doctor --json | jq '.backends'
herdr --version
echo $SHELL; getent passwd $USER | cut -d: -f7  # should be /usr/bin/zsh on this host
# swarm's _user_shell() picks: $SHELL -> pwd.getpwuid -> /usr/bin/zsh -> /bin/bash

2. Inspect Herdr state for a run

bash
herdr workspace list --json 2>&1 | jq '.[] | {id,name,path,status}' | head -n 40
# Expected: one workspace per run: swarm-20260807T...-<short>
# Orphan check: workspaces w7-wA with headless run-id -> delete after fixing backend

agent-toolkit swarm status --run-id <run-id> --json | jq '{ui,recipe,runner,model_profile,worktrees,handoffs}'
agent-toolkit swarm handoffs --run-id <run-id> --json | jq
herdr workspace list | grep swarm-<run-id>

3. Eager windows (automatic on swarm start)

On swarm start --ui herdr, swarm creates one tab per role immediately:

  • tab create --workspace swarm-<run-id> --name <role> for each role (implementer, reviewer, integrator, ... plus 1 for coordinator).
  • Each non-implementer tab runs: echo "Waiting for handoff: <pred> -> <role> | role: <role> | run: <run-id>" via <shell> -lc (quoted to avoid | pipe issues) and records agent_waiting trace.
  • select-window / workspace focus focuses implementer; implementer pane runs export AGENT_TOOLKIT_SWARM_RUN_ID=... RUN_DIR=... REPO=... SWARMFORGE_ROLE=implementer && cd <worktree> && exec <runner> "$(cat prompt)".

If a tab is missing:

bash
herdr tab create --workspace swarm-<run-id> --name reviewer --json 2>&1 | jq
herdr pane run --workspace swarm-<run-id> --tab reviewer --command "/usr/bin/zsh -lc 'echo \"Waiting for handoff: implementer -> reviewer | role: reviewer | run: <run-id>\"'" --json 2>&1 | jq

4. Recover from known pitfalls

SymptomFix
Extra workspaces for headless runsget_backend("headless") fallback created spurious Herdr workspaces. Patch swarm/backends/__init__.py to return headless/noop backend; then herdr workspace delete <id> for orphans.
--cwd wrong (repo not found)Ensure herdr workspace create --cwd <repo-root> uses find_repo_root result, not cwd when run from worktree.
pane run fails with pipeSwarm fixed by quoting waiting message: echo "Waiting..." not `echo Waiting ...
Shell mismatch (bash vs zsh)Swarm now uses _user_shell(); verify Herdr panes inherit $SHELL. herdr pane run --command "/usr/bin/zsh -lc 'echo \$SHELL'"

5. Reuse tabs for new requests

Do not delete the workspace between tasks. Reuse the same run-id:

bash
agent-toolkit swarm handoff create --type artifact --from implementer --to reviewer --artifact artifacts/next-task.md --run-id <run-id>
# Herdr tabs stay; only the handoff chain retriggers. New run only for isolated branch.

Attach when needed:

bash
agent-toolkit swarm attach --run-id <run-id>
herdr workspace focus --workspace swarm-<run-id>

Boundaries

  • Never write Herdr's workspace DB directly; use herdr workspace/tab/pane CLI via swarm's HerdrBackend.
  • Never mix Herdr and tmux sockets — swarm uses herdr OR isolated tmux -L agent-toolkit-swarm-<run-id>, never both for one run.
  • Do not run herdr workspace open (removed); use workspace focus / workspace list.

Delegates to

NeedSkill
Launch or reuse a swarmswarm
Diagnose stuck handoffs/logsswarm-observer
Create file handoffsswarm-handoff
Isolated fallback when Herdr unavailabletmux (via swarm --ui tmux)

Frequently asked questions

What does the Herdr AI skill do?

Manage Herdr workspaces, tabs, and panes for Agent Toolkit swarms with eager windows, shell-aware execution, and reuse.

Why use Herdr on TypingMind?

Because you install it once and use it with any model. Herdr is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Herdr in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ulises-jeremias/agent-toolkit/tree/main/plugins/agent-toolkit-complete/skills/herdr. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Herdr?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Herdr?

As many as you like. As long as a model supports skills, you can use Herdr with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Herdr AI skill free?

Yes. It is published on GitHub by ulises-jeremias under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇