diff options
| author | Jesse Vincent <jesse@fsck.com> | 2026-02-05 17:34:36 -0800 |
|---|---|---|
| committer | Jesse Vincent <jesse@fsck.com> | 2026-02-05 17:34:36 -0800 |
| commit | a98c5dfc9de0df5318f4980d91d24780a566ee60 (patch) | |
| tree | 082c2c4495629bd585a0a11807b4e0ede9a99753 | |
| parent | a72e416979b76d9fe30f926138a3de058c964738 (diff) | |
Release v4.2.0: Windows fixes, Codex native skill discovery, worktree requirementsv4.2.0
| -rw-r--r-- | .claude-plugin/marketplace.json | 2 | ||||
| -rw-r--r-- | .claude-plugin/plugin.json | 2 | ||||
| -rw-r--r-- | RELEASE-NOTES.md | 67 |
3 files changed, 38 insertions, 33 deletions
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index f09ebef..cdc40f3 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -9,7 +9,7 @@ { "name": "superpowers", "description": "Core skills library for Claude Code: TDD, debugging, collaboration patterns, and proven techniques", - "version": "4.0.3", + "version": "4.2.0", "source": "./", "author": { "name": "Jesse Vincent", diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 7472117..ed88de1 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "superpowers", "description": "Core skills library for Claude Code: TDD, debugging, collaboration patterns, and proven techniques", - "version": "4.1.1", + "version": "4.2.0", "author": { "name": "Jesse Vincent", "email": "jesse@fsck.com" diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 873d9c3..aca0df1 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -1,62 +1,67 @@ # Superpowers Release Notes -## Unreleased +## v4.2.0 (2026-02-05) ### Breaking Changes -**OpenCode: Switched to native skills system** +**Codex: Replaced bootstrap CLI with native skill discovery** -Superpowers for OpenCode now uses OpenCode's native `skill` tool instead of custom `use_skill`/`find_skills` tools. This is a cleaner integration that works with OpenCode's built-in skill discovery. +The `superpowers-codex` bootstrap CLI, Windows `.cmd` wrapper, and related bootstrap content file have been removed. Codex now uses native skill discovery via `~/.agents/skills/superpowers/` symlink, so the old `use_skill`/`find_skills` CLI tools are no longer needed. -**Migration required:** Skills must be symlinked to `~/.config/opencode/skills/superpowers/` (see updated installation docs). +Installation is now just clone + symlink (documented in INSTALL.md). No Node.js dependency required. The old `~/.codex/skills/` path is deprecated. ### Fixes -**OpenCode: Fixed agent reset on session start (#226)** - -The previous bootstrap injection method using `session.prompt({ noReply: true })` caused OpenCode to reset the selected agent to "build" on first message. Now uses `experimental.chat.system.transform` hook which modifies the system prompt directly without side effects. +**Windows: Fixed Claude Code 2.1.x hook execution (#331)** -**OpenCode: Fixed Windows installation (#232)** +Claude Code 2.1.x changed how hooks execute on Windows: it now auto-detects `.sh` files in commands and prepends `bash`. This broke the polyglot wrapper pattern because `bash "run-hook.cmd" session-start.sh` tries to execute the `.cmd` file as a bash script. -- Removed dependency on `skills-core.js` (eliminates broken relative imports when file is copied instead of symlinked) -- Added comprehensive Windows installation docs for cmd.exe, PowerShell, and Git Bash -- Documented proper symlink vs junction usage for each platform +Fix: hooks.json now calls session-start.sh directly. Claude Code 2.1.x handles the bash invocation automatically. Also added .gitattributes to enforce LF line endings for shell scripts (fixes CRLF issues on Windows checkout). -**Fixed Windows hook execution for Claude Code 2.1.x** +**Windows: SessionStart hook runs async to prevent terminal freeze (#404, #413, #414, #419)** -Claude Code 2.1.x changed how hooks execute on Windows: it now auto-detects `.sh` files in commands and prepends `bash `. This broke the polyglot wrapper pattern because `bash "run-hook.cmd" session-start.sh` tries to execute the .cmd file as a bash script. +The synchronous SessionStart hook blocked the TUI from entering raw mode on Windows, freezing all keyboard input. Running the hook async prevents the freeze while still injecting superpowers context. -Fix: hooks.json now calls session-start.sh directly. Claude Code 2.1.x handles the bash invocation automatically. Also added .gitattributes to enforce LF line endings for shell scripts (fixes CRLF issues on Windows checkout). +**Windows: Fixed O(n^2) `escape_for_json` performance** -**Windows: SessionStart hook runs async to prevent terminal freeze** +The character-by-character loop using `${input:$i:1}` was O(n^2) in bash due to substring copy overhead. On Windows Git Bash this took 60+ seconds. Replaced with bash parameter substitution (`${s//old/new}`) which runs each pattern as a single C-level pass — 7x faster on macOS, dramatically faster on Windows. -The synchronous SessionStart hook blocked the TUI from entering raw mode on Windows, freezing terminal input. The pure-bash `escape_for_json` function is O(n^2) on Windows Git Bash, taking 60+ seconds. Running the hook async prevents the freeze while still injecting superpowers context. +**Codex: Fixed Windows/PowerShell invocation (#285, #243)** -### New Features +- Windows doesn't respect shebangs, so directly invoking the extensionless `superpowers-codex` script triggered an "Open with" dialog. All invocations now prefixed with `node`. +- Fixed `~/` path expansion on Windows — PowerShell doesn't expand `~` when passed as an argument to `node`. Changed to `$HOME` which expands correctly in both bash and PowerShell. -**Visual companion for brainstorming skill** +**Codex: Fixed path resolution in installer** -Added optional browser-based visual companion for brainstorming sessions. When users have a browser available, brainstorming can display interactive screens showing current phase, questions, and design decisions in a more readable format than terminal output. +Used `fileURLToPath()` instead of manual URL pathname parsing to correctly handle paths with spaces and special characters on all platforms. -Components: -- `lib/brainstorm-server/` - WebSocket server for real-time updates -- `skills/brainstorming/visual-companion.md` - Integration guide -- Helper scripts for session management with proper isolation -- Browser helper library for event capture +**Codex: Fixed stale skills path in writing-skills** -The visual companion is opt-in and falls back gracefully to terminal-only operation. +Updated `~/.codex/skills/` reference (deprecated) to `~/.agents/skills/` for native discovery. ### Improvements -**Instruction priority clarified in using-superpowers** +**Worktree isolation now required before implementation** + +Added `using-git-worktrees` as a required skill for both `subagent-driven-development` and `executing-plans`. Implementation workflows now explicitly require setting up an isolated worktree before starting work, preventing accidental work directly on main. + +**Main branch protection softened to require explicit consent** + +Instead of prohibiting main branch work entirely, the skills now allow it with explicit user consent. More flexible while still ensuring users are aware of the implications. + +**Simplified installation verification** + +Removed `/help` command check and specific slash command list from verification steps. Skills are primarily invoked by describing what you want to do, not by running specific commands. + +**Codex: Clarified subagent tool mapping in bootstrap** -Added explicit instruction priority hierarchy to prevent conflicts with user preferences: +Improved documentation of how Codex tools map to Claude Code equivalents for subagent workflows. -1. User's explicit instructions (CLAUDE.md, direct requests) — highest priority -2. Superpowers skills — override default system behavior where they conflict -3. Default system prompt — lowest priority +### Tests -This ensures users remain in control. If CLAUDE.md says "don't use TDD" and a skill says "always use TDD," CLAUDE.md wins. +- Added worktree requirement test for subagent-driven-development +- Added main branch red flag warning test +- Fixed case sensitivity in skill recognition test assertions --- |
