Visual brainstorming refactor browser and terminal
Visual Brainstorming Refactor is an approved Superpowers design spec for maintainers of the brainstorming visual companion. It fixes a problem where Claude blocked on a background feedback script for up to 600 seconds, which froze the terminal so the user could only respond through the browser.
What it does
The new model treats the browser as an interactive display that records clicks on the server, and the terminal as the conversation channel that is always free. Claude writes an HTML file, the server detects it with chokidar and pushes it to the page.
How to use it
Apply it when changing lib/brainstorm-server, the visual-companion guide or its tests.
Requirements and limits
It rests on Claude Code being turn-based, with no way to listen on two channels within one turn.
More in Reference docs and the Claude Code library.
What it covers
- Problem
- Design
- Core Model
- The Loop
- Key Deletion: wait-for-feedback.sh
- Key Addition: .events File Per-Screen Event Stream
- Changes by File
- index.js server
- frame-template.html UI frame
- helper.js client-side script
The full text is in the members library
Book a call and we will give you access to the full Claude Code library: every entry in full, search by meaning, copy and download.
Source and license
Author: obra, Superpowers skills. License: MIT.
Related entries
- Visual Brainstorming Companion Implementation Plan
- cs-notebooklm (notebooklm) (Alireza Rezvani skills and agents) (research) (4646)
- Workers Gotchas
- cs-notebooklm (notebooklm) (Alireza Rezvani skills and agents) (research) (4645)
- Review-loop discipline: waiting, capping, escalating
- Troubleshooting - Skill Activation Issues