superpowers icon indicating copy to clipboard operation
superpowers copied to clipboard

Feature request: opt-in mode that disables auto-triggering

Open jottr opened this issue 8 months ago • 5 comments

Feature request: opt-in mode that disables auto-triggering

Problem

Installing Superpowers changes Claude Code's default behavior globally. The SessionStart hook injects the using-superpowers meta-skill into every session, mandating skill checks before any response. There's no way to keep skills available via slash commands while leaving Claude's default behavior intact. Users who want to evaluate Superpowers incrementally — or only use it for specific workflows — must manually edit session-start after each install/update.

Proposal

Add a SUPERPOWERS_MODE environment variable checked at the top of hooks/session-start:

  • auto (default): Current behavior. Full context injection, skills auto-trigger.
  • explicit: No meta-skill injection. Slash commands (/superpowers:brainstorm, etc.) still work since they're registered independently by the plugin system.
# Top of hooks/session-start
if [ "${SUPERPOWERS_MODE}" = "explicit" ]; then
  cat <<EOF
{
  "additional_context": "Superpowers skills available via /superpowers: commands.",
  "hookSpecificOutput": {
    "hookEventName": "SessionStart",
    "additionalContext": "Superpowers skills available via /superpowers: commands."
  }
}
EOF
  exit 0
fi

Usage: export SUPERPOWERS_MODE=explicit in shell profile, or SUPERPOWERS_MODE=explicit claude per-session.

Why this is sufficient

Slash commands and auto-triggering are already separate mechanisms. Disabling the hook injection leaves all /superpowers:* commands functional. No other code changes needed.

jottr avatar Mar 06 '26 17:03 jottr

Claude Code provides functionality to allow you to enable plugins on a per project basis. That might suit your needs if you're interested in only using superpowers sometimes.

At this point, I actively don't want configuration options that change the triggering behavior.

obra avatar Mar 13 '26 02:03 obra

I'd like to prevent superpowers from running on a per-conversation basis. Please consider the ability to disable it on the fly.

gnowland avatar Aug 06 '26 19:08 gnowland

I actually ran into the same problem and ended up building a small personal tool around it: [exciton](https://github.com/jspw/exciton).

It lets you run Superpowers differently for a single Claude Code session without changing your global setup:

exciton superpowers --no-hooks

Skills stay available, but the hooks don't auto-trigger — and once you exit the session, your normal Claude setup is untouched.

So it basically gives you the per-session / opt-in behavior being discussed here, without requiring any changes to Superpowers itself.

Still early, but sharing in case it's useful to others following this issue.

jspw avatar Aug 20 '26 12:08 jspw

For people following this issue who mainly want brainstorming available on demand, I maintain a narrower alternative:

https://github.com/ChenTingToDo/brainstorming-manual

Unlike the activation system attempted in #667, this does not add modes to the SessionStart hook or toggle the whole Superpowers plugin. It is one standalone, unofficial skill with an explicit-only contract: invoke $brainstorming-manual (or explicitly request design-first brainstorming) when wanted; ordinary tasks do not opt in.

It also selectively carries the current v6.3.0 spike / bounded / architectural router, while keeping formal specs, commits, writing-plans, and repeated approval optional for focused work.

This is intentionally a smaller solution than the request here: it does not provide a global/per-project switch for every Superpowers skill. It has been behavior-tested in the Codex app; other harnesses are documented as unverified. For a reliable manual-only boundary, use it standalone rather than alongside upstream brainstorming.

ChenTingToDo avatar Aug 23 '26 09:08 ChenTingToDo

Our internal Claude and Cursor users of this plugin also want it to be a little more configurable. Right now, we've implemented a brittle vendoring workflow that strips the parts related to session-hook and the instructions that aggressively ensure it's used.

While we can pick apart the code in https://github.com/obra/superpowers/pull/667 I think this would have worked for our needs too.

dustinlessard-wf avatar Sep 22 '26 13:09 dustinlessard-wf