clavix 4.10.0 → 4.11.2

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.
Files changed (111) hide show
  1. package/dist/cli/commands/analyze.d.ts +3 -0
  2. package/dist/cli/commands/analyze.js +11 -5
  3. package/dist/cli/commands/execute.d.ts +2 -2
  4. package/dist/cli/commands/execute.js +23 -21
  5. package/dist/cli/commands/improve.d.ts +32 -0
  6. package/dist/cli/commands/improve.js +250 -0
  7. package/dist/cli/commands/init.js +35 -29
  8. package/dist/cli/commands/prd.js +14 -13
  9. package/dist/cli/commands/prompts/clear.d.ts +2 -2
  10. package/dist/cli/commands/prompts/clear.js +32 -26
  11. package/dist/cli/commands/prompts/list.js +14 -19
  12. package/dist/cli/commands/summarize.js +23 -14
  13. package/dist/cli/commands/verify.d.ts +2 -2
  14. package/dist/cli/commands/verify.js +26 -24
  15. package/dist/core/doc-injector.d.ts +2 -0
  16. package/dist/core/doc-injector.js +12 -13
  17. package/dist/core/intelligence/intent-detector.d.ts +4 -0
  18. package/dist/core/intelligence/intent-detector.js +8 -18
  19. package/dist/core/intelligence/pattern-library.d.ts +16 -10
  20. package/dist/core/intelligence/pattern-library.js +47 -35
  21. package/dist/core/intelligence/patterns/actionability-enhancer.d.ts +2 -2
  22. package/dist/core/intelligence/patterns/actionability-enhancer.js +1 -1
  23. package/dist/core/intelligence/patterns/alternative-phrasing-generator.d.ts +2 -2
  24. package/dist/core/intelligence/patterns/alternative-phrasing-generator.js +1 -1
  25. package/dist/core/intelligence/patterns/ambiguity-detector.d.ts +2 -2
  26. package/dist/core/intelligence/patterns/ambiguity-detector.js +1 -1
  27. package/dist/core/intelligence/patterns/assumption-explicitizer.d.ts +2 -2
  28. package/dist/core/intelligence/patterns/assumption-explicitizer.js +1 -1
  29. package/dist/core/intelligence/patterns/base-pattern.d.ts +10 -7
  30. package/dist/core/intelligence/patterns/base-pattern.js +7 -3
  31. package/dist/core/intelligence/patterns/completeness-validator.d.ts +2 -2
  32. package/dist/core/intelligence/patterns/completeness-validator.js +1 -1
  33. package/dist/core/intelligence/patterns/conciseness-filter.d.ts +2 -2
  34. package/dist/core/intelligence/patterns/conciseness-filter.js +1 -1
  35. package/dist/core/intelligence/patterns/context-precision.d.ts +2 -2
  36. package/dist/core/intelligence/patterns/context-precision.js +1 -1
  37. package/dist/core/intelligence/patterns/conversation-summarizer.d.ts +2 -2
  38. package/dist/core/intelligence/patterns/conversation-summarizer.js +1 -1
  39. package/dist/core/intelligence/patterns/dependency-identifier.d.ts +2 -2
  40. package/dist/core/intelligence/patterns/dependency-identifier.js +1 -1
  41. package/dist/core/intelligence/patterns/domain-context-enricher.d.ts +2 -2
  42. package/dist/core/intelligence/patterns/domain-context-enricher.js +1 -1
  43. package/dist/core/intelligence/patterns/edge-case-identifier.d.ts +2 -2
  44. package/dist/core/intelligence/patterns/edge-case-identifier.js +1 -1
  45. package/dist/core/intelligence/patterns/error-tolerance-enhancer.d.ts +2 -2
  46. package/dist/core/intelligence/patterns/error-tolerance-enhancer.js +1 -1
  47. package/dist/core/intelligence/patterns/implicit-requirement-extractor.d.ts +2 -2
  48. package/dist/core/intelligence/patterns/implicit-requirement-extractor.js +1 -1
  49. package/dist/core/intelligence/patterns/objective-clarifier.d.ts +2 -2
  50. package/dist/core/intelligence/patterns/objective-clarifier.js +1 -1
  51. package/dist/core/intelligence/patterns/output-format-enforcer.d.ts +2 -2
  52. package/dist/core/intelligence/patterns/output-format-enforcer.js +1 -1
  53. package/dist/core/intelligence/patterns/prd-structure-enforcer.d.ts +2 -2
  54. package/dist/core/intelligence/patterns/prd-structure-enforcer.js +1 -1
  55. package/dist/core/intelligence/patterns/prerequisite-identifier.d.ts +2 -2
  56. package/dist/core/intelligence/patterns/prerequisite-identifier.js +1 -1
  57. package/dist/core/intelligence/patterns/requirement-prioritizer.d.ts +2 -2
  58. package/dist/core/intelligence/patterns/requirement-prioritizer.js +1 -1
  59. package/dist/core/intelligence/patterns/scope-definer.d.ts +2 -2
  60. package/dist/core/intelligence/patterns/scope-definer.js +1 -1
  61. package/dist/core/intelligence/patterns/step-decomposer.d.ts +2 -2
  62. package/dist/core/intelligence/patterns/step-decomposer.js +1 -1
  63. package/dist/core/intelligence/patterns/structure-organizer.d.ts +2 -2
  64. package/dist/core/intelligence/patterns/structure-organizer.js +1 -1
  65. package/dist/core/intelligence/patterns/success-criteria-enforcer.d.ts +2 -2
  66. package/dist/core/intelligence/patterns/success-criteria-enforcer.js +1 -1
  67. package/dist/core/intelligence/patterns/success-metrics-enforcer.d.ts +2 -2
  68. package/dist/core/intelligence/patterns/success-metrics-enforcer.js +1 -1
  69. package/dist/core/intelligence/patterns/technical-context-enricher.d.ts +2 -2
  70. package/dist/core/intelligence/patterns/technical-context-enricher.js +1 -1
  71. package/dist/core/intelligence/patterns/topic-coherence-analyzer.d.ts +2 -2
  72. package/dist/core/intelligence/patterns/topic-coherence-analyzer.js +1 -1
  73. package/dist/core/intelligence/patterns/user-persona-enricher.d.ts +2 -2
  74. package/dist/core/intelligence/patterns/user-persona-enricher.js +1 -1
  75. package/dist/core/intelligence/patterns/validation-checklist-creator.d.ts +2 -2
  76. package/dist/core/intelligence/patterns/validation-checklist-creator.js +1 -1
  77. package/dist/core/intelligence/types.d.ts +6 -3
  78. package/dist/core/intelligence/universal-optimizer.d.ts +20 -15
  79. package/dist/core/intelligence/universal-optimizer.js +44 -29
  80. package/dist/core/prompt-manager.d.ts +24 -22
  81. package/dist/core/prompt-manager.js +65 -92
  82. package/dist/core/verification-manager.d.ts +8 -7
  83. package/dist/core/verification-manager.js +34 -41
  84. package/dist/templates/agents/octo.md +6 -8
  85. package/dist/templates/instructions/README.md +161 -188
  86. package/dist/templates/instructions/core/clavix-mode.md +3 -4
  87. package/dist/templates/instructions/core/verification.md +15 -17
  88. package/dist/templates/instructions/troubleshooting/jumped-to-implementation.md +1 -1
  89. package/dist/templates/instructions/troubleshooting/skipped-file-creation.md +7 -7
  90. package/dist/templates/slash-commands/_canonical/archive.md +1 -1
  91. package/dist/templates/slash-commands/_canonical/execute.md +39 -41
  92. package/dist/templates/slash-commands/_canonical/improve.md +604 -0
  93. package/dist/templates/slash-commands/_canonical/plan.md +1 -1
  94. package/dist/templates/slash-commands/_canonical/prd.md +2 -2
  95. package/dist/templates/slash-commands/_canonical/start.md +1 -1
  96. package/dist/templates/slash-commands/_canonical/summarize.md +1 -1
  97. package/dist/templates/slash-commands/_canonical/verify.md +9 -9
  98. package/dist/templates/slash-commands/_components/agent-protocols/decision-rules.md +16 -16
  99. package/dist/templates/slash-commands/_components/agent-protocols/self-correction.md +4 -4
  100. package/dist/templates/slash-commands/_components/agent-protocols/state-assertion.md +3 -4
  101. package/dist/templates/slash-commands/_components/agent-protocols/state-awareness.md +1 -1
  102. package/dist/templates/slash-commands/_components/sections/escalation-factors.md +25 -25
  103. package/dist/templates/slash-commands/_components/sections/pattern-visibility.md +27 -33
  104. package/dist/templates/slash-commands/_components/troubleshooting/mode-confusion.md +1 -1
  105. package/dist/templates/slash-commands/_components/troubleshooting/triage-escalation.md +9 -9
  106. package/dist/types/config.d.ts +1 -2
  107. package/dist/types/verification.d.ts +7 -6
  108. package/dist/types/verification.js +2 -1
  109. package/package.json +3 -1
  110. package/dist/templates/slash-commands/_canonical/deep.md +0 -651
  111. package/dist/templates/slash-commands/_canonical/fast.md +0 -535
@@ -7,11 +7,11 @@ These rules define deterministic agent behavior. Follow exactly - no interpretat
7
7
  ```
8
8
  IF quality < 60%:
9
9
  IF (completeness < 50%) OR (clarity < 50%) OR (actionability < 50%):
10
- → ACTION: Strongly recommend /clavix:deep
11
- → SAY: "Quality is [X]%. Deep mode strongly recommended for: [low dimensions]"
10
+ → ACTION: Strongly recommend comprehensive depth
11
+ → SAY: "Quality is [X]%. Comprehensive depth strongly recommended for: [low dimensions]"
12
12
  ELSE:
13
- → ACTION: Suggest /clavix:deep
14
- → SAY: "Quality is [X]%. Consider deep mode for better results."
13
+ → ACTION: Suggest comprehensive depth
14
+ → SAY: "Quality is [X]%. Consider comprehensive depth for better results."
15
15
 
16
16
  IF quality >= 60% AND quality < 80%:
17
17
  → ACTION: Proceed with optimization
@@ -46,19 +46,19 @@ IF confidence < 50%:
46
46
 
47
47
  ```
48
48
  IF escalation_score >= 75:
49
- → ACTION: Strongly recommend deep mode
49
+ → ACTION: Strongly recommend comprehensive depth
50
50
  → SHOW: Top 3 contributing factors
51
51
 
52
52
  IF escalation_score 60-74:
53
- → ACTION: Recommend deep mode
53
+ → ACTION: Recommend comprehensive depth
54
54
  → SHOW: Primary contributing factor
55
55
 
56
56
  IF escalation_score 45-59:
57
- → ACTION: Suggest deep mode as option
58
- → SAY: "Deep mode available for more thorough analysis"
57
+ → ACTION: Suggest comprehensive depth as option
58
+ → SAY: "Comprehensive depth available for more thorough analysis"
59
59
 
60
60
  IF escalation_score < 45:
61
- → ACTION: Fast mode sufficient
61
+ → ACTION: Standard depth sufficient
62
62
  → NO escalation mention
63
63
  ```
64
64
 
@@ -120,7 +120,7 @@ IF pattern not applicable to intent:
120
120
  IF pattern applicable but skipped:
121
121
  → EXPLAIN: "Skipped [pattern] because [reason]"
122
122
 
123
- DEEP MODE ONLY:
123
+ COMPREHENSIVE DEPTH ONLY:
124
124
  → MUST include alternatives (2-3)
125
125
  → MUST include validation checklist
126
126
  → MUST include edge cases
@@ -129,15 +129,15 @@ DEEP MODE ONLY:
129
129
  ### Rule 8: Mode Transition Decision
130
130
 
131
131
  ```
132
- IF user requests /clavix:fast but quality < 50%:
133
- → ACTION: Warn and suggest deep
134
- → SAY: "Quality is [X]%. Fast mode may be insufficient."
132
+ IF user requests standard depth but quality < 50%:
133
+ → ACTION: Warn and suggest comprehensive
134
+ → SAY: "Quality is [X]%. Standard depth may be insufficient."
135
135
  → ALLOW: User can override and proceed
136
136
 
137
- IF user in /clavix:deep but prompt is simple (quality > 85%):
137
+ IF user requests comprehensive depth but prompt is simple (quality > 85%):
138
138
  → ACTION: Note efficiency
139
- → SAY: "Prompt is already high quality. Fast mode would suffice."
140
- → CONTINUE: With deep analysis anyway
139
+ → SAY: "Prompt is already high quality. Standard depth would suffice."
140
+ → CONTINUE: With comprehensive analysis anyway
141
141
 
142
142
  IF strategic keywords detected (3+ architecture/security/scalability):
143
143
  → ACTION: Suggest PRD mode
@@ -17,8 +17,8 @@
17
17
  - Providing optimization without quality analysis
18
18
  - Jumping directly to improved prompt without showing scores
19
19
 
20
- ### Mistake Type 3: Wrong Mode Selection
21
- - Not suggesting `/clavix:deep` when quality scores are low
20
+ ### Mistake Type 3: Wrong Depth Selection
21
+ - Not suggesting comprehensive depth when quality scores are low
22
22
  - Not recommending `/clavix:prd` for strategic decisions
23
23
  - Ignoring triage indicators and escalation factors
24
24
 
@@ -27,8 +27,8 @@
27
27
  - Skipping patterns without explanation
28
28
  - Not showing which patterns were applied
29
29
 
