You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pstack: poteto-agent's Cursor model slug makes Claude Code run it on a fallback model #1270
In Claude Code, every poteto-agent spawn runs on a fallback model instead of the one its frontmatter names. #1249 added model: claude-opus-5-5-xhigh-fast to pstack/agents/poteto-agent.md, and the generated harness/pstack/claude-code/agents/poteto-agent.md carries it unchanged. Claude Code can't use that value. A pstack:poteto-agent spawned with no model override still runs, but its result says:
This agent switched to Opus 5 because its earlier model could not be used.
So poteto-mode's delegates run on Opus 5, not the Opus 5.5 that #1249 routes them to.
How to reproduce
Install or update the plugin to 0.15.43 in Claude Code (claude plugin update pstack@cursor-plugins) and start a new session.
Spawn pstack:poteto-agent with any short prompt and no model parameter. The result carries the notice above.
The same value as a session model: claude -p --model claude-opus-5-5-xhigh-fast "Reply ok." prints There's an issue with the selected model (claude-opus-5-5-xhigh-fast). It may not exist or you may not have access to it.
Why
claude-opus-5-5-xhigh-fast is a Cursor slug that encodes effort and speed. Claude Code's agent model field takes an alias (opus, sonnet, haiku, fable), inherit, or a model ID such as claude-opus-5-5, and doesn't set effort. scripts/generate-pstack-harness-trees.mjs copies pstack/agents into the claude-code tree as-is, so the Cursor value reaches Claude Code.
What a fix might look like
These are suggestions, not tested.
Have the generator rewrite an agent's model: for the claude-code tree, for example claude-opus-5-5-* to opus, or drop the line so the agent inherits the parent's model.
Have the generator's --check fail on an agent model: value that isn't a Claude Code alias, inherit, or a claude-* model ID without an effort suffix, so CI catches the next one.
I will take this. The generator should translate the Cursor-only model slug when it writes the Claude Code tree, or reject an unsupported Claude Code model value in --check; I will add a regression test. I will open a PR from an isolated worktree.
I found a similar issue in Grok Bot: there is no Task tool and no poteto-agent subagent type, and the Opus slugs in pstack/agents/poteto-agent.md line 5 (model: claude-opus-5-5-xhigh-fast) and pstack/skills/poteto-mode/SKILL.md lines 86-90 don't exist there either, so the Subagents section has nothing to call. The workaround we used was to put poteto-mode's principles in the delegate prompt and spawn a normal Grok Bot subagent, instead of subagent_type: "poteto-agent". Seen on pstack 0.15.44.
Activity
chore(upstream): merge cursor/plugins (#45)
Ethereal49 commentedon Nov 18, 2026
I will take this. The generator should translate the Cursor-only model slug when it writes the Claude Code tree, or reject an unsupported Claude Code model value in --check; I will add a regression test. I will open a PR from an isolated worktree.
ruridge commentedon Nov 19, 2026
I found a similar issue in Grok Bot: there is no
Tasktool and nopoteto-agentsubagent type, and the Opus slugs inpstack/agents/poteto-agent.mdline 5 (model: claude-opus-5-5-xhigh-fast) andpstack/skills/poteto-mode/SKILL.mdlines 86-90 don't exist there either, so the Subagents section has nothing to call. The workaround we used was to put poteto-mode's principles in the delegate prompt and spawn a normal Grok Bot subagent, instead ofsubagent_type: "poteto-agent". Seen on pstack 0.15.44.