From bc147698f4999c912d30bc950d8d333322d8d781 Mon Sep 17 00:00:00 2001 From: Michael Neale Date: Wed, 28 Jan 2026 14:17:34 +1100 Subject: [PATCH] make skills available in codemode --- crates/goose/src/agents/reply_parts.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/goose/src/agents/reply_parts.rs b/crates/goose/src/agents/reply_parts.rs index a6f34002307d..b6b17b6cfce6 100644 --- a/crates/goose/src/agents/reply_parts.rs +++ b/crates/goose/src/agents/reply_parts.rs @@ -8,6 +8,7 @@ use tracing::debug; use super::super::agents::Agent; use crate::agents::code_execution_extension::EXTENSION_NAME as CODE_EXECUTION_EXTENSION; +use crate::agents::skills_extension::EXTENSION_NAME as SKILLS_EXTENSION; use crate::agents::subagent_tool::SUBAGENT_TOOL_NAME; use crate::conversation::message::{Message, MessageContent, ToolRequest}; use crate::conversation::Conversation; @@ -126,8 +127,11 @@ impl Agent { .await; if code_execution_active { let code_exec_prefix = format!("{CODE_EXECUTION_EXTENSION}__"); + let skills_prefix = format!("{SKILLS_EXTENSION}__"); tools.retain(|tool| { - tool.name.starts_with(&code_exec_prefix) || tool.name == SUBAGENT_TOOL_NAME + tool.name.starts_with(&code_exec_prefix) + || tool.name.starts_with(&skills_prefix) + || tool.name == SUBAGENT_TOOL_NAME }); }