opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Calling `use_skill` tool switches agent to default_agent unexpectedly

Open fancydirty opened this issue 1 day ago • 1 comments

Description

Problem When any agent calls the use_skill tool, it gets reset to the global model setting instead of keeping the agent's own configured model.

Evidence Before use_skill: ▣ Orchestrator · claude-opus-4-5-thinking-high After use_skill: ▣ Orchestrator · gemini-3-flash Impact

  • Agents lose their model configuration after loading skills
  • Subagents spawned in parallel get stuck when their model changes mid-task
  • Skills become unusable for agents with custom model configurations Expected Behavior use_skill should load the skill content without changing the agent's model. Each agent should retain its configured model throughout its lifecycle.

Plugins

oh-my-opencode, oh-my-opencode-slim

OpenCode version

1.1.25

Steps to reproduce

  1. Configure global model: "google/gemini-3-flash" in opencode.json
  2. Configure an agent with a different model: orchestrator: { model: anthropic/claude-opus-4-5 }
  3. Use that agent and call use_skill("some-skill")
  4. Observed: Agent switches to global default model (gemini-3-flash)
  5. Expected: Agent stays on its configured model (claude-opus-4-5)

Operating System

Ubuntu 22.04

Terminal

wsl

fancydirty avatar Jan 17 '26 10:01 fancydirty