Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

Desktop: project Skills mode selector (#1597)

0xken15cb9d8d5bfc34
diff --git a/desktop/lib/state/app_state.dart b/desktop/lib/state/app_state.dart
index 7d7103c18..1d3ca3a44 100644
--- a/desktop/lib/state/app_state.dart
+++ b/desktop/lib/state/app_state.dart
@@ -13866,6 +13866,7 @@ class AppNotifier extends ChangeNotifier {
String? codexHome,
String? dsh,
String? swarmRole,
+ String? swarmSkillMode,
GridModel? model,
String? prompt,
String? name,
@@ -13888,7 +13889,10 @@ class AppNotifier extends ChangeNotifier {
// The harness this agent is created from. `engine` above is its BASE —
// the machine refuses the pair when they disagree (`INVALID_DSH`).
'dsh': ?dsh,
- if (engine == 'claude' || engine == 'codex') 'swarmRole': ?swarmRole,
+ if (engine == 'claude' || engine == 'codex') ...{
+ 'swarmRole': ?swarmRole,
+ 'swarmSkillMode': ?swarmSkillMode,
+ },
'gridModel': ?model?.id,
'gridName': ?model?.grid,
// A first message the engine is opened with, and the pane's name before
diff --git a/desktop/lib/state/harness_launch_integration.dart b/desktop/lib/state/harness_launch_integration.dart
index ccab403b3..5fa0c93e7 100644
--- a/desktop/lib/state/harness_launch_integration.dart
+++ b/desktop/lib/state/harness_launch_integration.dart
@@ -20,9 +20,11 @@ class HarnessLaunchIntegration {
this.engines,
this.forcedPermissionMode,
this.swarmRole,
+ this.swarmSkillMode,
});
final String creationId, actionLabel;
final String? swarmRole;
+ String? swarmSkillMode;
// Restores the person's original request from a destination launch journal.
final String? initialTask;
// The only agents this destination may start, or null for any.
diff --git a/desktop/lib/state/new_harness.dart b/desktop/lib/state/new_harness.dart
index 3ad8968ce..66384865b 100644
--- a/desktop/lib/state/new_harness.dart
+++ b/desktop/lib/state/new_harness.dart
@@ -4078,6 +4078,7 @@ class NewHarnessController extends ChangeNotifier {
model: model,
dsh: harness,
swarmRole: integration?.swarmRole,
+ swarmSkillMode: integration?.swarmSkillMode,
// Sent exactly as written; an agent that cannot take one is never sent it.
prompt: takesTask && files.isEmpty && launchMessage.isNotEmpty
? launchMessage
diff --git a/desktop/lib/super_tabs/launch.dart b/desktop/lib/super_tabs/launch.dart
index 6ad532a4d..38d3ceedf 100644
--- a/desktop/lib/super_tabs/launch.dart
+++ b/desktop/lib/super_tabs/launch.dart
@@ -61,6 +61,7 @@ class SuperTabLaunch {
creationId: saved['creationId'] as String? ?? superTabOperationId(),
initialTask: saved['initialMessage'] as String?,
swarmRole: saved['lead'] == true ? 'lead' : 'dev',
+ swarmSkillMode: saved['skillMode'] as String? ?? 'orchestration',
actionLabel: saved['newProject'] == true
? 'New Project'
: saved['lead'] == true
@@ -80,7 +81,10 @@ class SuperTabLaunch {
saved['visibility'] = integration.projectVisibility ?? 'public';
}
try {
- return await launch.prepare(machine, task);
+ final prompt = await launch.prepare(machine, task);
+ integration.swarmSkillMode =
+ saved['skillMode'] as String? ?? 'orchestration';
+ return prompt;
} on SuperTabFailure catch (failure) {
// Validation rejects the request before applying it. A lost response
// stays locked so retrying cannot create a second project or change
@@ -206,9 +210,9 @@ class SuperTabLaunch {
'/api/super-tabs/${saved['tabId']}',
);
checkAccount();
- final groups =
- superTabMap(current['state'])['conversations'] as List? ?? const [];
- if (!groups.any((g) => (g as Map)['id'] == saved['conversationId'])) {
+ final snapshot = SuperTabSnapshot.fromJson(superTabMap(current['state']));
+ final conversationId = saved['conversationId'] as String;
+ if (snapshot.conversation(conversationId) == null) {
if (saved['phase'] != 'starting' && saved['phase'] != 'joining') {
// Nothing can still be starting: reopening New Project should get a
// fresh destination instead of loading this deleted project forever.
@@ -220,6 +224,8 @@ class SuperTabLaunch {
'This project is no longer available. Close this form and create a new project.',
);
}
+ saved['skillMode'] =
+ snapshot.projectFor(conversationId)?.skillMode ?? 'orchestration';
final prompt = superTabLaunchPrompt(
tabId: saved['tabId'] as String,
conversationId: saved['conversationId'] as String,
diff --git a/desktop/lib/super_tabs/model.dart b/desktop/lib/super_tabs/model.dart
index 3b1c77c2f..09354833c 100644
--- a/desktop/lib/super_tabs/model.dart
+++ b/desktop/lib/super_tabs/model.dart
@@ -104,6 +104,7 @@ class SuperTabProject {
name = _text(row, 'name'),
ownerId = _text(row, 'ownerId'),
leadConversationId = _text(row, 'leadConversationId'),
+ skillMode = row['skillMode'] == 'default' ? 'default' : 'orchestration',
isPrivate = row['visibility'] == 'private',
memberIds = [
for (final member in row['members'] as List? ?? const [])
@@ -114,6 +115,7 @@ class SuperTabProject {
? Map.unmodifiable(superTabMap(row['repository']))
: null;
final String id, name, ownerId, leadConversationId;
+ final String skillMode;
final bool isPrivate;
final List<String> memberIds;
final int updateMinutes;
diff --git a/desktop/lib/super_tabs/project_options.dart b/desktop/lib/super_tabs/project_options.dart
index ca3854b96..f0b79f33a 100644
--- a/desktop/lib/super_tabs/project_options.dart
+++ b/desktop/lib/super_tabs/project_options.dart
@@ -22,6 +22,7 @@ Future<void> showProjectAction(
var visibility = project.isPrivate ? 'private' : 'public';
final members = project.memberIds.toSet();
var minutes = project.updateMinutes;
+ var mode = project.skillMode;
var busy = false;
await showAppDialog<void>(
context: context,
@@ -43,6 +44,7 @@ Future<void> showProjectAction(
title: Text(switch (action) {
'rename' => 'Rename project',
'sharing' => 'Sharing',
+ 'skills' => 'Skills for this project',
'cadence' => 'Project updates',
_ => 'Project details',
}),
@@ -129,6 +131,35 @@ Future<void> showProjectAction(
style: DesktopChrome.metadata(),
),
],
+ if (action == 'skills')
+ RadioGroup<String>(
+ groupValue: mode,
+ onChanged: (value) {
+ if (busy || !canManage || value == null) return;
+ update(() => mode = value);
+ },
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ RadioListTile<String>(
+ value: 'default',
+ enabled: !busy && canManage,
+ contentPadding: EdgeInsets.zero,
+ title: const Text(
+ 'Default — the team process; agents otherwise work their usual way',
+ ),
+ ),
+ RadioListTile<String>(
+ value: 'orchestration',
+ enabled: !busy && canManage,
+ contentPadding: EdgeInsets.zero,
+ title: const Text(
+ 'Harness orchestration — adds Harness practices: plans, test-first, review rounds',
+ ),
+ ),
+ ],
+ ),
+ ),
if (readOnly) ...[
Text(
current?.name ?? project.name,
@@ -192,6 +223,8 @@ Future<void> showProjectAction(
? 'rename'
: action == 'sharing'
? 'sharing'
+ : action == 'skills'
+ ? 'skills'
: 'cadence'}',
'projectId': project.id,
if (action == 'rename') 'name': name.trim(),
@@ -200,6 +233,7 @@ Future<void> showProjectAction(
'memberIds': members.toList(),
},
if (action == 'cadence') 'minutes': minutes,
+ if (action == 'skills') 'mode': mode,
});
if (!context.mounted) return;
if (result != null) {
diff --git a/desktop/lib/super_tabs/view.dart b/desktop/lib/super_tabs/view.dart
index 2f423de18..169f71e02 100644
--- a/desktop/lib/super_tabs/view.dart
+++ b/desktop/lib/super_tabs/view.dart
@@ -894,6 +894,8 @@ class _SuperTabViewState extends State<SuperTabView>
item('Project details', () => _groupAction('details', group)),
if (editable && project?.ownerId == c.accountId)
item('Sharing', () => _groupAction('sharing', group)),
+ if (editable && project?.ownerId == c.accountId)
+ item('Skills', () => _groupAction('skills', group)),
if (editable)
item('Update cadence', () => _groupAction('cadence', group)),
item('Swarm routing', () => _groupAction('routing', group)),
diff --git a/desktop/test/desktop_compact_launch_test.dart b/desktop/test/desktop_compact_launch_test.dart
index b8e4d499b..ab061ac63 100644
--- a/desktop/test/desktop_compact_launch_test.dart
+++ b/desktop/test/desktop_compact_launch_test.dart
@@ -102,6 +102,7 @@ class _CompactApp extends AppNotifier {
String? codexHome,
String? dsh,
String? swarmRole,
+ String? swarmSkillMode,
GridModel? model,
String? prompt,
String? name,
diff --git a/desktop/test/desktop_composer_layout_test.dart b/desktop/test/desktop_composer_layout_test.dart
index bcf61db04..72e20face 100644
--- a/desktop/test/desktop_composer_layout_test.dart
+++ b/desktop/test/desktop_composer_layout_test.dart
@@ -123,6 +123,7 @@ class _ReviewApp extends AppNotifier {
String? codexHome,
String? dsh,
String? swarmRole,
+ String? swarmSkillMode,
GridModel? model,
String? prompt,
String? name,
diff --git a/desktop/test/desktop_new_harness_edge_test.dart b/desktop/test/desktop_new_harness_edge_test.dart
index 76163442e..83b53436a 100644
--- a/desktop/test/desktop_new_harness_edge_test.dart
+++ b/desktop/test/desktop_new_harness_edge_test.dart
@@ -136,6 +136,7 @@ class _App extends AppNotifier {
String? codexHome,
String? dsh,
String? swarmRole,
+ String? swarmSkillMode,
GridModel? model,
String? prompt,
String? name,
diff --git a/desktop/test/first_workspace_test.dart b/desktop/test/first_workspace_test.dart
index 8c15fea5e..3829849c7 100644
--- a/desktop/test/first_workspace_test.dart
+++ b/desktop/test/first_workspace_test.dart
@@ -85,6 +85,7 @@ class _FirstUseApp extends AppNotifier {
String? codexHome,
String? dsh,
String? swarmRole,
+ String? swarmSkillMode,
GridModel? model,
String? prompt,
String? name,
diff --git a/desktop/test/new_agent_choices_layout_test.dart b/desktop/test/new_agent_choices_layout_test.dart
index de2f4e6d5..93c6b9f68 100644
--- a/desktop/test/new_agent_choices_layout_test.dart
+++ b/desktop/test/new_agent_choices_layout_test.dart
@@ -70,6 +70,7 @@ class _ChoicesApp extends AppNotifier {
PaneSplitRequest? split,
String? dsh,
String? swarmRole,
+ String? swarmSkillMode,
GridModel? model,
String? prompt,
String? name,
diff --git a/desktop/test/new_agent_codex_profile_test.dart b/desktop/test/new_agent_codex_profile_test.dart
index 431c80e4b..de8e4632f 100644
--- a/desktop/test/new_agent_codex_profile_test.dart
+++ b/desktop/test/new_agent_codex_profile_test.dart
@@ -134,6 +134,7 @@ class _Notifier extends AppNotifier {
String? codexHome,
String? dsh,
String? swarmRole,
+ String? swarmSkillMode,
GridModel? model,
String? prompt,
String? name,
diff --git a/desktop/test/new_agent_dsh_test.dart b/desktop/test/new_agent_dsh_test.dart
index 43379ad3c..f266a090a 100644
--- a/desktop/test/new_agent_dsh_test.dart
+++ b/desktop/test/new_agent_dsh_test.dart
@@ -114,6 +114,7 @@ class _Notifier extends AppNotifier {
String? codexHome,
String? dsh,
String? swarmRole,
+ String? swarmSkillMode,
GridModel? model,
String? prompt,
String? name,
diff --git a/desktop/test/new_agent_engine_check_test.dart b/desktop/test/new_agent_engine_check_test.dart
index 475b116de..a170c0562 100644
--- a/desktop/test/new_agent_engine_check_test.dart
+++ b/desktop/test/new_agent_engine_check_test.dart
@@ -318,6 +318,7 @@ class _RetryNotifier extends AppNotifier {
String? codexHome,
String? dsh,
String? swarmRole,
+ String? swarmSkillMode,
GridModel? model,
String? prompt,
String? name,
diff --git a/desktop/test/new_agent_permission_mode_test.dart b/desktop/test/new_agent_permission_mode_test.dart
index c3bf383ec..c16cfb5ba 100644
--- a/desktop/test/new_agent_permission_mode_test.dart
+++ b/desktop/test/new_agent_permission_mode_test.dart
@@ -60,6 +60,7 @@ class _Notifier extends AppNotifier {
String? codexHome,
String? dsh,
String? swarmRole,
+ String? swarmSkillMode,
GridModel? model,
String? prompt,
String? name,
diff --git a/desktop/test/new_agent_project_picker_test.dart b/desktop/test/new_agent_project_picker_test.dart
index 7c2c1e9ed..033d71a91 100644
--- a/desktop/test/new_agent_project_picker_test.dart
+++ b/desktop/test/new_agent_project_picker_test.dart
@@ -73,6 +73,7 @@ class _App extends AppNotifier {
PaneSplitRequest? split,
String? dsh,
String? swarmRole,
+ String? swarmSkillMode,
GridModel? model,
String? prompt,
String? name,
diff --git a/desktop/test/new_agent_rows_and_task_test.dart b/desktop/test/new_agent_rows_and_task_test.dart
index 30e35475f..882e54c62 100644
--- a/desktop/test/new_agent_rows_and_task_test.dart
+++ b/desktop/test/new_agent_rows_and_task_test.dart
@@ -126,6 +126,7 @@ class _App extends AppNotifier {
String? codexHome,
String? dsh,
String? swarmRole,
+ String? swarmSkillMode,
GridModel? model,
String? prompt,
String? name,
diff --git a/desktop/test/new_agent_terminal_test.dart b/desktop/test/new_agent_terminal_test.dart
index 30d76493e..86e450fcd 100644
--- a/desktop/test/new_agent_terminal_test.dart
+++ b/desktop/test/new_agent_terminal_test.dart
@@ -68,6 +68,7 @@ class _Notifier extends AppNotifier {
String? codexHome,
String? dsh,
String? swarmRole,
+ String? swarmSkillMode,
GridModel? model,
String? prompt,
String? name,
diff --git a/desktop/test/new_harness_attachments_test.dart b/desktop/test/new_harness_attachments_test.dart
index a3fc41de6..3c2b1cd49 100644
--- a/desktop/test/new_harness_attachments_test.dart
+++ b/desktop/test/new_harness_attachments_test.dart
@@ -107,6 +107,7 @@ class _Notifier extends AppNotifier {
String? codexHome,
String? dsh,
String? swarmRole,
+ String? swarmSkillMode,
GridModel? model,
String? prompt,
String? name,
diff --git a/desktop/test/new_harness_guest_test.dart b/desktop/test/new_harness_guest_test.dart
index d2f77980d..5e76b98eb 100644
--- a/desktop/test/new_harness_guest_test.dart
+++ b/desktop/test/new_harness_guest_test.dart
@@ -87,6 +87,7 @@ class _GuestApp extends AppNotifier {
String? codexHome,
String? dsh,
String? swarmRole,
+ String? swarmSkillMode,
GridModel? model,
String? prompt,
String? name,
diff --git a/desktop/test/new_harness_install_pane_test.dart b/desktop/test/new_harness_install_pane_test.dart
index 85f44f24d..29001dfe2 100644
--- a/desktop/test/new_harness_install_pane_test.dart
+++ b/desktop/test/new_harness_install_pane_test.dart
@@ -146,6 +146,7 @@ class _Notifier extends AppNotifier {
String? codexHome,
String? dsh,
String? swarmRole,
+ String? swarmSkillMode,
GridModel? model,
String? prompt,
String? name,
diff --git a/desktop/test/remote_folder_picker_test.dart b/desktop/test/remote_folder_picker_test.dart
index cb709a5d9..c44ab65e1 100644
--- a/desktop/test/remote_folder_picker_test.dart
+++ b/desktop/test/remote_folder_picker_test.dart
@@ -53,6 +53,7 @@ class _Folders extends AppNotifier {
String? codexHome,
String? dsh,
String? swarmRole,
+ String? swarmSkillMode,
GridModel? model,
String? prompt,
String? name,
diff --git a/desktop/test/store_showcase_test.dart b/desktop/test/store_showcase_test.dart
index 49fa3cc4f..fd45cd712 100644
--- a/desktop/test/store_showcase_test.dart
+++ b/desktop/test/store_showcase_test.dart
@@ -88,6 +88,7 @@ class _Notifier extends AppNotifier {
String? codexHome,
String? dsh,
String? swarmRole,
+ String? swarmSkillMode,
GridModel? model,
String? prompt,
String? name,
diff --git a/desktop/test/super_tab_launch_test.dart b/desktop/test/super_tab_launch_test.dart
index 5dfb993af..3c22178d2 100644
--- a/desktop/test/super_tab_launch_test.dart
+++ b/desktop/test/super_tab_launch_test.dart
@@ -187,12 +187,15 @@ class SuperTabFixtureConnection extends WsConn {
if (payload['path'] == '/api/super-tabs' && payload['method'] == 'POST') {
final body = payload['body'] as Map;
server.state['projects'] ??= [
- projectFixture(
- 'lead',
- 'Swarm',
- 'lead',
- visibility: body['projectVisibility'] as String? ?? 'public',
- ),
+ {
+ ...projectFixture(
+ 'lead',
+ 'Swarm',
+ 'lead',
+ visibility: body['projectVisibility'] as String? ?? 'public',
+ ),
+ 'skillMode': 'default',
+ },
];
return {
'ok': true,
@@ -462,6 +465,10 @@ void main() {
.$2;
expect(request['permissionMode'], 'full');
expect(request['swarmRole'], kind == 'member' ? 'dev' : 'lead');
+ expect(
+ request['swarmSkillMode'],
+ kind == 'member' ? 'orchestration' : 'default',
+ );
await Future<void>.delayed(Duration.zero);
final ordinary = NewHarnessController(
f.app,
@@ -879,6 +886,24 @@ void main() {
});
}
+ test(
+ 'a Desktop Builder starts with the existing project skill mode',
+ () async {
+ final f = SuperTabLaunchFixture();
+ f.connection.server.state['projects'] = [
+ {...projectFixture('lead', 'Company', 'lead'), 'skillMode': 'default'},
+ ];
+ f.app.bindSuperTab(f.app.activeSwarmId, tabId, 'Company');
+ final box = await f.box();
+ expect(await box.create(), NewHarnessOutcome.created, reason: box.error);
+ final create = f.connection.calls
+ .firstWhere((c) => c.$1 == 'agent_create')
+ .$2;
+ expect(create['swarmRole'], 'dev');
+ expect(create['swarmSkillMode'], 'default');
+ },
+ );
+
test('the lead prompt routes before starting or assigning work', () async {
final f = SuperTabLaunchFixture()..connection.nativeName = 'hi';
final box = await f.box(engine: 'claude');
diff --git a/desktop/test/super_tab_project_skills_test.dart b/desktop/test/super_tab_project_skills_test.dart
new file mode 100644
index 000000000..f5b977fae
--- /dev/null
+++ b/desktop/test/super_tab_project_skills_test.dart
@@ -0,0 +1,116 @@
+import 'package:flutter/material.dart';
+import 'package:flutter_test/flutter_test.dart';
+import 'package:harness/super_tabs/view.dart';
+
+import 'support/super_tab_fixture.dart';
+
+void main() {
+ Future<ConversationServer> mount(
+ WidgetTester tester, {
+ String account = 'owner',
+ String? skillMode,
+ }) async {
+ final server = ConversationServer();
+ final project = projectFixture('lead', 'Pilot', 'lead');
+ if (skillMode != null) project['skillMode'] = skillMode;
+ server.state['projects'] = [project];
+ if (account != 'owner') {
+ (server.state['people'] as List).add({
+ 'id': account,
+ 'email': '[email protected]',
+ 'role': 'collaborator',
+ });
+ }
+ final controller = server.controller(account: account);
+ await controller.refresh();
+ addTearDown(controller.dispose);
+ await tester.pumpWidget(
+ MaterialApp(
+ home: Scaffold(
+ body: SuperTabView(
+ controller: controller,
+ onInvite: () {},
+ onAddAgent: (_) {},
+ onOpenTerminal: (_) {},
+ machineName: (_) => 'Test Mac',
+ ),
+ ),
+ ),
+ );
+ await tester.pumpAndSettle();
+ return server;
+ }
+
+ Future<void> openSkills(WidgetTester tester) async {
+ await tester.tap(find.byTooltip('Project options'));
+ await tester.pumpAndSettle();
+ await tester.tap(find.widgetWithText(MenuItemButton, 'Skills'));
+ await tester.pumpAndSettle();
+ }
+
+ testWidgets('owner changes a legacy project from orchestration to Default', (
+ tester,
+ ) async {
+ final server = await mount(tester);
+ await openSkills(tester);
+ expect(find.text('Skills for this project'), findsOneWidget);
+ expect(
+ find.text(
+ 'Default — the team process; agents otherwise work their usual way',
+ ),
+ findsOneWidget,
+ );
+ expect(
+ find.text(
+ 'Harness orchestration — adds Harness practices: plans, test-first, review rounds',
+ ),
+ findsOneWidget,
+ );
+ expect(
+ tester
+ .widget<RadioGroup<String>>(find.byType(RadioGroup<String>))
+ .groupValue,
+ 'orchestration',
+ );
+ await tester.tap(
+ find.text(
+ 'Default — the team process; agents otherwise work their usual way',
+ ),
+ );
+ await tester.pumpAndSettle();
+ await tester.tap(find.widgetWithText(FilledButton, 'Save'));
+ await tester.pumpAndSettle();
+ expect(server.posts.single['command'], {
+ 'type': 'project.skills',
+ 'projectId': 'lead',
+ 'mode': 'default',
+ });
+ });
+
+ testWidgets(
+ 'owner sees Default selected for a project already in that mode',
+ (tester) async {
+ final server = await mount(tester, skillMode: 'default');
+ await openSkills(tester);
+ expect(
+ tester
+ .widget<RadioGroup<String>>(find.byType(RadioGroup<String>))
+ .groupValue,
+ 'default',
+ );
+ await tester.tap(find.widgetWithText(TextButton, 'Cancel'));
+ await tester.pumpAndSettle();
+ expect(server.posts, isEmpty);
+ },
+ );
+
+ testWidgets('collaborator does not see Skills in the project menu', (
+ tester,
+ ) async {
+ final server = await mount(tester, account: 'peer');
+ await tester.tap(find.byTooltip('Project options'));
+ await tester.pumpAndSettle();
+ expect(find.widgetWithText(MenuItemButton, 'Skills'), findsNothing);
+ expect(server.posts, isEmpty);
+ });
+}
diff --git a/desktop/test/support/super_tab_fixture.dart b/desktop/test/support/super_tab_fixture.dart
index 76ceb7b6b..d0afdb22a 100644
--- a/desktop/test/support/super_tab_fixture.dart
+++ b/desktop/test/support/super_tab_fixture.dart
@@ -186,14 +186,15 @@ class ConversationServer {
projectFixture('lead', state['name'] as String, 'lead'),
];
final id = 'project-$revision', leadId = 'lead-$revision';
- (projects as List).add(
- projectFixture(
+ (projects as List).add({
+ ...projectFixture(
id,
command['name'] as String,
leadId,
visibility: command['visibility'] as String,
),
- );
+ 'skillMode': 'default',
+ });
(state['conversations'] as List).add({
...conversationFixture(leadId, 'Lead'),
'projectId': id,
diff --git a/desktop/test/workspace_start_guide_test.dart b/desktop/test/workspace_start_guide_test.dart
index 56a3fc196..c8122e401 100644
--- a/desktop/test/workspace_start_guide_test.dart
+++ b/desktop/test/workspace_start_guide_test.dart
@@ -105,6 +105,7 @@ class _FirstApp extends AppNotifier {
String? codexHome,
String? dsh,
String? swarmRole,
+ String? swarmSkillMode,
GridModel? model,
String? prompt,
String? name,