30
- ### Mistake Type 5: Missing Validation (Deep Mode)
31
- - Not generating validation checklist in deep mode
30
+ ### Mistake Type 5: Missing Validation (Comprehensive Depth)
31
+ - Not generating validation checklist in comprehensive depth
32
32
  - Not identifying edge cases
33
33
  - Not providing alternative approaches
34
34
 
@@ -17,8 +17,7 @@ Implementation: [BLOCKED|ALLOWED]
17
17
 
18
18
  | Mode | Type | Implementation | Purpose |
19
19
  |------|------|----------------|---------|
20
- | /clavix:fast | planning | BLOCKED | Prompt optimization |
21
- | /clavix:deep | planning | BLOCKED | Comprehensive prompt analysis |
20
+ | /clavix:improve | planning | BLOCKED | Prompt optimization (smart depth selection) |
22
21
  | /clavix:prd | planning | BLOCKED | PRD development |
23
22
  | /clavix:plan | planning | BLOCKED | Task breakdown generation |
24
23
  | /clavix:start | planning | BLOCKED | Requirements gathering |
@@ -37,9 +36,9 @@ Implementation: [BLOCKED|ALLOWED]
37
36
 
38
37
  **Planning Mode (Implementation BLOCKED):**
39
38
  ```
40
- **CLAVIX MODE: Fast Optimization**
39
+ **CLAVIX MODE: Improve**
41
40
  Mode: planning
42
- Purpose: Optimizing user prompt with Clavix Intelligence
41
+ Purpose: Optimizing user prompt with Clavix Intelligence
43
42
  Implementation: BLOCKED - I will analyze and improve the prompt, not implement it
44
43
  ```
45
44
 
@@ -50,7 +50,7 @@ Always output current state when starting a workflow:
50
50
  NO_PROJECT:
51
51
  → /clavix:prd creates PRD_EXISTS
52
52
  → /clavix:start + /clavix:summarize creates PRD_EXISTS
53
- → /clavix:fast or /clavix:deep creates prompt (not PRD_EXISTS)
53
+ → /clavix:improve creates prompt (not PRD_EXISTS)
54
54
 
55
55
  PRD_EXISTS:
56
56
  → /clavix:plan creates TASKS_EXIST
@@ -1,17 +1,17 @@
1
1
  ## When Your Prompt Needs More Attention
2
2
 
3
- Sometimes a quick cleanup isn't enough. Here's how to know when to recommend deep analysis, and how to explain it to users.
3
+ Sometimes a quick cleanup isn't enough. Here's how to know when to recommend comprehensive analysis, and how to explain it to users.
4
4
 
5
5
  ---
6
6
 
7
- ### Quick Check: Is Fast Mode Enough?
7
+ ### Quick Check: Is Standard Depth Enough?
8
8
 
9
- **Fast mode works great when:**
9
+ **Standard depth works great when:**
10
10
  - User knows what they want
11
11
  - Request is straightforward
12
12
  - Prompt just needs cleanup/polish
13
13
 
14
- **Suggest deep mode when:**
14
+ **Suggest comprehensive depth when:**
15
15
  - Prompt is vague or confusing
16
16
  - Missing lots of important details
17
17
  - Complex request (architecture, migration, security)
@@ -22,7 +22,7 @@ Sometimes a quick cleanup isn't enough. Here's how to know when to recommend dee
22
22
  ### How to Decide (No Numbers to Users)
23
23
 
24
24
  **Instead of showing:**
25
- > "Escalation: 78/100 [STRONGLY RECOMMEND DEEP]"
25
+ > "Escalation: 78/100 [STRONGLY RECOMMEND COMPREHENSIVE]"
26
26
 
27
27
  **Say this:**
28
28
  > "This prompt needs more work than a quick cleanup. I'd recommend
@@ -31,7 +31,7 @@ Sometimes a quick cleanup isn't enough. Here's how to know when to recommend dee
31
31
 
32
32
  ---
33
33
 
34
- ### What Triggers Deep Mode Recommendation
34
+ ### What Triggers Comprehensive Depth Recommendation
35
35
 
36
36
  | What You Notice | What to Say |
37
37
  |-----------------|-------------|
@@ -44,12 +44,12 @@ Sometimes a quick cleanup isn't enough. Here's how to know when to recommend dee
44
44
 
45
45
  ---
46
46
 
47
- ### Deep Mode Value (What to Tell Users)
47
+ ### Comprehensive Depth Value (What to Tell Users)
48
48
 
49
- When recommending deep mode, explain what they'll get:
49
+ When recommending comprehensive depth, explain what they'll get:
50
50
 
51
51
  **For vague prompts:**
52
- > "With deep analysis, I'll explore different ways to interpret this and
52
+ > "With comprehensive analysis, I'll explore different ways to interpret this and
53
53
  > give you options to choose from."
54
54
 
55
55
  **For incomplete prompts:**
@@ -66,21 +66,21 @@ When recommending deep mode, explain what they'll get:
66
66
 
67
67
  ---
68
68
 
69
- ### How to Transition to Deep Mode
69
+ ### How to Transition Depth Levels
70
70
 
71
- **If user accepts:**
71
+ **If user accepts comprehensive:**
72
72
  > "Great, let me take a closer look at this..."
73
- > [Switch to deep mode analysis]
73
+ > [Switch to comprehensive depth analysis]
74
74
 
75
75
  **If user declines:**
76
76
  > "No problem! I'll do what I can with a quick cleanup. You can always
77
- > run deep mode later if you want more detail."
78
- > [Continue with fast mode]
77
+ > run with --comprehensive later if you want more detail."
78
+ > [Continue with standard depth]
79
79
 
80
80
  **If user is unsure:**
81
81
  > "Here's the difference:
82
- > - **Quick mode:** Clean up and improve what's there (2 minutes)
83
- > - **Deep mode:** Full analysis with alternatives and checklist (5 minutes)
82
+ > - **Standard:** Clean up and improve what's there (2 minutes)
83
+ > - **Comprehensive:** Full analysis with alternatives and checklist (5 minutes)
84
84
  >
85
85
  > Which sounds better for this?"
86
86
 
@@ -88,7 +88,7 @@ When recommending deep mode, explain what they'll get:
88
88
 
89
89
  ### Internal Reference: Escalation Factors
90
90
 
91
- The 8 escalation factors for calculating when to recommend deep mode:
91
+ The 8 escalation factors for calculating when to recommend comprehensive depth:
92
92
 
93
93
  | Factor | Trigger Condition | Points |
94
94
  |--------|-------------------|--------|
@@ -104,16 +104,16 @@ The 8 escalation factors for calculating when to recommend deep mode:
104
104
  **Recommendation thresholds:**
105
105
  | Score | Recommendation |
106
106
  |-------|----------------|
107
- | 75+ | `[STRONGLY RECOMMEND DEEP]` |
108
- | 60-74 | `[RECOMMEND DEEP]` |
109
- | 45-59 | `[DEEP MODE AVAILABLE]` |
110
- | <45 | No escalation - Fast mode sufficient |
107
+ | 75+ | `[STRONGLY RECOMMEND COMPREHENSIVE]` (high confidence) |
108
+ | 60-74 | `[RECOMMEND COMPREHENSIVE]` (medium confidence) |
109
+ | 45-59 | `[COMPREHENSIVE AVAILABLE]` (low confidence) |
110
+ | <45 | No escalation - Standard depth sufficient |
111
111
 
112
112
  ---
113
113
 
114
114
  ### Example Conversations
115
115
 
116
- **Prompt clearly needs deep mode:**
116
+ **Prompt clearly needs comprehensive depth:**
117
117
  ```
118
118
  User: "help with auth"
119
119
 
@@ -133,17 +133,17 @@ User: "build a REST API for user management"
133
133
  Agent: "I can definitely improve this! I notice it's missing some details
134
134
  like tech stack and specific features. I could either:
135
135
  - Quick cleanup: Add the obvious improvements
136
- - Deep analysis: Fill in all the gaps and give you a complete spec
136
+ - Comprehensive analysis: Fill in all the gaps and give you a complete spec
137
137
 
138
138
  Which works better for you?"
139
139
  ```
140
140
 
141
- **Prompt is good enough for fast:**
141
+ **Prompt is good enough for standard:**
142
142
  ```
143
143
  User: "Create a React component that shows a list of products
144
144
  with name, price, and add-to-cart button. Use TypeScript
145
145
  and styled-components."
146
146
 
147
- Agent: [No escalation needed - proceed with fast mode]
147
+ Agent: [No escalation needed - proceed with standard depth]
148
148
  "Nice clear prompt! Let me just polish it up a bit..."
149
149
  ```
@@ -5,25 +5,25 @@ Show which optimization patterns were applied and their effects.
5
5
  ### Compact Output Format
6
6
 
7
7
  ```
8
- Patterns: [N] applied ([MODE] mode)
8
+ Patterns: [N] applied ([DEPTH] depth)
9
9
  [PATTERN1] → [ONE-LINE EFFECT]
10
10
  [PATTERN2] → [ONE-LINE EFFECT]
11
11
  ```
12
12
 
13
13
  ### Example Outputs
14
14
 
