<feed xmlns='http://www.w3.org/2005/Atom'>
<title>superpowers.git/docs, branch fix/wave1-run-hook-heredoc</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>chore: bump version to 7.0.2</title>
<updated>2026-11-03T02:39:43+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@fsck.com</email>
</author>
<published>2026-11-03T02:39:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=e82bda463976eb96fe5e442b656199e6ce0f5c3e'/>
<id>e82bda463976eb96fe5e442b656199e6ce0f5c3e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge dev into the OpenCode compaction bootstrap fix</title>
<updated>2026-11-02T21:31:53+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@primeradiant.com</email>
</author>
<published>2026-11-02T21:31:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=38fd8323e43f4b13e8bdc9d62b85ca1ed524a3f8'/>
<id>38fd8323e43f4b13e8bdc9d62b85ca1ed524a3f8</id>
<content type='text'>
Drew requested resolution of the merge conflict in obra/superpowers PR
#2601. Merge current dev into the existing PR branch without rewriting its
history.

Resolve the V2 bootstrap hunk by keeping #2601's shared handler registered
on context, compaction, and generate, and incorporating #2600's exact
BOOTSTRAP_MARKER prefix guard. This preserves injection for prompts that
merely mention EXTREMELY_IMPORTANT while preventing duplicate bootstrap
parts. All other dev changes merge without manual edits.

Validation: bash tests/opencode/run-tests.sh passed all five suites,
including hook registration, tag-mention regression coverage, child-session
suppression, caching, and skill registration. git diff --cached --check
passed and the index contains no unresolved paths. Live OpenCode
integration sessions were not rerun for this conflict-only repair.

Tracking: PRI-3674
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Drew requested resolution of the merge conflict in obra/superpowers PR
#2601. Merge current dev into the existing PR branch without rewriting its
history.

Resolve the V2 bootstrap hunk by keeping #2601's shared handler registered
on context, compaction, and generate, and incorporating #2600's exact
BOOTSTRAP_MARKER prefix guard. This preserves injection for prompts that
merely mention EXTREMELY_IMPORTANT while preventing duplicate bootstrap
parts. All other dev changes merge without manual edits.

Validation: bash tests/opencode/run-tests.sh passed all five suites,
including hook registration, tag-mention regression coverage, child-session
suppression, caching, and skill registration. git diff --cached --check
passed and the index contains no unresolved paths. Live OpenCode
integration sessions were not rerun for this conflict-only repair.

Tracking: PRI-3674
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #2597 from obra/fix/2583-opencode-skill-names</title>
<updated>2026-11-02T20:49:56+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@ritter.dev</email>
</author>
<published>2026-11-02T20:49:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=31ac34e181da9a896ac0a7664305416a84ac748e'/>
<id>31ac34e181da9a896ac0a7664305416a84ac748e</id>
<content type='text'>
fix(opencode): tell the model skill ids are bare names (#2583)</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fix(opencode): tell the model skill ids are bare names (#2583)</pre>
</div>
</content>
</entry>
</feed>
