Skip to content

Calling use_skill tool switches agent to default_agent unexpectedly #9067

@fancydirty

Description

@fancydirty

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions