Skip to content

feat(brainstorming): add SUPERPOWERS_DISABLE_VISUAL_COMPANION env var opt-out - #1814

Closed
rafaellin wants to merge 8 commits into
obra:devfrom
rafaellin:feat/visual-companion-opt-out
Closed

rafaellin wants to merge 8 commits into
obra:devfrom
rafaellin:feat/visual-companion-opt-out

Conversation

@rafaellin

@rafaellin rafaellin commented Jun 20, 2026 •

Copy link
Copy Markdown

This PR MUST target the dev branch, not main. main is the
released branch; active work lands on dev first. PRs opened against
main will be asked to retarget dev before review.

Who is submitting this PR? (required)

Field Value
Your model + version DeepSeek V4 Flash (GitHub Copilot)
Harness + version VS Code Copilot Chat (GitHub Copilot)
All plugins installed github-mcp-server (GitHub MCP tools)
Human partner who reviewed this diff rafaellin reviewed the complete proposed diff and authorized PR submission

What problem are you trying to solve?

Issue #892: Users who never want the visual companion must decline the offer every single session. The "just-in-time" prompt ("Want me to open the browser companion?") is a speed bump that can't be permanently dismissed, slowing down sessions for users who consistently prefer text-only brainstorming.

What does this PR change?

Adds an environment variable SUPERPOWERS_DISABLE_VISUAL_COMPANION — if set to any value (including empty), the agent skips the companion offering entirely and proceeds text-only for the whole session.

Changes to skills/brainstorming/SKILL.md:

  1. New checklist step Add personal superpowers overlay system #2: checks the env var before the companion offer
  2. New Opt-out subsection at the top of the Visual Companion section
  3. Renumbered subsequent checklist items (3→4 through 9→10)

Is this change appropriate for the core library?

Yes. This affects every user who runs brainstorming sessions, regardless of project domain or tool. It follows the existing SUPERPOWERS_DISABLE_TELEMETRY pattern already documented in README.md. It does not add dependencies, promote third-party services, or add project-specific configuration.

What alternatives did you consider?

  • A config file value: rejected because env vars are harness-agnostic and work across all supported platforms without adding file I/O or config parsing logic.
  • A separate "text-only brainstorming" skill: rejected because skills compete for trigger words and this overlaps with the existing brainstorming skill.

Does this PR contain multiple unrelated changes?

No. Single file, single purpose.

Existing PRs

  • I have reviewed all open AND closed PRs for duplicates or prior art
  • Related PRs: none found

Environment tested

Harness (e.g. Claude Code, Cursor) Harness version Model Model version/ID
GitHub Copilot (VS Code) Latest DeepSeek V4 Flash via VS Code Copilot
Claude Code (via CCE → DeepSeek) Latest DeepSeek V4 Flash via CCE router

Verification results:

  • ✅ Without SUPERPOWERS_DISABLE_VISUAL_COMPANION: brainstorming skill still offers the visual companion as expected (no regression)
  • ✅ With SUPERPOWERS_DISABLE_VISUAL_COMPANION=1: agent checks the env var, skips the companion offer, proceeds text-only (fix verified)

Both scenarios tested in real Claude Code sessions using --plugin-dir with the feature branch.

New harness support (required if this PR adds a new harness)

N/A

obra and others added 8 commits June 18, 2026 11:49
… -fdx

The per-worktree workspace test was added but never registered in
run-skill-tests.sh, so it only ran when invoked by hand. Add it to the
fast unit-test array alongside the other pure-shell test.

Also document, in the Durable Progress section, that the ledger now
lives in git-ignored working-tree scratch, so `git clean -fdx` deletes
it — recover from `git log` if that happens.
Clears two dependabot alerts on the test harness's ws dependency:
GHSA-96hv-2xvq-fx4p (high, memory-exhaustion DoS, fixed 8.21.0) and
GHSA-58qx-3vcg-4xpx (medium, uninitialized memory disclosure, fixed
8.20.1). Test-only — the shipped brainstorm server hand-rolls its
WebSocket framing and does not depend on ws. Suite passes (57/57).
Bump all plugin manifests to 6.0.3. This release moves subagent-driven-
development's scratch artifacts (task briefs, implementer reports, review
diffs, progress ledger) from .git/sdd/ — which Claude Code denies agent
writes to — into a self-ignoring working-tree .superpowers/sdd/ dir, and
bumps the brainstorm-server test harness's ws dependency to clear two
dependabot alerts. See RELEASE-NOTES.md.
… opt-out

Adds a simple environment-variable gate so users can permanently disable
the visual companion across sessions without declining the offer each time.

Changes:
- New checklist step (obra#2) checks the env var before the companion offer
- New 'Opt-out' subsection in the Visual Companion section tells the agent
  to skip the entire offering flow when SUPERPOWERS_DISABLE_VISUAL_COMPANION
  is set to any value (including empty)
- Renumbered subsequent checklist items (3->4, 4->5, ..., 9->10)

Closes obra#892
@rafaellin

Copy link
Copy Markdown
Author

Verification Results ✅

Tested this change in real Claude Code sessions (via CCE → DeepSeek) using --plugin-dir with the feature branch:

Scenario Result
Without SUPERPOWERS_DISABLE_VISUAL_COMPANION ✅ Agent still offers the visual companion — no regression
With SUPERPOWERS_DISABLE_VISUAL_COMPANION=1 ✅ Agent checks the env var, skips the companion offer, proceeds text-only

Agent was observed checking the env var with echo ${SUPERPOWERS_DISABLE_VISUAL_COMPANION:-not_set} per the new checklist step #2, confirming the skill instruction is being followed correctly.

@obra

obra commented Jun 23, 2026

Copy link
Copy Markdown
Owner

You should be able to do this with a single line of prose in your claude.md. Did you try that? If that fails, I very much want to hear about it - please open an issue. But we're not currently comfortable adding a bunch of environment variables for changing the agentic side of superpowers behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants