You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HeavySwarm is a sophisticated multi-agent orchestration system that decomposes complex tasks into specialized questions and executes them using four specialized agents: Research, Analysis, Alternatives, and Verification. The results are then synthesized into a comprehensive response.
3
+
HeavySwarm is a sophisticated multi-agent orchestration system that decomposes complex tasks into specialized questions and executes them using specialized agents in parallel. The results are then synthesized into a comprehensive response.
4
4
5
-
Inspired by X.AI's Grok 4 heavy implementation, HeavySwarm provides robust task analysis through intelligent question generation, parallel execution, and comprehensive synthesis with real-time progress monitoring.
The Grok mode is inspired by the [Grok 4.20 Heavy architecture](https://x.com/elonmusk/status/2034710771075273177) and decomposes work by **thinking style** — each agent applies a fundamentally different cognitive approach.
|`output_type`|`str`|`"dict-all-except-first"`| Output formatting type for conversation history |
95
126
|`worker_tools`|`Optional[tool_type]`|`None`| Tools available to worker agents for enhanced functionality |
96
127
|`random_loops_per_agent`|`bool`|`False`| Enable random number of loops per agent (1-10 range) |
97
-
|`max_loops`|`int`|`1`| Maximum number of loops when using random_loops_per_agent |
128
+
|`max_loops`|`int`|`1`| Maximum number of execution loops for iterative refinement |
129
+
|`use_grok_agents`|`bool`|`False`| Enable Grok 4.20 Heavy architecture with Captain Swarm, Harper, Benjamin, and Lucas agents instead of the default Research/Analysis/Alternatives/Verification agents |
98
130
99
131
##### Raises
100
132
@@ -160,19 +192,35 @@ Generate and extract only the specialized questions without metadata or executio
160
192
161
193
**Returns:**
162
194
163
-
-`Dict[str, str]`: Clean dictionary containing only the questions:
195
+
-`Dict[str, str]`: Clean dictionary containing only the questions.
196
+
197
+
**Default mode keys:**
164
198
-`research_question` (str): Question for comprehensive information gathering
165
199
-`analysis_question` (str): Question for pattern analysis and insights
166
200
-`alternatives_question` (str): Question for exploring creative solutions
167
201
-`verification_question` (str): Question for validation and feasibility
202
+
203
+
**Grok mode keys** (`use_grok_agents=True`):
204
+
-`harper_question` (str): Question for evidence-based research and fact verification
205
+
-`benjamin_question` (str): Question for logical reasoning and mathematical verification
206
+
-`lucas_question` (str): Question for creative/contrarian analysis and blind-spot detection
207
+
168
208
-`error` (str): Error message if question generation fails (on error only)
169
209
170
210
**Example:**
171
211
172
212
```python
213
+
# Default mode
173
214
questions = swarm.get_questions_only("Analyze market trends for EVs")
|**Performance**| Use `max_workers` based on your CPU cores for optimal parallel execution |
553
-
|**Cost**| Higher model versions (`gpt-4o`) provide better analysis but increase costs|
742
+
|**Cost**| Higher model versions provide better analysis but increase costs. Grok mode uses 4 agents vs 5, slightly reducing cost per run|
554
743
|**Timeouts**| Complex tasks may require longer `timeout` values |
555
744
|**Tools**| Integrate domain-specific tools for enhanced analysis capabilities |
556
745
|**Dashboard**| Enable `show_dashboard=True` for visual progress tracking |
557
746
|**Batch Processing**| Disable dashboard and verbose logging for efficient batch operations |
747
+
|**When to use Grok mode**| Best for tasks requiring debate-style analysis where facts, logic, and creative thinking need to be weighed against each other (e.g., strategic decisions, investment analysis, policy evaluation). Captain Swarm's conflict mediation is especially valuable when different perspectives might disagree. |
748
+
|**When to use Default mode**| Best for systematic, phased analysis where each step builds on the previous one (e.g., research reports, market studies, compliance audits). The dedicated Verification Agent provides stronger validation coverage. |
0 commit comments