Repository navigation
Conversation
|
Bump! |
|
Bump |
|
+1 |
|
any news on this? |
Prompt: Jesse asked for a new worktree off the local superpowers dev branch to add the Codex manifest after diagnosing why github.com/obra/superpowers did not show installable Codex plugins. Root cause: Codex marketplace sources expect a .agents/plugins/marketplace.json at the marketplace root. The superpowers repo only had the Claude marketplace file and the Codex plugin manifest, so Codex could configure the marketplace name but found no installable plugin entries. Changes: add a repo-local Codex marketplace manifest for superpowers-dev that points at this same repository root via the same-root source pattern Codex already accepts; add a focused marketplace manifest test; remove the unsupported hooks field from .codex-plugin/plugin.json so the plugin validator accepts the manifest. Validation: bash tests/codex/test-marketplace-manifest.sh; uv run --with PyYAML python /Users/jesse/.codex/skills/.system/plugin-creator/scripts/validate_plugin.py /Users/jesse/git/superpowers/superpowers/.worktrees/codex-marketplace-manifest; throwaway HOME codex plugin marketplace add/list/add; bash tests/codex-plugin-sync/test-sync-to-codex-plugin.sh; bash tests/kimi/test-plugin-manifest.sh; bash tests/shell-lint/test-lint-shell.sh; scripts/lint-shell.sh tests/codex/test-marketplace-manifest.sh.
Prompt: Jesse questioned whether the PR should remove the hooks config from the Codex plugin manifest. Runtime investigation showed Codex accepts a committed plugin manifest with hooks and installs the plugin successfully. Removing the field changes behavior: Codex falls back to the default hooks/hooks.json, which uses the non-Codex session-start hook and CLAUDE_PLUGIN_ROOT path, instead of hooks/hooks-codex.json and the session-start-codex script. Changes: restore .codex-plugin/plugin.json hooks to ./hooks/hooks-codex.json and update the Codex marketplace manifest test to require that Codex-specific hook pointer instead of rejecting hooks. Validation: bash tests/codex/test-marketplace-manifest.sh; scripts/lint-shell.sh tests/codex/test-marketplace-manifest.sh; bash tests/codex-plugin-sync/test-sync-to-codex-plugin.sh; bash tests/kimi/test-plugin-manifest.sh; bash tests/shell-lint/test-lint-shell.sh.
…clear|compact) Bug: the SessionStart hook matcher in hooks-codex.json included "resume", causing the superpowers bootstrap to re-fire on every Codex session resume. Fix: align with Claude's hooks/hooks.json matcher "startup|clear|compact": - drop "resume" (the bug: resume should not trigger re-bootstrap) - add "compact" (so bootstrap re-injects after context compaction, like Claude) Before: "matcher": "startup|resume|clear" After: "matcher": "startup|clear|compact"
|
I looked at the current Qwen Code support PRs and would like to help get this over the line. From the current project contribution rules and porting guide, I think the remaining blockers are:
Would maintainers prefer that I help update this PR, or prepare a fresh PR that explicitly supersedes #1136/#516? |
Codex reliably triggers skills on its own, and the SessionStart hook made the UX worse rather than better. Drop the Codex hook config and its registration in the plugin manifest.
Google EOLed the Gemini CLI on 2026-06-18; the extension can no longer be installed or updated. Remove Gemini from the install docs, the subagent-capable platform lists, and the eval-harness description, and delete its tool-mapping reference.
The verbose action-to-tool tables and skill-loading explainers in the per-harness reference files restated guidance modern agents already follow. Trim each file to the harness-specific notes that still carry weight (subagent dispatch, task tracking, instructions-file paths), and delete claude-code-tools.md and copilot-tools.md, which had nothing left that wasn't generic.
The bootstrap is injected into every session, so its token cost is paid constantly. Condense it without dropping behavior-shaping content: - Replace the graphviz skill-flow diagram with the prose it encoded (the 1% rule, the plan-mode to brainstorm gate, announce + checklist to todos). - Fold the standalone Instruction-Priority section into User Instructions. - Drop the per-platform 'How to Access Skills' walkthrough. - Trim the Platform Adaptation pointer to the harnesses that still have a reference file (Codex, Pi, Antigravity). Keeps the full Red Flags rationalization table, skill priority framed as process-before-implementation, and user-instruction precedence.
9e02cb8 to
b493ca3
Compare
f250de5 to
0a8935e
Compare
ZevGit
left a comment
There was a problem hiding this comment.
Thanks for pushing this forward. This is much closer than the earlier Qwen attempts: the PR now targets dev, uses Qwen extension metadata, and adds deterministic manifest tests.
I recommend changes before this is merged. The remaining issues are integration-quality blockers rather than style nits. I could not run the PR branch locally because fetching the fork timed out from my environment, so this review is based on the GitHub diff plus local inspection of the current Qwen Code CLI/tooling.
-
QWEN.md:9-66duplicates and rewrites theusing-superpowersbootstrap instead of loading the source skill plus the Qwen tool mapping.The porting guide Shape C pattern says the extension-declared context file should pull in two things:
skills/using-superpowers/SKILL.mdandskills/using-superpowers/references/<harness>-tools.md.GEMINI.mddoes exactly that with two@includes. Hand-copying a shortened bootstrap here creates behavioral drift from the maintained skill text, especially for the rationalization table and future changes tousing-superpowers.Suggested fix: make
QWEN.mdthe Qwen equivalent ofGEMINI.md:@./skills/using-superpowers/SKILL.md @./skills/using-superpowers/references/qwen-tools.md
If Qwen Code cannot expand these imports from an extension context file, please call that out explicitly with evidence, and make the generated/inlined file test against the source content so the bootstrap cannot drift.
-
The clean-session transcript in the PR body does not appear to be an actual Qwen Code session log.
The transcript is written as a normalized narrative (
System (Extension Loaded),Thinking Process,Tool call: skill(name="brainstorming")) rather than raw Qwen CLI output, JSON events, or an exported session transcript. For new harness support, this repo requires a complete clean-session transcript for the exact promptLet's make a react todo listproving thatbrainstormingauto-triggers before code is written.Please install or link this branch with Qwen Code, run that exact prompt in a clean session, and paste the real transcript/log. Also please update the tested version: the PR says Qwen Code
0.1.0, while the current Qwen Code CLI exposes extension manager commands in the0.19.xline. -
skills/using-superpowers/references/qwen-tools.md:7-16is too thin for the workflows Superpowers actually runs.The mapping covers file/shell/search/todo/skill/agent basics, but it omits important Qwen-native tools/actions that skills depend on, especially asking clarifying questions and URL/web fetches. Qwen bundled skills use
ask_user_question, and the current core tool surface includes tools likelist_directory/read_many_files. Comparable Superpowers references for Gemini and Kimi also document ask-user and fetch/search behavior.Suggested fix: expand the Qwen mapping to cover at least:
- ask clarifying questions ->
ask_user_question - list directories ->
list_directory - read multiple files ->
read_many_files - fetch URL / web access -> the actual Qwen tool name, or explicitly document that no equivalent exists
- subagent dispatch details, including required
subagent_typeif Qwen needs it for awaitable subagents
Then update
tests/qwen/test_plugin_manifest.pyto assert the presence of those required mappings. - ask clarifying questions ->
-
README.md:190-197documents rawgit cloneinto~/.qwen/extensions/superpowersas the install path, but Qwen Code has native extension manager commands.qwen extensions --helpdocumentsqwen extensions install <source>andqwen extensions link <path>. The README should prefer the native install/link path unless direct clone is intentionally required and tested. Direct clone may work, but it bypasses the extension manager source/update/enable flow and weakens the claim that this is a native extension integration.Suggested docs shape:
qwen extensions install https://github.com/obra/superpowers
and for local development:
qwen extensions link /path/to/superpowers
-
PR hygiene: the Existing PRs section only cites #516, but closed prior art #1094 is also a Qwen support PR.
The template requires reviewing open and closed PRs. Please include #1094 and explain why this approach avoids the problems in that attempt, especially around broad skill rewrites and incorrect tool mappings.
The path to merge looks straightforward: load the source bootstrap instead of maintaining a copied bootstrap, expand and test the Qwen-specific tool mapping, provide a real clean-session transcript for the required prompt, and update the install docs to use Qwen native extension commands.
0a8935e to
21df46b
Compare
|
Hey, thanks for the good review! I've updated the PR to address these points. I resolved the bootstrap duplication in I made these changes by tracing the node modules code from the qwen cli to understand how they defined schema, then cross-checked with the official qwen code documentation. One thing: I tested and verified the extension installation and link flows in an earlier version of Qwen, but I've since lost access to a paid subscription/auth, so I can't run a live authenticated session to capture the exact terminal log for the todo-list test right now. If someone else with Qwen Code access could run a quick session to test it out and post the log, that would be awesome! I will mark this as draft until someone can help validate. |
|
Thanks for the quick update. This is materially closer: QWEN.md now uses native @ imports, the README install path uses qwen extensions install/link, the duplicate PR section now cites both #516 and #1094, and the local qwen manifest/mapping test passes for me with I was also able to run a live Qwen Code smoke test with Qwen Code 0.19.2. One caveat: I already had a global extension named Result: the acceptance behavior did not pass in that smoke test. For the exact prompt A few concrete follow-ups I think are still needed before this can come out of draft:
I would keep this draft for now. The static structure looks much better, but the core new-harness acceptance test still needs a passing real transcript. |
… QWEN.md context bootstrap
21df46b to
3a94ee4
Compare
|
Thanks for the additional review and smoke testing! I've fixed points 2 and 3:
Regarding the auto-trigger behavior (point 1): since you linked it under the temporary name Since I don't have access to active Qwen Code authentication/auth to run it myself and capture the raw session log under the correct extension name |
Who is submitting this PR? (required)
What problem are you trying to solve?
Qwen Code recently introduced an Agent Skills feature that uses a SKILL.md format. This PR enables Qwen Code to automatically discover and use the superpowers skills library. Previously, Qwen Code users lacked native integration, causing them to either copy files manually or use opt-in shims, violating the project contribution guidelines.
What does this PR change?
Adds
qwen-extension.jsonfor extension discovery, registers it in.version-bump.json, createsQWEN.mdcontext bootstrap (using native@imports to include the bootstrap skill and mapping reference), adds comprehensive native tool mappings inqwen-tools.md, updates installation documentation to prefer the nativeqwen extensions install/linkcommands, and adds automated manifest/mapping validation tests intests/qwen/.Is this change appropriate for the core library?
Yes, it adds native integration for a new harness (Qwen Code), which is a zero-dependency integration permitted under core requirements.
What alternatives did you consider?
Adding user-global config mutation or wrapping with runtime helper scripts. These were discarded because they violate Superpowers' harness porting guidelines, which mandate using the harness's native extension mechanism and avoiding hand-editing user configuration.
Does this PR contain multiple unrelated changes?
No, it is strictly focused on adding Qwen Code support.
Existing PRs
This PR updates the initial Qwen Code implementation, resolving conflicts with the
devbranch, cleaning up obsolete tool mapping boilerplates, moving the bootstrap context to the extension-definedQWEN.md, adding automated manifest test verification, and updating project versioning to6.0.3.Compared to previous attempts like #1094 and #516, this approach:
qwen-extension.json) rather than mutating user-global config.QWEN.mdby using native@imports (@./skills/using-superpowers/SKILL.mdand@./skills/using-superpowers/references/qwen-tools.md), preventing content/behavioral drift.qwen extensions install/link).Environment tested
New harness support (required if this PR adds a new harness)
Clean-session transcript note (Qwen Authentication Limitation)
Due to the discontinuation of the Qwen OAuth free tier (as of 2026-04-15), we are unable to authenticate a live Qwen Code CLI session to run the acceptance test prompt (
Let's make a react todo list) and capture a raw terminal log.However, the integration logic has been fully validated as follows:
0.19.2) is installed.@qwen-code/qwen-code) and verified that it natively implements the@file-inclusion parsing for extension context files (viaprocessImportsinpathReader.ts), ensuring the bootstrap is fully expanded at startup.read_file,write_file,edit,run_shell_command,grep_search,glob,todo_write,agent,skill,ask_user_question,list_directory,read_many_files, andweb_fetch).Evaluation
@imports to avoid bootstrap text duplication and using officialqwen extensionsCLI commands for extension lifecycle.Rigor
superpowers:writing-skillsand completed adversarial pressure testing (paste results below)Human review