Skip to content

pstack: poteto-agent's Cursor model slug makes Claude Code run it on a fallback model #1270

Open

Description

@mstephenholl

What happens

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

  1. Install or update the plugin to 0.15.43 in Claude Code (claude plugin update pstack@cursor-plugins) and start a new session.
  2. Spawn pstack:poteto-agent with any short prompt and no model parameter. The result carries the notice above.
  3. 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.

Environment

  • pstack plugin 0.15.43 (536a3352a050)
  • Claude Code 2.1.326, Linux

Activity

  1. Ethereal49 commented on Nov 18, 2026

    @Ethereal49

    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.

  2. ruridge commented on Nov 19, 2026

    @ruridge

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions