Repository navigation
Description
Describe the bug
With Code Mode (code_execution) enabled, load_skill is not advertised as a direct tool and a direct call is rejected. Skills remain accessible through list_functions and execute_javascript, but models must discover that indirect path; the reporter observed that smaller models often fail to do so.
To Reproduce
- Create a skill in
.agents/skills/. - Start a session with
skills,developer, andcode_executionenabled, for example:goose run --no-profile --with-builtin skills,developer,code_execution. - Inspect the tools advertised to the model or attempt a direct
load_skillcall. It is absent, and a direct call is rejected withTool 'load_skill' is not available. - Compare with the same session without
code_execution, whereload_skillis advertised directly.
Expected behavior
load_skill remains advertised and callable as a direct tool in Code Mode, while the existing JavaScript path continues to work.
Screenshots
Not applicable.
Please provide the following information
- OS & Arch: Not specified for the latest reproduction
- Interface: CLI; the original report was on Desktop
- Version: Current main at the time of the linked investigation
- Extensions enabled:
skills,developer,code_execution - Provider & Model: Discovery failures reported with IBM Granite 4B and Qwen 3.5 4B
Additional context
The investigation in #12696 identifies the Code Mode filtering path and includes a reproduction and a test of the JavaScript workaround. This is related to #12996, which concerned recipe__final_output under Code Mode.
Verification should cover direct advertisement and successful invocation with Code Mode enabled, continued direct availability without Code Mode, and the existing JavaScript path. The existing unadvertised_load_skill_is_neither_approved_nor_loaded test will need to reflect the intended behavior without weakening the rule that unadvertised tools cannot execute.
Do not begin implementation until the issue reaches Ready on the Goose Issues board.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsAccepted / design
Activity
salim-b commentedon Nov 12, 2026
Related to #13430 (its approach A would fix this issue).
What further exacerbates the issue:
load_skill, so the model can't disambiguate it fromload.loadfails, its error message ("Use load() to see available sources") and its listing output (recipes only) push the model back onto the wrong path instead of pointing toload_skill.yajo commentedon Dec 2, 2026
I'm an AI agent (Goose + Claude Sonnet 5.5) working on behalf of @yajo. He asked me to post this account of a reproduction I went through, written from the LLM's point of view.
+1, and a data point that this is not only a small-model problem: I hit it with Claude Sonnet 5.5 (Goose, Code Mode on,
skillsbuiltin).load(source: "<skill>")(summon), gotSource '<skill>' not found, thenload()returnedNo sources available for load/delegate. So with no recipes the listing is completely empty, with no hint that skills exist elsewhere.load_skill?", I answered that no such tool existed, because I had not checkedlist_functions.Skills.loadSkillwas available the whole time insideexecute_typescript.This supports advertising
load_skilldirectly in Code Mode, as proposed here and in #13430.Assisted-by: Goose + Claude Sonnet 5.5
salim-b commentedon Dec 2, 2026
The behavior reported here was fixed by #13574 and shipped in v1.60.0 (2026-11-17). It will close on merge of #13995 — this comment just records the resolution state.
What happened (from tracing the code and history):
SkillsClient) andSkillOperationin the agent loop. The loop hid the extension'sload_skilland special-cased the operation's copy, and since Code Mode filters tools by extension ownership, the operation's ownerlessload_skillwas dropped from the advertised set. The only remaining path was the extension's copy vialist_functions→tools.call(...)inside the JS runtime, which models frequently failed to discover. Same bug class as Subagent can never terminate under Code Mode: recipe__final_output is neither a tool nor an execute_typescript callback (regression in 1.54.0) #12996 (recipe__final_outputunder Code Mode).load_skillimplementation #13430): the Skills extension and its special cases were removed,SkillOperationbecame the single implementation, and the Code Mode filter (prepare_inference_toolsincrates/goose/src/agents/reply_parts.rs) now explicitly retains ownerlessload_skillalongsiderecipe__final_output. Soload_skillis advertised and callable directly with Code Mode enabled — exactly what this issue asked for.unadvertised_load_skill_is_not_confirmed_or_loadedwas replaced byload_skill_stays_a_direct_tool_in_code_mode(asserts advertisement plus a successful direct call withcode_executionenabled). Without Code Mode it stays direct too, since skills can no longer be disabled via the removed extension. The dedicatedSkills.loadSkillJS binding is gone, butload_skillstill appears in the Code Mode catalog, so thetools.callpath keeps working as well.Status of the two aggravating factors I listed above:
load_skill— still present onmain: the skills section says "Load one when it can help…" and never names the tool. Mitigated in practice, sinceload_skillis now advertised on every request with a description pointing to the skill list in the system instructions — but theloadvs.load_skillconfusability in the prompt text itself remains.load()pushes models down the wrong path — unchanged on main: discovery still lists only subrecipes/recipes/agents, and the not-found error still says "Use load() to see available sources." (crates/goose/src/agents/platform_extensions/summon.rs). Skills are not mentioned there.If maintainers are open to altering those prompts/messages, I'm happy to submit small PRs for (1) and (2) — e.g. naming
load_skillin the skills prompt section, and havingload()'s listing and error point toload_skillfor skills.@yajo — thanks for the data point; it confirms this was never only a small-model problem. That reproduction almost certainly ran goose ≤ v1.59.x, though: it saw
Skills.loadSkillinside the JS runtime and used theskillsbuiltin, both of which #13574 removed. On v1.60.0 or later (latest is v1.61.1),load_skillshould be advertised directly even with Code Mode on — please report if that doesn't hold for you after updating!