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
Restore lake wallpaper and pin the device card below search
dee526b832f0ccd
diff --git a/desktop/assets/swarm-wallpapers/swarm-welcome-dusk.jpg b/desktop/assets/swarm-wallpapers/swarm-welcome-dusk.jpgnew file mode 100644index 000000000..35e6edf1bBinary files /dev/null and b/desktop/assets/swarm-wallpapers/swarm-welcome-dusk.jpg differdiff --git a/desktop/lib/widgets/harness_start_page.dart b/desktop/lib/widgets/harness_start_page.dartindex c4603d145..c452eb215 100644--- a/desktop/lib/widgets/harness_start_page.dart+++ b/desktop/lib/widgets/harness_start_page.dart@@ -34,26 +34,10 @@ class _HarnessStartPageState extends State<HarnessStartPage> {canRequestFocus: false,);final _searchGroup = Object();- final _searchSurface = GlobalKey();- bool _revealScheduled = false;SwarmSearchController? _search;SwarmSearchDraft? _draft;bool get _showResults => _search != null;- void _revealResults() {- if (_revealScheduled) return;- _revealScheduled = true;- WidgetsBinding.instance.addPostFrameCallback((_) {- _revealScheduled = false;- if (!mounted || !_showResults || !_pickerFocus.hasFocus) return;- // Keep the full search panel visible without changing its width.- Scrollable.ensureVisible(- _searchSurface.currentContext!,- alignmentPolicy: ScrollPositionAlignmentPolicy.keepVisibleAtEnd,- );- });- }-void _open() {// Commands can replace the editor value without a TextField onChanged.// Reveal results for the visible text, including on keyboard-only entry.@@ -132,12 +116,11 @@ class _HarnessStartPageState extends State<HarnessStartPage> {);}- Widget _searchPanel(BoxConstraints constraints) => TextFieldTapRegion(+ Widget _searchPanel() => TextFieldTapRegion(groupId: _searchGroup,child: Focus(focusNode: _pickerFocus,child: Material(- key: _searchSurface,color: _showResults? grid.AppPalette.swarmSearchSurface: Colors.transparent,@@ -159,6 +142,7 @@ class _HarnessStartPageState extends State<HarnessStartPage> {onNewAgent: _new,onRefocus: _focus.requestFocus,child: Column(+ mainAxisSize: MainAxisSize.min,children: [Semantics(label: 'Find a harness',@@ -181,14 +165,16 @@ class _HarnessStartPageState extends State<HarnessStartPage> {),if (_showResults) ...[const Divider(height: 1, color: Colors.white12),- SizedBox(- height: (constraints.maxHeight * 0.54).clamp(260, 480),- child: SwarmSearchResults(- key: const ValueKey('harness-start-results'),- search: _search!,- sideBySideMinWidth: 700,- onChoose: _choose,- onRefocus: _focus.requestFocus,+ Flexible(+ child: SizedBox(+ height: 480,+ child: SwarmSearchResults(+ key: const ValueKey('harness-start-results'),+ search: _search!,+ sideBySideMinWidth: 700,+ onChoose: _choose,+ onRefocus: _focus.requestFocus,+ ),),),],@@ -199,6 +185,65 @@ class _HarnessStartPageState extends State<HarnessStartPage> {),);+ Widget _device({required bool compact}) {+ final photo = ClipRRect(+ borderRadius: BorderRadius.circular(10),+ child: Transform.scale(+ // Frame the device, which sits left of center in the original photo.+ scale: 1.7,+ alignment: const Alignment(-0.5, 0.08),+ child: Image.asset(+ 'assets/harness_device.webp',+ width: compact ? 96 : 256,+ height: compact ? 54 : 144,+ fit: BoxFit.cover,+ semanticLabel: 'Harness Device',+ ),+ ),+ );+ const caption = Row(+ mainAxisSize: MainAxisSize.min,+ children: [+ Flexible(+ child: Text(+ 'Meet the Harness device',+ style: TextStyle(fontSize: 13, color: Colors.white70),+ ),+ ),+ SizedBox(width: 4),+ Icon(Icons.arrow_outward, size: 12, color: Colors.white70),+ ],+ );+ return Semantics(+ link: true,+ child: InkWell(+ key: const ValueKey('harness-device-link'),+ mouseCursor: SystemMouseCursors.click,+ onTap: () => launchUrl(+ Uri.parse('https://www.autonomous.ai/harness-device'),+ mode: LaunchMode.externalApplication,+ ),+ borderRadius: BorderRadius.circular(12),+ child: SizedBox(+ width: compact ? 320 : 256,+ child: compact+ ? Row(+ children: [+ photo,+ const SizedBox(width: 12),+ const Expanded(child: caption),+ ],+ )+ : Column(+ crossAxisAlignment: CrossAxisAlignment.start,+ mainAxisSize: MainAxisSize.min,+ children: [photo, const SizedBox(height: 12), caption],+ ),+ ),+ ),+ );+ }+@overridevoid dispose() {_search?.dispose();@@ -212,102 +257,54 @@ class _HarnessStartPageState extends State<HarnessStartPage> {grid.AppTheme.watch(context);return LayoutBuilder(builder: (context, constraints) {- if (_showResults) _revealResults();- return SingleChildScrollView(- child: Padding(- padding: EdgeInsets.fromLTRB(- 24,- (constraints.maxHeight * 0.21).clamp(72, 220),- 24,- 64,- ),- child: Center(- child: ConstrainedBox(- constraints: const BoxConstraints(maxWidth: 1120),- child: Column(- crossAxisAlignment: CrossAxisAlignment.start,- children: [- _searchPanel(constraints),- if (!_showResults) ...[- const SizedBox(height: 20),- Wrap(- spacing: 12,- runSpacing: 12,- children: [- _action(create: false),- _action(create: true),- ],- ),- ],- const SizedBox(height: 160),- Semantics(- link: true,- child: InkWell(- key: const ValueKey('harness-device-link'),- mouseCursor: SystemMouseCursors.click,- onTap: () => launchUrl(- Uri.parse('https://www.autonomous.ai/harness-device'),- mode: LaunchMode.externalApplication,- ),- borderRadius: BorderRadius.circular(12),- child: SizedBox(- width: 256,+ return Padding(+ padding: const EdgeInsets.fromLTRB(24, 0, 24, 32),+ child: Center(+ child: ConstrainedBox(+ constraints: const BoxConstraints(maxWidth: 1120),+ child: Column(+ crossAxisAlignment: CrossAxisAlignment.start,+ children: [+ Expanded(+ child: LayoutBuilder(+ builder: (context, entryConstraints) {+ // Reserve the footer before laying out search, keeping+ // both its top edge and the device still as results open.+ final top = (constraints.maxHeight * 0.21)+ .clamp(72.0, 220.0)+ .clamp(+ 0.0,+ (entryConstraints.maxHeight - 320).clamp(+ 24.0,+ 220.0,+ ),+ );+ return Padding(+ padding: EdgeInsets.only(top: top),child: Column(crossAxisAlignment: CrossAxisAlignment.start,children: [- ClipRRect(- borderRadius: BorderRadius.circular(10),- child: Transform.scale(- // Frame the device, which sits left of center- // in the original photo, without altering it.- scale: 1.7,- alignment: const Alignment(-0.5, 0.08),- child: Image.asset(- 'assets/harness_device.webp',- width: 256,- height: 144,- fit: BoxFit.cover,- semanticLabel: 'Harness Device',- ),- ),- ),- const SizedBox(height: 16),- const Row(- mainAxisSize: MainAxisSize.min,- children: [- Flexible(- child: Text(- 'The ultimate Harness setup',- style: TextStyle(- fontSize: 13,- color: Colors.white70,- ),- ),- ),- SizedBox(width: 4),- Icon(- Icons.arrow_outward,- size: 12,- color: Colors.white70,- ),- ],- ),- const SizedBox(height: 6),- const Text(- 'Scroll, switch panes, and give voice commands.',- textAlign: TextAlign.start,- style: TextStyle(- fontSize: 12,- color: Colors.white54,+ Flexible(child: _searchPanel()),+ if (!_showResults) ...[+ const SizedBox(height: 20),+ Wrap(+ spacing: 12,+ runSpacing: 12,+ children: [+ _action(create: false),+ _action(create: true),+ ],),- ),+ ],],),- ),- ),+ );+ },),- ],- ),+ ),+ const SizedBox(height: 24),+ _device(compact: constraints.maxHeight < 600),+ ],),),),diff --git a/desktop/lib/widgets/swarm_wallpaper.dart b/desktop/lib/widgets/swarm_wallpaper.dartindex 5360df0bc..afc7ac398 100644--- a/desktop/lib/widgets/swarm_wallpaper.dart+++ b/desktop/lib/widgets/swarm_wallpaper.dart@@ -1,123 +1,54 @@-import 'dart:ui' as ui;+import 'dart:async';import 'package:flutter/material.dart';-import '../shared/theme/app_theme.dart' as grid;-import 'engine_identity.dart';--/// The ground behind the empty new-swarm canvas (mockup/swarm-background.html,-/// "9 · Aurora mesh").-///-/// It used to be a photograph — a lake at dusk under a gradient — and it was-/// the one surface in the app with a subject. Every other screen stands on the-/// same near-black panel with Geist on it; that one said "mountains", warmed-/// the white headline orange at the top, and made the accent button compete-/// with a sunset. A ground should be a ground.-///-/// This is the panel colour with three very dim washes at the corners, in the-/// three colours the app already owns — the accent, and the marks Claude and-/// Codex wear in the rail — meeting in the middle as plain ground. Each stays-/// under 15%, which is what keeps it a tinted room rather than a poster, and-/// what keeps the New agent button the only real blue on screen. Drawn, not-/// scaled, so it holds at any window size and costs no asset.-class SwarmWallpaper extends StatelessWidget {+/// Wallpaper belongs only to the empty new-swarm canvas.+class SwarmWallpaper extends StatefulWidget {const SwarmWallpaper({super.key});@override- Widget build(BuildContext context) {- grid.AppTheme.watch(context);- // Lighter in light mode: a wash that reads as a tint on charcoal reads as- // a stain on white.- final strength = grid.AppTheme.pick(0.6, 1.0);- return CustomPaint(- painter: _MeshPainter(- ground: grid.AppPalette.panelBg,- washes: [- // Not [grid.AppPalette.swarmAccent]: in the graphite palette that is- // #bdcbdc, a pale grey-blue made to be TEXT on charcoal, and as a wash- // it reads as a smudge. This is the blue the mockup was drawn in — the- // blue the New agent button and the Codex mark already share a family- // with — and it is only ever seen at 14%.- _Wash(- const Color(0xFF6E8BFF),- 0.14 * strength,- const Alignment(-0.7, -0.5),- 0.40,- 0.50,- ),- _Wash(- engineIdentity('claude').color,- 0.10 * strength,- const Alignment(0.7, -0.7),- 0.45,- 0.40,- ),- _Wash(- engineIdentity('codex').color,- 0.08 * strength,- const Alignment(0.2, 0.9),- 0.50,- 0.45,- ),- ],- ),- size: Size.infinite,- );- }+ State<SwarmWallpaper> createState() => _SwarmWallpaperState();}-/// One wash: a radial fade from `opacity` at `at` to nothing, `rx`/`ry` wide-/// and tall as fractions of the canvas — the CSS-/// `radial-gradient(ellipse rx ry at …)` the mockup was drawn with.-class _Wash {- const _Wash(this.color, this.opacity, this.at, this.rx, this.ry);- final Color color;- final double opacity;- final Alignment at;- final double rx, ry;-}--class _MeshPainter extends CustomPainter {- const _MeshPainter({required this.ground, required this.washes});- final Color ground;- final List<_Wash> washes;+class _SwarmWallpaperState extends State<SwarmWallpaper> {+ static const _image = AssetImage(+ 'assets/swarm-wallpapers/swarm-welcome-dusk.jpg',+ );+ ImageConfiguration _configuration = ImageConfiguration.empty;@override- void paint(Canvas canvas, Size size) {- canvas.drawRect(Offset.zero & size, Paint()..color = ground);- for (final w in washes) {- final c = at(w.at, size);- final rx = size.width * w.rx, ry = size.height * w.ry;- // A circle of radius rx, squashed to ry vertically about its centre:- // the shader's own transform, so the fade itself is elliptical rather- // than a circle drawn in an oval.- final m = Matrix4.identity()- ..translateByDouble(c.dx, c.dy, 0, 1)- ..scaleByDouble(1, ry / rx, 1, 1)- ..translateByDouble(-c.dx, -c.dy, 0, 1);- final paint = Paint()- ..shader = ui.Gradient.radial(- c,- rx,- [w.color.withValues(alpha: w.opacity), w.color.withValues(alpha: 0)],- const [0.0, 0.7],- TileMode.clamp,- m.storage,- );- canvas.drawRect(Offset.zero & size, paint);- }+ void didChangeDependencies() {+ super.didChangeDependencies();+ _configuration = createLocalImageConfiguration(context);}- static Offset at(Alignment a, Size s) =>- Offset(s.width * (a.x + 1) / 2, s.height * (a.y + 1) / 2);+ @override+ void dispose() {+ // Populated swarms do not retain a decoded welcome image in Flutter's+ // keep-alive cache. Evict only our asset, leaving terminal images alone.+ unawaited(_image.evict(configuration: _configuration));+ super.dispose();+ }@override- bool shouldRepaint(_MeshPainter old) =>- old.ground != ground ||- old.washes.length != washes.length ||- Iterable.generate(washes.length).any(- (i) =>- old.washes[i].color != washes[i].color ||- old.washes[i].opacity != washes[i].opacity,- );+ Widget build(BuildContext context) => Stack(+ fit: StackFit.expand,+ children: [+ Image(+ image: _image,+ fit: BoxFit.cover,+ gaplessPlayback: true,+ excludeFromSemantics: true,+ ),+ const DecoratedBox(+ decoration: BoxDecoration(+ gradient: LinearGradient(+ begin: Alignment.topCenter,+ end: Alignment.bottomCenter,+ colors: [Color(0x1211111c), Color(0x750c111e)],+ ),+ ),+ ),+ ],+ );}diff --git a/desktop/pubspec.yaml b/desktop/pubspec.yamlindex 466796676..c9df8e19b 100644--- a/desktop/pubspec.yaml+++ b/desktop/pubspec.yaml@@ -97,6 +97,7 @@ flutter:# the mark the Dock shows, not a stand-in drawn in Dart.- assets/app_icon.png- assets/harness_device.webp+ - assets/swarm-wallpapers/swarm-welcome-dusk.jpg# To add assets to your application, add an assets section, like this:# assets:diff --git a/desktop/test/welcome_entry_layout_test.dart b/desktop/test/welcome_entry_layout_test.dartindex 0fc62bd1d..6509ece7f 100644--- a/desktop/test/welcome_entry_layout_test.dart+++ b/desktop/test/welcome_entry_layout_test.dart@@ -82,12 +82,21 @@ void main() {);await tester.pumpAndSettle();if (Platform.environment['HARNESS_ENTRY_CAPTURE_DIR'] != null) {- await tester.runAsync(- () => precacheImage(- const AssetImage('assets/harness_device.webp'),- tester.element(find.byType(SwarmScreen)),- ),- );+ await tester.runAsync(() async {+ final context = tester.element(find.byType(SwarmScreen));+ await Future.wait([+ precacheImage(+ const AssetImage('assets/harness_device.webp'),+ context,+ ),+ precacheImage(+ const AssetImage(+ 'assets/swarm-wallpapers/swarm-welcome-dusk.jpg',+ ),+ context,+ ),+ ]);+ });await tester.pump();}final field = find.byKey(const ValueKey('harness-start-search'));@@ -104,20 +113,20 @@ void main() {final fieldRect = tester.getRect(field);final createRect = tester.getRect(create);final openRect = tester.getRect(open);+ final deviceRect = tester.getRect(device);expect(createRect.center.dy, closeTo(openRect.center.dy, 1));expect(openRect.top, greaterThan(fieldRect.bottom));expect(openRect.left, closeTo(fieldRect.left, 1));expect(createRect.left, greaterThan(openRect.right));expect(fieldRect.center.dx, closeTo(width / 2, 1));- expect(tester.getRect(device).left, closeTo(fieldRect.left, 1));+ expect(deviceRect.left, closeTo(fieldRect.left, 1));+ expect(deviceRect.bottom, closeTo(height - 32, 1));+ expect(find.text('Meet the Harness device'), findsOneWidget);expect(create.hitTestable(), findsOneWidget);expect(open.hitTestable(), findsOneWidget);expect(createRect.bottom, lessThanOrEqualTo(height));expect(openRect.bottom, lessThanOrEqualTo(height));- expect(- tester.getRect(device).top,- greaterThan(createRect.bottom + 150),- );+ expect(deviceRect.top, greaterThanOrEqualTo(createRect.bottom + 24));final output = Platform.environment['HARNESS_ENTRY_CAPTURE_DIR'];if (output != null) {final boundary =@@ -145,11 +154,18 @@ void main() {expect(tester.getRect(results).width, tester.getRect(field).width);expect(tester.getRect(field).left, closeTo(fieldRect.left, 1));expect(tester.getRect(field).right, closeTo(fieldRect.right, 1));+ expect(tester.getRect(field).top, closeTo(fieldRect.top, 1));+ expect(tester.getRect(device), deviceRect);+ expect(+ tester.getRect(results).bottom,+ lessThanOrEqualTo(deviceRect.top - 24),+ );expect(create, findsNothing);expect(open, findsNothing);await tester.sendKeyEvent(LogicalKeyboardKey.escape);await tester.pump();expect(tester.getRect(field).width, closeTo(fieldRect.width, 1));+ expect(tester.getRect(device), deviceRect);await tester.ensureVisible(create);expect(create.hitTestable(), findsOneWidget);await tester.tap(create);diff --git a/docs/harness-agent-first-tabs.md b/docs/harness-agent-first-tabs.mdindex 199191452..f01f9da73 100644--- a/docs/harness-agent-first-tabs.md+++ b/docs/harness-agent-first-tabs.md@@ -8,16 +8,18 @@ proposals in the progress log.## Open and New Harness**Cmd-T / New Tab** and the tab-bar plus open the Harness start page over its-restored soft mesh wallpaper. A long search field, capped at 1120 logical pixels,+restored lake-at-dusk wallpaper. A long search field, capped at 1120 logical pixels,shows **Find a harness** in place of a large heading. **Open Harness** and accented**+ New Harness** sit underneath, aligned with the field's left edge. The pillbuttons retain their smaller 48-pixel height and wrap at narrow widths or large-text sizes. The device image and its caption share that same left edge farther-down the page.+text sizes. The device image and its caption share that same left edge in a footer+32 pixels above the window bottom. The footer stays put when search opens or+closes. Short windows use a small image beside the caption to preserve search space.-Activating search keeps the field's width fixed and reveals results and preview+Activating search keeps the field's position and width fixed and reveals results and previewside by side at widths of 700 logical pixels and above. The actions hide while-searching. Escape restores both actions and retains the query.+searching. Results fit the available space above the footer and scroll independently.+Escape restores both actions and retains the query.The field starts empty and focused so typing works immediately. Typing, clickingit or Open Harness, or pressing an arrow reveals the same input, results,@@ -31,11 +33,11 @@ refreshes results against current app state. Command-mode shortcuts synchronizethe field and results without adding editor rebuilds to arrow navigation.Opening the dropdown keeps its whole list viewport inside the window. Resizingor changing text size reveals the highlighted row without changing the selection.-A small product image and introduction sit well below the controls and link to+A small product image and caption stay in the footer and link tohttps://www.autonomous.ai/harness-device. The bundled image is the officialdevice image from https://cdn.autonomous.ai/production/ecm/260731/2.webp,-cropped in the viewport so the device is larger and centered. The short introduction is-“The ultimate Harness setup” / “Scroll, switch panes, and give voice commands.”+cropped in the viewport so the device is larger and centered. The caption is+“Meet the Harness device.”The start-page actions use the same pill shape as the titlebar. The device linkand both pairs of New/Open buttons show a hand cursor. Open Harness on the startpage is transparent with a subtle border; Newdiff --git a/docs/harness-search-preview.md b/docs/harness-search-preview.mdindex c1d55323a..691163276 100644--- a/docs/harness-search-preview.md+++ b/docs/harness-search-preview.md@@ -6,8 +6,10 @@ and remaining coverage limits.The start page uses a long field capped at 1120 logical pixels, with **Find aharness** as its hint. Open Harness and New Harness sit underneath, aligned left,-and the device card shares that left edge over the restored mesh wallpaper.-The field keeps its width when search opens; results and preview appear side by+and the device card shares that left edge over the restored lake wallpaper.+The card stays 32 pixels above the window bottom with the caption **Meet the+Harness device**. Search uses the remaining space above it. The field keeps its+position and width when search opens; results and preview appear side byside from 700 pixels wide. The actions hide while searching. The pill buttonsretain their compact 48-pixel height, with reduced input padding. Cmd-O retainsits existing size. Escape restores the actions and retains the query.diff --git a/docs/harness-v2-handoff.md b/docs/harness-v2-handoff.mdindex 1329d66f4..e1c6a172d 100644--- a/docs/harness-v2-handoff.md+++ b/docs/harness-v2-handoff.md@@ -45,11 +45,11 @@ are:Cmd-H/J/K/L and Cmd-arrows focus panes; Cmd-1…9 select tabs. User bindings takeprecedence. Cmd-R splits right and Cmd-D splits down. Native menus, help and actualdispatch must agree; native menu and titlebar hover hints are removed.-- New Tab uses the **restored soft mesh wallpaper**, a long search field capped+- New Tab uses the **restored lake-at-dusk wallpaper**, a long search field cappedat 1120 logical pixels, and no large Harness heading. The hint is **Find aharness**. Search starts blank and focused, with results hidden. Open Harnessand New Harness sit underneath, aligned with the search field's left edge.- Activating search preserves the field width; results and preview appear side+ Activating search preserves the field position and width; results and preview appear sideby side from 700 pixels wide, and the actions hide. The pill buttons retaintheir compact 48-pixel height and wrap when needed; Cmd-O retains its existingwidth. Escape restores the actions and query.@@ -57,8 +57,10 @@ are:reveals the same results, selection, arrows and Enter behavior as Cmd-O.Focus alone leaves results hidden and builds no catalog. Open Harness andaccented **+ New Harness** share a row below search; a small official device- image and introduction sit well below, aligned to the same left edge and- linking to autonomous.ai/harness-device.+ image and **Meet the Harness device** caption stay in a footer 32 pixels above+ the bottom, aligned to the same left edge and linking to autonomous.ai/harness-device.+ Search uses the remaining space above the footer, which stays still when results+ open or close. Short windows use a compact horizontal device card.The five recent-agent rows are removed. Both pairs of actions are roundedpills, with transparent outlined Open buttons and hand cursors. The official`2.webp` device photo is cropped and centered in its viewport, with a hand cursor.@@ -339,7 +341,7 @@ post-inspired implementation:### Visual quality and first impression- The start page, titlebar, modal result rows and pane controls follow the current- entry/pane contract. The start-page mesh, whitespace, title/metadata hierarchy,+ entry/pane contract. The start-page lake, whitespace, title/metadata hierarchy,single/group icons, labels and native/Flutter button contrast are consistent.- All six coordinated palettes, real fonts/content, larger text, narrow windows,keyboard focus indicators and accessibility labels remain legible and usable.