15
- **Fast mode optimization:**
15
+ **Standard depth optimization:**
16
16
  ```
17
- Patterns: 4 applied (fast mode)
17
+ Patterns: 4 applied (standard depth)
18
18
  ConcisenessFilter → Removed 3 pleasantries, 2 filler phrases
19
19
  ObjectiveClarifier → Added clear objective statement
20
20
  StructureOrganizer → Reordered to context→requirements→output
21
21
  ActionabilityEnhancer → Replaced 2 vague terms with specifics
22
22
  ```
23
23
 
24
- **Deep mode optimization:**
24
+ **Comprehensive depth optimization:**
25
25
  ```
26
- Patterns: 7 applied (deep mode)
26
+ Patterns: 7 applied (comprehensive depth)
27
27
  ConcisenessFilter → Removed 5 pleasantries
28
28
  ObjectiveClarifier → Added objective section
29
29
  StructureOrganizer → Reorganized into 4 sections
@@ -43,7 +43,7 @@ Patterns: 7 applied (deep mode)
43
43
 
44
44
  ### Available Patterns Reference
45
45
 
46
- **Core Patterns (fast + deep):**
46
+ **Standard Patterns (both scopes):**
47
47
  | Pattern | Priority | What It Does |
48
48
  |---------|----------|--------------|
49
49
  | ConcisenessFilter | 4 | Removes pleasantries, filler words, redundant phrases |
@@ -54,8 +54,12 @@ Patterns: 7 applied (deep mode)
54
54
  | CompletenessValidator | 6 | Identifies and flags missing required elements |
55
55
  | StepDecomposer | 5 | Breaks complex prompts into sequential steps |
56
56
  | ContextPrecisionBooster | 6 | Adds precise context when missing |
57
+ | AmbiguityDetector | 9 | Identifies and flags ambiguous terms |
58
+ | OutputFormatEnforcer | 7 | Adds explicit output format specifications |
59
+ | SuccessCriteriaEnforcer | 7 | Adds measurable success criteria |
60
+ | DomainContextEnricher | 5 | Adds domain-specific best practices |
57
61
 
58
- **Deep Mode Exclusive Patterns:**
62
+ **Comprehensive Depth Exclusive Patterns:**
59
63
  | Pattern | Priority | What It Does |
60
64
  |---------|----------|--------------|
61
65
  | AlternativePhrasingGenerator | 3 | Generates 2-3 alternative prompt structures |
@@ -67,15 +71,7 @@ Patterns: 7 applied (deep mode)
67
71
  | ErrorToleranceEnhancer | 5 | Adds error handling requirements |
68
72
  | PrerequisiteIdentifier | 6 | Identifies prerequisites and dependencies |
69
73
 
70
- **v4.1 Agent Transparency Patterns (both modes):**
71
- | Pattern | Priority | What It Does |
72
- |---------|----------|--------------|
73
- | AmbiguityDetector | 9 | Identifies and flags ambiguous terms |
74
- | OutputFormatEnforcer | 7 | Adds explicit output format specifications |
75
- | SuccessCriteriaEnforcer | 7 | Adds measurable success criteria |
76
- | DomainContextEnricher | 5 | Adds domain-specific best practices |
77
-
78
- **v4.3.2 PRD Mode Patterns (deep mode):**
74
+ **v4.3.2 PRD Mode Patterns (comprehensive):**
79
75
  | Pattern | Priority | What It Does |
80
76
  |---------|----------|--------------|
81
77
  | RequirementPrioritizer | 7 | Separates must-have from nice-to-have requirements |
@@ -83,7 +79,7 @@ Patterns: 7 applied (deep mode)
83
79
  | SuccessMetricsEnforcer | 7 | Ensures measurable success criteria exist |
84
80
  | DependencyIdentifier | 5 | Identifies technical and external dependencies |
85
81
 
86
- **v4.3.2 Conversational Mode Patterns (deep mode):**
82
+ **v4.3.2 Conversational Mode Patterns (comprehensive):**
87
83
  | Pattern | Priority | What It Does |
88
84
  |---------|----------|--------------|
89
85
  | ConversationSummarizer | 8 | Extracts structured requirements from messages |
@@ -93,14 +89,14 @@ Patterns: 7 applied (deep mode)
93
89
  ### Pattern Selection Logic
94
90
 
95
91
  Patterns are selected based on:
96
- 1. **Mode**: Fast mode gets core patterns only; deep mode gets all
92
+ 1. **Depth**: Standard gets core patterns; comprehensive gets all
97
93
  2. **Intent**: Some patterns are intent-specific (e.g., PRDStructureEnforcer for prd-generation)
98
94
  3. **Priority**: Higher priority patterns run first (10→1)
99
95
  4. **Applicability**: Pattern checks if it can improve the prompt
100
96
 
101
97
  ### Why Patterns Were Skipped
102
98
 
103
- In deep mode, show skipped patterns with reasons:
99
+ In comprehensive depth, show skipped patterns with reasons:
104
100
 
105
101
  ```
