Repository navigation
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Tasksubagent withreadonly: 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.mdfor OpenCodepstack/docs/harness/omp.mdfor Oh My Pi (omp)It also adds one paragraph to
pstack/README.mdthat tells OpenCode and omp users how to set pstack up.Here is one line from a skill and what each sheet turns it into:
Tasksubagent withreadonly: truesubagenttool withagent: "explore"tasktool with noagent, and tells the subagent not to edit filesEach 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
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.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-pstackin omp. It wrote the model settings file and one agent file per model. In a follow-uparenarun, 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-pstackin OpenCode. It wrote the model settings file in the format the sheet describes and added it toinstructionsinopencode.json. In anarenarun with that file, the runners ran on the two OpenAI models it names and the judge on the local Ollama model.swarm,no-comments, andinterrogatein both agents. These cover fanning out workers, one worktree per worker, thecomment-sickoagent, and a review panel with one model per reviewer. Each subagent ran on the model its role line names. Theinterrogatepanel had two OpenAI reviewers and a local Ollama reviewer.subagentcall with the first call'ssessionIDreached the same subagent, and it remembered what it was told the first time.skilltool does not offer skills markeddisable-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, andnode 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
how,arena,setup-pstack,swarm,no-comments, andinterrogate.🤖 Generated with Claude Code
https://claude.ai/code/session_01HjJ5eANmb8NFvuTuauXDCe