@faviovazquez/deliberate 0.2.6 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/BRAINSTORM.md CHANGED
@@ -36,6 +36,39 @@ Do NOT invoke any implementation skill, write any code, scaffold any project, or
36
36
 
37
37
  ## Process Flow
38
38
 
39
+ ### Phase 0: Model Selection (Claude Code only)
40
+
41
+ **This step runs only on Claude Code.** On Windsurf and Cursor, agents use the active model in the current context — skip this phase entirely.
42
+
43
+ Before doing anything else, ask the user:
44
+
45
+ ```
46
+ ⚙️ Model configuration for this brainstorm:
47
+
48
+ High-tier agents (assumption-breaker, bias-detector, emergence-reader,
49
+ reframer, risk-analyst, safety-frontier) will use:
50
+
51
+ A) Opus + Sonnet — opus for high-tier, sonnet for mid-tier [DEFAULT]
52
+ Best quality. Higher token cost.
53
+ B) Sonnet only — sonnet for all agents
54
+ Faster. Lower cost. Still strong.
55
+
56
+ Which would you prefer? (A/B, or press Enter for default A)
57
+ ```
58
+
59
+ **Wait for the user's response before proceeding.**
60
+
61
+ - If the user selects **A** or presses Enter: `high → opus`, `mid → sonnet`
62
+ - If the user selects **B**: both `high` and `mid` → `sonnet`
63
+
64
+ `opus` and `sonnet` are Claude Code's accepted shorthands for claude-opus-4-6 and claude-sonnet-4-6.
65
+
66
+ Store the resolved model map and use it when dispatching agents in Phase 5 (Divergent Phase). Pass the resolved shorthand as the `model` parameter for each agent subagent call.
67
+
68
+ If `configs/provider-model-slots.yaml` exists in the project root, skip this prompt and use manual overrides from that file.
69
+
70
+ ---
71
+
39
72
  ### Phase 1: Context Exploration
40
73
 
41
74
  Read the relevant context before asking any questions:
@@ -260,6 +293,20 @@ If you want changes, tell me what to adjust.
260
293
 
261
294
  **Only proceed to implementation after explicit user approval.**
262
295
 
296
+ ### Phase 12: Visual Companion Shutdown (if active)
297
+
298
+ If the visual companion server was started during this session, ask the user after they approve or conclude the brainstorm:
299
+
300
+ ```
301
+ The visual companion server is still running at http://localhost:{port}.
302
+ Stop it now? (Y/n)
303
+ ```
304
+
305
+ - If **Y** or Enter: run `scripts/stop-server.sh` to shut it down cleanly.
306
+ - If **N**: leave it running. Remind the user it will auto-shutdown after 30 minutes of inactivity.
307
+
308
+ If the visual companion was NOT active during this session, skip this phase.
309
+
263
310
  ---
264
311
 
265
312
  ## Visual Companion in Brainstorm Mode
package/CHANGELOG.md CHANGED
@@ -5,6 +5,24 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.2.8] - 2026-04-04
9
+
10
+ ### Added
11
+ - `README.md`: Expanded Visual Companion section with a dedicated "Starting and stopping the server" subsection — explains that the coordinator starts the server automatically, documents the shutdown prompt shown at the end of each session, the 30-minute auto-shutdown, and manual `start-server.sh` / `stop-server.sh` commands for both Claude Code and Windsurf install paths.
12
+ - `SKILL.md`: Added **Step 12 — Visual Companion Shutdown**. After saving output, the coordinator asks the user whether to stop the server (`Y/n`). If yes, runs `scripts/stop-server.sh`. If no, reminds user of the 30-minute auto-shutdown. Skipped if visual companion was not active.
13
+ - `BRAINSTORM.md`: Added **Phase 12 — Visual Companion Shutdown**, identical logic to SKILL.md Step 12, triggered after Phase 11 user approval.
14
+
15
+ ## [0.2.7] - 2026-04-04
16
+
17
+ ### Fixed
18
+ - Renamed `model:` to `model_tier:` in all 17 agent frontmatter files — Claude Code's Agent tool was reading `model: mid/high` as a model identifier and rejecting it since `mid`/`high` are not valid model IDs (only `sonnet`, `opus`, `haiku` are accepted). `model_tier` is now treated as metadata only by Claude Code.
19
+
20
+ ### Changed
21
+ - `configs/defaults.yaml`: `anthropic.high` now maps to `claude-opus-4-5` (was `claude-sonnet-4.6`), `anthropic.mid` maps to `claude-sonnet-4-5`. Opus is the default for high-tier agents.
22
+ - `SKILL.md`: Added **Step 0.5 — Model Selection** (Claude Code only). Before any deliberation starts, the coordinator asks whether to use Opus+Sonnet (A, default) or Sonnet-only (B) for all agents. The resolved model map is passed as the `model` parameter when dispatching each subagent via the Agent tool. On Windsurf/Cursor, this step is skipped — the active context model is used.
23
+ - `SKILL.md` Step 4 (Model Routing): Updated to read `model_tier` from agent frontmatter, resolve via the Step 0.5 selection, and pass the resolved model name to the Agent tool. Windsurf/Cursor behavior explicitly documented.
24
+ - `BRAINSTORM.md`: Added **Phase 0 — Model Selection** (Claude Code only), identical logic to SKILL.md Step 0.5.
25
+
8
26
  ## [0.2.6] - 2025-04-03
9
27
 
10
28
  ### Fixed
package/README.md CHANGED
@@ -479,6 +479,33 @@ It provides:
479
479
 
480
480
  Built with plain HTML + JS + Canvas 2D. No framework, no build step. Served locally via a lightweight Node.js file-watcher server.
481
481
 
482
+ ### Starting and stopping the server
483
+
484
+ The coordinator starts the server automatically when `--visual` is active. You do not need to start it manually. When your deliberation or brainstorm ends, the coordinator will ask you:
485
+
486
+ ```
487
+ The visual companion server is still running at http://localhost:{port}.
488
+ Stop it now? (Y/n)
489
+ ```
490
+
491
+ If you say yes (or press Enter), it runs `scripts/stop-server.sh` to shut it down cleanly. If you say no, the server keeps running — useful if you want to review the session in the browser after the deliberation ends. **It will auto-shutdown after 30 minutes of inactivity regardless.**
492
+
493
+ If you ever need to manage the server manually:
494
+
495
+ ```bash
496
+ # Start the server (from your project root)
497
+ bash ~/.claude/skills/deliberate/scripts/start-server.sh --project-dir .
498
+
499
+ # Stop the server
500
+ bash ~/.claude/skills/deliberate/scripts/stop-server.sh
501
+ ```
502
+
503
+ For Windsurf:
504
+ ```bash
505
+ bash ~/.codeium/windsurf/skills/deliberate/scripts/start-server.sh --project-dir .
506
+ bash ~/.codeium/windsurf/skills/deliberate/scripts/stop-server.sh
507
+ ```
508
+
482
509
  ---
483
510
 
484
511
  ## Platforms
package/SKILL.md CHANGED
@@ -133,6 +133,37 @@ If `--research` is NOT set, skip this step entirely. Do not spontaneously resear
133
133
 
134
134
  ---
135
135
 
136
+ ### Step 0.5: Model Selection (Claude Code only)
137
+
138
+ **This step runs only on Claude Code.** On Windsurf and Cursor, agents use the active model in the current context — no selection needed.
139
+
140
+ Before doing anything else, ask the user:
141
+
142
+ ```
143
+ ⚙️ Model configuration for this deliberation:
144
+
145
+ High-tier agents (assumption-breaker, bias-detector, emergence-reader,
146
+ reframer, risk-analyst, safety-frontier) will use:
147
+
148
+ A) Opus + Sonnet — opus for high-tier, sonnet for mid-tier [DEFAULT]
149
+ Best quality. Higher token cost.
150
+ B) Sonnet only — sonnet for all agents
151
+ Faster. Lower cost. Still strong.
152
+
153
+ Which would you prefer? (A/B, or press Enter for default A)
154
+ ```
155
+
156
+ **Wait for the user's response before proceeding.**
157
+
158
+ - If the user selects **A** or presses Enter: resolve `high → opus`, `mid → sonnet` from `configs/defaults.yaml`
159
+ - If the user selects **B**: resolve both `high` and `mid` → `sonnet`
160
+
161
+ Store the resolved model map for use in Step 4. This selection applies for the entire session.
162
+
163
+ If `configs/provider-model-slots.yaml` exists in the project root, skip this prompt entirely and use manual overrides from that file.
164
+
165
+ ---
166
+
136
167
  ### Step 1: Platform Detection
137
168
 
138
169
  Read `configs/defaults.yaml` to determine:
@@ -163,12 +194,18 @@ If auto-detection is ambiguous, present the top 2-3 triad matches and let the us
163
194
 
164
195
  ### Step 4: Model Routing
165
196
 
166
- Read `configs/defaults.yaml` for tier mapping:
167
- - Agents marked `model: high` get the high-tier model
168
- - Agents marked `model: mid` get the mid-tier model
169
- - If `config.yaml` in project root sets `model_tier: mid`, ALL agents use mid tier regardless of their default
197
+ Use the resolved model map from Step 0.5 (Claude Code) or the active context model (Windsurf/Cursor):
170
198
 
