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
import 'dart:async';
import 'package:flutter/widgets.dart';
import 'app_shell.dart';
import 'core/connected_semantics.dart';
import 'core/native_webview_runtime.dart';
import 'measurement/speed_marks.dart';
import 'ws/ws_conn.dart' show rememberAppVersionForSockets;
import 'update/started_marker.dart';
import 'desktop_workspace.dart'
if (dart.library.js_interop) 'web/web_entry.dart';
/// Harness: a swarm of terminal panes in one window. Everything before the
/// first frame, and every screen up to sign-in, is [startHarness]; only the
/// signed-in workspace and the frame around the app differ, picked at compile
/// time — a browser build gets the mouse-first `lib/web/` composition under
/// its store bar, native builds never compile it.
/// `../mobile` mounts a phone shell into its own vendored copy of
/// [startHarness] rather than depending on this package.
Future<void> main() async {
HarnessWidgetsBinding();
prepareConsole();
await NativeWebViewRuntime.initialize();
unawaited(rememberAppVersionForSockets());
await startHarness(
authenticatedScreen: authenticatedWorkspace,
frame: appFrame,
transportPlugins: terminalTransportPlugins,
);
unawaited(
WidgetsBinding.instance.waitUntilFirstFrameRasterized.then(
(_) => speedMarks.launch('first frame'),
),
);
unawaited(
markStartedAfterFirstFrame(
firstFrame: WidgetsBinding.instance.waitUntilFirstFrameRasterized,
),
);
}