Skip to content

agent-fleet 1.6.0: hook fires on fan-out words and on "pesquisa" from many sources - #65

Merged
4nrry merged 1 commit into
mainfrom
claude/fleet-pesquisa-trigger
Oct 26, 2026
Merged

4nrry merged 1 commit into
mainfrom
claude/fleet-pesquisa-trigger

Conversation

@4nrry

@4nrry 4nrry commented Oct 26, 2026

Copy link
Copy Markdown
Owner

Why the hook: skill-creator's run_eval on 20 Portuguese prompts (3 runs each, claude -p on Opus, installed plugin disabled in a scratch folder) shows the description fired on only 3 of 30 should-trigger runs, with 0 of 30 false. That matches the English eval of 2026-08-06, so the UserPromptSubmit hook carries the trigger.

hooks/inject.sh

  • Fires on fan-out words (ultracode, deep research, dynamic workflow, /dwf, /fleet), or on a form of "pesquis" together with a sign of several sources: fontes, links, artigos, estudos, compara, changelogs, releases, Reddit, comunidade, "o que estão falando", no X, concorrentes, agentes, a fundo, de mercado, DOI.
  • Portable: the patterns are POSIX ERE (no \b, no \s), so GNU grep, BSD grep and ugrep agree. Lint: shellcheck -S warning.
  • New X rule in the injected header: search X only when the question is about posts, announcements, an account or what people say, or when the user asks.

Measured with the real hook (bench/plugins/agent-fleet/results/2026-10-26-pesquisa-trigger/, check_hook.py + logs/):

Set New hook Old hook
dev, written before the rule (28) 14/15 fired, 0/13 false 2/15, 0/13
blind 1, Haiku; its misses shaped the rule (24) 12/12, 0/12 1/12, 0/12
blind 2, Haiku, written after the rule (30) 12/15, 0/15 0/15, 0/15
2026-08-06 eval queries (20) 4/10, 0/10 1/10, 0/10
  • Blind 2 is the honest score. Two of its three misses never say "pesquisa".
  • Why the rule is two-sided: "pesquisa" alone fired on 9 of 13 near-misses (code search, a survey form, a search box…).

Other agents: the same script runs through adapters/claude_hooks.py (Kimi, ZCode, Muse), the opencode and Hermes bridges, and natively in Grok Build and Cursor. Through the dispatcher:

  • a market-research prompt and a /dwf prompt each injected about 6 KB;
  • "pesquisa no repo onde calcularFrete() é chamada" injected nothing.

Codex and Antigravity run none of these hooks.

The README row is updated. agent-fleet goes from 1.5.1 to 1.6.0. just check: 108 checks, 0 failed.

🤖 Generated with Claude Code

… many sources

The description alone fired on 3 of 30 runs of Portuguese "pesquisa" prompts
(skill-creator's run_eval on Opus), so the UserPromptSubmit hook carries the
trigger. It now injects the skill when the prompt names a fan-out (ultracode,
deep research, dynamic workflow, /dwf, /fleet) or pairs a form of "pesquis"
with a sign of several sources (fontes, links, artigos, estudos, compara,
changelogs, releases, Reddit, comunidade, "o que estão falando", no X,
concorrentes, agentes, a fundo, de mercado, DOI). POSIX ERE, so GNU grep, BSD
grep and ugrep agree. The injected header now says to search X only when the
question is about posts, announcements, an account or what people say, or the
user asks.

Measured with the real hook (bench .../2026-10-26-pesquisa-trigger): on a set
written blind after the rule, 12 of 15 should-trigger prompts fired and 0 of
15 near-misses; the old hook fired 0 of 15. "pesquisa" alone fired on 9 of 13
near-misses, which is why the rule is two-sided.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@4nrry
4nrry merged commit c03a5f2 into main Oct 26, 2026
2 checks passed
@4nrry
4nrry deleted the claude/fleet-pesquisa-trigger branch October 26, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant