<feed xmlns='http://www.w3.org/2005/Atom'>
<title>superpowers.git/docs/windows, branch fix/wave1-public-docs-and-errata</title>
<subtitle>Agentic skills framework and development workflow
</subtitle>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/'/>
<entry>
<title>docs(hooks): show how to read the escaping example's result</title>
<updated>2026-11-26T08:46:07+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@primeradiant.com</email>
</author>
<published>2026-11-26T08:46:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=f27e901302c8294370ac77bfba148c7d72bc8b78'/>
<id>f27e901302c8294370ac77bfba148c7d72bc8b78</id>
<content type='text'>
The example's escape_for_json, copied from hooks/session-start, leaves
its result in using_superpowers_escaped and prints nothing, but the
block shows no call, so a hook author who copies it and writes
json=$(escape_for_json "$text") gets an empty string and no error. Add
a comment after the function that says why the result is left in a
variable (capturing output with $(...) forks) and shows the call
followed by the read of the variable.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The example's escape_for_json, copied from hooks/session-start, leaves
its result in using_superpowers_escaped and prints nothing, but the
block shows no call, so a hook author who copies it and writes
json=$(escape_for_json "$text") gets an empty string and no error. Add
a comment after the function that says why the result is left in a
variable (capturing output with $(...) forks) and shows the call
followed by the read of the variable.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>docs(hooks): copy session-start's escaping code into the polyglot-hooks JSON example</title>
<updated>2026-11-26T08:32:48+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@primeradiant.com</email>
</author>
<published>2026-11-26T08:32:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=ee554d0d7152af0894290254db3779ca140ff172'/>
<id>ee554d0d7152af0894290254db3779ca140ff172</id>
<content type='text'>
The example got its carriage return with cr=$(printf '\r'), a command
substitution that forks under bash, a few lines below the Do list's
"run fork-free under bash". Its escape_for_json also printed the result,
which invites a $(...) capture that forks again. Replace both with
hooks/session-start's own lines: the BASH_VERSION branch that sets cr
with printf -v under bash, and the assignment of the result to a
variable. The example is now byte-identical to session-start's nl, tab
and cr setup and its replace_all and escape_for_json functions, so it
cannot drift from the hook. The carriage-return escaping stays.

Checked by extracting the block and escaping a string holding a
backslash, a double quote, a tab, CR and LF: the output parses as JSON
and decodes to the input under bash, zsh, dash and /bin/sh. Under bash
with `ulimit -u 1`, which makes any fork fail, the old block died at the
cr line ("fork: Resource temporarily unavailable"); the new block runs.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The example got its carriage return with cr=$(printf '\r'), a command
substitution that forks under bash, a few lines below the Do list's
"run fork-free under bash". Its escape_for_json also printed the result,
which invites a $(...) capture that forks again. Replace both with
hooks/session-start's own lines: the BASH_VERSION branch that sets cr
with printf -v under bash, and the assignment of the result to a
variable. The example is now byte-identical to session-start's nl, tab
and cr setup and its replace_all and escape_for_json functions, so it
cannot drift from the hook. The carriage-return escaping stays.

Checked by extracting the block and escaping a string holding a
backslash, a double quote, a tab, CR and LF: the output parses as JSON
and decodes to the input under bash, zsh, dash and /bin/sh. Under bash
with `ulimit -u 1`, which makes any fork fail, the old block died at the
cr line ("fork: Resource temporarily unavailable"); the new block runs.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>docs(hooks): escape carriage returns in the polyglot-hooks JSON example</title>
<updated>2026-11-25T08:43:02+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@primeradiant.com</email>
</author>
<published>2026-11-25T08:43:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=4be7cd4fda25e090b84e446a9906ccfa7dd04d20'/>
<id>4be7cd4fda25e090b84e446a9906ccfa7dd04d20</id>
<content type='text'>
The POSIX rewrite of the escape_for_json example dropped the carriage
return case the bash version had, though hooks/session-start still
escapes it. A hook copied from the example emits a raw CR inside a JSON
string whenever the injected file has CRLF line endings, and the harness
rejects the JSON. Add the CR replacement session-start uses, guarded on
an empty $cr because replace_all never ends on an empty search string.

Checked by extracting the block and escaping a string holding a
backslash, a quote, CR, LF and a tab under bash, dash, zsh and /bin/sh:
node's JSON.parse rejected all four outputs before the change, and after
it all four parse back to the input.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The POSIX rewrite of the escape_for_json example dropped the carriage
return case the bash version had, though hooks/session-start still
escapes it. A hook copied from the example emits a raw CR inside a JSON
string whenever the injected file has CRLF line endings, and the harness
rejects the JSON. Add the CR replacement session-start uses, guarded on
an empty $cr because replace_all never ends on an empty search string.

