Repository navigation
feat(skills): say what each shortlisted skill does, not just its name - #3763
kovtcharov wants to merge 1 commit into
Conversation
When a request matched a skill but not strongly enough to auto-load it,
the model was offered a list of skill names and asked to load one if it
fit. On GitHub tasks against a private repository, github-triage was
shortlisted for 4 of 5 prompts and top-ranked on three, yet 4 of 6
models never loaded it: they fetched github.com, hit a 404, and gave up.
The one model that loaded it passed all five tasks.
The skill's description opens with the missing fact ("Triage GitHub work
with the gh CLI"). The shortlist note now carries the first clause of
each shortlisted skill's description, capped at 60 characters, after
its existing instruction.
Only the first clause is kept because full descriptions took a
three-skill note from 63 to 196 tokens, over the 120-token per-turn
budget test_per_turn_notes_stay_short enforces. With the cap it renders
at ~105. A new test holds a realistically described three-skill note to
that same budget, since the existing guard builds its shortlist without
descriptions and would not have caught the growth.
Co-Authored-By: Claude Opus 5 <[email protected]>
Request changesThe shortlist note now tells the model what each shortlisted skill actually does, and the fix is well-aimed: the diagnosis (models skipped The behaviour claim isn't measured yet. The whole justification is a benchmark result, and both verification boxes in the test plan — the agent eval and the before/after A/B on the five GitHub tasks — are still unchecked. This is exactly the class of change GAIA requires an eval for: it changes what the model is shown on every shortlist turn. Unit tests prove the note renders; they say nothing about whether models now load the skill. Please land the eval comparison against the committed baseline, plus the A/B pass rate, before merge. The documented behaviour is now out of date. The skills spec still describes a shortlist as offering names only, and its guidance on writing a skill Also worth a look: for a description that opens with an abbreviation, the first-clause split can cut mid-abbreviation and hand the model a meaningless fragment. None of the 15 shipped skills hit it, so it's minor, but user-written and third-party skills will. Real-world evidenceN/A — no evidence bundle was produced for this run, and the change touches no CLI, HTTP, MCP, or Agent UI surface directly; its surface is model behaviour, which is what the pending eval and A/B are for. My verdict therefore rests on static review plus one check I ran myself: I executed the new first-clause helper's logic standalone against the real frontmatter 🔍 Technical details🟡 Important1. Eval + A/B not run — required for a prompt-fragment change
The A/B on the five GitHub tasks is the stronger signal here — the PR's claim is "4 of 6 models never loaded it"; the review needs the after-number. Not asking for new work, just for the boxes the PR already opened. 2. The Shortlist row at The 🟢 Minor3. First-clause split cuts mid-abbreviation (
4.
5. PR body carries a Claude attribution footer The description ends with Strengths
|
|
Superseded by #3765. Rather than describing the shortlist better, it removes the per-turn matcher and lists every installed skill in the prompt. On the benchmark the matcher loaded a skill on 0 of 24 tasks, so the shortlist was the only path, and most models ignored it. |
…g one (amd#3765) GAIA almost never used its skills on real work. Before each turn it scored the user's words against skill descriptions, and on a 24-task benchmark that loaded a skill **zero** times. Precise requests score lowest, because repo names, issue numbers and output formats count against the match. Without `github-triage` loaded, `gh` is refused too, so most models never tried it. The flagship now lists every installed skill, one line each, in its system prompt, and the model calls `load_skill` when the work fits — at the start of a task or partway through. The list only changes when a skill is installed, so it stays cached. It costs **1,062 tokens** for the starter pack. This deletes the retriever and discovery machinery (−2,339 / +334 lines). - **Refusals name the skill.** A refused `gh` or `pytest` now says which skill to load, instead of "a skill that declares it". - **Latent prompt bug fixed.** ChatAgent dropped any prompt section containing the words "Stable Diffusion". The catalogue mentions it (the `image-gen` skill), so the whole catalogue vanished with no warning. The filter now matches the method that produced the section. Closes amd#3764. Supersedes amd#3763. ## Test plan - [x] `pytest tests/unit/test_skill_catalog.py tests/unit/test_skill_binary_grants.py`: every installed skill listed with its description; stable across renders; `.claude/skills` imports not listed; the granting skill found for `gh` and `pytest`; refusals name it, or point at the hub when none is installed. - [x] `pytest hub/agents/gaia/python/tests/test_full_tool_bundles.py::test_skill_catalogue_renders_for_the_flagship`: the catalogue reaches the real flagship prompt. It failed before the Stable Diffusion filter fix. - [x] Targeted suites (skills, prompt composition, verification scope, flagship tests): 947 pass. `pytest tests/unit -k "skill or prompt or shell"`: 1,961 pass. The 6 failures also fail on untouched `main`: `search_documentation` is absent from this environment, and the profile goldens drift on audio wording. - [x] Flagship system prompt measured: 3,130 → 4,192 tokens, sourcing rule still present. - [x] Benchmark A/B, the same 144-run battery before and after (six Fireworks models), all batches complete: **101 vs 100 passes overall**. GitHub tasks 10/30 → **17/30**; runs that loaded a GitHub skill 4 → 16, runs that used `gh` 4 → 14. Adversarial tasks 19/30 → 15/30, all 4 points lost by minimax-m3; deepseek-v4p1-flash went 21 → 24/24 and kimi-k2p7-code 19 → 22. Visible skills also exposed amd#3790: `coding` was refused over pytest in 28 runs, which amd#3791 fixes. - [ ] `gaia eval agent`: required by CLAUDE.md for prompt changes. It can't run on this machine (no `claude` CLI for the judge). --------- Co-authored-by: Kalin Ovtcharov <[email protected]> Co-authored-by: Claude Opus 5 <[email protected]> Co-authored-by: Ovtcharov <[email protected]> Co-authored-by: f <f@f> Co-authored-by: kovtcharov-amd <[email protected]>
When a request matched a skill but not strongly enough to load it automatically, the model was offered a shortlist of skill names and asked to load one if it fit. It was never told what those skills do, so models passed over the one they needed.
On five GitHub tasks against a private repository, discovery shortlisted
github-triagefor 4 of 5 prompts — top-ranked on three — yet 4 of 6 models never loaded it. They fetched github.com, hit a 404, and gave up or reported the repository unreachable. The one model that loaded it passed all five. The skill's description opens with the missing fact, "Triage GitHub work with the gh CLI"; the shortlist note now carries that first clause for each shortlisted skill, after its existing instruction.test_per_turn_notes_stay_shortexists to hold. Each description is cut to its first clause, capped at 60 characters, so the same note renders at ~105. Describing only the top-ranked skill was rejected: on one taskgithub-triageranked third.Closes #3762
Test plan
pytest tests/unit/test_skill_shortlist_descriptions.py tests/unit/test_skill_discovery.py tests/unit/test_skill_retriever.py— 52 pass, including first-clause extraction, the unchanged note when no descriptions are present,run()filling descriptions in shortlist order, and the budget test above.gaia eval agent— required by CLAUDE.md: this changes what the model is shown.github-triagegets loaded, and the GitHub pass rate, before vs after.🤖 Generated with Claude Code