<feed xmlns='http://www.w3.org/2005/Atom'>
<title>superpowers.git/docs, branch fix/wave1-harness-adapters</title>
<subtitle>Agentic skills framework and development workflow
</subtitle>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/'/>
<entry>
<title>Merge branch 'fix/wave1-run-hook-heredoc' into fix/wave1-harness-adapters</title>
<updated>2026-11-26T08:46:47+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@primeradiant.com</email>
</author>
<published>2026-11-26T08:46:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=270c94ec16738f1dbb1e43513b09733d9600ac84'/>
<id>270c94ec16738f1dbb1e43513b09733d9600ac84</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<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(opencode): state only the checked 2.0.7 and 2.3.2 facts in the V2 notes</title>
<updated>2026-11-26T08:32:12+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@primeradiant.com</email>
</author>
<published>2026-11-26T08:32:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=58af57f67fb3887b1055b73dcb2700a289bf4bc4'/>
<id>58af57f67fb3887b1055b73dcb2700a289bf4bc4</id>
<content type='text'>
The V2 built-ins comment said subagents are "always background since
2.3.0", and the README said the subagent `background` parameter "was
removed in 2.3.0". No review checked 2.3.0 as the boundary: the reviews
read the 2.0.7 and 2.3.2 host contracts only. Both passages also
presented `todowrite` behind `experimental.todo` as true of all of V2,
which these files define as 2.0.4 and later, while 2.0.7 has no todo
tool.

Both passages now state only the checked facts: the subagent
`background` parameter is present in 2.0.7 and absent in 2.3.2, and
2.0.7 has no todo tool while 2.3.2 has `todowrite` behind
`experimental.todo`. The mapping lines that say `todowrite` "when
available" state no version, hold on both versions, and are unchanged.

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 V2 built-ins comment said subagents are "always background since
2.3.0", and the README said the subagent `background` parameter "was
removed in 2.3.0". No review checked 2.3.0 as the boundary: the reviews
read the 2.0.7 and 2.3.2 host contracts only. Both passages also
presented `todowrite` behind `experimental.todo` as true of all of V2,
which these files define as 2.0.4 and later, while 2.0.7 has no todo
tool.

Both passages now state only the checked facts: the subagent
`background` parameter is present in 2.0.7 and absent in 2.3.2, and
2.0.7 has no todo tool while 2.3.2 has `todowrite` behind
`experimental.todo`. The mapping lines that say `todowrite` "when
available" state no version, hold on both versions, and are unchanged.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(opencode): keep V2's 2.0.4 floor and 2.0.7 check in the version notes</title>
<updated>2026-11-25T09:20:16+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@primeradiant.com</email>
</author>
<published>2026-11-25T09:20:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=6741c48e77235ccfca80150ee25ab2cdef304fd1'/>
<id>6741c48e77235ccfca80150ee25ab2cdef304fd1</id>
<content type='text'>
Retargeting the mapping to 2.3.x changed the plugin comment to
"V2 (OpenCode 2.3.x)" and both verified-against notes to 2.3.x only.
The plugin and both docs treat V2 as 2.0.4 and later, and the reviewers
checked the new V2 mapping against 2.0.7 and 2.3.2. Read as written,
the comment says 2.0.x is not V2, and the notes drop dev's 2.0.7 check.

Use the review's text (bootstrap F5): V2 is "OpenCode 2.0.4 and later",
and the V2 list was checked against the 2.0.7 and 2.3.2 host contracts.

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>
Retargeting the mapping to 2.3.x changed the plugin comment to
"V2 (OpenCode 2.3.x)" and both verified-against notes to 2.3.x only.
The plugin and both docs treat V2 as 2.0.4 and later, and the reviewers
checked the new V2 mapping against 2.0.7 and 2.3.2. Read as written,
the comment says 2.0.x is not V2, and the notes drop dev's 2.0.7 check.

Use the review's text (bootstrap F5): V2 is "OpenCode 2.0.4 and later",
and the V2 list was checked against the 2.0.7 and 2.3.2 host contracts.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(opencode): offer V1 apply_patch when available, not on every gpt- model</title>
<updated>2026-11-25T09:19:47+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@primeradiant.com</email>
</author>
<published>2026-11-25T09:19:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=cf0bbc5dc2cc91f1ef3e0d0996f0a2be9718a459'/>
<id>cf0bbc5dc2cc91f1ef3e0d0996f0a2be9718a459</id>
<content type='text'>
The V1 file-mutation line said to use `apply_patch` "on `gpt-` models".
OpenCode 1.19.6's tool registry offers `apply_patch` only when the model
ID contains `gpt-` and contains neither `gpt-4` nor `oss`, so a gpt-4.1
or gpt-oss session is told to call a tool it does not have. The line
also asked the agent to know its own model ID.

Use the review's replacement (bootstrap F1) in the plugin's V1 mapping,
INSTALL.md and the README: `apply_patch` when available, otherwise
`write`, `edit` and `bash`, each with its role. The existing OpenCode
needles still match; no test pins this wording.

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 V1 file-mutation line said to use `apply_patch` "on `gpt-` models".
OpenCode 1.19.6's tool registry offers `apply_patch` only when the model
ID contains `gpt-` and contains neither `gpt-4` nor `oss`, so a gpt-4.1
or gpt-oss session is told to call a tool it does not have. The line
also asked the agent to know its own model ID.

Use the review's replacement (bootstrap F1) in the plugin's V1 mapping,
INSTALL.md and the README: `apply_patch` when available, otherwise
`write`, `edit` and `bash`, each with its role. The existing OpenCode
needles still match; no test pins this wording.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(opencode): return V2 mapping wording to dev's text where no issue requires a change</title>
<updated>2026-11-25T09:17:31+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@primeradiant.com</email>
</author>
<published>2026-11-25T09:17:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=0e08a8545a7b55e5d6130f0e7cfe0aa4aae0aa5a'/>
<id>0e08a8545a7b55e5d6130f0e7cfe0aa4aae0aa5a</id>
<content type='text'>
#2659 and #2701 need the V2 todo line to name `todowrite` behind
`experimental.todo`. They do not need the rest of what changed around
it, so these return to dev's wording:

- the V2 file-mutation line in the plugin, INSTALL.md and the README,
  which keeps each tool's role;
- the fallback after the `todowrite` clause, which again says to track
  the plan in a markdown file, as dev's mapping did;
- the README's sentence on which mutation tools each model gets;
- the V1 failure message in test-bootstrap-caching.mjs.

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>
#2659 and #2701 need the V2 todo line to name `todowrite` behind
`experimental.todo`. They do not need the rest of what changed around
it, so these return to dev's wording:

- the V2 file-mutation line in the plugin, INSTALL.md and the README,
  which keeps each tool's role;
- the fallback after the `todowrite` clause, which again says to track
  the plan in a markdown file, as dev's mapping did;
- the README's sentence on which mutation tools each model gets;
- the V1 failure message in test-bootstrap-caching.mjs.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'fix/wave1-run-hook-heredoc' into fix/wave1-harness-adapters</title>
<updated>2026-11-25T09:14:12+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@primeradiant.com</email>
</author>
<published>2026-11-25T09:14:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=527845873d8fe0e5bd76ba7c9fe33645c98af3e3'/>
<id>527845873d8fe0e5bd76ba7c9fe33645c98af3e3</id>
<content type='text'>
Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;

# Conflicts:
#	hooks/session-start
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;

# Conflicts:
#	hooks/session-start
</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>
</feed>