Checked by extracting the block and escaping a string holding a
backslash, a quote, CR, LF and a tab under bash, dash, zsh and /bin/sh:
node's JSON.parse rejected all four outputs before the change, and after
it all four parse back to the input.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>docs(hooks): name dash, not ash or sh, as the shell that rejects bash-only constructs</title>
<updated>2026-11-25T08:42:13+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@primeradiant.com</email>
</author>
<published>2026-11-25T08:42:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=67c748041b7ea7f324070e95e3509951a7a8ff3f'/>
<id>67c748041b7ea7f324070e95e3509951a7a8ff3f</id>
<content type='text'>
The Avoid list said ${s//a/b}, [[ ... ]], $'\n' and (( i++ )) fail on
dash, ash and sh. Only dash rejects all four. busybox ash accepts the
first three and rejects only (( i++ )), and macOS /bin/sh is bash, which
accepts all four. Checked on macOS /bin/dash, /bin/sh (bash 3.2) and the
busybox:latest image.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The Avoid list said ${s//a/b}, [[ ... ]], $'\n' and (( i++ )) fail on
dash, ash and sh. Only dash rejects all four. busybox ash accepts the
first three and rejects only (( i++ )), and macOS /bin/sh is bash, which
accepts all four. Checked on macOS /bin/dash, /bin/sh (bash 3.2) and the
busybox:latest image.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(hooks): restore session-start's output comments and keep heredocs out of the hooks</title>
<updated>2026-11-25T08:41:51+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@primeradiant.com</email>
</author>
<published>2026-11-25T08:41:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=64dbc15cf25a16564e61139dd07d97b0735bd4f8'/>
<id>64dbc15cf25a16564e61139dd07d97b0735bd4f8</id>
<content type='text'>
The POSIX rewrite cut the comment block above emit_json to one line,
though the code under it did not change. The block says why each
platform gets exactly one field, why output is built with printf rather
than a heredoc (#571), and why emit_json absorbs EPIPE (#1612); that last
part exists because contributors kept removing the guard as noise.
Restore dev's block with three corrections: the Muse line names the
nested form the Muse branch emits, the heredoc hang starts at bash 5.1
rather than 5.3, and the script runs under set -eu, not set -euo
pipefail.

Nothing else kept a heredoc out of either hook file. Add heredocs to the
hook-author Avoid list in polyglot-hooks.md, and a test that fails if
run-hook.cmd or session-start has `&lt;&lt;` on a line that is not a # or REM
comment. The test fails against dev's run-hook.cmd.

session-start prints the same bytes as on dev under bash for the Cursor,
Claude Code, Copilot CLI, Muse and no-platform branches.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The POSIX rewrite cut the comment block above emit_json to one line,
though the code under it did not change. The block says why each
platform gets exactly one field, why output is built with printf rather
than a heredoc (#571), and why emit_json absorbs EPIPE (#1612); that last
part exists because contributors kept removing the guard as noise.
Restore dev's block with three corrections: the Muse line names the
nested form the Muse branch emits, the heredoc hang starts at bash 5.1
rather than 5.3, and the script runs under set -eu, not set -euo
pipefail.

Nothing else kept a heredoc out of either hook file. Add heredocs to the
hook-author Avoid list in polyglot-hooks.md, and a test that fails if
run-hook.cmd or session-start has `&lt;&lt;` on a line that is not a # or REM
comment. The test fails against dev's run-hook.cmd.

session-start prints the same bytes as on dev under bash for the Cursor,
Claude Code, Copilot CLI, Muse and no-platform branches.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(hooks): return the wrapper's REM comments, the fork note and four doc passages to dev's text where no issue requires a change</title>
<updated>2026-11-25T08:40:03+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@primeradiant.com</email>
</author>
<published>2026-11-25T08:40:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=59c1f8472a18c42f6ec605c41201b7a903629abc'/>
<id>59c1f8472a18c42f6ec605c41201b7a903629abc</id>
<content type='text'>
Removing the heredoc and adding the POSIX sh fallback need none of these
edits:

- hooks/run-hook.cmd: every REM block below @echo off returns, so the
  batch half reads as it does on dev; each block still describes the
  batch code beside it. The pointer line that replaced the header goes
  with them. Only the four :; lines sit above @echo off.
- hooks/session-start: the note on forks returns, with "in this script"
  narrowed to "under bash", because the non-bash path now forks once to
  get a carriage return.
- docs/porting-to-a-new-harness.md: the Windows sentence of Part 7
  returns. Only the Unix sentence, false once the heredoc is gone, keeps
  the new text.
- docs/windows/polyglot-hooks.md: the WSL-launcher sentence, the "Silent
  exit on no-bash" row, the hook-script sentence and the backticks bullet
  return. The for-variable modifier fact from the wrapper's REM block
  follows the launcher sentence as a sentence of its own.

session-start prints the same bytes as on dev under bash for the Cursor,
Claude Code, Copilot CLI, Muse and no-platform branches.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Removing the heredoc and adding the POSIX sh fallback need none of these
edits:

- hooks/run-hook.cmd: every REM block below @echo off returns, so the
  batch half reads as it does on dev; each block still describes the
  batch code beside it. The pointer line that replaced the header goes
  with them. Only the four :; lines sit above @echo off.
- hooks/session-start: the note on forks returns, with "in this script"
  narrowed to "under bash", because the non-bash path now forks once to
  get a carriage return.
- docs/porting-to-a-new-harness.md: the Windows sentence of Part 7
  returns. Only the Unix sentence, false once the heredoc is gone, keeps
  the new text.
- docs/windows/polyglot-hooks.md: the WSL-launcher sentence, the "Silent
  exit on no-bash" row, the hook-script sentence and the backticks bullet
  return. The for-variable modifier fact from the wrapper's REM block
  follows the launcher sentence as a sentence of its own.

session-start prints the same bytes as on dev under bash for the Cursor,
Claude Code, Copilot CLI, Muse and no-platform branches.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>docs(hooks): document heredoc-free :; wrapper and POSIX sh hook support</title>
<updated>2026-11-24T23:58:12+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@primeradiant.com</email>
</author>
<published>2026-11-24T23:58:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=cb35bc6dcb9ddf39b894173794f5fcfecca5cc3e'/>
<id>cb35bc6dcb9ddf39b894173794f5fcfecca5cc3e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(hooks): add a powershell form of the SessionStart command for Copilot on Windows (#2189)</title>
<updated>2026-10-22T20:56:46+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@fsck.com</email>
</author>
<published>2026-10-22T20:56:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=0a4d60db4faf3628abc3e6be4fc3e1a0697c69de'/>
<id>0a4d60db4faf3628abc3e6be4fc3e1a0697c69de</id>
<content type='text'>
GitHub Copilot on Windows (Copilot CLI and VS Code Copilot) runs a hook's
command through PowerShell and ignores shell:"bash". PowerShell parses
"&lt;root&gt;/hooks/run-hook.cmd" session-start as a string expression followed
by a bareword, fails with "Unexpected token 'session-start'", and the
using-superpowers bootstrap never reaches the session.

Copilot prefers a hook's powershell key over command when it is present, so
add one that runs the same wrapper with the &amp; call operator. Claude Code
ignores the key and keeps dispatching command through Git Bash.

Verified on Windows 11 in a VM: Copilot CLI 1.0.103 logged the ParserError
and sent no bootstrap before the change, and ran the hook and sent the
bootstrap after it. Claude Code 2.1.308 ran the hook and sent the bootstrap
both before and after.

The new test in test-run-hook-cmd-windows.sh runs the hooks.json powershell
value through powershell.exe against a plugin root with a space in its path.

Co-authored-by: Tugrul Guner &lt;tugrulguner@users.noreply.github.com&gt;
Co-authored-by: Serge ARADJ &lt;orty@users.noreply.github.com&gt;
Claude-Session: https://claude.ai/code/session_01SHANcr4A71nzuU9et4Fnba
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
GitHub Copilot on Windows (Copilot CLI and VS Code Copilot) runs a hook's
command through PowerShell and ignores shell:"bash". PowerShell parses
"&lt;root&gt;/hooks/run-hook.cmd" session-start as a string expression followed
by a bareword, fails with "Unexpected token 'session-start'", and the
using-superpowers bootstrap never reaches the session.

Copilot prefers a hook's powershell key over command when it is present, so
add one that runs the same wrapper with the &amp; call operator. Claude Code
ignores the key and keeps dispatching command through Git Bash.

Verified on Windows 11 in a VM: Copilot CLI 1.0.103 logged the ParserError
and sent no bootstrap before the change, and ran the hook and sent the
bootstrap after it. Claude Code 2.1.308 ran the hook and sent the bootstrap
both before and after.

The new test in test-run-hook-cmd-windows.sh runs the hooks.json powershell
value through powershell.exe against a plugin root with a space in its path.

Co-authored-by: Tugrul Guner &lt;tugrulguner@users.noreply.github.com&gt;
Co-authored-by: Serge ARADJ &lt;orty@users.noreply.github.com&gt;
Claude-Session: https://claude.ai/code/session_01SHANcr4A71nzuU9et4Fnba
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(hooks): run-hook.cmd finds per-user Git, skips WSL launchers and the current directory, keeps exit codes (#2393)</title>
<updated>2026-09-26T20:14:36+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@primeradiant.com</email>
</author>
<published>2026-09-26T20:14:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=35ce9493c912e8981cb5b76ffa7ceba5aed74530'/>
<id>35ce9493c912e8981cb5b76ffa7ceba5aed74530</id>
<content type='text'>
Combines and supersedes #1864 and #2365. Fixes #1863.

Co-authored-by: citizen204 &lt;161211652+citizen204@users.noreply.github.com&gt;
Co-authored-by: KaiyiQuan &lt;156817180+KaiyiQuan@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Combines and supersedes #1864 and #2365. Fixes #1863.

Co-authored-by: citizen204 &lt;161211652+citizen204@users.noreply.github.com&gt;
Co-authored-by: KaiyiQuan &lt;156817180+KaiyiQuan@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>docs(windows): document shell:bash hook dispatch and the PowerShell/CMD fallback hazards</title>
<updated>2026-07-19T19:03:59+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@fsck.com</email>
</author>
<published>2026-07-16T00:14:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=fe0b24390e80a9bbdf0298074fab4a8d79c2553a'/>
<id>fe0b24390e80a9bbdf0298074fab4a8d79c2553a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
