Herdrbridge — Development skill for Claude Code
Stdlib-only Python library for driving coding agents through herdr (shared by the Claude Code <-> Hermes Agent bridges).
How to install Herdrbridge
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open fabzter/herdrbridge and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Herdrbridge does
Stdlib-only Python library for driving coding agents through herdr (shared by the Claude Code <-> Hermes Agent bridges).
Alternatives in Development
- Agentic Stack — One brain, many harnesses 2.2k ★
- StatsPAI — StatsPAI is the first Agent-native Python library for causal inference and applied econometrics — unified API 302 ★
- Pdf2image — Convert PDF pages to images using Python pdf2image library 206 ★
README
herdrbridge
`herdrbridge.py` is a single, stdlib-only Python module (3.9+) that provides the plumbing for driving coding agents through [herdr](https://herdr.dev)'s CLI and Unix-socket API: running an agent's CLI wrapper, tracking session state across restarts, classifying what an agent's pane is currently doing, pulling a clean reply out of a noisy terminal transcript, and planning a keypress sequence through herdr's approval menus. It has no third-party dependencies and is not installed as a package — it is a single file, plus a small test-support module and a handful of fixture transcripts, that gets copied verbatim into the repos that use it. It is shared by two agent bridges: `fabzter/hermes-bridge` (Claude Code driving Hermes Agent) and `fabzter/hermes-claude-bridge` (Hermes Agent driving Claude Code).
The module is organized into a few areas, in the order they appear in the file. The **client** (`Herdr`) wraps the `herdr` binary and its socket: `cli`/`cli_text` run CLI subcommands and parse JSON or return raw stdout, `request`/`subscribe` speak the socket protocol directly for one-shot calls and event streams, and `ensure_server` starts the per-session herdr server if it isn't already answering, logging its stdio to its own `herdr-server.spawn.log` (rotated via `rotate_log` before each spawn, kept separate from herdr's own `herdr-server.log` in the same directory) — `rotate_log(path, max_bytes=5 MiB, keep=2) -> bool` rotates `path` to `.1` through `.keep` and returns whether it rotated, a no-op (`False`) when the file is missing, under `max_bytes`, or `keep < 1`. The **state store** (`StateStore`) persists one small JSON file per session name — pane/tab ids and the agent's session id — so a session can be found again after herdr or the bridge process restarts, and it transparently migrates the previous generation's `.session-id` files. **Classification** (`classify`, `state_exit`) turns herdr's raw `agent_status` plus a matched rule id into one of a
Related Skills
Agent Mux
unified TypeScript SDK and CLI (amux) for driving heterogeneous coding-agent harnesses — Claude Code, Codex, G
Herdr Plan Meter
Claude Code and Codex plan limits in the herdr tab bar, with a detail popup. One stdlib Python file, read-only
Bordr
bordr for Herdr: a self-hosted mobile workspace for reading and driving Herdr coding agents from your phone ov
Scootcli
A tiny coding agent that goes where you point it. Stdlib-only Python, one-file zipapp, works with OpenAI and O
Unified Agent Memory
Unified fleet-wide agent memory system for DeepSeek Harness — shared Obsidian Vault for dsh, Codex, Claude Cod
Hermes Desktop Bridges
Bridge your local Claude Desktop and Google Antigravity subscriptions directly into Hermes Agent & Hermes Desk
Related Agents
Coding Principles
Applies the coding-principles skill to the Python files handed over: dead code, two-line comments, shared help
Devin Runner
Use when the main Claude thread should hand a substantial coding task to the Devin CLI executor through the sh
Opencode Runner
Use when the main Claude thread should hand a substantial coding task to the opencode executor through the sha