106
102
  Skipped patterns:
@@ -111,35 +107,33 @@ Skipped patterns:
111
107
  ### Pattern Categories Summary
112
108
 
113
109
  ```
114
- Core (always available):
110
+ Standard (both scopes):
115
111
  ConcisenessFilter, ObjectiveClarifier, StructureOrganizer,
116
- ActionabilityEnhancer, TechnicalContextEnricher, CompletenessValidator
117
-
118
- Both modes (fast & deep):
112
+ ActionabilityEnhancer, TechnicalContextEnricher, CompletenessValidator,
119
113
  StepDecomposer, ContextPrecisionBooster,
120
114
  AmbiguityDetector, OutputFormatEnforcer, SuccessCriteriaEnforcer,
121
115
  DomainContextEnricher
122
116
 
123
- Deep mode only:
117
+ Comprehensive only:
124
118
  AlternativePhrasingGenerator, EdgeCaseIdentifier, ValidationChecklistCreator,
125
119
  AssumptionExplicitizer, ScopeDefiner, PRDStructureEnforcer,
126
120
  ErrorToleranceEnhancer, PrerequisiteIdentifier
127
121
 
128
- v4.3.2 PRD mode (deep):
122
+ v4.3.2 PRD mode (comprehensive):
129
123
  RequirementPrioritizer, UserPersonaEnricher, SuccessMetricsEnforcer,
130
124
  DependencyIdentifier
131
125
 
132
- v4.3.2 Conversational mode (deep):
126
+ v4.3.2 Conversational mode (comprehensive):
133
127
  ConversationSummarizer, TopicCoherenceAnalyzer, ImplicitRequirementExtractor
134
128
  ```
135
129
 
136
- ### Pattern Count by Mode
130
+ ### Pattern Count by Depth
137
131
 
138
- | Mode | Patterns Available | Typical Applied |
132
+ | Depth | Patterns Available | Typical Applied |
139
133
  |------|-------------------|-----------------|
140
- | Fast | 12 patterns | 4-7 patterns |
141
- | Deep | 27 patterns | 8-14 patterns |
142
- | PRD | 12 patterns | 8-12 patterns |
143
- | Conversational | 3 patterns | 1-3 patterns |
134
+ | Standard | 12 patterns | 4-7 patterns |
135
+ | Comprehensive | 27 patterns | 8-14 patterns |
136
+ | PRD mode | 12+ patterns | 8-12 patterns |
137
+ | Conversational | 3+ patterns | 1-3 patterns |
144
138
 
145
- **Note:** Deep mode has access to all 27 patterns. Pattern selection varies by intent - some patterns only apply to specific intents (e.g., PRDStructureEnforcer only for prd-generation), so typical applied count is 8-14.
139
+ **Note:** Comprehensive depth has access to all 27 patterns. Pattern selection varies by intent - some patterns only apply to specific intents (e.g., PRDStructureEnforcer only for prd-generation), so typical applied count is 8-14.
@@ -41,6 +41,6 @@
41
41
  1. Ask user to clarify current intent
42
42
  2. Check last Clavix command run
43
43
  3. Mode determination:
44
- - `/clavix:fast`, `/clavix:deep`, `/clavix:prd`, `/clavix:start`, `/clavix:summarize`, `/clavix:plan` → PLANNING
44
+ - `/clavix:improve`, `/clavix:prd`, `/clavix:start`, `/clavix:summarize`, `/clavix:plan` → PLANNING
45
45
  - `/clavix:implement`, `/clavix:execute` → IMPLEMENTATION
46
46
  4. If still unclear, default to PLANNING and ask for clarification
@@ -1,26 +1,26 @@
1
- ### Issue: Triage keeps recommending deep mode
1
+ ### Issue: Triage keeps recommending comprehensive depth
2
2
 
3
3
  **Cause**: Prompt has low quality scores + multiple secondary indicators
4
4
 
5
5
  **Solution**:
6
- - Accept the recommendation - deep mode will provide better analysis
7
- - OR improve prompt manually before running fast mode again
6
+ - Accept the recommendation - comprehensive depth will provide better analysis
7
+ - OR improve prompt manually before running with standard depth again
8
8
  - Check which quality dimension is scoring low and address it
9
9
 
10
- ### Issue: Can't determine if prompt is complex enough for deep mode
10
+ ### Issue: Can't determine if prompt is complex enough for comprehensive depth
11
11
 
