# Visual Companion Guide Browser-based visual brainstorming companion for showing mockups, diagrams, and options. ## When to Use Decide per-question, not per-session. The test: **would the user understand this better by seeing it than reading it?** **Use the browser** when the content itself is visual: - **UI mockups** — wireframes, layouts, navigation structures, component designs - **Architecture diagrams** — system components, data flow, relationship maps - **Side-by-side visual comparisons** — comparing two layouts, two color schemes, two design directions - **Design polish** — when the question is about look and feel, spacing, visual hierarchy - **Spatial relationships** — state machines, flowcharts, entity relationships rendered as diagrams **Use the terminal** when the content is text or tabular: - **Requirements and scope questions** — "what does X mean?", "which features are in scope?" - **Conceptual A/B/C choices** — picking between approaches described in words - **Tradeoff lists** — pros/cons, comparison tables - **Technical decisions** — API design, data modeling, architectural approach selection - **Clarifying questions** — anything where the answer is words, not a visual preference A question *about* a UI topic is not automatically a visual question. "What kind of wizard do you want?" is conceptual — use the terminal. "Which of these wizard layouts feels right?" is visual — use the browser. ## How It Works The server watches a directory for HTML files and serves the newest one to the browser. You write HTML content, the user sees it in their browser and can click to select options. Selections are recorded to a `.events` file that you read on your next turn. **Content fragments vs full documents:** If your HTML file starts with `

Continuing in terminal...

``` This prevents the user from staring at a resolved choice while the conversation has moved on. When the next visual question comes up, push a new content file as usual. 6. Repeat until done. ## Writing Content Fragments Write just the content that goes inside the page. The server wraps it in the frame template automatically (header, theme CSS, selection indicator, and all interactive infrastructure). **Minimal example:** ```html

Which layout works better?

Consider readability and visual hierarchy

A

Single Column

Clean, focused reading experience

B

Two Column

Sidebar navigation with main content

``` That's it. No ``, no CSS, no `