Skip to content

feat(pstack): map Cursor Task slugs for pstack roles - #37

Closed
praxstack wants to merge 2 commits into
mainfrom
prax/setup-pstack-cursor-models-3d82
Closed

feat(pstack): map Cursor Task slugs for pstack roles#37
praxstack wants to merge 2 commits into
mainfrom
prax/setup-pstack-cursor-models-3d82

Conversation

@praxstack

@praxstack praxstack commented Aug 29, 2026

Copy link
Copy Markdown
Owner

Why

/setup-pstack writes per-role model overrides that pstack skills read from ~/.claude/pstack-models.md. This workspace is Cursor, and the Task tool only accepts Cursor slugs. The Claude Code defaults in each pstack skill (claude-opus-4-8, claude-haiku-4-5, and the un-suffixed Opus/Fable/Sonnet 5 names) do not resolve here.

Scope

Adds .cursor/pstack-models.md with Cursor Task slugs for every pstack role.

Opus 4.8 and the single-role default map to claude-opus-5-thinking-high. Strongest judgment maps to claude-fable-5-thinking-xhigh. Panel quads keep Opus, Fable, and Sonnet thinking-high, and use composer-2.5-fast in place of Haiku.

scripts/link-agent-skills.sh copies that sheet to ~/.claude/pstack-models.md when CURSOR_AGENT=1, and appends @~/.claude/pstack-models.md to ~/.claude/CLAUDE.md once. A local Claude Code home is left alone.

AGENTS.md points Cursor agents at .cursor/pstack-models.md. test/link-agent-skills.test.js checks every slug against the confirmed Task list and checks the installer copy, include, and skip paths.

Tradeoffs

The mapping proceeds without a per-role confirmation prompt. Cloud Agent sessions cannot wait on AskUserQuestion. Re-run /setup-pstack to change a role.

composer-2.5-fast is not Haiku. Cursor has no Haiku slug, and the fourth panel seat needs a fast model from a different family.

Blast Radius

Cursor Cloud agents that spawn pstack subagents pick up these slugs after boot. Claude Code users who run scripts/link-agent-skills.sh without CURSOR_AGENT=1 keep their own ~/.claude/pstack-models.md. App runtime, the web UI, and skill pack contents are unchanged.

Verification

npm test passed. 5 suites, 59 tests, including the 4 new installer checks.

npm run lint exited 0. 31 warnings, all pre-existing, none in the new test file or installer.

CURSOR_AGENT=1 bash scripts/link-agent-skills.sh ran twice against this home. ~/.claude/pstack-models.md matches .cursor/pstack-models.md. ~/.claude/CLAUDE.md contains the include line once.

A run with CURSOR_AGENT unset against a temp HOME linked skill packs and left pstack-models.md uncreated.

Open in Web Open in Cursor 

pstack skills read ~/.claude/pstack-models.md. Cursor Task rejects the
Claude Code slugs those skills name by default.

.cursor/pstack-models.md holds the Cursor mapping. scripts/link-agent-skills.sh
copies it to the home path when CURSOR_AGENT=1 and appends the CLAUDE.md
include once.

Co-authored-by: Prax Lannister <praxstack@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Aug 29, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 43028a8d-6f71-46fe-8303-fe4b5da5072a


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@praxstack
praxstack marked this pull request as ready for review August 29, 2026 10:49
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 29, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-29T10:54:45.466787Z 34191a3 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Delete the four-line comment above the home-sheet installer and rename the function so Cursor-Cloud-only copy is obvious without prose.

Co-authored-by: Prax Lannister <praxstack@users.noreply.github.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 34191a3974

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread AGENTS.md
Comment on lines +31 to +32
When spawning a pstack subagent, use the role-to-model lines in
`.cursor/pstack-models.md`. `scripts/link-agent-skills.sh` copies that sheet to

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Read the installed pstack override

When a user runs /setup-pstack to change a role, that skill rewrites ~/.claude/pstack-models.md, or ~/.codex/pstack-models.md on Codex, but this new rule tells subsequent spawns to keep reading the unchanged .cursor/pstack-models.md. The advertised customization is therefore ignored, and non-Cursor agents are directed to submit Cursor-only model slugs. Point agents to the installed runtime-specific override and reserve .cursor/pstack-models.md for Cursor bootstrap.

AGENTS.md reference: AGENTS.md:L14-L16

Useful? React with 👍 / 👎.

@cursor

cursor Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Superseded by #42 (merged). Merging this branch would regress .cursor/rules/pstack-models.mdc and AGENTS.md#42 carries the canonical Cursor-native pstack model mapping and updated agent guidance.

@praxstack praxstack closed this Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants