@tgoodington/intuition 9.4.0 → 9.5.0

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.
@@ -125,10 +125,10 @@ From the design brief, extract:
125
125
 
126
126
  Create the directory `{context_path}/.design_research/[item_name]/` if it does not exist.
127
127
 
128
- **Agent 1 — Existing Work Scan** (subagent_type: Explore, model: haiku):
128
+ **Agent 1 — Existing Work Scan** (subagent_type: `intuition-researcher`):
129
129
  Prompt: "Search the project for existing work related to [item description]. Look for: prior documentation, existing implementations, reference material, patterns that inform this design. Check docs/, src/, and any relevant directories. Report findings in under 400 words. Facts only."
130
130
 
131
- **Agent 2 — Context Mapping** (subagent_type: Explore, model: haiku):
131
+ **Agent 2 — Context Mapping** (subagent_type: `intuition-researcher`):
132
132
  Prompt: "Map the context surrounding [item description]. What already exists that this design must work with or within? What are the boundaries and integration points? Check the codebase structure, existing docs, and configuration. Report in under 400 words. Facts only."
133
133
 
134
134
  When both return, combine results and write to `{context_path}/.design_research/[item_name]/context.md`.
@@ -156,7 +156,7 @@ Domain-adaptive focus questions:
156
156
 
157
157
  Each turn: 2-4 sentences of analysis referencing research findings, then ONE question via AskUserQuestion with 2-4 options.
158
158
 
159
- **Research triggers:** If an element definition requires investigating existing patterns or prior art, launch a targeted haiku agent. WAIT for results before continuing the dialogue.
159
+ **Research triggers:** If an element definition requires investigating existing patterns or prior art, launch a targeted `intuition-researcher` agent. WAIT for results before continuing the dialogue.
160
160
 
161
161
  # PHASE 3: CONNECTIONS (1-2 turns) [ECD: C]
162
162
 
@@ -184,7 +184,7 @@ Domain-adaptive focus questions:
184
184
 
185
185
  This phase gets the most turns because dynamics design often reveals new elements or connection needs. If a gap appears, loop back briefly to address it.
186
186
 
187
- **Research triggers:** For complex design questions requiring deeper analysis, launch a sonnet agent (subagent_type: general-purpose, model: sonnet) for trade-off analysis. Limit: 1 at a time, 600-word responses. WAIT for results before continuing the dialogue.
187
+ **Research triggers:** For complex design questions requiring deeper analysis, launch an `intuition-researcher` agent (model override: sonnet) for trade-off analysis. Limit: 1 at a time, 600-word responses. WAIT for results before continuing the dialogue.
188
188
 
189
189
  # PHASE 5: FORMALIZATION (1 turn)
190
190
 
@@ -354,12 +354,12 @@ Working files in `.design_research/` enable resuming interrupted design sessions
354
354
 
355
355
  ## Context Research (launched in Phase 1)
356
356
 
357
- Launch 2 haiku Explore agents in parallel via Task tool. See Phase 1, Step 2 for prompt templates. Write combined results to `.design_research/[item_name]/context.md`.
357
+ Launch 2 `intuition-researcher` agents in parallel via Task tool. See Phase 1, Step 2 for prompt templates. Write combined results to `.design_research/[item_name]/context.md`.
358
358
 
359
359
  ## Targeted Research (launched on demand in Phases 2-4)
360
360
 
361
- - Use haiku Explore agents for fact-gathering (e.g., "What patterns exist in the project for this kind of thing?")
362
- - Use sonnet general-purpose agents for trade-off analysis (e.g., "Compare approach X and Y given the existing context")
361
+ - Use `intuition-researcher` agents for fact-gathering (e.g., "What patterns exist in the project for this kind of thing?")
362
+ - Use `intuition-researcher` agents (model override: sonnet) for trade-off analysis (e.g., "Compare approach X and Y given the existing context")
363
363
  - Each prompt MUST specify the design question and a 400-word limit (600 for sonnet)
364
364
  - Write results to `.design_research/[item_name]/options_[topic].md`
365
365
  - NEVER launch more than 2 agents simultaneously
@@ -93,7 +93,7 @@ Ensure the `{context_path}/scratch/` directory exists (create via Bash `mkdir -p
93
93
 
94
94
  ### Light Tasks (single-pass bypass)
95
95
 
96
- Spawn an opus Task subagent that combines exploration AND specification in one pass:
96
+ Spawn an `intuition-synthesizer` agent that combines exploration AND specification in one pass:
97
97
  - **System prompt**: Stage 1 Protocol text + Stage 2 Protocol text (concatenated with a separator)
98
98
  - **Task context**: plan tasks, research patterns from profile frontmatter, prior blueprints, outline Section 10 context
99
99
  - **Output instruction**: "Research the project, then produce the complete blueprint directly. No user gate — use your best judgment for all decisions. Write to `{context_path}/blueprints/{specialist-name}.md`."
@@ -104,7 +104,7 @@ Ensure the `{context_path}/blueprints/` directory exists. After the subagent ret
104
104
 
105
105
  #### Stage 1a: Research Planning
106
106
 
107
- Spawn a sonnet Task subagent. The system prompt combines a research-planning framing (owned by this skill) with the specialist's domain expertise (from the profile):
107
+ Spawn an `intuition-synthesizer` agent (model override: sonnet). The system prompt combines a research-planning framing (owned by this skill) with the specialist's domain expertise (from the profile):
108
108
 
109
109
  - **System prompt**: Construct by concatenating:
110
110
  1. **Framing (detail skill provides this):**
@@ -148,7 +148,7 @@ After 1a returns, write the specialist's research plan output to `{context_path}
148
148
 
149
149
  Parse the specialist's research plan output. Enforce the depth-based research cap: Deep tasks allow 3 entries max, Standard tasks allow 2. If the specialist's plan contains more entries than the cap, take ONLY the first {cap} entries and log a warning to the user: "Research plan had {N} items, capped at {cap} per depth policy."
150
150
 
151
- For each `### R{N}:` entry (up to the cap), spawn a haiku Task subagent (subagent_type: `Explore`):
151
+ For each `### R{N}:` entry (up to the cap), spawn an `intuition-researcher` agent:
152
152
  - **Task**: the natural language description from the research plan entry
153
153
  - **Instruction suffix**: "Search the project codebase thoroughly. Report: file paths found, key patterns observed, relevant code snippets, and any constraints or conventions discovered. Be specific — include exact paths, field names, and data types."
154
154
 
@@ -159,7 +159,7 @@ If any research agent finds nothing relevant, note this — the specialist needs
159
159
  #### Stage 1c: Analysis and Synthesis (Resume 1a or Fresh)
160
160
 
161
161
  **Normal flow:** Resume the Stage 1a specialist subagent using the saved agent ID.
162
- **Crash recovery flow (no agent ID):** Spawn a fresh opus Task subagent. Provide the specialist's Stage 1 Exploration Protocol as system prompt, and include the saved research plan from `{context_path}/scratch/{specialist-name}-research-plan.md` as additional context so the fresh agent understands what was asked for.
162
+ **Crash recovery flow (no agent ID):** Spawn a fresh `intuition-synthesizer` agent. Provide the specialist's Stage 1 Exploration Protocol as system prompt, and include the saved research plan from `{context_path}/scratch/{specialist-name}-research-plan.md` as additional context so the fresh agent understands what was asked for.
163
163
 
164
164
  In either case, provide this prompt (the synthesis framing is owned by this skill, not the specialist):
165
165
 
@@ -335,7 +335,7 @@ Mark these decisions with `"classified_by": "detail"` in decisions.json.
335
335
 
336
336
  ## STEP 7: STAGE 2 — SPECIFICATION SUBAGENT
337
337
 
338
- Spawn a FRESH opus Task subagent (do NOT resume Stage 1):
338
+ Spawn a FRESH `intuition-synthesizer` agent (do NOT resume Stage 1):
339
339
  - **System prompt**: the specialist's Stage 2 Specification Protocol text (extracted in Step 3)
340
340
  - **Injected context**:
341
341
  - Full contents of `{context_path}/scratch/{specialist-name}-stage1.md`
@@ -402,11 +402,11 @@ If the COMPLETED specialist was Deep depth, recommend: "Context is heavy — con
402
402
 
403
403
  Triggers when Step 8d finds no remaining specialists.
404
404
 
405
- **9a. Conflict detection.** Spawn a haiku Task subagent: "Read all blueprint files in `{context_path}/blueprints/`. Compare for: contradictory decisions, overlapping file modifications with conflicting changes, inconsistent interface assumptions, and duplicated work. Write findings to `{context_path}/blueprint-conflicts.md`. If no conflicts, write 'No conflicts detected.'" Wait for completion. If conflicts found, present to user via AskUserQuestion and resolve before continuing.
405
+ **9a. Conflict detection.** Spawn an `intuition-researcher` agent: "Read all blueprint files in `{context_path}/blueprints/`. Compare for: contradictory decisions, overlapping file modifications with conflicting changes, inconsistent interface assumptions, and duplicated work. Write findings to `{context_path}/blueprint-conflicts.md`. If no conflicts, write 'No conflicts detected.'" Wait for completion. If conflicts found, present to user via AskUserQuestion and resolve before continuing.
406
406
 
407
407
  **9b. Vision review.** Skip this step if only 1 specialist completed (no cross-specialist seams to check).
408
408
 
409
- For multi-specialist projects, spawn a sonnet Task subagent:
409
+ For multi-specialist projects, spawn an `intuition-reviewer` agent:
410
410
 
411
411
  "Read these files:
412
412
  1. `{context_path}/prompt_brief.md` — extract Commander's Intent (desired end state, non-negotiables, boundaries) and Success Criteria
@@ -101,7 +101,7 @@ Options:
101
101
 
102
102
  ## STEP 2: FAN-OUT RESEARCH
103
103
 
104
- For each task (or group of related tasks), launch a haiku research subagent via the Task tool (subagent_type: Explore, model: haiku).
104
+ For each task (or group of related tasks), launch an `intuition-researcher` agent via the Task tool.
105
105
 
106
106
  When constructing each prompt, replace bracketed placeholders with actual values from the outline. If the task has known file paths, use the "Known Files" variant. If files are marked TBD, use the "TBD Files" variant.
107
107
 
@@ -99,9 +99,9 @@ Create the directory `{context_path}/.outline_research/` if it does not exist.
99
99
 
100
100
  **Resume check:** If `{context_path}/.outline_research/orientation.md` already exists AND `{context_path}/.outline_research/decisions_log.md` exists with at least one entry, skip the research agents — read the existing orientation.md and proceed to Step 3. This avoids re-spending tokens on research that hasn't changed.
101
101
 
102
- Launch 2 sonnet research agents in parallel using the Task tool:
102
+ Launch 2 `intuition-researcher` agents in parallel using the Task tool (both calls in a single response):
103
103
 
104
- **Agent 1 — Codebase Topology** (subagent_type: Explore, model: sonnet):
104
+ **Agent 1 — Codebase Topology** (subagent_type: `intuition-researcher`):
105
105
  Prompt:
106
106
  "The project root is the current working directory. Analyze the codebase structure by following these steps in order:
107
107
 
@@ -124,7 +124,7 @@ Report on:
124
124
 
125
125
  Under 500 words. Facts only, no speculation."
126
126
 
127
- **Agent 2 — Pattern Extraction** (subagent_type: Explore, model: sonnet):
127
+ **Agent 2 — Pattern Extraction** (subagent_type: `intuition-researcher`):
128
128
  Prompt:
129
129
  "The project root is the current working directory. Analyze codebase patterns by following these steps:
130
130
 
@@ -156,7 +156,7 @@ When `active_context` is NOT trunk:
156
156
  3. Read parent's outline.md and any design specs at `{parent_path}/design_spec_*.md`.
157
157
  4. Launch a THIRD orientation research agent alongside the existing two:
158
158
 
159
- **Agent 3 — Parent Intersection Analysis** (subagent_type: Explore, model: sonnet):
159
+ **Agent 3 — Parent Intersection Analysis** (subagent_type: `intuition-researcher`):
160
160
  Prompt:
161
161
  "The project root is the current working directory. Compare two workflow artifacts:
162
162
 
@@ -257,8 +257,8 @@ For each major decision domain identified from the prompt brief, orientation res
257
257
 
258
258
  1. **Identify** the decision needed. State it clearly.
259
259
  2. **Research** (when needed): Launch 1-2 targeted research agents via Task tool.
260
- - Use haiku (subagent_type: Explore) for straightforward fact-gathering.
261
- - Use sonnet (subagent_type: general-purpose) for trade-off analysis against the existing codebase.
260
+ - Use `intuition-researcher` for straightforward fact-gathering.
261
+ - Use `intuition-researcher` (model override: sonnet) for trade-off analysis against the existing codebase.
262
262
  - Each agent prompt MUST reference the specific decision domain, return under 400 words.
263
263
  - Write results to `{context_path}/.outline_research/decision_[domain].md` (snake_case).
264
264
  - NEVER launch more than 2 agents simultaneously.
@@ -606,14 +606,14 @@ If any check fails, fix it before presenting.
606
606
 
607
607
  ## Tier 1: Orientation (launched in Phase 1)
608
608
 
609
- Launch 2 sonnet Explore agents in parallel via Task tool. See Phase 1, Step 2 for prompt templates. Write combined results to `{context_path}/.outline_research/orientation.md`.
609
+ Launch 2 `intuition-researcher` agents in parallel via Task tool. See Phase 1, Step 2 for prompt templates. Write combined results to `{context_path}/.outline_research/orientation.md`.
610
610
 
611
611
  ## Tier 2: Decision Research (launched on demand in Phase 3)
612
612
 
613
613
  Launch 1-2 agents per decision domain when dialogue reveals unknowns needing investigation.
614
614
 
615
- - Use haiku Explore agents for fact-gathering (e.g., "What testing framework does this project use?").
616
- - Use sonnet general-purpose agents for trade-off analysis (e.g., "Compare approaches X and Y given the current architecture").
615
+ - Use `intuition-researcher` agents for fact-gathering (e.g., "What testing framework does this project use?").
616
+ - Use `intuition-researcher` agents (model override: sonnet) for trade-off analysis (e.g., "Compare approaches X and Y given the current architecture").
617
617
  - Each prompt MUST specify the decision domain and a 400-word limit.
618
618
  - Reference specific files or directories when possible.
619
619
  - Write results to `{context_path}/.outline_research/decision_[domain].md`.
@@ -327,12 +327,11 @@ You do NOT launch research subagents by default. Research fires ONLY in this sce
327
327
  - "Are there compliance requirements for Z?"
328
328
  - "What do other teams typically use for this?"
329
329
 
330
- **Action:** Launch ONE targeted Task call:
330
+ **Action:** Launch ONE targeted `intuition-researcher` agent:
331
331
 
332
332
  ```
333
333
  Description: "Research [specific question]"
334
- Subagent type: Explore
335
- Model: haiku
334
+ Subagent type: intuition-researcher
336
335
  Prompt: "Research [specific question from the user].
337
336
  Context: [what the user is building].
338
337
  Search the web and local codebase for relevant information.
@@ -40,7 +40,7 @@ On startup, before reading any files:
40
40
 
41
41
  ```
42
42
  Step 1: Read context (state, build_report, blueprints, decisions, outline)
43
- Step 2: Analyze test infrastructure (2 parallel haiku Explore agents)
43
+ Step 2: Analyze test infrastructure (2 parallel intuition-researcher agents)
44
44
  Step 3: Design test strategy (self-contained domain reasoning)
45
45
  Step 4: Confirm test plan with user
46
46
  Step 5: Create tests (delegate to sonnet code-writer subagents)
@@ -86,9 +86,9 @@ From decisions files, build a decision index:
86
86
  - Map each `[SPEC]` decision to its chosen option and rationale
87
87
  - This index is used in Step 6 for fix boundary checking
88
88
 
89
- ## STEP 2: RESEARCH (2 Parallel Haiku Explore Agents)
89
+ ## STEP 2: RESEARCH (2 Parallel Research Agents)
90
90
 
91
- Spawn two haiku Explore agents in parallel (both Task calls in a single response). Do NOT use `run_in_background` — you MUST wait for both agents to return before proceeding to Step 3:
91
+ Spawn two `intuition-researcher` agents in parallel (both Task calls in a single response). Do NOT use `run_in_background` — you MUST wait for both agents to return before proceeding to Step 3:
92
92
 
93
93
  **Agent 1 — Test Infrastructure:**
94
94
  "Search the project for test infrastructure. Find: test framework and runner (jest, vitest, mocha, pytest, etc.), test configuration files, existing test directories and naming conventions, mock/fixture patterns, test utility helpers, CI test commands, coverage configuration and thresholds. Report exact paths and configuration values."
@@ -203,9 +203,9 @@ Options:
203
203
 
204
204
  ## STEP 5: CREATE TESTS
205
205
 
206
- Delegate test creation to sonnet Task subagents. Parallelize independent test files (multiple Task calls in a single response). Do NOT use `run_in_background` — you MUST wait for ALL subagents to return before proceeding to Step 6.
206
+ Delegate test creation to `intuition-code-writer` agents. Parallelize independent test files (multiple Task calls in a single response). Do NOT use `run_in_background` — you MUST wait for ALL subagents to return before proceeding to Step 6.
207
207
 
208
- For each test file, spawn a sonnet subagent:
208
+ For each test file, spawn an `intuition-code-writer` agent:
209
209
 
210
210
  ```
211
211
  You are a test writer. Create a test file following these specifications exactly.
@@ -244,9 +244,9 @@ For each failure, classify:
244
244
 
245
245
  | Classification | Action |
246
246
  |---|---|
247
- | **Test bug** (wrong assertion, incorrect mock, import error) | Fix autonomously — haiku Task subagent |
248
- | **Implementation bug, trivial** (off-by-one, missing null check, typo — 1-3 lines) | Fix directly — haiku Task subagent |
249
- | **Implementation bug, moderate** (logic error, missing handler — contained to one file) | Fix — sonnet Task subagent with full diagnosis |
247
+ | **Test bug** (wrong assertion, incorrect mock, import error) | Fix autonomously — `intuition-code-writer` agent |
248
+ | **Implementation bug, trivial** (off-by-one, missing null check, typo — 1-3 lines) | Fix directly — `intuition-code-writer` agent |
249
+ | **Implementation bug, moderate** (logic error, missing handler — contained to one file) | Fix — `intuition-code-writer` agent with full diagnosis |
250
250
  | **Implementation bug, complex** (multi-file structural issue) | Escalate to user |
251
251
  | **Fix would violate [USER] decision** | STOP — escalate to user immediately |
252
252
  | **Fix would violate [SPEC] decision** | Note the conflict, proceed with fix (specialist had authority) |