tachibot-mcp 2.0.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 (214) hide show
  1. package/.env.example +260 -0
  2. package/CHANGELOG.md +54 -0
  3. package/CODE_OF_CONDUCT.md +56 -0
  4. package/CONTRIBUTING.md +54 -0
  5. package/Dockerfile +36 -0
  6. package/LICENSE +644 -0
  7. package/README.md +201 -0
  8. package/SECURITY.md +95 -0
  9. package/dist/personality/komaai-expressions.js +12 -0
  10. package/dist/profiles/balanced.json +33 -0
  11. package/dist/profiles/code_focus.json +33 -0
  12. package/dist/profiles/full.json +33 -0
  13. package/dist/profiles/minimal.json +33 -0
  14. package/dist/profiles/research_power.json +33 -0
  15. package/dist/scripts/build-profiles.js +46 -0
  16. package/dist/src/application/services/focus/FocusModeRegistry.js +46 -0
  17. package/dist/src/application/services/focus/FocusTool.service.js +109 -0
  18. package/dist/src/application/services/focus/ModeRegistry.js +46 -0
  19. package/dist/src/application/services/focus/modes/focus-deep.mode.js +27 -0
  20. package/dist/src/application/services/focus/modes/status.mode.js +50 -0
  21. package/dist/src/application/services/focus/modes/tachibot-status.mode.js +50 -0
  22. package/dist/src/collaborative-orchestrator.js +391 -0
  23. package/dist/src/config/model-constants.js +188 -0
  24. package/dist/src/config/model-defaults.js +57 -0
  25. package/dist/src/config/model-preferences.js +382 -0
  26. package/dist/src/config/timeout-config.js +130 -0
  27. package/dist/src/config.js +173 -0
  28. package/dist/src/domain/interfaces/IFocusMode.js +5 -0
  29. package/dist/src/domain/interfaces/IProvider.js +6 -0
  30. package/dist/src/domain/interfaces/ITool.js +5 -0
  31. package/dist/src/focus-deep.js +245 -0
  32. package/dist/src/infrastructure/ascii/art/robots.ascii.js +16 -0
  33. package/dist/src/mcp-client.js +90 -0
  34. package/dist/src/memory/index.js +17 -0
  35. package/dist/src/memory/memory-config.js +135 -0
  36. package/dist/src/memory/memory-interface.js +174 -0
  37. package/dist/src/memory/memory-manager.js +383 -0
  38. package/dist/src/memory/providers/devlog-provider.js +385 -0
  39. package/dist/src/memory/providers/hybrid-provider.js +399 -0
  40. package/dist/src/memory/providers/local-provider.js +388 -0
  41. package/dist/src/memory/providers/mem0-provider.js +337 -0
  42. package/dist/src/modes/architect.js +477 -0
  43. package/dist/src/modes/auditor.js +362 -0
  44. package/dist/src/modes/challenger.js +841 -0
  45. package/dist/src/modes/code-reviewer.js +382 -0
  46. package/dist/src/modes/commit-guardian.js +424 -0
  47. package/dist/src/modes/documentation-writer.js +572 -0
  48. package/dist/src/modes/scout.js +587 -0
  49. package/dist/src/modes/shared/helpers/challenger-helpers.js +454 -0
  50. package/dist/src/modes/shared/helpers/index.js +17 -0
  51. package/dist/src/modes/shared/helpers/scout-helpers.js +270 -0
  52. package/dist/src/modes/shared/helpers/verifier-helpers.js +332 -0
  53. package/dist/src/modes/test-architect.js +767 -0
  54. package/dist/src/modes/verifier.js +378 -0
  55. package/dist/src/monitoring/performance-monitor.js +435 -0
  56. package/dist/src/optimization/batch-executor.js +121 -0
  57. package/dist/src/optimization/context-pruner.js +196 -0
  58. package/dist/src/optimization/cost-monitor.js +338 -0
  59. package/dist/src/optimization/index.js +65 -0
  60. package/dist/src/optimization/model-router.js +264 -0
  61. package/dist/src/optimization/result-cache.js +114 -0
  62. package/dist/src/optimization/token-optimizer.js +257 -0
  63. package/dist/src/optimization/token-tracker.js +118 -0
  64. package/dist/src/orchestrator-instructions.js +128 -0
  65. package/dist/src/orchestrator-lite.js +139 -0
  66. package/dist/src/orchestrator.js +191 -0
  67. package/dist/src/orchestrators/collaborative/interfaces/IToolExecutionEngine.js +1 -0
  68. package/dist/src/orchestrators/collaborative/interfaces/IToolExecutionStrategy.js +5 -0
  69. package/dist/src/orchestrators/collaborative/interfaces/IVisualizationRenderer.js +1 -0
  70. package/dist/src/orchestrators/collaborative/registries/ModelProviderRegistry.js +95 -0
  71. package/dist/src/orchestrators/collaborative/registries/ToolAdapterRegistry.js +64 -0
  72. package/dist/src/orchestrators/collaborative/services/tool-execution/ToolExecutionService.js +502 -0
  73. package/dist/src/orchestrators/collaborative/services/visualization/VisualizationService.js +206 -0
  74. package/dist/src/orchestrators/collaborative/types/session-types.js +5 -0
  75. package/dist/src/profiles/balanced.js +37 -0
  76. package/dist/src/profiles/code_focus.js +37 -0
  77. package/dist/src/profiles/debug_intensive.js +59 -0
  78. package/dist/src/profiles/full.js +37 -0
  79. package/dist/src/profiles/minimal.js +37 -0
  80. package/dist/src/profiles/research_code.js +59 -0
  81. package/dist/src/profiles/research_power.js +37 -0
  82. package/dist/src/profiles/types.js +5 -0
  83. package/dist/src/profiles/workflow_builder.js +53 -0
  84. package/dist/src/prompt-engineer-lite.js +78 -0
  85. package/dist/src/prompt-engineer.js +399 -0
  86. package/dist/src/reasoning-chain.js +508 -0
  87. package/dist/src/sequential-thinking.js +291 -0
  88. package/dist/src/server-diagnostic.js +74 -0
  89. package/dist/src/server-raw.js +158 -0
  90. package/dist/src/server-simple.js +58 -0
  91. package/dist/src/server.js +514 -0
  92. package/dist/src/session/session-logger.js +617 -0
  93. package/dist/src/session/session-manager.js +571 -0
  94. package/dist/src/session/session-tools.js +400 -0
  95. package/dist/src/tools/advanced-modes.js +200 -0
  96. package/dist/src/tools/claude-integration.js +356 -0
  97. package/dist/src/tools/consolidated/ai-router.js +174 -0
  98. package/dist/src/tools/consolidated/ai-tool.js +48 -0
  99. package/dist/src/tools/consolidated/brainstorm-tool.js +87 -0
  100. package/dist/src/tools/consolidated/environment-detector.js +80 -0
  101. package/dist/src/tools/consolidated/index.js +50 -0
  102. package/dist/src/tools/consolidated/search-tool.js +110 -0
  103. package/dist/src/tools/consolidated/workflow-tool.js +238 -0
  104. package/dist/src/tools/gemini-tools.js +329 -0
  105. package/dist/src/tools/grok-enhanced.js +376 -0
  106. package/dist/src/tools/grok-tools.js +299 -0
  107. package/dist/src/tools/lmstudio-tools.js +223 -0
  108. package/dist/src/tools/openai-tools.js +498 -0
  109. package/dist/src/tools/openrouter-tools.js +317 -0
  110. package/dist/src/tools/optimized-wrapper.js +204 -0
  111. package/dist/src/tools/perplexity-tools.js +294 -0
  112. package/dist/src/tools/pingpong-tool.js +343 -0
  113. package/dist/src/tools/qwen-wrapper.js +74 -0
  114. package/dist/src/tools/tool-router.js +444 -0
  115. package/dist/src/tools/unified-ai-provider.js +260 -0
  116. package/dist/src/tools/workflow-runner.js +425 -0
  117. package/dist/src/tools/workflow-validator-tool.js +107 -0
  118. package/dist/src/types.js +23 -0
  119. package/dist/src/utils/input-validator.js +130 -0
  120. package/dist/src/utils/model-router.js +91 -0
  121. package/dist/src/utils/progress-stream.js +255 -0
  122. package/dist/src/utils/provider-router.js +88 -0
  123. package/dist/src/utils/smart-api-client.js +146 -0
  124. package/dist/src/utils/table-builder.js +218 -0
  125. package/dist/src/utils/timestamp-formatter.js +134 -0
  126. package/dist/src/utils/tool-compressor.js +257 -0
  127. package/dist/src/utils/tool-config.js +201 -0
  128. package/dist/src/validators/dependency-graph-validator.js +147 -0
  129. package/dist/src/validators/interpolation-validator.js +222 -0
  130. package/dist/src/validators/output-usage-validator.js +151 -0
  131. package/dist/src/validators/syntax-validator.js +102 -0
  132. package/dist/src/validators/tool-registry-validator.js +123 -0
  133. package/dist/src/validators/tool-types.js +97 -0
  134. package/dist/src/validators/types.js +8 -0
  135. package/dist/src/validators/workflow-validator.js +134 -0
  136. package/dist/src/visualizer-lite.js +42 -0
  137. package/dist/src/visualizer.js +179 -0
  138. package/dist/src/workflows/circuit-breaker.js +199 -0
  139. package/dist/src/workflows/custom-workflows.js +451 -0
  140. package/dist/src/workflows/engine/AutoSynthesizer.js +97 -0
  141. package/dist/src/workflows/engine/StepParameterResolver.js +74 -0
  142. package/dist/src/workflows/engine/VariableInterpolator.js +123 -0
  143. package/dist/src/workflows/engine/WorkflowDiscovery.js +125 -0
  144. package/dist/src/workflows/engine/WorkflowExecutionEngine.js +485 -0
  145. package/dist/src/workflows/engine/WorkflowExecutor.js +113 -0
  146. package/dist/src/workflows/engine/WorkflowFileManager.js +244 -0
  147. package/dist/src/workflows/engine/WorkflowHelpers.js +114 -0
  148. package/dist/src/workflows/engine/WorkflowOutputFormatter.js +83 -0
  149. package/dist/src/workflows/engine/events/WorkflowEventBus.js +132 -0
  150. package/dist/src/workflows/engine/events/interfaces/IEventBus.js +5 -0
  151. package/dist/src/workflows/engine/handlers/ErrorRecoveryHandler.js +162 -0
  152. package/dist/src/workflows/engine/handlers/PromptEnhancementHandler.js +115 -0
  153. package/dist/src/workflows/engine/handlers/SessionPersistenceHandler.js +167 -0
  154. package/dist/src/workflows/engine/handlers/StepExecutionHandler.js +231 -0
  155. package/dist/src/workflows/engine/handlers/ToolInvocationHandler.js +46 -0
  156. package/dist/src/workflows/engine/interfaces/IAutoSynthesizer.js +5 -0
  157. package/dist/src/workflows/engine/interfaces/IStepParameterResolver.js +5 -0
  158. package/dist/src/workflows/engine/interfaces/IVariableInterpolator.js +5 -0
  159. package/dist/src/workflows/engine/interfaces/IWorkflowDiscovery.js +4 -0
  160. package/dist/src/workflows/engine/interfaces/IWorkflowFileManager.js +5 -0
  161. package/dist/src/workflows/engine/interfaces/IWorkflowOutputFormatter.js +5 -0
  162. package/dist/src/workflows/engine/state/WorkflowStateMachine.js +194 -0
  163. package/dist/src/workflows/engine/state/interfaces/IStateMachine.js +17 -0
  164. package/dist/src/workflows/fallback-strategies.js +373 -0
  165. package/dist/src/workflows/message-queue.js +455 -0
  166. package/dist/src/workflows/model-router.js +189 -0
  167. package/dist/src/workflows/orchestrator-examples.js +174 -0
  168. package/dist/src/workflows/orchestrator-integration.js +200 -0
  169. package/dist/src/workflows/self-healing.js +524 -0
  170. package/dist/src/workflows/tool-mapper.js +407 -0
  171. package/dist/src/workflows/tool-orchestrator.js +796 -0
  172. package/dist/src/workflows/workflow-engine.js +573 -0
  173. package/dist/src/workflows/workflow-parser.js +283 -0
  174. package/dist/src/workflows/workflow-types.js +95 -0
  175. package/dist/src/workflows.js +568 -0
  176. package/dist/test-workflow-file-output.js +93 -0
  177. package/docs/API_KEYS.md +570 -0
  178. package/docs/CLAUDE_CODE_SETUP.md +181 -0
  179. package/docs/CLAUDE_DESKTOP_MANUAL.md +127 -0
  180. package/docs/CONFIGURATION.md +745 -0
  181. package/docs/FOCUS_MODES.md +240 -0
  182. package/docs/INSTALLATION_BOTH.md +145 -0
  183. package/docs/TERMS.md +352 -0
  184. package/docs/TOOLS_REFERENCE.md +1622 -0
  185. package/docs/TOOL_PARAMETERS.md +496 -0
  186. package/docs/TOOL_PROFILES.md +236 -0
  187. package/docs/WORKFLOWS.md +987 -0
  188. package/docs/WORKFLOW_OUTPUT.md +198 -0
  189. package/docs/WORKFLOW_PROGRESS_TRACKING.md +305 -0
  190. package/docs/workflows/design-brainstorm.md +335 -0
  191. package/package.json +97 -0
  192. package/profiles/balanced.json +37 -0
  193. package/profiles/code_focus.json +37 -0
  194. package/profiles/debug_intensive.json +34 -0
  195. package/profiles/full.json +37 -0
  196. package/profiles/minimal.json +37 -0
  197. package/profiles/research_power.json +37 -0
  198. package/profiles/workflow_builder.json +37 -0
  199. package/smithery.yaml +66 -0
  200. package/start.sh +8 -0
  201. package/tools.config.json +81 -0
  202. package/tsconfig.json +18 -0
  203. package/workflows/accessibility-code-audit.yaml +92 -0
  204. package/workflows/code-architecture-review.yaml +202 -0
  205. package/workflows/code-review.yaml +142 -0
  206. package/workflows/core/iterative-problem-solver.yaml +283 -0
  207. package/workflows/creative-brainstorm-yaml.yaml +215 -0
  208. package/workflows/pingpong.yaml +141 -0
  209. package/workflows/system/README.md +412 -0
  210. package/workflows/system/challenger.yaml +175 -0
  211. package/workflows/system/scout.yaml +164 -0
  212. package/workflows/system/verifier.yaml +133 -0
  213. package/workflows/ultra-creative-brainstorm.yaml +318 -0
  214. package/workflows/ux-research-flow.yaml +92 -0
@@ -0,0 +1,164 @@
1
+ name: scout
2
+ description: Intelligent information gathering workflow with temporal context and multi-source research
3
+ version: "2.0"
4
+
5
+ settings:
6
+ maxCost: 0.60
7
+
8
+ steps:
9
+ # Step 1: Deep web research via Perplexity
10
+ - name: perplexity_research
11
+ tool: perplexity_research
12
+ input:
13
+ topic: "${query}"
14
+ depth: "deep"
15
+ saveToFile: true
16
+ maxTokens: 20000
17
+ output:
18
+ variable: perplexity_data
19
+
20
+ # Step 2: Live search via Grok with X/Twitter integration
21
+ - name: grok_search
22
+ tool: grok_search
23
+ input:
24
+ query: "${query}"
25
+ depth: "comprehensive"
26
+ saveToFile: true
27
+ maxTokens: 20000
28
+ output:
29
+ variable: grok_data
30
+
31
+ # Step 3: Gemini analysis of search results
32
+ - name: gemini_analysis
33
+ tool: gemini_analyze_text
34
+ loadFiles: ["perplexity_research", "grok_search"]
35
+ input:
36
+ text: |
37
+ Analyze these research findings:
38
+
39
+ PERPLEXITY RESEARCH:
40
+ ${perplexity_data}
41
+
42
+ GROK SEARCH:
43
+ ${grok_data}
44
+
45
+ Provide:
46
+ 1. Key themes and patterns
47
+ 2. Temporal context (what's current vs outdated)
48
+ 3. Source reliability assessment
49
+ 4. Contradictions or conflicts
50
+ 5. Knowledge gaps
51
+ focus: "comprehensive analysis"
52
+ saveToFile: true
53
+ maxTokens: 15000
54
+ output:
55
+ variable: gemini_analysis_result
56
+
57
+ # Step 4: Technical deep-dive with Qwen Coder (if technical topic)
58
+ - name: qwen_technical_analysis
59
+ tool: qwen_coder
60
+ loadFiles: ["perplexity_research", "grok_search"]
61
+ input:
62
+ problem: |
63
+ Provide technical analysis of this research:
64
+
65
+ TOPIC: ${query}
66
+
67
+ RESEARCH DATA:
68
+ ${perplexity_data}
69
+
70
+ ${grok_data}
71
+
72
+ Focus on:
73
+ - Technical accuracy and details
74
+ - Code examples or implementation details (if applicable)
75
+ - Best practices and standards
76
+ - Recent technical developments
77
+ - Architecture or design patterns
78
+ saveToFile: true
79
+ maxTokens: 15000
80
+ output:
81
+ variable: qwen_analysis_result
82
+
83
+ # Step 5: Multi-model reasoning synthesis
84
+ - name: reasoning_synthesis
85
+ tool: focus
86
+ loadFiles: ["perplexity_research", "grok_search", "gemini_analysis", "qwen_technical_analysis"]
87
+ input:
88
+ query: |
89
+ Synthesize these comprehensive research findings into a coherent analysis:
90
+
91
+ WEB RESEARCH (Perplexity):
92
+ ${perplexity_data}
93
+
94
+ LIVE SEARCH (Grok):
95
+ ${grok_data}
96
+
97
+ ANALYSIS (Gemini):
98
+ ${gemini_analysis_result}
99
+
100
+ TECHNICAL ANALYSIS (Qwen):
101
+ ${qwen_analysis_result}
102
+
103
+ Provide:
104
+ 1. Core findings that appear across multiple sources
105
+ 2. Unique insights from each source
106
+ 3. Contradictions or disagreements between sources
107
+ 4. Confidence levels for different claims
108
+ 5. Actionable recommendations based on the synthesis
109
+ mode: "analyze"
110
+ models: ["gpt5-mini", "gemini-2.5-pro", "gemini-2.5-flash", "grok-4"]
111
+ rounds: 2
112
+ domain: "research"
113
+ saveToFile: true
114
+ maxTokens: 15000
115
+ output:
116
+ variable: reasoning_result
117
+
118
+ # Step 6: Final formatted report
119
+ - name: format_scout_report
120
+ tool: gemini_analyze_text
121
+ loadFiles: ["reasoning_synthesis"]
122
+ input:
123
+ text: |
124
+ Create a comprehensive scout report:
125
+
126
+ QUERY: ${query}
127
+
128
+ SYNTHESIS: ${reasoning_result}
129
+
130
+ Format as:
131
+ # Scout Report: ${query}
132
+
133
+ ## Executive Summary
134
+ [3-5 sentence overview]
135
+
136
+ ## Key Findings
137
+ [Numbered list of main discoveries]
138
+
139
+ ## Temporal Context
140
+ - **Current State:** [What's happening now]
141
+ - **Recent Developments:** [Last 6-12 months]
142
+ - **Emerging Trends:** [What's coming next]
143
+
144
+ ## Source Analysis
145
+ - **High Confidence Sources:** [List reliable sources]
146
+ - **Medium Confidence:** [Somewhat reliable]
147
+ - **Low Confidence:** [Treat with caution]
148
+
149
+ ## Technical Details
150
+ [If applicable: code, architecture, implementation notes]
151
+
152
+ ## Knowledge Gaps & Uncertainties
153
+ [What we don't know or what's unclear]
154
+
155
+ ## Recommendations
156
+ [Actionable next steps or insights]
157
+
158
+ ## References
159
+ [Key sources cited]
160
+ focus: "report formatting"
161
+ maxTokens: 8000
162
+
163
+ output:
164
+ format: detailed
@@ -0,0 +1,133 @@
1
+ name: verifier
2
+ description: Multi-model consensus verification workflow with file-based chaining
3
+ version: "2.0"
4
+
5
+ settings:
6
+ maxCost: 0.50
7
+
8
+ steps:
9
+ # Parallel verification across 5 different models
10
+ # Each model gets 10k tokens, saved to disk
11
+
12
+ - name: verify_gpt5_mini
13
+ tool: openai_compare
14
+ input:
15
+ topic: "Verify the following claim or statement"
16
+ options:
17
+ - "${query}"
18
+ includeRecommendation: false
19
+ saveToFile: true
20
+ maxTokens: 10000
21
+ output:
22
+ variable: gpt5_mini_result
23
+
24
+ - name: verify_gemini
25
+ tool: gemini_analyze_text
26
+ input:
27
+ text: |
28
+ Verify the accuracy and validity of this claim:
29
+
30
+ ${query}
31
+
32
+ Provide:
33
+ 1. Truth assessment (true/false/partially true/unverifiable)
34
+ 2. Supporting evidence
35
+ 3. Contradicting evidence
36
+ 4. Confidence level (0-100%)
37
+ focus: "verification"
38
+ saveToFile: true
39
+ maxTokens: 10000
40
+ output:
41
+ variable: gemini_result
42
+
43
+ - name: verify_grok
44
+ tool: grok_code
45
+ input:
46
+ code: "${query}"
47
+ task: "verify"
48
+ requirements: |
49
+ Analyze and verify this claim with:
50
+ 1. Factual accuracy check
51
+ 2. Logical consistency
52
+ 3. Evidence assessment
53
+ 4. Confidence score
54
+ saveToFile: true
55
+ maxTokens: 10000
56
+ output:
57
+ variable: grok_result
58
+
59
+ - name: verify_qwen
60
+ tool: qwen_coder
61
+ input:
62
+ problem: |
63
+ Verify this technical claim or statement:
64
+
65
+ ${query}
66
+
67
+ Provide detailed verification including:
68
+ - Technical accuracy
69
+ - Code/logic correctness (if applicable)
70
+ - Best practices alignment
71
+ - Confidence rating
72
+ saveToFile: true
73
+ maxTokens: 10000
74
+ output:
75
+ variable: qwen_result
76
+
77
+ - name: verify_perplexity
78
+ tool: perplexity_reason
79
+ input:
80
+ query: |
81
+ Verify with web search and reasoning:
82
+
83
+ ${query}
84
+
85
+ Check:
86
+ 1. Current factual accuracy (check latest sources)
87
+ 2. Expert consensus
88
+ 3. Recent developments
89
+ 4. Source reliability
90
+ saveToFile: true
91
+ maxTokens: 10000
92
+ output:
93
+ variable: perplexity_result
94
+
95
+ # Executive Summary (using Gemini 2.5 Flash for 50k token context)
96
+ - name: executive-summary
97
+ tool: gemini_analyze_text
98
+ input:
99
+ text: |
100
+ ${gpt5_mini_result}
101
+ ${gemini_result}
102
+ ${grok_result}
103
+ ${qwen_result}
104
+ ${perplexity_result}
105
+ task: |
106
+ Original Query: ${query}
107
+
108
+ Analyze consensus from 5 verification models and create executive summary:
109
+
110
+ ## Verification Summary
111
+ - Overall Verdict: [True/False/Partially True/Unverifiable]
112
+ - Consensus Level: [X/5 models agree]
113
+ - Confidence: [0-100%]
114
+
115
+ ## Model Verdicts
116
+ [Brief summary of each model's verdict]
117
+
118
+ ## Key Evidence
119
+ [Supporting and contradicting evidence]
120
+
121
+ ## Outliers & Disagreements
122
+ [Any models that disagree and why]
123
+
124
+ ## Final Recommendation
125
+ [Should this claim be trusted? Why or why not?]
126
+
127
+ Keep under 2000 words for Claude Code.
128
+ maxTokens: 6000
129
+ output:
130
+ variable: verification_report
131
+
132
+ output:
133
+ format: detailed
@@ -0,0 +1,318 @@
1
+ name: ultra-creative-brainstorm
2
+ description: Ultra-enhanced brainstorming using optimal model sequencing - Perplexity research first, then Grok analysis, Gemini ideation, synthesis
3
+ version: "3.0"
4
+
5
+ # Usage: workflow --name ultra-creative-brainstorm --query "your topic/problem/idea"
6
+ # Optimal ordering based on AI reasoning research: Research→Reason→Ideate→Connect→Evaluate→Synthesize→Analyze→Implement
7
+
8
+ settings:
9
+ optimization:
10
+ enabled: true
11
+ smartRouting: true
12
+ compressPrompts: false
13
+ autoSynthesis:
14
+ enabled: true
15
+ tokenThreshold: 25000
16
+ checkpointInterval: 12000
17
+ synthesisTool: 'gemini_analyze_text'
18
+ synthesisMaxTokens: 8000
19
+ logLevel: 'info'
20
+
21
+ variables:
22
+ max_ideas: 10
23
+ depth_level: "deep"
24
+
25
+ steps:
26
+ # ═══════════════════════════════════════════════════════════════════════════
27
+ # PHASE 0: PROBLEM DECOMPOSITION - Break down the problem first
28
+ # ═══════════════════════════════════════════════════════════════════════════
29
+
30
+ - name: initial-decomposition
31
+ tool: think
32
+ promptTechnique: problem_decomposition
33
+ input:
34
+ thought: "Break down '${query}' into manageable components. What are the core problems, constraints, and success criteria?"
35
+ saveToFile: true
36
+ output:
37
+ variable: problem_structure
38
+
39
+ # ═══════════════════════════════════════════════════════════════════════════
40
+ # PHASE 1: RESEARCH FOUNDATION - Perplexity first for comprehensive context
41
+ # ═══════════════════════════════════════════════════════════════════════════
42
+
43
+ - name: comprehensive-research
44
+ tool: perplexity_research
45
+ promptTechnique: comprehensive_investigation
46
+ input:
47
+ topic: "${query}"
48
+ depth: "${depth_level}"
49
+ questions:
50
+ - "What are the current state-of-the-art solutions?"
51
+ - "What recent breakthroughs are relevant?"
52
+ - "What are experts saying about future directions?"
53
+ saveToFile: true
54
+ maxTokens: 12000
55
+ output:
56
+ variable: research_findings
57
+
58
+ - name: evidence-gathering
59
+ tool: perplexity_ask
60
+ promptTechnique: evidence_gathering
61
+ input:
62
+ query: "${query} recent innovations case studies success stories"
63
+ saveToFile: true
64
+ maxTokens: 8000
65
+ output:
66
+ variable: evidence
67
+
68
+ # ═══════════════════════════════════════════════════════════════════════════
69
+ # PHASE 2: DEEP REASONING - Grok for search + first principles analysis
70
+ # ═══════════════════════════════════════════════════════════════════════════
71
+
72
+ - name: grok-search-context
73
+ tool: grok_search
74
+ input:
75
+ query: "${query} breakthrough approaches innovative methods"
76
+ recency: "month"
77
+ max_search_results: 15
78
+ saveToFile: true
79
+ maxTokens: 8000
80
+ output:
81
+ variable: grok_search_results
82
+
83
+ - name: first-principles-analysis
84
+ tool: grok_reason
85
+ promptTechnique: first_principles
86
+ input:
87
+ problem: "${query}"
88
+ approach: "first-principles"
89
+ context: "Research findings: ${research_findings}\nProblem structure: ${problem_structure}"
90
+ saveToFile: true
91
+ maxTokens: 10000
92
+ output:
93
+ variable: first_principles
94
+
95
+ # ═══════════════════════════════════════════════════════════════════════════
96
+ # PHASE 3: DIVERGENT IDEATION - Gemini for creative brainstorming
97
+ # ═══════════════════════════════════════════════════════════════════════════
98
+
99
+ - name: what-if-speculation
100
+ tool: gemini_brainstorm
101
+ promptTechnique: what_if_speculation
102
+ input:
103
+ prompt: "${query}"
104
+ maxRounds: 2
105
+ claudeThoughts: "Context: ${first_principles}"
106
+ saveToFile: true
107
+ maxTokens: 8000
108
+ output:
109
+ variable: what_if_ideas
110
+
111
+ - name: innovative-solutions
112
+ tool: gemini_brainstorm
113
+ promptTechnique: innovative_solutions
114
+ input:
115
+ prompt: "${query}"
116
+ maxRounds: 2
117
+ claudeThoughts: "Research: ${research_findings}\nFirst principles: ${first_principles}"
118
+ saveToFile: true
119
+ maxTokens: 8000
120
+ output:
121
+ variable: innovative_solutions
122
+
123
+ # ═══════════════════════════════════════════════════════════════════════════
124
+ # PHASE 4: LONG-CONTEXT CONNECTIONS - Kimi K2 for exploring relationships
125
+ # ═══════════════════════════════════════════════════════════════════════════
126
+
127
+ - name: alternative-perspectives
128
+ tool: kimi_thinking
129
+ promptTechnique: alternative_perspectives
130
+ input:
131
+ problem: "${query}"
132
+ approach: "creative"
133
+ maxSteps: 10
134
+ context: "Ideas generated: ${what_if_ideas}\n\nInnovative solutions: ${innovative_solutions}"
135
+ saveToFile: true
136
+ maxTokens: 12000
137
+ output:
138
+ variable: perspectives
139
+
140
+ - name: systematic-analysis
141
+ tool: kimi_thinking
142
+ promptTechnique: systematic_analysis
143
+ input:
144
+ problem: "Analyze ${query} systematically considering all perspectives"
145
+ approach: "systematic"
146
+ maxSteps: 12
147
+ context: "Research: ${research_findings}\nPerspectives: ${perspectives}"
148
+ saveToFile: true
149
+ maxTokens: 12000
150
+ output:
151
+ variable: systematic_analysis
152
+
153
+ - name: pattern-reflection
154
+ tool: think
155
+ promptTechnique: quick_reflection
156
+ input:
157
+ thought: "What patterns emerge from ${what_if_ideas}, ${perspectives}, and ${systematic_analysis}?"
158
+ saveToFile: true
159
+ output:
160
+ variable: pattern_reflection
161
+
162
+ # ═══════════════════════════════════════════════════════════════════════════
163
+ # PHASE 5: CONVERGENT REFINEMENT - Grok for evaluation
164
+ # ═══════════════════════════════════════════════════════════════════════════
165
+
166
+ - name: grok-evaluation
167
+ tool: grok_reason
168
+ input:
169
+ problem: "Evaluate and refine the most promising ideas for ${query}"
170
+ approach: "analytical"
171
+ context: "Ideas: ${innovative_solutions}\nAnalysis: ${systematic_analysis}"
172
+ saveToFile: true
173
+ maxTokens: 10000
174
+ output:
175
+ variable: grok_evaluation
176
+
177
+ - name: pattern-recognition
178
+ tool: gemini_analyze_text
179
+ promptTechnique: pattern_recognition
180
+ input:
181
+ text: "Analysis of ${query}:\n\n${systematic_analysis}\n\nEvaluation: ${grok_evaluation}"
182
+ type: "analysis"
183
+ saveToFile: true
184
+ maxTokens: 8000
185
+ output:
186
+ variable: patterns
187
+
188
+ # ═══════════════════════════════════════════════════════════════════════════
189
+ # PHASE 6: SYNTHESIS - GPT-5 for combining best ideas
190
+ # ═══════════════════════════════════════════════════════════════════════════
191
+
192
+ - name: creative-applications
193
+ tool: focus
194
+ promptTechnique: creative_applications
195
+ input:
196
+ query: "${query} - explore creative applications across domains"
197
+ mode: "code-brainstorm"
198
+ models: ["gpt-5", "gemini-2.5", "grok-3"]
199
+ rounds: 3
200
+ context: "Research: ${research_findings}\nIdeas: ${innovative_solutions}\nPatterns: ${patterns}"
201
+ saveToFile: true
202
+ maxTokens: 15000
203
+ output:
204
+ variable: applications
205
+
206
+ - name: ultimate-synthesis
207
+ tool: openai_brainstorm
208
+ promptTechnique: integration_reflection
209
+ input:
210
+ problem: "Synthesize all perspectives and ideas for ${query} into coherent solutions"
211
+ style: "systematic"
212
+ reasoning_effort: "high"
213
+ model: "gpt-5"
214
+ context: |
215
+ COMPREHENSIVE CONTEXT:
216
+
217
+ Problem Structure: ${problem_structure}
218
+ Research Findings: ${research_findings}
219
+ Evidence: ${evidence}
220
+ First Principles: ${first_principles}
221
+ What-If Ideas: ${what_if_ideas}
222
+ Innovative Solutions: ${innovative_solutions}
223
+ Multiple Perspectives: ${perspectives}
224
+ Systematic Analysis: ${systematic_analysis}
225
+ Patterns: ${patterns}
226
+ Grok Evaluation: ${grok_evaluation}
227
+ Creative Applications: ${applications}
228
+ saveToFile: true
229
+ maxTokens: 20000
230
+ output:
231
+ variable: ultimate_synthesis
232
+
233
+ # ═══════════════════════════════════════════════════════════════════════════
234
+ # PHASE 7: FEASIBILITY ANALYSIS - Gemini for detailed feasibility
235
+ # ═══════════════════════════════════════════════════════════════════════════
236
+
237
+ - name: feasibility-analysis
238
+ tool: gemini_analyze_text
239
+ promptTechnique: feasibility_analysis
240
+ input:
241
+ text: "Synthesized solution for ${query}:\n\n${ultimate_synthesis}"
242
+ type: "analysis"
243
+ saveToFile: true
244
+ maxTokens: 12000
245
+ output:
246
+ variable: feasibility
247
+
248
+ - name: final-reflection
249
+ tool: think
250
+ promptTechnique: quick_reflection
251
+ input:
252
+ thought: "Final reflection on ${query}: What are the key insights, risks, and next steps from ${ultimate_synthesis} and ${feasibility}?"
253
+ saveToFile: true
254
+ output:
255
+ variable: final_reflection
256
+
257
+ # ═══════════════════════════════════════════════════════════════════════════
258
+ # PHASE 8: IMPLEMENTATION - QWEN for technical implementation plan
259
+ # ═══════════════════════════════════════════════════════════════════════════
260
+
261
+ - name: technical-implementation
262
+ tool: qwen_coder
263
+ input:
264
+ task: "review"
265
+ code: "${ultimate_synthesis}"
266
+ requirements: "Evaluate technical feasibility and create implementation roadmap for: ${query}"
267
+ saveToFile: true
268
+ maxTokens: 10000
269
+ output:
270
+ variable: implementation_plan
271
+
272
+ # ═══════════════════════════════════════════════════════════════════════════
273
+ # FINAL OUTPUT
274
+ # ═══════════════════════════════════════════════════════════════════════════
275
+
276
+ - name: executive-summary
277
+ tool: gemini_analyze_text
278
+ input:
279
+ text: |
280
+ ULTRA BRAINSTORM RESULTS FOR: ${query}
281
+
282
+ ${ultimate_synthesis}
283
+
284
+ FEASIBILITY: ${feasibility}
285
+
286
+ IMPLEMENTATION: ${implementation_plan}
287
+ type: "summary"
288
+ saveToFile: true
289
+ maxTokens: 12000
290
+ output:
291
+ variable: final_summary
292
+
293
+ output:
294
+ format: "detailed"
295
+ summary: |
296
+ ╔═══════════════════════════════════════════════════════════════════════════╗
297
+ ║ ULTRA CREATIVE BRAINSTORM COMPLETE (v3.0 - Optimal Sequencing) ║
298
+ ║ Topic: ${query} ║
299
+ ╚═══════════════════════════════════════════════════════════════════════════╝
300
+
301
+ 📊 OPTIMAL MODEL SEQUENCE COMPLETED:
302
+ ✅ Phase 0: Problem Decomposition (Think)
303
+ ✅ Phase 1: Research Foundation (Perplexity research + ask)
304
+ ✅ Phase 2: Deep Reasoning (Grok search + reason)
305
+ ✅ Phase 3: Divergent Ideation (Gemini brainstorm)
306
+ ✅ Phase 4: Long-Context Connections (Kimi K2 thinking)
307
+ ✅ Phase 5: Convergent Refinement (Grok + Gemini analysis)
308
+ ✅ Phase 6: Synthesis (GPT-5 via focus + openai_brainstorm)
309
+ ✅ Phase 7: Feasibility Analysis (Gemini analysis)
310
+ ✅ Phase 8: Implementation (QWEN coder)
311
+
312
+ 🎯 EXECUTIVE SUMMARY:
313
+ ${final_summary}
314
+
315
+ 📁 All outputs saved to: workflow-output/ultra-creative-brainstorm/
316
+
317
+ 💡 This workflow follows AI research-backed optimal sequencing:
318
+ Research → Reason → Ideate → Connect → Evaluate → Synthesize → Analyze → Implement