Skip to content

docs(pstack): add OpenCode and Oh My Pi adapters - #1352

Open
dluxcru wants to merge 1 commit into
cursor:mainfrom
dluxcru:pstack-opencode-omp-adapters
Open

dluxcru wants to merge 1 commit into
cursor:mainfrom
dluxcru:pstack-opencode-omp-adapters

Conversation

@dluxcru

@dluxcru dluxcru commented Nov 26, 2026

Copy link
Copy Markdown

What this PR does

pstack skills are written for Cursor. They tell the agent to use Cursor's tools by name, for example "spawn a Task subagent with readonly: true". Other coding agents have the same abilities under different names, so they can't follow those steps as written.

pstack already solves this for Claude Code with a translation sheet, pstack/docs/harness/claude-code.md. The agent reads it once, then translates each Cursor name it meets in a skill.

This PR adds the same kind of sheet for two more coding agents:

  • pstack/docs/harness/opencode.md for OpenCode
  • pstack/docs/harness/omp.md for Oh My Pi (omp)

It also adds one paragraph to pstack/README.md that tells OpenCode and omp users how to set pstack up.

Here is one line from a skill and what each sheet turns it into:

The skill says OpenCode does omp does
Spawn a Task subagent with readonly: true Calls its subagent tool with agent: "explore" Calls its task tool with no agent, and tells the subagent not to edit files

Each sheet has about 30 rows like that one. They cover subagents, questions to the user, model names, file paths, and Cursor features that the other agent doesn't have.

What this PR does not do

  • No installable package for these agents. For Claude Code, a script copies pstack into harness/pstack/claude-code/, and Claude Code installs that copy. The repo calls this copy a generated tree. This PR builds no such copy for OpenCode or omp. Users link the skill folders by hand, as the README paragraph explains. feat: add native Codex support for pstack #1143 is reworking that script for Codex, and a package for these two agents would fit better on top of that work.
  • No Codex sheet. feat: add native Codex support for pstack #1143 covers Codex.

Two earlier PRs, #1144 and #1322, tried to add full packages for omp or OpenCode. Their authors closed them. This PR is much smaller, so it can land on its own, and a package can follow later.

How I tested it

I gave each agent only the translation sheet and one pstack skill, then gave it a task in this repo. No person was at the keyboard, and each run used a throwaway copy of the repo.

  • how (one read-only subagent explains some code). Both agents read the sheet, started the right subagent, waited for its answer, and presented it. No files changed.
  • arena (several subagents write competing versions of a script in separate git worktrees, then the best one is picked and improved). Both agents ran every phase and left a working script, including the read-only judge.
  • setup-pstack in omp. It wrote the model settings file and one agent file per model. In a follow-up arena run, the two runners and the judge each ran on the model and thinking level that their agent files name (OpenAI for the runners, a local Ollama model for the judge), which I confirmed in omp's session logs. The final script worked, and it exits with code 1 when a skill has no description.
  • setup-pstack in OpenCode. It wrote the model settings file in the format the sheet describes and added it to instructions in opencode.json. In an arena run with that file, the runners ran on the two OpenAI models it names and the judge on the local Ollama model.
  • swarm, no-comments, and interrogate in both agents. These cover fanning out workers, one worktree per worker, the comment-sicko agent, and a review panel with one model per reviewer. Each subagent ran on the model its role line names. The interrogate panel had two OpenAI reviewers and a local Ollama reviewer.
  • Continuing an OpenCode subagent. A second subagent call with the first call's sessionID reached the same subagent, and it remembered what it was told the first time.
  • OpenCode's skill tool does not offer skills marked disable-model-invocation: true, so the sheet tells the agent to read the skill file instead.

The repo's own checks pass: node scripts/generate-pstack-harness-trees.mjs --check, node scripts/check-pstack-docs.mjs, and node scripts/validate-plugins.mjs. I took the tool names from live sessions of OpenCode 2.3.2 and omp 17.2.8, not from memory.

What I have not tested

  • Other pstack skills. I tested how, arena, setup-pstack, swarm, no-comments, and interrogate.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HjJ5eANmb8NFvuTuauXDCe

pstack skills use Cursor names, and the Claude Code adapter maps them
for one harness. These two files do the same for OpenCode and Oh My Pi,
in the same table layout, so a user who links pstack/skills into either
harness has one place that says what `Task`, `AskQuestion`, `readonly`,
`environment: "cloud"`, model slugs, rule files, and transcript paths
become there.

The README gains one paragraph that links both adapters. The generated
Claude Code tree is refreshed because it carries the README.

Tool and field names were read from live sessions: OpenCode 2.2.6 and
omp 17.2.8. No pstack skill has been run end to end through either
adapter, and neither harness gets a generated tree here.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.

1 participant