Repository navigation
enable superpowers to use subagents in codex via collab - #450
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughAdds explicit prohibition against agents/subagents autonomously discovering or invoking "superpowers" skills across multiple prompt and skill docs; introduces a Visual Brainstorming Companion (server, helper, frame, scripts, tests); updates hooks for Windows, numerous path changes from Changes
Sequence Diagram(s)sequenceDiagram
participant Browser as Browser (helper.js)
participant Server as Brainstorm Server
participant Claude as Claude / Orchestrator
Browser->>Server: open WebSocket / queue events
Server-->>Browser: reload / inject helper (on file change)
Browser->>Server: send user event (click/submit/input)
Server->>Claude: write event JSON to stdout / log
Claude->>Server: push updated screen file into SCREEN_DIR
Server->>Browser: notify clients to reload
Browser->>Server: sendToClaude (feedback) -> server logs "send-to-claude"
Server->>Claude: wait-for-feedback.sh reads log and returns JSON line
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related issues
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@skills/using-superpowers/SKILL.md`:
- Around line 24-33: The Codex mappings in the routing table (entries
referencing spawn_agent, wait, close_agent and the `[features] collab = true`
syntax) are unverified and should be removed or explicitly marked as unverified;
update the SKILL.md table in the "Dispatching Tasks" section to either delete
the Codex column or replace those cells with officially documented Codex/App
Server/SDK equivalents (e.g., reference JSON-RPC methods like initialize,
thread/start, turn/start or SDK methods startThread() and resumeThread()) and
add a short note that any alternative names are speculative/unverified.
🧹 Nitpick comments (1)
skills/using-superpowers/SKILL.md (1)
26-26: Consider adding guidance on error handling for dispatch operations.The Dispatching Tasks section provides a translation table but doesn't mention how to handle dispatch failures or errors. For production robustness, consider adding a note about error handling when spawning agents or waiting for results, especially since subagent failures could cascade.
💡 Suggested addition for dispatch error handling
Consider adding a row or note to the table:
| End subagent | Task completes automatically | `close_agent` | + +**Error handling:** If a spawn or wait operation fails, the dispatching skill should handle the error gracefully and may need to report back to the orchestrator.
…ing table Codex subagents inherit filesystem access and can discover superpowers skills via native discovery. Without guidance, they activate the 1% rule and invoke full skill workflows instead of executing their assigned task. - Add SUBAGENT-STOP gate check above the 1% rule in using-superpowers - Add Codex dispatch routing table (spawn_agent/wait/close_agent) - Add scope directives to all 4 subagent dispatch templates Co-Authored-By: Claude Opus 4.6 <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Replace verbose scope explanations with a direct override statement that explicitly claims priority over prior guidance (i.e. the using-superpowers 1% rule injected by Codex's skill discovery). Co-Authored-By: Claude Opus 4.6 <[email protected]>
5306d48 to
a171953
Compare
Addresses Jesse's review feedback on PR #450: - Move inline routing table from using-superpowers to references/codex-tools.md, leveraging Codex's native progressive disclosure for companion files - Narrow SUBAGENT-STOP from "Do not invoke skills" to "Do not invoke superpowers skills" so subagents can still use non-superpowers skills Co-Authored-By: Claude Opus 4.6 <[email protected]>
Let the SUBAGENT-STOP gate in using-superpowers handle skill leakage instead of per-template directives. This avoids blocking non-superpowers skills that users may want subagents to use. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Drop 'top-level sessions only' which may cause the model to treat using-superpowers as a first-turn-only skill, breaking skill chaining on follow-up turns. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Addresses Jesse's review feedback on PR #450: - Move inline routing table from using-superpowers to references/codex-tools.md, leveraging Codex's native progressive disclosure for companion files - Narrow SUBAGENT-STOP from "Do not invoke skills" to "Do not invoke superpowers skills" so subagents can still use non-superpowers skills Co-Authored-By: Claude Opus 4.6 <[email protected]>
Addresses Jesse's review feedback on PR #450: - Move inline routing table from using-superpowers to references/codex-tools.md, leveraging Codex's native progressive disclosure for companion files - Narrow SUBAGENT-STOP from "Do not invoke skills" to "Do not invoke superpowers skills" so subagents can still use non-superpowers skills Co-Authored-By: Claude Opus 4.6 <[email protected]>
Addresses Jesse's review feedback on PR obra#450: - Move inline routing table from using-superpowers to references/codex-tools.md, leveraging Codex's native progressive disclosure for companion files - Narrow SUBAGENT-STOP from "Do not invoke skills" to "Do not invoke superpowers skills" so subagents can still use non-superpowers skills Co-Authored-By: Claude Opus 4.6 <[email protected]>
Summary
<SUBAGENT-STOP>gate check tousing-superpowersthat short-circuits before the 1% rule, telling subagents to ignore the skill catalog and just execute their dispatch promptusing-superpowersmapping CC concepts (Tasktool) to Codex equivalents (spawn_agent/wait/close_agent)Problem
In Codex, subagents inherit filesystem access and can discover superpowers skills via
~/.agents/skills/. Theusing-superpowers1% rule ("if there's even a 1% chance a skill applies, USE IT") causes subagents to activate the full skill workflow instead of just executing their assigned task. This burns tokens, adds latency, and confuses subagents that see conflicting instructions.Approach
CC-first. No skill language was genericized. No scope guard mechanisms. Claude Code users see zero functional difference.
The fix is guidance, not machinery:
using-superpowersimmediatelyWhat we explicitly did NOT do
Test plan
Closes PRI-420
🤖 Generated with Claude Code
Summary by CodeRabbit