vasilinoff

AgentCatalogGate — AI skill for Claude Code

AI community

Claude Code hook: every subagent call names a task category that sets its model and effort; the catalog grows itself.

How to install AgentCatalogGate

This entry records only its repository, not the path inside it, so there is no exact command to give. Open vasilinoff/AgentCatalogGate and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What AgentCatalogGate does

Claude Code hook: every subagent call names a task category that sets its model and effort; the catalog grows itself.

Alternatives in AI

  • Open Multi Agent — TypeScript multi-agent orchestration engine — one runTeam() call from goal to result 5.8k ★
  • Lumenx Model Onboarding — LumenX 模型接入与文档更新流程 - 厂商文档抓取、model_catalog 更新、运行时范围判断、端到端验证 1.2k ★
  • Codex Skill — by klaudworks - Enables users to prompt codex from claude code 914 ★

README

Agent Catalog Gate

A Claude Code hook that makes every subagent call say what kind of task it is, and run on the model and effort that kind of task deserves.

The problem

When Claude Code delegates to a subagent, the subagent inherits the parent's model unless the call says otherwise. In practice the call rarely says otherwise. In one person's history of 1,189 subagent calls across 366 sessions, 80% set no model at all: reading a ticket to classify it ran on the same top model, at the same effort, as an architecture review. A rule in `CLAUDE.md` ("pick a cheaper model for mechanical work") helps for a while, then fades in a long session, because the model is the one that has to remember it.

The idea

Move the rule out of the model's memory and into a program that runs on every call.

  1. **A catalog of task categories** (`agent-catalog.json`): each has a slug, a sentence saying when it applies, a model, an effort, and examples. The starting set was mined from real history (see below):

    Category Model / effort For
    triage, lookup haiku / low classify a ticket, find a file, read a page
    chore sonnet / low strip comments, rename, reformat
    test-qa, implement, research, data, media-build, persona sonnet / medium the bulk of the work
    review, copy, critique, design opus / high finding bugs, text people read, judging design, deciding
  2. **A PreToolUse hook on `Agent`** (`hooks/agent-catalog-gate.py`) that refuses a call unless its description starts with `[slug]` from the catalog and its `model` and `effort` are that category's. The refusal message carries the whole catalog, so the model corrects the call on the next try without having to remember anything.

  3. **The catalog grows itself.** When no category fits, the refusal says so: add one to the catalog first, then call again. Claude decides what the new category is and what it should run on; th