171
- If `configs/provider-model-slots.yaml` exists, use manual overrides instead of auto-routing.
199
+ **Claude Code:**
200
+ - Agents with `model_tier: high` → pass `model: opus` (or `model: sonnet` if user chose B) to the Agent tool
201
+ - Agents with `model_tier: mid` → pass `model: sonnet` to the Agent tool
202
+ - `opus` and `sonnet` are Claude Code's accepted shorthands for the current claude-opus-4-6 and claude-sonnet-4-6
203
+ - If `configs/provider-model-slots.yaml` exists, use manual overrides instead
204
+
205
+ **Windsurf / Cursor:**
206
+ - All agents run sequentially within the current context window using the model already active in the session
207
+ - `model_tier` in agent frontmatter is treated as metadata only — no model switching occurs
208
+ - No model selection prompt is shown
172
209
 
173
210
  ### Step 5: Visual Companion (optional)
174
211
 
@@ -305,6 +342,20 @@ Save the full deliberation record to `deliberations/YYYY-MM-DD-HH-MM-{mode}-{slu
305
342
 
306
343
  If visual companion is active, push the verdict formation view to the browser.
307
344
 
345
+ ### Step 12: Visual Companion Shutdown (if active)
346
+
347
+ If the visual companion server was started during this session, ask the user:
348
+
349
+ ```
350
+ The visual companion server is still running at http://localhost:{port}.
351
+ Stop it now? (Y/n)
352
+ ```
353
+
354
+ - If **Y** or Enter: run `scripts/stop-server.sh` to shut it down cleanly.
355
+ - If **N**: leave it running. Remind the user it will auto-shutdown after 30 minutes of inactivity.
356
+
357
+ If the visual companion was NOT active during this session, skip this step.
358
+
308
359
  ---
309
360
 
310
361
  ## Quick Mode Execution
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: deliberate-adversarial-strategist
3
3
  description: "Deliberate agent. Use standalone for adversarial strategy, competitive analysis & strategic timing, or via /deliberate for multi-perspective deliberation."
4
- model: mid
4
+ model_tier: mid
5
5
  color: red
6
6
  tools: ["Read", "Grep", "Glob", "Bash", "WebSearch", "WebFetch"]
7
7
  deliberate:
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: deliberate-assumption-breaker
3
3
  description: "Deliberate agent. Use standalone for assumption destruction & dialectical analysis, or via /deliberate for multi-perspective deliberation."
4
- model: high
4
+ model_tier: high
5
5
  color: coral
6
6
  tools: ["Read", "Grep", "Glob", "Bash", "WebSearch", "WebFetch"]
7
7
  deliberate:
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: deliberate-bias-detector
3
3
  description: "Deliberate agent. Use standalone for cognitive bias detection & de-biasing, or via /deliberate for multi-perspective deliberation."
4
- model: high
4
+ model_tier: high
5
5
  color: violet
6
6
  tools: ["Read", "Grep", "Glob", "Bash", "WebSearch", "WebFetch"]
7
7
  deliberate:
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: deliberate-classifier
3
3
  description: "Deliberate agent. Use standalone for categorization & structural analysis, or via /deliberate for multi-perspective deliberation."
4
- model: mid
4
+ model_tier: mid
5
5
  color: amber
6
6
  tools: ["Read", "Grep", "Glob", "Bash", "WebSearch", "WebFetch"]
7
7
  deliberate:
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: deliberate-emergence-reader
3
3
  description: "Deliberate agent. Use standalone for emergence & non-intervention analysis, or via /deliberate for multi-perspective deliberation."
4
- model: high
4
+ model_tier: high
5
5
  color: indigo
6
6
  tools: ["Read", "Grep", "Glob", "Bash", "WebSearch", "WebFetch"]
7
7
  deliberate:
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: deliberate-first-principles
3
3
  description: "Deliberate agent. Use standalone for first-principles debugging & bottom-up derivation, or via /deliberate for multi-perspective deliberation."
4
- model: mid
4
+ model_tier: mid
5
5
  color: orange
6
6
  tools: ["Read", "Grep", "Glob", "Bash", "WebSearch", "WebFetch"]
7
7
  deliberate:
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: deliberate-formal-verifier
3
3
  description: "Deliberate agent. Use standalone for formal systems & computational analysis, or via /deliberate for multi-perspective deliberation."
4
- model: mid
4
+ model_tier: mid
5
5
  color: cyan
6
6
  tools: ["Read", "Grep", "Glob", "Bash", "WebSearch", "WebFetch"]
7
7
  deliberate:
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: deliberate-incentive-mapper
3
3
  description: "Deliberate agent. Use standalone for power dynamics & incentive analysis, or via /deliberate for multi-perspective deliberation."
4
- model: mid
4
+ model_tier: mid
5
5
  color: dark-red
6
6
  tools: ["Read", "Grep", "Glob", "Bash", "WebSearch", "WebFetch"]
7
7
  deliberate:
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: deliberate-inverter
3
3
  description: "Deliberate agent. Use standalone for multi-model reasoning & inversion analysis, or via /deliberate for multi-perspective deliberation."
4
- model: mid
4
+ model_tier: mid
5
5
  color: gold
6
6
  tools: ["Read", "Grep", "Glob", "Bash", "WebSearch", "WebFetch"]
7
7
  deliberate:
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: deliberate-pragmatic-builder
3
3
  description: "Deliberate agent. Use standalone for pragmatic engineering & shipping analysis, or via /deliberate for multi-perspective deliberation."
4
- model: mid
4
+ model_tier: mid
5
5
  color: yellow
6
6
  tools: ["Read", "Grep", "Glob", "Bash", "WebSearch", "WebFetch"]
7
7
  deliberate:
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: deliberate-reframer
3
3
  description: "Deliberate agent. Use standalone for perspective dissolution & reframing, or via /deliberate for multi-perspective deliberation."
4
- model: high
4
+ model_tier: high
5
5
  color: purple
6
6
  tools: ["Read", "Grep", "Glob", "Bash", "WebSearch", "WebFetch"]
7
7
  deliberate:
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: deliberate-resilience-anchor
3
3
  description: "Deliberate agent. Use standalone for resilience & moral clarity analysis, or via /deliberate for multi-perspective deliberation."
4
- model: mid
4
+ model_tier: mid
5
5
  color: silver
6
6
  tools: ["Read", "Grep", "Glob", "Bash", "WebSearch", "WebFetch"]
7
7
  deliberate:
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: deliberate-risk-analyst
3
3
  description: "Deliberate agent. Use standalone for antifragility & tail risk analysis, or via /deliberate for multi-perspective deliberation."
4
- model: high
4
+ model_tier: high
5
5
  color: black
6
6
  tools: ["Read", "Grep", "Glob", "Bash", "WebSearch", "WebFetch"]
7
7
  deliberate:
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: deliberate-design-lens
3
3
  description: "Deliberate specialist agent. Activated for design/UX triads. Use standalone for user-centered design & simplicity analysis."
4
- model: mid
4
+ model_tier: mid
5
5
  color: white-smoke
6
6
  tools: ["Read", "Grep", "Glob", "Bash", "WebSearch", "WebFetch"]
7
7
  deliberate:
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: deliberate-ml-intuition
3
3
  description: "Deliberate specialist agent. Activated for AI/ML triads. Use standalone for neural network intuition & empirical ML analysis."
4
- model: mid
4
+ model_tier: mid
5
5
  color: green
6
6
  tools: ["Read", "Grep", "Glob", "Bash", "WebSearch", "WebFetch"]
7
7
  deliberate:
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: deliberate-safety-frontier
3
3
  description: "Deliberate specialist agent. Activated for AI safety triads. Use standalone for scaling frontier & AI safety analysis."
4
- model: high
4
+ model_tier: high
5
5
  color: ice-blue
6
6
  tools: ["Read", "Grep", "Glob", "Bash", "WebSearch", "WebFetch"]
7
7
  deliberate:
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: deliberate-systems-thinker
3
3
  description: "Deliberate agent. Use standalone for systems thinking & feedback loop analysis, or via /deliberate for multi-perspective deliberation."
4
- model: mid
4
+ model_tier: mid
5
5
  color: teal
6
6
  tools: ["Read", "Grep", "Glob", "Bash", "WebSearch", "WebFetch"]
7
7
  deliberate:
@@ -8,12 +8,12 @@
8
8
 
9
9
  tiers:
10
10
  anthropic:
11
- high: claude-sonnet-4.6
12
- mid: claude-sonnet-4.6
13
- # NOTE: Opus is NOT used by default. To enable:
14
- # 1. Copy provider-model-slots.example.yaml
15
- # 2. Set high: claude-opus-4.6
16
- # 3. Accept that this will consume significantly more tokens/credits
11
+ high: opus # Claude Code shorthand — resolves to claude-opus-4-6
12
+ mid: sonnet # Claude Code shorthand — resolves to claude-sonnet-4-6
13
+ # Opus is used for high-tier agents by default.
14
+ # At startup, the coordinator asks the user whether to keep opus (high)
15
+ # or switch all agents to sonnet. The user's choice overrides this mapping
16
+ # for the session. See SKILL.md Step 0.5 for the selection prompt.
17
17
 
18
18
  openai:
19
19
  high: gpt-5.4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faviovazquez/deliberate",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "description": "Multi-agent deliberation skill for AI coding assistants. Agreement is a bug.",
5
5
  "license": "MIT",
6
6
  "author": "Favio Vazquez",