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.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
Match Open Agent to the New Harness search form
dee0afa882ea8fc
diff --git a/desktop/lib/screens/swarm_screen.dart b/desktop/lib/screens/swarm_screen.dartindex 8d6acceb8..254c04748 100644--- a/desktop/lib/screens/swarm_screen.dart+++ b/desktop/lib/screens/swarm_screen.dart@@ -944,69 +944,48 @@ class _SwarmScreenState extends State<SwarmScreen> {clipBehavior: Clip.antiAlias,child: Column(children: [- Padding(- padding: EdgeInsets.fromLTRB(commandsOnly ? 20 : 28, 24, 20, 16),- child: Row(- children: [- Expanded(- child: Semantics(- header: true,- child: Text(- commandsOnly ? 'Commands' : 'Find an agent',- style: TextStyle(- fontSize: commandsOnly ? 16 : 26,- fontWeight: FontWeight.w600,- ),- ),+ if (commandsOnly)+ Padding(+ padding: const EdgeInsets.fromLTRB(20, 24, 20, 16),+ child: Align(+ alignment: Alignment.centerLeft,+ child: Semantics(+ header: true,+ child: const Text(+ 'Commands',+ style: TextStyle(fontSize: 16, fontWeight: FontWeight.w600),),),- if (!commandsOnly && search.split != null)- KeymapRegion(- contextKind: KeymapContext.workspace,- child: TextButton.icon(- key: const ValueKey('harness-picker-new'),- onPressed: search.canCreate- ? () => _runShortcut('agent.new')- : null,- icon: const Icon(AgentActionIcons.create, size: 18),- label: const Text('New Agent'),- ),- ),- if (!commandsOnly)- TextButton(- onPressed: _dismissSearch,- style: TextButton.styleFrom(- foregroundColor: Colors.white54,- ),- child: const Text('esc', style: TextStyle(fontSize: 12)),- ),- ],- ),- ),- Padding(- padding: EdgeInsets.fromLTRB(- commandsOnly ? 0 : 28,- 0,- commandsOnly ? 0 : 28,- commandsOnly ? 0 : 20,- ),- child: Semantics(- label: commandsOnly ? 'Search commands' : 'Find an agent',- child: SwarmSearchInput(- inputKey: const ValueKey('swarm-search-input'),- controller: _searchText,- focusNode: _searchFocus,- search: search,- onClose: _dismissSearch,- onChanged: search.setQuery,- onOpen: _focusSearch,- showClose: commandsOnly,- rounded: true,- prominent: !commandsOnly,- hintText: commandsOnly ? null : '',- outlined: !commandsOnly,),),+ Semantics(+ label: commandsOnly ? 'Search commands' : 'Find an agent',+ child: SwarmSearchInput(+ inputKey: const ValueKey('swarm-search-input'),+ controller: _searchText,+ focusNode: _searchFocus,+ search: search,+ onClose: _dismissSearch,+ onChanged: search.setQuery,+ onOpen: _focusSearch,+ showClose: true,+ rounded: true,+ prominent: !commandsOnly,+ hintText: commandsOnly ? null : 'Find an agent',+ trailing: !commandsOnly && search.split != null+ ? KeymapRegion(+ contextKind: KeymapContext.workspace,+ child: IconButton(+ key: const ValueKey('harness-picker-new'),+ tooltip: 'New Agent',+ onPressed: search.canCreate+ ? () => _runShortcut('agent.new')+ : null,+ icon: const Icon(AgentActionIcons.create, size: 18),+ ),+ )+ : null,+ ),),Expanded(child: SwarmSearchResults(diff --git a/desktop/lib/widgets/swarm_search_input.dart b/desktop/lib/widgets/swarm_search_input.dartindex caac3d990..0a8640426 100644--- a/desktop/lib/widgets/swarm_search_input.dart+++ b/desktop/lib/widgets/swarm_search_input.dart@@ -24,6 +24,7 @@ class SwarmSearchInput extends StatelessWidget {this.prominent = false,this.outlined = false,this.fillColor,+ this.trailing,});final Key inputKey;@@ -41,6 +42,7 @@ class SwarmSearchInput extends StatelessWidget {final bool prominent;final bool outlined;final Color? fillColor;+ final Widget? trailing;@overrideWidget build(BuildContext context) => ListenableBuilder(@@ -90,16 +92,26 @@ class SwarmSearchInput extends StatelessWidget {minWidth: 52,minHeight: prominent ? 64 : 56,),- suffixIcon: showClose+ suffixIcon: showClose || trailing != null? Padding(padding: const EdgeInsets.only(right: 12),- child: TextButton(- onPressed: onClose,- style: TextButton.styleFrom(- foregroundColor: Colors.white60,- minimumSize: const Size(36, 28),- ),- child: const Text('esc', style: TextStyle(fontSize: 11)),+ child: Row(+ mainAxisSize: MainAxisSize.min,+ children: [+ if (trailing != null) trailing!,+ if (showClose)+ TextButton(+ onPressed: onClose,+ style: TextButton.styleFrom(+ foregroundColor: Colors.white60,+ minimumSize: const Size(36, 28),+ ),+ child: const Text(+ 'esc',+ style: TextStyle(fontSize: 11),+ ),+ ),+ ],),): null,diff --git a/desktop/test/harness_picker_entry_test.dart b/desktop/test/harness_picker_entry_test.dartindex 56e4bdad8..c643a1db8 100644--- a/desktop/test/harness_picker_entry_test.dart+++ b/desktop/test/harness_picker_entry_test.dart@@ -78,7 +78,10 @@ void main() {findsOneWidget,);expect(find.byKey(const ValueKey('harness-picker-open')), findsNothing);- expect(tester.widget<TextField>(field).decoration!.hintText, '');+ expect(+ tester.widget<TextField>(field).decoration!.hintText,+ 'Find an agent',+ );expect(find.text('Find an agent'), findsOneWidget);expect(find.byKey(const ValueKey('create-agent-submit')), findsNothing);final before = tester.getRect(field);diff --git a/desktop/test/swarm_search_preview_test.dart b/desktop/test/swarm_search_preview_test.dartindex 0ee7509b2..001a2b424 100644--- a/desktop/test/swarm_search_preview_test.dart+++ b/desktop/test/swarm_search_preview_test.dart@@ -124,6 +124,16 @@ void main() {(tester) async {final app = createApp();await seedPreviews(app);+ // Both session and group previews must outgrow the reading area.+ app.machineStates['m']!.agents.addAll([+ for (var i = 3; i < 8; i++)+ Agent(+ id: 'paging-$i',+ name: 'Additional agent $i',+ engine: 'codex',+ terminalAvailable: true,+ ),+ ]);await app.handleEventForTest('m', {'type': 'text_delta','payload': {diff --git a/docs/harness-agent-first-tabs.md b/docs/harness-agent-first-tabs.mdindex 9ec45085e..272683b0d 100644--- a/docs/harness-agent-first-tabs.md+++ b/docs/harness-agent-first-tabs.md@@ -86,8 +86,9 @@ beside **Meet the Harness device**, with no box, description or separate Learnmore action. The image and label open the device page together.New without a linked machine opens machine linking.-Open Agent has a large **Find an agent** heading, a blank rounded input and the-same palette surface over a 90% black canvas veil. Results appear immediately;+Open Agent uses the same continuous search surface as New Harness, with+**Find an agent** inside the input and no separate heading or inset outline.+It sits over a 90% black canvas veil. Results appear immediately;arrows select and Enter or a row click opens the agent. There is no footerbutton or New Agent form. Results and preview sit side by side from 700 logicalpixels; narrower windows stack them. Both scroll independently. Hover updates@@ -111,8 +112,8 @@ preserves loaded profile readiness. Failure keeps the choices and prepared foldean uncertain launch retains its receipt and offers **Check status** and **Close**without cloning or starting again. Success focuses the new agent.-Split Right/Down opens the existing-agent picker for that position. Its **New Agent**-header action, or Cmd-N, replaces the picker with creation and preserves the split,+Split Right/Down opens the existing-agent picker for that position. Its **+ New Agent**+input action (with tooltip), or Cmd-N, replaces the picker with creation and preserves the split,machine and project. Dismissing creation returns directly to the original pane.Ordinary New Agent prefers this computer. Search and creation never stack.The restored flows pass 203 affected Flutter tests, 96 native keyboard checks,diff --git a/docs/harness-v2-handoff.md b/docs/harness-v2-handoff.mdindex 5a91f5585..8eea47dd4 100644--- a/docs/harness-v2-handoff.md+++ b/docs/harness-v2-handoff.md@@ -34,7 +34,18 @@ user for a benchmark window.## Current product contract-### Latest: clearer device companion link+### Latest: matching Open Agent and New Harness search++Open Agent now uses the same full-width input and continuous surface as the+New Harness page. **Find an agent** sits inside the input; the separate title+and inset field outline are removed. Results still appear immediately. Split+search retains a **+ New Agent** action beside Escape and its Cmd-N transition.+Sixty-five entry, preview, keyboard and split checks pass. Captures:+`/private/tmp/harness-matching-search-captures`; validation:+`/private/tmp/harness-matching-search-tests.log` and+`/private/tmp/harness-matching-search-analyze.log`.++### Clearer device companion link — pushed eaeb718The user refined the device treatment: remove the box and make the productclearer. The cutout is now 64 pixels tall beside the quiet **Meet the Harness