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
Merge origin/main into feat/agent-alert-sounds
bitcoinbuilderc30c1691373d
diff --cc desktop/lib/widgets/harness_session_manager.dartindex 94f8c95eb,390397636..91e03365a--- a/desktop/lib/widgets/harness_session_manager.dart+++ b/desktop/lib/widgets/harness_session_manager.dart@@@ -10,8 -10,9 +10,10 @@@ import '../shared/widgets/app_menu.dartimport '../state/app_state.dart';import '../state/harness_sessions.dart';import '../state/swarm_navigation.dart';+ import '../core/models.dart';+ import '../usage/ledger/usage_overview.dart' show formatTokens;import 'engine_identity.dart';+import '../notify/alert_sounds.dart';/// A compact, live inventory. Action receipts belong to AppNotifier, so/// dismissing this surface never cancels a pause or launches a second resume.@@@ -515,13 -515,9 +524,13 @@@ class _HarnessSessionManagerState exten() => GlobalKey(),),row: row,- height: rowHeight,+ height: heightFor(row),now: now,showQuestion: showingQuestions,+ unread: widget.app.agentUnread.kindFor(+ row.machine.machine.machineId,+ row.agent.id,+ ),selected:_selected != null && selected?.id == row.id,busy: busy,@@@ -863,21 -858,84 +895,103 @@@ class _SessionRow extends StatelessWidg}}+/// The two tints an unread harness is drawn in.+///+/// Named here rather than written at each use, so this and the "needs input"+/// button beside it cannot drift into two different yellows.+///+/// There is no widget any more. A left-hand pip was tried and removed: the row+/// already had a place for its state — the amber question button on the right —+/// so a second marker beside the name said the same thing twice for a question,+/// while putting "finished" somewhere the eye was not looking. Both live in+/// that one slot now, and never both at once.+abstract final class _UnreadMark {+ /// Waiting on a person. The amber the question button has always used.+ static const waitingTint = Color(0xffd9ad70);++ /// Finished. Green because it is the one colour nobody reads as "act now",+ /// which is exactly the difference being drawn.+ static const doneTint = Color(0xff6fbf8b);+}+++ class _MonitorStats extends StatelessWidget {+ const _MonitorStats({required this.agent, required this.id});+ final Agent agent;+ final String id;++ @override+ Widget build(BuildContext context) {+ final style = AppType.monoMeta(+ color: AppPalette.textSecondary,+ height: 1.3,+ );+ String measured(DateTime? time) =>+ time == null ? '' : '\nUpdated ${time.toLocal()}';+ final stats = agent.outputStats;+ final items = <Widget>[+ if (agent.tokensUsed case final count?)+ Tooltip(+ message:+ '$count tokens · input, output and cached input${measured(agent.tokensUpdatedAt)}',+ child: Text(+ '${formatTokens(count)} tokens',+ key: ValueKey('session-tokens:$id'),+ maxLines: 1,+ overflow: TextOverflow.ellipsis,+ style: style,+ ),+ ),+ if (stats != null && stats.hasEdits)+ Tooltip(+ message:+ '${stats.linesAdded} lines added · ${stats.linesRemoved} removed\n'+ 'Recorded edits by this harness, including repeated edits. Not the current branch diff.'+ '${measured(stats.updatedAt)}',+ child: Text.rich(+ TextSpan(+ children: [+ TextSpan(+ text: '+${formatTokens(stats.linesAdded!)}',+ style: const TextStyle(color: Color(0xff8dbb79)),+ ),+ const TextSpan(text: ' '),+ TextSpan(+ text: '−${formatTokens(stats.linesRemoved!)}',+ style: const TextStyle(color: Color(0xffd28f87)),+ ),+ ],+ ),+ key: ValueKey('session-edits:$id'),+ maxLines: 1,+ overflow: TextOverflow.ellipsis,+ style: style,+ ),+ ),+ if (stats?.pullRequestsCreated case final count?)+ Tooltip(+ message:+ '$count ${count == 1 ? 'pull request' : 'pull requests'} created by this harness\n'+ 'Confirmed creation receipts. Cached; not a live GitHub status.${measured(stats?.updatedAt)}',+ child: Text(+ '$count ${count == 1 ? 'PR' : 'PRs'}',+ key: ValueKey('session-prs:$id'),+ maxLines: 1,+ overflow: TextOverflow.ellipsis,+ style: style,+ ),+ ),+ ];+ return Row(+ children: [+ for (var i = 0; i < items.length; i++) ...[+ if (i > 0)+ Padding(+ padding: const EdgeInsets.symmetric(horizontal: 8),+ child: Text('·', style: style),+ ),+ Flexible(child: items[i]),+ ],+ ],+ );+ }+ }diff --cc desktop/macos/Runner/SwarmTitlebar.swiftindex 2eb803c70,cd69ae9db..28526b444--- a/desktop/macos/Runner/SwarmTitlebar.swift+++ b/desktop/macos/Runner/SwarmTitlebar.swift@@@ -1639,22 -1640,12 +1640,22 @@@ private final class SwarmTabStrip: NSVisessionsButton.running = state["runningSessions"] as? Int ?? 0sessionsButton.expanded = state["sessionsOpen"] as? Bool == truelet expandedState = sessionsButton.expanded ? "Expanded" : "Collapsed"- sessionsButton.toolTip = sessionsButton.running > 0 ? "Harnesses · \(sessionsButton.running) running" : "Harnesses"+ sessionsButton.toolTip = sessionsButton.running > 0 ? "Harness Monitor · \(sessionsButton.running) running" : "Harness Monitor"let attention = state["attention"] as? Int ?? 0- sessionsButton.attention = attention+ // What the badge COUNTS is `unread` — harnesses carrying news nobody has looked at, which+ // includes the ones that simply finished. `attention` is the narrower "blocked, waiting on a+ // person" figure and still words the sentence below, because that is the half worth saying+ // out loud. An older Flutter sends no `unread`, and then the badge is what it always was.+ let unread = state["unread"] as? Int ?? attention+ sessionsButton.attention = unreadlet attentionState = "\(attention) \(attention == 1 ? "needs" : "need") input"- sessionsButton.setAccessibilityValue(attention > 0 ? "\(expandedState), \(attentionState)" : expandedState)- if attention > 0 { sessionsButton.toolTip = "Harness Monitor · \(attentionState)" }+ let unreadState = "\(unread) \(unread == 1 ? "harness has" : "harnesses have") news you have not seen"+ sessionsButton.setAccessibilityValue(unread > 0 ? "\(expandedState), \(unreadState)" : expandedState)+ if unread > 0 {+ sessionsButton.toolTip = attention > 0- ? "Harnesses · \(unreadState) · \(attentionState)"- : "Harnesses · \(unreadState)"++ ? "Harness Monitor · \(unreadState) · \(attentionState)"++ : "Harness Monitor · \(unreadState)"+ }needsLayout = truelayoutSubtreeIfNeeded()if ids != previousOrder {