Herdr agent routing

From SteelMorgan/1c-agent-based-dev-framework · View interactive version

Herdr agent routing is an AI agent skill from the GitHub repository SteelMorgan/1c-agent-based-dev-framework. Read-on-choice Orchestrator contract for routing phase owners across families inside and outside Herdr.

How to use this skill

Skill file

Herdr-aware agent routing

The rule defines only transport selection and ownership. Command syntax and panel management safety come from the vendor skill herdr; do not duplicate or modify it.

Environment check

Before each phase owner launch, compute:

test "${HERDR_ENV:-}" = 1

current_family is taken from the harness's actual runtime identity (claude, gpt/codex, kimi), not guessed from the task text. Within Herdr, identity can be confirmed through current pane/agent metadata. Unknown family — BLOCK, no silent fallback.

target_family, exact model, and effort are taken from the canonical role-routing matrix. The Orchestrator may change effort, but must record the reason and preserve the capability/reviewer floor.

Algorithm inside Herdr

  1. Record in the orchestration trace: role, current_family, target_family, exact model/effort, route, and rationale.
  2. If target_family == current_family, launch the current harness's standard native child. This is a full phase owner, not a consultation; pass a self-contained handoff without forking history.
  3. If the families differ:
  1. idle/done after an observed work transition is a valid terminal signal. blocked requires reading the reason and routing the question; unknown never means completion.
  2. Determine progress from the lifecycle and new output. Silence alone does not mean a hang. After two checks without progress, apply the Orchestrator’s standard interrupt/restart limit.
  3. After receiving and checking the artifact, close only the agent/pane created by this run. Do not touch other panes, tabs, workspaces, or agents.

If the exact tuple is not supported by the actual CLI schema, apply only the pre-approved outage fallback from the matrix. Do not independently select the “closest” model.

Algorithm Outside Herdr

  1. Do not call herdr or attempt to control the focused session externally.
  2. Choose a qualified route from the same family as the current harness, preserving the role capability floor.
  3. If the approved matrix contains no valid same-family route, return BLOCKED_ROUTE_UNAVAILABLE; do not substitute a model from the current family for another family based on name similarity.
  4. Kimi K3 is available as an emergency fallback outside Herdr only when the current harness itself belongs to the Kimi family.

Ownership and Cleanup


depends_on:


Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.