<feed xmlns='http://www.w3.org/2005/Atom'>
<title>superpowers.git/.pi/extensions, branch dev</title>
<subtitle>Agentic skills framework and development workflow
</subtitle>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/'/>
<entry>
<title>fix(pi): inject the bootstrap on every prompt, not just the first (#2083)</title>
<updated>2026-10-22T22:56:05+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@fsck.com</email>
</author>
<published>2026-10-22T20:52:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=5802204a180e576f81a26e6c3dd2bd0b5ea675c6'/>
<id>5802204a180e576f81a26e6c3dd2bd0b5ea675c6</id>
<content type='text'>
The pi extension cleared injectBootstrap on agent_end, assuming it marked
the end of a session. pi emits agent_end at the end of every agent run,
which is once per user prompt, so from the second prompt on no provider
request carried the using-superpowers bootstrap.

The messages a context handler returns are sent to the provider but are
not written to session history, so the bootstrap is never in
event.messages on a later call and the existing marker check cannot see
an earlier injection. The bootstrap therefore has to be injected into
every provider request. Removing the agent_end disarm does exactly that,
one copy per request at a stable position at the start of the messages.

Observed against pi 0.85.1 with a local stub OpenAI-compatible provider,
one session of three prompts (the second makes a tool call): before, only
request 1 of 4 carried the bootstrap; after, all 4 carry exactly one copy.

The test that asserted the disarm as intended behaviour is replaced by
one that drives pi's per-prompt lifecycle events across several prompts
and provider requests. The porting guide described the agent_end reset
as the pattern to copy and now describes the failure instead.

Claude-Session: https://claude.ai/code/session_01SHANcr4A71nzuU9et4Fnba
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The pi extension cleared injectBootstrap on agent_end, assuming it marked
the end of a session. pi emits agent_end at the end of every agent run,
which is once per user prompt, so from the second prompt on no provider
request carried the using-superpowers bootstrap.

The messages a context handler returns are sent to the provider but are
not written to session history, so the bootstrap is never in
event.messages on a later call and the existing marker check cannot see
an earlier injection. The bootstrap therefore has to be injected into
every provider request. Removing the agent_end disarm does exactly that,
one copy per request at a stable position at the start of the messages.

Observed against pi 0.85.1 with a local stub OpenAI-compatible provider,
one session of three prompts (the second makes a tool call): before, only
request 1 of 4 carried the bootstrap; after, all 4 carry exactly one copy.

The test that asserted the disarm as intended behaviour is replaced by
one that drives pi's per-prompt lifecycle events across several prompts
and provider requests. The porting guide described the agent_end reset
as the pattern to copy and now describes the failure instead.

Claude-Session: https://claude.ai/code/session_01SHANcr4A71nzuU9et4Fnba
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(pi): stop resources_discover from bypassing package skill filters</title>
<updated>2026-10-22T20:51:39+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@fsck.com</email>
</author>
<published>2026-10-22T20:51:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=7455441f77de6c33b3f2f25159fa9dc6d2cc1305'/>
<id>7455441f77de6c33b3f2f25159fa9dc6d2cc1305</id>
<content type='text'>
The pi extension registered a resources_discover handler that returned
the whole skills/ directory. pi applies a package's `skills` filter
(the one `pi config` writes) only to manifest-declared resources;
paths an extension contributes are merged afterwards, unfiltered. So
with `"skills": []` or an allowlist on the superpowers package entry,
pi 0.85.1 still loaded all 15 skills, every one attributed to
extension:superpowers.

package.json already declares `pi.skills: ["./skills"]`, and pi loads
that with the user's filter applied, so the handler was redundant for
package installs, including the README's `pi -e /path/to/superpowers`.
Remove it. The bootstrap handlers are unchanged. The porting guide now
names the manifest as pi's discovery mechanism.

Verified against the real pi 0.85.1 CLI (RPC get_commands, no model
call): skills [] loads 0 (was 15), an allowlist of using-superpowers
loads 1 (was 15), no filter loads 15, `pi -e &lt;checkout&gt;` loads 15.

Fixes #2394

Co-authored-by: m2dumpling &lt;224757904+m2dumpling@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>
The pi extension registered a resources_discover handler that returned
the whole skills/ directory. pi applies a package's `skills` filter
(the one `pi config` writes) only to manifest-declared resources;
paths an extension contributes are merged afterwards, unfiltered. So
with `"skills": []` or an allowlist on the superpowers package entry,
pi 0.85.1 still loaded all 15 skills, every one attributed to
extension:superpowers.

package.json already declares `pi.skills: ["./skills"]`, and pi loads
that with the user's filter applied, so the handler was redundant for
package installs, including the README's `pi -e /path/to/superpowers`.
Remove it. The bootstrap handlers are unchanged. The porting guide now
names the manifest as pi's discovery mechanism.

Verified against the real pi 0.85.1 CLI (RPC get_commands, no model
call): skills [] loads 0 (was 15), an allowlist of using-superpowers
loads 1 (was 15), no filter loads 15, `pi -e &lt;checkout&gt;` loads 15.

Fixes #2394

Co-authored-by: m2dumpling &lt;224757904+m2dumpling@users.noreply.github.com&gt;
Claude-Session: https://claude.ai/code/session_01SHANcr4A71nzuU9et4Fnba
</pre>
</div>
</content>
</entry>
<entry>
<title>Align Pi mapping with action vocabulary</title>
<updated>2026-06-16T17:09:44+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@primeradiant.com</email>
</author>
<published>2026-05-14T00:53:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=295219a6fa730de4a6853838ca9b1d97afddb62d'/>
<id>295219a6fa730de4a6853838ca9b1d97afddb62d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>chore: keep pi extension under .pi</title>
<updated>2026-06-16T17:09:44+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@fsck.com</email>
</author>
<published>2026-05-08T02:42:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=3406f5d80f8b7eccbf6b30a465bf91b00bd6c94c'/>
<id>3406f5d80f8b7eccbf6b30a465bf91b00bd6c94c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
