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
Name tab containers Harness and fill the Open Agent picker action
dee454544a3aa37
diff --git a/desktop/lib/screens/swarm_screen.dart b/desktop/lib/screens/swarm_screen.dartindex 1f114c638..bf7c27bda 100644--- a/desktop/lib/screens/swarm_screen.dart+++ b/desktop/lib/screens/swarm_screen.dart@@ -1063,6 +1063,7 @@ class _SwarmScreenState extends State<SwarmScreen> {child: ListenableBuilder(listenable: search,builder: (context, _) => HarnessEntryActions(+ filledOpen: true,openKey: const ValueKey('harness-picker-open'),newKey: const ValueKey('harness-picker-new'),onOpen: search.canAccept@@ -1607,7 +1608,7 @@ class _SwarmScreenState extends State<SwarmScreen> {IconButton(key: const ValueKey('swarm-new-tab-button'),onPressed: app.canOpenNewTab ? _newTab : null,- icon: const Icon(Icons.add, size: 18, semanticLabel: 'New Tab'),+ icon: const Icon(Icons.add, size: 18, semanticLabel: 'New Harness'),),_harnessButton(),const SizedBox(width: 12),diff --git a/desktop/lib/shortcuts/app_keymap.dart b/desktop/lib/shortcuts/app_keymap.dartindex da6a58d98..9becb9b3e 100644--- a/desktop/lib/shortcuts/app_keymap.dart+++ b/desktop/lib/shortcuts/app_keymap.dart@@ -234,7 +234,7 @@ List<ShortcutRow> effectiveShortcutRows(),if (defaultDigits)const ShortcutRow(- label: 'Select tabs 1–9',+ label: 'Select harnesses 1–9',chords: [['⌘', '1 – 9'],],diff --git a/desktop/lib/shortcuts/app_shortcuts.dart b/desktop/lib/shortcuts/app_shortcuts.dartindex 5d44c04b5..5ef88a682 100644--- a/desktop/lib/shortcuts/app_shortcuts.dart+++ b/desktop/lib/shortcuts/app_shortcuts.dart@@ -358,7 +358,7 @@ const kSwarmShortcuts = [AppShortcut(action: ShortcutAction.newSwarm,activator: SingleActivator(LogicalKeyboardKey.keyT, meta: true),- label: 'New Tab',+ label: 'New Harness',group: ShortcutGroup.navigate,),AppShortcut(@@ -374,7 +374,7 @@ const kSwarmShortcuts = [AppShortcut(action: ShortcutAction.closeSwarm,activator: SingleActivator(LogicalKeyboardKey.keyW, meta: true),- label: 'Close Tab',+ label: 'Close Harness',group: ShortcutGroup.navigate,),AppShortcut(@@ -384,7 +384,7 @@ const kSwarmShortcuts = [meta: true,shift: true,),- label: 'Rename Tab',+ label: 'Rename Harness',group: ShortcutGroup.navigate,),AppShortcut(@@ -394,7 +394,7 @@ const kSwarmShortcuts = [meta: true,shift: true,),- label: 'Next Tab',+ label: 'Next Harness',group: ShortcutGroup.navigate,),AppShortcut(@@ -404,13 +404,13 @@ const kSwarmShortcuts = [meta: true,shift: true,),- label: 'Previous Tab',+ label: 'Previous Harness',group: ShortcutGroup.navigate,),AppShortcut(action: ShortcutAction.nextSwarm,activator: SingleActivator(LogicalKeyboardKey.tab, control: true),- label: 'Next Tab',+ label: 'Next Harness',group: ShortcutGroup.navigate,),AppShortcut(@@ -420,7 +420,7 @@ const kSwarmShortcuts = [control: true,shift: true,),- label: 'Previous Tab',+ label: 'Previous Harness',group: ShortcutGroup.navigate,),AppShortcut(@@ -521,7 +521,7 @@ List<ShortcutRow> shortcutRows() {// The digits are not in [kAppShortcuts] — nine near-identical rows would bury// everything around them — so they join here, at the end of their group.final digits = ShortcutRow(- label: 'Select tabs 1–9',+ label: 'Select harnesses 1–9',chords: const [['⌘', '1 – $kTabDigitCount'],],diff --git a/desktop/lib/shortcuts/keymap_commands.dart b/desktop/lib/shortcuts/keymap_commands.dartindex d4e0cc828..10c81f474 100644--- a/desktop/lib/shortcuts/keymap_commands.dart+++ b/desktop/lib/shortcuts/keymap_commands.dart@@ -56,14 +56,14 @@ final harnessCommands = <HarnessCommand>[),const HarnessCommand('swarm.new',- 'New Tab',+ 'New Harness',ShortcutGroup.navigate,action: ShortcutAction.newSwarm,nativeAction: 'new',),const HarnessCommand('swarm.close',- 'Close Tab',+ 'Close Harness',ShortcutGroup.navigate,action: ShortcutAction.closeSwarm,nativeAction: 'closeActive',@@ -77,7 +77,7 @@ final harnessCommands = <HarnessCommand>[),const HarnessCommand('swarm.next',- 'Next Tab',+ 'Next Harness',ShortcutGroup.navigate,action: ShortcutAction.nextSwarm,nativeAction: 'next',@@ -85,7 +85,7 @@ final harnessCommands = <HarnessCommand>[),const HarnessCommand('swarm.previous',- 'Previous Tab',+ 'Previous Harness',ShortcutGroup.navigate,action: ShortcutAction.previousSwarm,nativeAction: 'previous',@@ -93,7 +93,7 @@ final harnessCommands = <HarnessCommand>[),const HarnessCommand('swarm.rename',- 'Rename Tab',+ 'Rename Harness',ShortcutGroup.actions,action: ShortcutAction.renameSwarm,nativeAction: 'renameActive',@@ -131,7 +131,7 @@ final harnessCommands = <HarnessCommand>[for (var i = 1; i <= 9; i++)HarnessCommand('swarm.select_$i',- 'Select tab $i',+ 'Select harness $i',ShortcutGroup.navigate,extraKeys: ['cmd+$i'],),diff --git a/desktop/lib/state/app_state.dart b/desktop/lib/state/app_state.dartindex 3b18dada1..620a1a80b 100644--- a/desktop/lib/state/app_state.dart+++ b/desktop/lib/state/app_state.dart@@ -514,7 +514,7 @@ class AppNotifier extends ChangeNotifier {bool get canOpenNewTab =>swarms.length < maxSwarms || swarms.any((swarm) => swarm.isEmptyStarter);- // A New Tab remains temporary until it has content or a custom name.+ // A New Harness remains temporary until it has content or a custom name.// The return destination is session-local; abandoned drafts are never saved.final _draftSwarmReturns = <String, String>{};@@ -529,7 +529,7 @@ class AppNotifier extends ChangeNotifier {void newSwarm({String name = Swarm.defaultName, bool draft = false}) {name = Swarm.normalizeName(name);- // Every New Tab entry point reuses the existing start page, including+ // Every New Harness entry point reuses the existing start page, including// when another tab is selected or the tab limit has been reached.if (name == Swarm.defaultName) {final starter = activeSwarm.isEmptyStarter@@ -574,7 +574,7 @@ class AppNotifier extends ChangeNotifier {notifyListeners();}- /// Cancel an untouched New Tab without closing a session or recording+ /// Cancel an untouched New Harness without closing a session or recording/// Recently Closed. A sole workspace remains the app's starting screen.bool cancelSwarmDraft(String id) {final returnId = _draftSwarmReturns[id];diff --git a/desktop/lib/state/swarm.dart b/desktop/lib/state/swarm.dartindex f5f75fe69..af8237873 100644--- a/desktop/lib/state/swarm.dart+++ b/desktop/lib/state/swarm.dart@@ -11,9 +11,9 @@ class Swarm {Swarm({required this.id, String name = defaultName}): name = normalizeName(name);- static const defaultName = 'New Tab';+ static const defaultName = 'New Harness';static String normalizeName(String name) =>- const {'New swarm', 'New tab', 'New Agent', 'New Harness'}.contains(name)+ const {'New swarm', 'New tab', 'New Tab', 'New Agent'}.contains(name)? defaultName: name;diff --git a/desktop/lib/widgets/harness_entry_actions.dart b/desktop/lib/widgets/harness_entry_actions.dartindex 9af101c8e..092ec5dbc 100644--- a/desktop/lib/widgets/harness_entry_actions.dart+++ b/desktop/lib/widgets/harness_entry_actions.dart@@ -6,7 +6,7 @@ import '../shared/theme/app_theme.dart' as grid;import '../shortcuts/app_keymap.dart';import '../shortcuts/keymap.dart';-/// The same search-or-create choice on New Tab and in the Add Agent picker.+/// The same search-or-create choice on New Harness and in the Add Agent picker.class HarnessEntryActions extends StatelessWidget {const HarnessEntryActions({super.key,@@ -14,9 +14,11 @@ class HarnessEntryActions extends StatelessWidget {required this.onNew,required this.openKey,required this.newKey,+ this.filledOpen = false,});final VoidCallback? onOpen, onNew;final Key openKey, newKey;+ final bool filledOpen;Widget _keyboardAction(BuildContext context,@@ -65,9 +67,13 @@ class HarnessEntryActions extends StatelessWidget {enabledMouseCursor: SystemMouseCursors.click,minimumSize: size,padding: padding,- backgroundColor: Colors.transparent,+ backgroundColor: filledOpen+ ? grid.AppPalette.swarmSearchSurface+ : Colors.transparent,foregroundColor: Colors.white,- side: const BorderSide(color: Colors.white24),+ side: filledOpen+ ? BorderSide.none+ : const BorderSide(color: Colors.white24),shape: const StadiumBorder(),),child: const Text('Open Agent'),diff --git a/desktop/lib/widgets/swarm_dialogs.dart b/desktop/lib/widgets/swarm_dialogs.dartindex 794b31988..7ade8bba9 100644--- a/desktop/lib/widgets/swarm_dialogs.dart+++ b/desktop/lib/widgets/swarm_dialogs.dart@@ -33,7 +33,7 @@ class _RenameSwarmDialogState extends State<_RenameSwarmDialog> {late final _text = TextEditingController(text: widget.name,)..selection = TextSelection(baseOffset: 0, extentOffset: widget.name.length);- final _focus = FocusNode(debugLabel: 'Rename Tab name');+ final _focus = FocusNode(debugLabel: 'Rename Harness name');@overridevoid initState() {@@ -68,12 +68,12 @@ class _RenameSwarmDialogState extends State<_RenameSwarmDialog> {return ListenableBuilder(listenable: _text,builder: (context, _) => AlertDialog(- title: const Text('Rename Tab'),+ title: const Text('Rename Harness'),titleTextStyle: Theme.of(context).textTheme.titleMedium,content: SizedBox(width: 360,child: Semantics(- label: 'Tab name',+ label: 'Harness name',child: TextSelectionTheme(data: TextSelectionTheme.of(context).copyWith(selectionColor: accent.withValues(alpha: .3)),diff --git a/desktop/macos/Runner/SwarmTitlebar.swift b/desktop/macos/Runner/SwarmTitlebar.swiftindex 3cac3acf3..51559d5cb 100644--- a/desktop/macos/Runner/SwarmTitlebar.swift+++ b/desktop/macos/Runner/SwarmTitlebar.swift@@ -234,10 +234,10 @@ final class SwarmTitlebar: NSObject, NSMenuItemValidation, NSMenuDelegate {}if let file = main.item(withTitle: "File") { main.removeItem(file) }let file = NSMenu(title: "File")- add(file, "New Tab", "t", "new")+ add(file, "New Harness", "t", "new")add(file, "Add Agent…", "n", "addAgent")- add(file, "Rename Tab…", "r", "renameActive", [.command, .shift])- add(file, "Close Tab", "w", "closeActive")+ add(file, "Rename Harness…", "r", "renameActive", [.command, .shift])+ add(file, "Close Harness", "w", "closeActive")file.addItem(.separator())add(file, "Split Right…", "r", "splitRight")add(file, "Split Down…", "d", "splitDown")@@ -890,8 +890,8 @@ private final class SwarmTabStrip: NSView {button.setAccessibilityLabel(label)addSubview(button)}- button(newButton, "plus", "New Tab", #selector(newSwarm))- newButton.setAccessibilityLabel("New Tab")+ button(newButton, "plus", "New Harness", #selector(newSwarm))+ newButton.setAccessibilityLabel("New Harness")newButton.isEnabled = falsebutton(notificationButton, "bell", "Notifications", #selector(openNotifications))notificationButton.isEnabled = false@@ -946,13 +946,13 @@ private final class SwarmTabStrip: NSView {guard let id = row["id"] as? String else { return nil }let tab = previous[id] ?? SwarmTabButton(id: id)tab.palette = palette- tab.name = row["name"] as? String ?? "New Tab"+ tab.name = row["name"] as? String ?? "New Harness"let count = row["agentCount"] as? Int ?? 0tab.icon = count == 1? icons.image(engine: row["engine"] as? String, asset: row["iconAsset"] as? String): count > 1? SwarmIdentity.menuIcon- : NSImage(systemSymbolName: "plus", accessibilityDescription: "New Tab")+ : NSImage(systemSymbolName: "plus", accessibilityDescription: "New Harness")tab.selected = id == activeIdtab.actionsEnabled = actionsEnabledtab.attention = (row["attention"] as? Int ?? 0) > 0@@ -1083,7 +1083,7 @@ private final class SwarmTabButton: NSView, NSDraggingSource, NSMenuItemValidatididSet { if palette != oldValue { needsDisplay = true } }}let swarmId: String- var name = "New Tab" { didSet { if name != oldValue { invalidateLabel(); updateAccessibility() } } }+ var name = "New Harness" { didSet { if name != oldValue { invalidateLabel(); updateAccessibility() } } }var selected = false { didSet { if selected != oldValue { invalidateLabel(); updateAccessibility() } } }var attention = false { didSet { if attention != oldValue { needsDisplay = true; updateAccessibility() } } }var showsDivider = false { didSet { if showsDivider != oldValue { needsDisplay = true } } }@@ -1127,7 +1127,7 @@ private final class SwarmTabButton: NSView, NSDraggingSource, NSMenuItemValidatiselectButton.target = selfselectButton.action = #selector(selectSwarm)addSubview(selectButton)- closeButton.image = NSImage(systemSymbolName: "xmark", accessibilityDescription: "Close Tab")+ closeButton.image = NSImage(systemSymbolName: "xmark", accessibilityDescription: "Close Harness")closeButton.symbolConfiguration = NSImage.SymbolConfiguration(pointSize: 10, weight: .semibold)closeButton.contentTintColor = NSColor(white: 0.78, alpha: 1)closeButton.isBordered = false@@ -1135,7 +1135,7 @@ private final class SwarmTabButton: NSView, NSDraggingSource, NSMenuItemValidaticloseButton.action = #selector(closeSwarm)addSubview(closeButton)let menu = NSMenu()- for (title, action) in [("Rename Tab…", #selector(renameSwarm)), ("Close Tab", #selector(closeSwarm))] {+ for (title, action) in [("Rename Harness…", #selector(renameSwarm)), ("Close Harness", #selector(closeSwarm))] {let item = NSMenuItem(title: title, action: action, keyEquivalent: "")item.target = selfmenu.addItem(item)diff --git a/desktop/test/keymap_runtime_test.dart b/desktop/test/keymap_runtime_test.dartindex 9bf183d0e..c220d3156 100644--- a/desktop/test/keymap_runtime_test.dart+++ b/desktop/test/keymap_runtime_test.dart@@ -177,7 +177,7 @@ void main() {map.dispose();});- testWidgets('Command-T opens New Tab and Command-S opens Layout', (+ testWidgets('Command-T opens New Harness and Command-S opens Layout', (tester,) async {final app = createApp();diff --git a/desktop/test/shortcuts_test.dart b/desktop/test/shortcuts_test.dartindex 605bc89da..68432625f 100644--- a/desktop/test/shortcuts_test.dart+++ b/desktop/test/shortcuts_test.dart@@ -299,7 +299,7 @@ void main() {['⌘', '→'],]);- final next = rows.firstWhere((row) => row.label == 'Next Tab');+ final next = rows.firstWhere((row) => row.label == 'Next Harness');expect(next.chords, [['⇧', '⌘', ']'],['⌃', '⇥'],@@ -320,7 +320,7 @@ void main() {test('the digits are one row, at the end of their own group', () {final rows = shortcutRows();- final digits = rows.indexWhere((row) => row.label == 'Select tabs 1–9');+ final digits = rows.indexWhere((row) => row.label == 'Select harnesses 1–9');expect(digits, isNot(-1));expect(rows[digits].chords, [['⌘', '1 – 9'],diff --git a/desktop/test/swarm_entry_picker_test.dart b/desktop/test/swarm_entry_picker_test.dartindex 1b510a5a2..2a9d18f00 100644--- a/desktop/test/swarm_entry_picker_test.dart+++ b/desktop/test/swarm_entry_picker_test.dart@@ -174,7 +174,7 @@ void main() {for (final dismissal in ['outside', 'escape']) {testWidgets(- 'New Tab has a usable page after $dismissal (native=$native)',+ 'New Harness has a usable page after $dismissal (native=$native)',(tester) async {final app = createApp();final frames = <TerminalBinaryFrame>[];diff --git a/desktop/test/swarm_interactions_test.dart b/desktop/test/swarm_interactions_test.dartindex ffc94029e..0e11e6108 100644--- a/desktop/test/swarm_interactions_test.dart+++ b/desktop/test/swarm_interactions_test.dart@@ -67,7 +67,7 @@ Future<void> chord(void main() {for (final native in [false, true]) {- testWidgets('New Tab actions reuse the existing page (native: $native)', (+ testWidgets('New Harness actions reuse the existing page (native: $native)', (tester,) async {const channel = MethodChannel('harness/swarm_tabs');@@ -117,7 +117,7 @@ void main() {await chord(tester, LogicalKeyboardKey.keyP, shift: true);await tester.enterText(find.byKey(const ValueKey('swarm-search-input')),- 'New Tab',+ 'New Harness',);await tester.pump();await tester.sendKeyEvent(LogicalKeyboardKey.enter);@@ -362,7 +362,7 @@ void main() {expect(input.single.streamId, 'stream-a1');expect(String.fromCharCodes(input.single.bytes), 'x');await activate('rename', {'id': second});- expect(find.text('Rename Tab'), findsOneWidget);+ expect(find.text('Rename Harness'), findsOneWidget);final name = tester.widget<TextField>(find.byType(TextField));expect(name.focusNode!.hasPrimaryFocus, isTrue);tester.testTextInput.enterText('Keyboard work');diff --git a/desktop/test/swarm_screen_test.dart b/desktop/test/swarm_screen_test.dartindex 40878f72d..e7c51a886 100644--- a/desktop/test/swarm_screen_test.dart+++ b/desktop/test/swarm_screen_test.dart@@ -120,7 +120,7 @@ void main() {final app = createApp();final tab = app.activeSwarm;await mount(tester, app, nativeTabs: native);- expect(tab.name, 'New Tab');+ expect(tab.name, 'New Harness');expect(find.byKey(const ValueKey('harness-start-search')),findsOneWidget,diff --git a/desktop/test/swarm_state_test.dart b/desktop/test/swarm_state_test.dartindex 48d15decd..669983d56 100644--- a/desktop/test/swarm_state_test.dart+++ b/desktop/test/swarm_state_test.dart@@ -61,7 +61,7 @@ AppNotifier createApp({void main() {test(- 'New Tab reuses the unused page from every tab, even at capacity',+ 'New Harness reuses the unused page from every tab, even at capacity',() async {final app = createApp();addTearDown(app.dispose);@@ -130,9 +130,15 @@ void main() {);}- for (final legacy in ['New swarm', 'New tab', 'New Agent', 'New Harness']) {+ for (final legacy in [+ 'New swarm',+ 'New tab',+ 'New Tab',+ 'New Agent',+ 'New Harness',+ ]) {test(- '$legacy empty tabs restore as New Tab and still name the first agent',+ '$legacy empty tabs restore as New Harness and still name the first agent',() async {final store = MemoryStore();final original = createApp(store: store);@@ -147,7 +153,7 @@ void main() {final restored = createApp(store: store);addTearDown(restored.dispose);await restored.restorePaneLayoutForTest();- expect(restored.activeSwarm.name, 'New Tab');+ expect(restored.activeSwarm.name, 'New Harness');await restored.addAgentToSwarm('m', 'a0');expect(restored.activeSwarm.name, 'Agent 0');},diff --git a/desktop/test/swarm_switcher_test.dart b/desktop/test/swarm_switcher_test.dartindex e2d51ea7c..f7a068e32 100644--- a/desktop/test/swarm_switcher_test.dart+++ b/desktop/test/swarm_switcher_test.dart@@ -17,7 +17,7 @@ Finder get selectedRow =>void main() {for (final nativeTabs in [false, true]) {testWidgets(- 'New Tab offers Open Agent and preserves the selected runtime (native=$nativeTabs)',+ 'New Harness offers Open Agent and preserves the selected runtime (native=$nativeTabs)',(tester) async {const channel = MethodChannel('harness/swarm_tabs');tester.binding.defaultBinaryMessenger.setMockMethodCallHandler(@@ -56,7 +56,7 @@ void main() {}final opened = app.activeSwarm;expect(opened, isNot(same(original)));- expect(opened.name, 'New Tab');+ expect(opened.name, 'New Harness');expect(opened.panes, isEmpty);expect(find.byType(AlertDialog), findsNothing);await chord(tester, LogicalKeyboardKey.keyN);@@ -107,7 +107,7 @@ void main() {expect(harnessCommandById['agent.new']!.label, 'New Agent');await tester.tap(find.byKey(const ValueKey('command:swarm.new')));await tester.pump();- expect(app.activeSwarm.name, 'New Tab');+ expect(app.activeSwarm.name, 'New Harness');expect(app.panes, isEmpty);expect(app.allPanes, contains(pane));expect(find.byKey(const ValueKey('harness-start-search')), findsOneWidget);diff --git a/desktop/tool/swarm_titlebar_checks.swift b/desktop/tool/swarm_titlebar_checks.swiftindex 1da0cc789..bab3fa539 100644--- a/desktop/tool/swarm_titlebar_checks.swift+++ b/desktop/tool/swarm_titlebar_checks.swift@@ -223,11 +223,11 @@ private extension SwarmTabStrip {fullWithStarter["canOpenNewTab"] = trueupdate(fullWithStarter)try checkTitlebar(newButton.isEnabled,- "New Tab can reveal an existing starter at the tab limit")+ "New Harness can reveal an existing starter at the tab limit")fullWithStarter["canOpenNewTab"] = falseupdate(fullWithStarter)try checkTitlebar(!newButton.isEnabled,- "New Tab respects the workspace's availability")+ "New Harness respects the workspace's availability")update(state([["id": "swarm-0", "name": "Renamed tab"]], active: "swarm-0"))try checkTitlebar(newButton.toolTip == nil && openButton.toolTip == nil,"Titlebar actions add no hover hints")@@ -511,7 +511,7 @@ private extension SwarmTitlebar {try checkTitlebar(!main.performKeyEquivalent(with: open), "Menu equivalents defer before input dispatch")setKeymap(defaults)try checkTitlebar(strip.newButton.toolTip == nil, "Keymap reload does not restore hover hints")- try checkTitlebar(strip.newButton.accessibilityLabel() == "New Tab", "The plus announces New Tab")+ try checkTitlebar(strip.newButton.accessibilityLabel() == "New Harness", "The plus announces New Harness")try checkTitlebar(main.defersToInput(event("n", 45, .command)) && !main.defersToInput(event("o", 31, .command)),"Command-N reaches the shared chooser while Command-O stays unbound")try checkTitlebar(!main.defersToInput(event("p", 35, .command)), "Command-P no longer opens Navigate")@@ -579,12 +579,12 @@ private extension SwarmTitlebar {try checkTitlebar(agent.items.map { $0.isSeparatorItem ? "separator" : ($0.representedObject as? String ?? "") } == ["new", "addAgent", "renameActive", "closeActive", "separator", "splitRight", "splitDown", "zoomPane", "closePane"], "File groups Harness and Pane actions, without Pin or Add Project clutter")try checkTitlebar(agent.items.filter { !$0.isSeparatorItem }.allSatisfy { $0.image != nil && $0.toolTip == nil },"Every File action has a native icon and no hover hint")- try checkTitlebar(agent.items.contains { $0.title == "Rename Tab…" && $0.representedObject as? String == "renameActive" }, "Rename Tab preserves its command")- try checkTitlebar(agent.items.contains { $0.title == "Close Tab" && $0.representedObject as? String == "closeActive" }, "Close Tab preserves its command")+ try checkTitlebar(agent.items.contains { $0.title == "Rename Harness…" && $0.representedObject as? String == "renameActive" }, "Rename Harness preserves its command")+ try checkTitlebar(agent.items.contains { $0.title == "Close Harness" && $0.representedObject as? String == "closeActive" }, "Close Harness preserves its command")let commands = edit.submenu!.items.first(where: { $0.representedObject as? String == "commands" })!try checkTitlebar(commands.keyEquivalent == "p" && commands.keyEquivalentModifierMask == [.command, .shift], "Command search keeps its native menu owner")try checkTitlebar(edit.submenu!.items.allSatisfy { $0.representedObject as? String != "jump" }, "Edit has no Navigate action")- try checkTitlebar(agent.items.first?.title == "New Tab" && agent.items.first?.keyEquivalent == "t", "New Tab opens the chooser with Command-T")+ try checkTitlebar(agent.items.first?.title == "New Harness" && agent.items.first?.keyEquivalent == "t", "New Harness opens the chooser with Command-T")let reopen = historyMenu.items.first(where: { $0.representedObject as? String == "reopen" })!actionsEnabled = truecanReopen = falsediff --git a/docs/harness-agent-first-tabs.md b/docs/harness-agent-first-tabs.mdindex 1d6f4ff16..83a7f5375 100644--- a/docs/harness-agent-first-tabs.md+++ b/docs/harness-agent-first-tabs.md@@ -1,18 +1,18 @@# Harness entry and pane controls-Users start with one agent immediately and add panes when useful. A tab holds-one or several agents without a selection basket or a separate group-creation step.+Users start with one agent immediately and add panes when useful. A **Harness**+is the tab container and holds one or several agents without a selection basket or a separate group-creation step.This is the latest product direction; it supersedes earlier swarm and multi-selectproposals in the progress log.**Agent** is the user-facing name for a session and its actions: Open Agent,New Agent, Add Agent, Stop Agent, Restart Agent, and Find an agent. Harness-remains the application, CLI and device brand. Existing saved names and protocol-identifiers are unchanged.+also names the tab container, application, CLI and device. Custom saved names+and protocol identifiers are unchanged.## Open and New Agent-**Cmd-T / New Tab** and the tab-bar plus open the Harness start page over its+**Cmd-T / New Harness** and the tab-bar plus open the Harness start page over itsrestored lake-at-dusk wallpaper. A long search field, capped at 1120 logical pixels,has a prominent 64-pixel minimum height and shows **Find an agent** in place ofa large heading. **Open Agent** and accented@@ -30,7 +30,7 @@ Escape restores both actions and retains the query.The field starts empty and focused so typing works immediately. Typing, clickingit or Open Agent, or pressing an arrow reveals the same input, results,highlight, action arrow and keyboard navigation as the Cmd-N picker. Focus alone does not-build a search catalog or reveal results. New Tab refocuses an existing unused+build a search catalog or reveal results. New Harness refocuses an existing unusedpage too. Typing filters immediately; arrows select and Enter opens. Escape or clickingoutside closes the dropdown and hides the caret. The recent-agent list is removed.The closed page retains only search text and selection: it does not keep a live@@ -52,9 +52,9 @@ Unused default-name empty pages are excluded from Recently Closed.The titlebar places the bell beside the traffic lights, then the tabs and tabplus. A single accented **Add Agent** button sits on the right. It and**Cmd-N** open the results and preview immediately beneath a focused-**Find an agent** field, with outlined **Open Agent** and accented+**Find an agent** field, with solid neutral **Open Agent** and accented**+ New Agent** below the panel. Enter immediately opens the highlighted result.-This supersedes the compact-first modal; the New Tab page remains compact until+This supersedes the compact-first modal; the New Harness page remains compact untilsearch is activated. Both buttons remain available; Open activatesthe selected result and New replaces search with creation. There is no stackedpicker behind creation. Escape dismisses the chooser and restores terminal focus.@@ -138,18 +138,18 @@ actions too. Command search stays in its field, and creation closes its dropdownbefore opening the form. Native actions wait for the destination focus tree beforehanding keyboard ownership back to Flutter and preserve in-progress search composition.-Rename Tab has one title and an unlabeled, accessible name field, with the+Rename Harness has one title and an unlabeled, accessible name field, with thecurrent name selected for immediate typing. Muted focus colors and pill-shapedCancel/Rename actions match the entry UI. Blank names stay in the dialog; the80-character count appears only near the limit. Its 60% veil covers the canvas.-Native tabs consume the whole double-click sequence so opening Rename Tab does+Native tabs consume the whole double-click sequence so opening Rename Harness doesnot also trigger the window's titlebar zoom behavior.## Tabs and menusOne agent shows its engine mark; multiple agents use four separate outlinedtiles, matching the native square.grid.2x2 symbol. An empty tab uses a plain plus.-Only one unused **New Tab** is kept. New Tab from the plus, File menu,+Only one unused **New Harness** is kept. New Harness from the plus, File menu,Cmd-T or command search selects that existing page, even at the tab limit.Restoration collapses duplicate unused pages from older builds, preferring theselected one; named tabs and saved layouts are retained.@@ -158,11 +158,11 @@ and accessible actions while idle. Returningto one restores the engine mark. The same rule applies in search and History,including Recently Closed; a closure retains its engine identity even if theagent disappears from discovery. Tab names remain editable. Former default names-`New swarm`, `New tab`, `New Agent`, and `New Harness` restore as `New Tab` and still take+`New swarm`, `New tab`, `New Tab`, and `New Agent` restore as `New Harness` and still takethe first agent's name when opened.The macOS menus are **Harness, File, Edit, View, History, Models, Machines,-Window, Help**. File groups **New Tab, Add Agent…, Rename Tab, Close Tab**;+Window, Help**. File groups **New Harness, Add Agent…, Rename Harness, Close Harness**;then **Split Right, Split Down, Zoom Pane, Close Pane**. Pin/Unpin and Add Projectare removed from this menu. File actions have native system icons, with the samefour-corner Zoom and plain Close cross as the pane header. Machines starts with **Open Machines Manager**, thendiff --git a/docs/harness-v2-handoff.md b/docs/harness-v2-handoff.mdindex 3545e0887..54a84b487 100644--- a/docs/harness-v2-handoff.md+++ b/docs/harness-v2-handoff.md@@ -14,7 +14,7 @@ Old screenshots, test expectations and saved bundles are not the current UI.Build the best everyday workspace for people directing persistent AI agents:a fast, polished, keyboard-first **agentic browser**, with each tab representing-a swarm. The user describes it as a “super terminal” for the intelligence age.+a Harness containing agents. The user describes it as a “super terminal” for the intelligence age.Developers should feel the speed, predictability and familiar habits of a greatterminal/editor while working with several agents across real machines andprojects. They should keep their place and know exactly which agent receives@@ -38,10 +38,22 @@ user for a benchmark window.- The user renamed the session concept to **Agent**: Open/New/Add/Stop/RestartAgent, Find an agent, counts and recovery copy throughout Flutter and native- menus. Harness remains the app/device/CLI brand; saved names and wire IDs stay.+ menus. **Harness** now names the tab container as well as the app/device/CLI:+ New Harness, Rename Harness, Close Harness, and navigation/help labels. Custom+ names and wire IDs stay; the old New Tab default restores as New Harness.- Cmd-N now opens results and preview immediately, with Open Agent / New Agent- below. This supersedes every earlier compact-first modal instruction. New Tab- remains compact until search activation.+ below. Open Agent has a solid neutral fill in the modal; the start-page button+ retains its outline. This supersedes the earlier compact-first modal.+ New Harness remains compact until search activation.+- The Harness labels and picker fill pass 96 affected Flutter tests plus 12+ render checks across six palettes and two text sizes. Changed Dart files+ analyze cleanly. The exported-keymap fixture, 96 native keyboard checks and+ 404 isolated AppKit checks pass. Graphite picker captures at normal and double+ text size were inspected. Logs: `/private/tmp/harness-label-action-tests.log`,+ `/private/tmp/harness-label-action-analyze.log`,+ `/private/tmp/harness-label-action-native.log`,+ `/private/tmp/harness-label-action-render.log`. Captures:+ `/private/tmp/harness-label-action-captures`.- New Agent is 760 logical pixels wide. Machines stay in one row; narrow/largetext moves excess machines into the overflow while preserving the selection.- Working folder now offers **New / Local / Remote**. New creates a unique@@ -96,16 +108,20 @@ dial/creation/menu tests and 40 CLI input tests. Earlier build/test logs:`/private/tmp/harness-project-folder-cli-tests.log`,`/private/tmp/harness-agent-menus-native.log`.-**The staged installation is authorized again.** After initially choosing to-leave the running preview as is, the user explicitly said “do it.” The signed-**bef8cd6** update is ready, and the current **d22b338** bundle has a verified-backup. `/private/tmp/harness-agent-preview-install.json` records both paths.-CUA still returns `cgWindowNotFound` for the exact supported app, while its-process remains running normally. The user was asked to choose **Quit and Keep-Windows** because app control cannot reach that menu. Once it closes, confirm-the exact process is gone, revalidate the staged copy, and swap it into the-supported path before relaunching. No process has been killed or live bundle-replaced. Do not launch the derived-data copy alongside the supported one.+**Installation is authorized and the user has quit Harness.** An exact-process+check confirmed the app is stopped. Finish verifying the latest container labels+and solid Open Agent action, rebuild/stage, then install at the supported path+and reopen it. The previous **d22b338** bundle has a verified backup at+`/private/tmp/harness-before-agent-entry-ldyjh3ru/Harness.app`;+`/private/tmp/harness-agent-preview-install.json` records the bundle paths.++**Quit Harness (Cmd-Q) is the correct graceful quit command.** The prior request+for “Quit and Keep Windows” was incorrect; that item does not exist in this app.+The installed build already flushes pending tab layout on normal quit, and agent+sessions run separately. Saved layout is in `desktop-app-v2/state.json` under the+Harness data directory; do not dump its contents. Check the exact app process is+gone immediately before swapping the verified bundle, and do not launch the+derived-data copy alongside the supported one.CUA-sent Command-N remains inconclusive from the earlier live preview, althoughnative callback and exported shortcut checks pass. The current CUA window access@@ -118,14 +134,14 @@ are:- **Add Agent unifies search and creation.** A single titlebar button andFile → Add Agent… open results and preview immediately, with the searchfield focused and Open/New actions below. This supersedes compact-first modal- entry; the New Tab page stays compact until activated. New preserves split+ entry; the New Harness page stays compact until activated. New preserves splitplacement. The bell stays beside the traffic lights.-- **Cmd-T: New Tab; Cmd-N: Add Agent; Shift-Cmd-N: direct New Agent; Cmd-S: Layout.**+- **Cmd-T: New Harness; Cmd-N: Add Agent; Shift-Cmd-N: direct New Agent; Cmd-S: Layout.**Cmd-O is unbound by default.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 lake-at-dusk wallpaper**, a long search field capped+- New Harness uses the **restored lake-at-dusk wallpaper**, a long search field cappedat 1120 logical pixels, and no large Harness heading. The hint is **Find anagent**. Search starts blank and focused, with results hidden. Open Agentand New Agent sit underneath, aligned with the search field's left edge.@@ -143,8 +159,8 @@ are:Search uses the remaining space above the footer, which stays still when resultsopen or close. Short windows use a compact horizontal device card.The five recent-agent rows are removed. Both pairs of actions are rounded- pills, 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.+ pills with hand cursors. Open Agent is outlined on the start page and solid+ neutral in the modal picker. The official `2.webp` device photo is cropped and centered in its viewport, with a hand cursor.- Search is single-choice. Session names appear above **project · branch ·machine**, without repeated workspace titles. Only the highlighted row shows**Open Agent / Open N Agents**, or the explicit split action. The modal@@ -177,10 +193,10 @@ are:Working folder offers New / Local / Remote as described above.- A single-agent tab/search/history entry uses that agent's engine icon;multiple agents use four outlined tiles. An empty tab uses a plain plus, and- tab close marks appear only on hover/focus. Only one unused New Tab page- is allowed; all New Tab actions reuse and focus it, including at the tab limit.+ tab close marks appear only on hover/focus. Only one unused New Harness page+ is allowed; all New Harness actions reuse and focus it, including at the tab limit.Restore collapses old duplicate unused pages. Blank pages are excluded- from Recently Closed. File uses Rename Tab / Close Tab, then pane actions;+ from Recently Closed. File uses Rename Harness / Close Harness, then pane actions;Rename has a clean unlabeled field and muted pill actions. Double-clicks arecontained within the native tab, and modal appearance leaves the titlebarbutton colors intact while blocking their actions.@@ -297,9 +313,9 @@ Only supported current preview location:/Users/ab/code/autonomous-harness/desktop/build/macos/Build/Products/Release/Harness.app-The prepared and running builds now include **9af924f**. Release succeeded in+Historical **9af924f** installation receipt (superseded by the checkpoint above): Release succeeded in/private/tmp/harness-unified-entry-release.log. Both bundles passed deep, strict-signature verification. Installation used **Quit and Keep Windows**, an exact+signature verification. Installation used a graceful quit, an exactstopped-process check before and immediately before the swap, and a verifiedstaging bundle. The previous live bundle is backed up at/private/tmp/harness-before-unified-entry-wyqay10k/Harness.app.@@ -316,12 +332,12 @@ for review. CUA's synthetic Command-modifier attempts had no observable effectfor either Cmd-N or the unchanged Cmd-T; shortcut dispatch is covered by theFlutter and isolated native checks, not claimed as a live CUA keyboard result.-The console is accessible; older locked-console notes are obsolete. Before replacing-it with later changes, verify the new Release build-and signatures, use **Quit and Keep Windows**, then check the exact process is-stopped. Back up and replace only the current checkout's bundle, verify it, and-reopen that exact path. Ordinary Quit can terminate agents. Do not call getApp-between quitting and copying, since that lookup can relaunch the app.+Before installing later changes, verify the new Release build and signatures,+use **Quit Harness (Cmd-Q)**, then check the exact process is stopped. Normal+quit flushes saved layout; it does not stop the independently running agents.+Back up and replace only the current checkout's bundle, verify it, and reopen+that exact path. Do not call getApp between quitting and copying, since that+lookup can relaunch the app. Live CUA access must be checked again after launch.The older pre-lake preview backup remains at/private/tmp/harness-before-lake-entry-fmqz73k5/Harness.app.