12
12
  **Cause**: Borderline quality scores or unclear content quality
13
13
 
14
14
  **Solution**:
15
- - Err on side of fast mode first
16
- - If output feels insufficient, escalate to `/clavix:deep`
15
+ - Err on side of standard depth first
16
+ - If output feels insufficient, escalate to `/clavix:improve --comprehensive`
17
17
  - Use triage as guidance, not absolute rule
18
18
 
19
19
  ### Issue: Improved prompt still feels incomplete
20
20
 
21
- **Cause**: Fast mode only applies basic optimizations
21
+ **Cause**: Standard depth only applies basic optimizations
22
22
 
23
23
  **Solution**:
24
- - Use `/clavix:deep` for alternative approaches, edge cases, and validation checklists
24
+ - Use `/clavix:improve --comprehensive` for alternative approaches, edge cases, and validation checklists
25
25
  - OR use `/clavix:prd` if strategic planning is needed
26
- - Fast mode is for quick cleanup, not comprehensive analysis
26
+ - Standard depth is for quick cleanup, not comprehensive analysis
@@ -13,12 +13,11 @@ export interface ClavixConfig {
13
13
  /**
14
14
  * v4.4 Intelligence Configuration
15
15
  * Configure pattern behavior, enable/disable patterns, adjust priorities
16
+ * v4.11: Removed defaultMode (fast/deep replaced by improve with auto-detection)
16
17
  */
17
18
  export interface IntelligenceConfig {
18
19
  /** Pattern-specific settings */
19
20
  patterns?: PatternSettingsConfig;
20
- /** Default mode for optimization */
21
- defaultMode?: 'fast' | 'deep';
22
21
  /** Enable verbose pattern logging */
23
22
  verbosePatternLogs?: boolean;
24
23
  }
@@ -2,9 +2,10 @@
2
2
  * Clavix v4.8: Verification System Types
3
3
  *
4
4
  * Type definitions for the checklist verification system that ensures
5
- * checklists generated by deep/fast modes are verified after implementation.
5
+ * checklists generated by improve mode are verified after implementation.
6
+ * v4.11: Updated to use DepthLevel instead of fast/deep source distinction.
6
7
  */
7
- import { PromptIntent } from '../core/intelligence/types.js';
8
+ import { PromptIntent, DepthLevel } from '../core/intelligence/types.js';
8
9
  /**
9
10
  * Category of checklist item
10
11
  */
@@ -154,12 +155,12 @@ export interface VerificationSummary {
154
155
  * Full verification report
155
156
  */
156
157
  export interface VerificationReport {
157
- /** Report version */
158
- version: '1.0';
158
+ /** Report version (v4.11: Allow 2.0 for unified storage format) */
159
+ version: '1.0' | '2.0';
159
160
  /** ID of the prompt being verified */
160
161
  promptId: string;
161
- /** Source of the prompt (fast or deep) */
162
- source: 'fast' | 'deep';
162
+ /** v4.11: Depth level used for this prompt (replaces source: 'fast' | 'deep') */
163
+ depthUsed: DepthLevel;
163
164
  /** When verification started */
164
165
  startedAt: string;
165
166
  /** When verification completed (all items done) */
@@ -2,7 +2,8 @@
2
2
  * Clavix v4.8: Verification System Types
3
3
  *
4
4
  * Type definitions for the checklist verification system that ensures
5
- * checklists generated by deep/fast modes are verified after implementation.
5
+ * checklists generated by improve mode are verified after implementation.
6
+ * v4.11: Updated to use DepthLevel instead of fast/deep source distinction.
6
7
  */
7
8
  export {};
8
9
  //# sourceMappingURL=verification.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clavix",
3
- "version": "4.10.0",
3
+ "version": "4.11.2",
4
4
  "description": "Clavix Intelligence™ for AI coding. Automatically optimizes prompts with intent detection, quality assessment, and adaptive patterns—no framework to learn. Works with Claude Code, Cursor, Windsurf, and 19+ other AI coding tools.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -24,6 +24,8 @@
24
24
  "test:watch": "NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" jest --watch",
25
25
  "test:coverage": "NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" jest --coverage",
26
26
  "test:changed": "NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" jest --changedSince=HEAD~1 --passWithNoTests",
27
+ "test:parity": "NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" jest tests/consistency/cli-template-parity.test.ts",
28
+ "test:consistency": "NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" jest tests/consistency/",
27
29
  "lint": "eslint",
28
30
  "lint:fix": "eslint --fix",
29
31
  "format": "prettier --write \"src/**/*.ts\"",