pstack: support MiniMax Code as a harness
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- markdown, shell
- Lĩnh vực
- developer-experience, tooling
Hướng nghiên cứu
Start by comparing the Claude Code adapter's Paths table and poteto-agent.md with the MiniMax plugin paths described here. Read worktree-audit.sh and the worktree-cleanup playbook to understand transcript lookup, then check how the model-diversity rule is documented. Done means the maintainers have a clear, agreed approach to plugin discovery, transcript handling, and single-family model panels.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I'd like to run pstack in MiniMax Code (https://www.minimaxi.com), a coding agent runtime from MiniMax.
It reads standard SKILL.md folders and has a plugin format close enough that most of pstack loads.
A few gaps stop poteto-mode from working as written.
This follows the shape of #1013 (fx as a harness).
It reports what I tested and what the mapping looks like, so the maintainers can decide whether to generate a tree the way harness/pstack/claude-code/ is generated, or to document the mapping instead.
What I tested
pstack 0.15.36 (4dd1d05), MiniMax Code 0.7.1, macOS 27.2.0 (arm64), Node v26.13.0. I ported the full skill set to a local MiniMax plugin and ran it; 68 skills, 4 subagents, and a UserPromptSubmit hook all load and work.
- Works: all skills load in full, including
poteto-mode,how,why, andteach.
TheSkilltool accepts them by name.
A plugin-scoped skill is reachable aspstack:<name>. - Works: subagents.
taskwithagent_name: "pstack:poteto-agent"resolves to the plugin's agent and runs.
Same forpstack:comment-sicko,pstack:thermo-nuclear-review-subagent, andpstack:thermo-nuclear-code-quality-review-subagent. - Works: the
UserPromptSubmithook fires and injects the routing reminder into each turn. - Partial:
skillnames are plugin-scoped, so a skill reference that reads "the how skill" needs thepstack:prefix, same as Claude Code.
Gaps that stop poteto-mode as written
These are the places where a Cursor name has no MiniMax Code equivalent, or where the equivalent needs a different shape.
| Cursor | MiniMax Code |
|---|---|
Task |
task with agent_name. |
AskQuestion |
ask_user with steps, each step holding question and two to four options. |
| Open a todolist | todowrite. |
| Run another pstack skill | skill with the exact name. The tool accepts most pstack skills directly. |
Grep, Glob |
grep (ripgrep syntax), glob. |
subagent_type: generalPurpose |
task with agent_name: "worker". |
readonly: true |
No read-only flag. The brief says "do not edit files", and you check git status afterward. |
environment: "cloud" |
No per-subagent isolation field. Isolation comes from a git worktree. |
run_in_background: true |
Default. Pass run_in_background: false only when the next step depends on that single result. |
resume |
task_append with the returned task_id. |
file_attachments |
List the paths in the brief. |
Three places the adapter needs a row that Claude Code does not
1. The plugin root is not a path the agent can guess. The Claude Code adapter's Paths table maps ~/.cursor/plugins/ to ~/.claude/plugins/.
MiniMax Code has no equivalent: the plugin lives under ~/.minimax/plugins/<name>/, but the runtime does not expose that root to the agent as an environment variable, and a plugin installed from a marketplace lives somewhere else entirely. poteto-agent.md tells the delegate to "search ~/.cursor/plugins/ for a file whose path ends in skills/poteto-mode/SKILL.md", and its .cursor-plugin/plugin.json version check has no MiniMax Code counterpart either (the manifest is .minimax-plugin/plugin.json).
The delegate has to be told the absolute path by its parent, every time.
2. Session transcripts are not readable the way Claude Code's are. The worktree-cleanup playbook wants a "last chat" column per worktree, from transcripts on disk.
MiniMax Code keeps sessions under ~/.minimax/v2/sessions/<yyyy>/<mm>/<dd>/<session>/, each with its own workspace/ directory, and its conversation state in a SQLite runtime file, rather than as JSONL under ~/.claude/projects/.
The shipped worktree-audit.sh looks for ~/.cursor/projects/<slug>/agent-transcripts, which no harness but Cursor has, so the "recent chat" column stays empty everywhere else.
In my port I replaced it with a script that walks ~/.minimax/v2/sessions/.
3. The model families are not the same. The default cross-judge pool is claude-opus-5-5-xhigh and grok-4.7-xhigh-fast.
MiniMax Code serves minimax/MiniMax-M3.1-Flash and minimax/MiniMax-M3, and a model is written as <provider>/<model> rather than a family-and-effort slug.
A skill that names claude-opus-5-5-xhigh maps to minimax/MiniMax-M3 with an explicit effort, and the "a judge that is never from the parent's family" rule has no second family to draw from, so it degrades to a single-family panel.
That is the same degradation the Claude Code adapter already has, but it is worth naming rather than leaving silent.
What I would change upstream
Nothing is required for pstack to be useful in MiniMax Code today, because the skills are mostly prose and the runtime primitives are close enough.
What would help:
- A row for the plugin root in the Paths table, or a way for the harness adapter to state where the plugin was installed, so
poteto-agent.mdcan findpoteto-mode/SKILL.mdwithout a hardcoded Cursor path. - A harness-neutral transcript lookup for the worktree-cleanup playbook, or a documented skip line for harnesses that do not expose transcripts on disk.
- A note that the model-diversity requirement degrades to a single family on harnesses with one provider.
I have a working port and can put up a pull request with the adapter row and the harness-aware worktree-audit replacement if that is useful.
Happy to keep it out of the tree and just maintain it separately if the tree is meant to stay Cursor and Claude Code only.
Attribution
The pstack skills are Lauren Tan's. The Claude Code port I used as the base is Michael Denyer's (michael-denyer/pstack-claude).
This is a third port, to MiniMax Code, and it follows both of those licences.
- Ngôn ngữ chính
- TypeScript
- Star
- 18.2k
- Fork
- 2k
- Merge trung bình
- 3 giờ 56 phút
- Pull request đã merge (30 ngày)
- 96
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của cursor/plugins
-
pstack: interrogate asks the user, which worker.md forbids for delegates that reach itCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
cursor/plugins#1272 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
poteto-mode: multi-phase-plan Merge placeholder still appends every PR to a base-branch stackCó thể đã có người làm @mangeshraut712 đã nhận 15 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
typescript-best-practices: schema example uses z.string().uuid(), deprecated in Zod 4Có thể đã có người làm @mangeshraut712 đã nhận 14 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
cursor/plugins#1165 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
statechart: relative-symlink launcher test fails on macOS because /var is a symlinkCó thể đã có người làm @lnuxe đã nhận 3 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
cursor/plugins#1164 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
pstack docs/harness/claude-code.md: transcript slug replaces every non-alphanumeric character, not only / and .Có thể đã có người làm @isTuhin đã nhận 9 ngày trước. Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 82/100
cursor/plugins#1155 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của cursor/plugins
Issue tương tự
-
infra needs-triage
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 82/100
LucasSantana-Dev/Lucky#3331 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
kOaDT/oss-oopssec-store#381 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
nocobase/nocobase#11669 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
iOS: Clear Context (/clear) and model picker fallback use negative agent check instead of isClaudeĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Area: API Bug Difficulty: Low Priority: Low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
DouglasNeuroInformatics/OpenDataCapture#1937 ·
Maintainer thường phản hồi trong vòng 1 ngày