Repository navigation
agent-fleet 1.6.0: hook fires on fan-out words and on "pesquisa" from many sources - #65
Merged
Merged
Conversation
… 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why the hook: skill-creator's
run_evalon 20 Portuguese prompts (3 runs each,claude -pon 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.shultracode, 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.\b, no\s), so GNU grep, BSD grep and ugrep agree. Lint:shellcheck -S warning.Measured with the real hook (
bench/plugins/agent-fleet/results/2026-10-26-pesquisa-trigger/,check_hook.py+logs/):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:/dwfprompt each injected about 6 KB;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