Sub-agent slash commands do not use the model specified for the sub-agent

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

The sub-agent slash command doesn’t use the specified model.

Steps to Reproduce

Create a sub-agent with a specific model (for example, Gemini Flash).
Open a chat with, for example, Codex and use /my-agent-name.
The chat runs using Codex, not the model specified for the sub-agent.

Expected Behavior

When using “/xxxx” chat should use the sub agent specified model

Operating System

MacOS

Version Information

Version: 2.4.21
VSCode Version: 1.105.1
Commit: dc8361355d709f306d5159635a677a571b277bc0
Date: 2026-01-22T16:57:59.675Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Darwin arm64 25.2.0

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey @Moumouls!

I think you’re mixing two concept.

  • Commands will always be run by the model selected for a chat. They exist under ./cursor/commands
  • Subagents can be configured to use specific models (like you have). Subagents are not invoked by slash commands. The agent intelligently decides when to you use them, or you can nudge them to (“Use the create-pr subagent”)

So why i can “/a-sub-agent” it’s so confusing @Colin ?

Ah sorry @Moumouls, looks like I’m wrong!

I can reproduce the model behavior, but typically only on the first subagent invocation after specifying the model. We have an open bug for this, and I’ll add your report.

So @Colin , using /sub-agent is expected to invoke the agent mentioned in the file ?

I think it’s smart because it allows some kind of “custom agents” for specific tasks, explicitly invoked by the developer.

Can confirm that this issue:

Will be fixed in 2.5 (around the corner)

Sorry for the delay on answering this one @Moumouls :folded_hands:

Yes! They function an awful lot like slash commands.

So @Colin , direct agent invocation will use provided model mentioned in the sub agent file ?