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
polish(mobile): New teaches what a harness is, and keeps first tasks for a first harness
dee74a9afbc38ab
diff --git a/mobile/lib/phone/new_agent_page.dart b/mobile/lib/phone/new_agent_page.dartindex 909a343b5..a3c2acdef 100644--- a/mobile/lib/phone/new_agent_page.dart+++ b/mobile/lib/phone/new_agent_page.dart@@ -751,8 +751,11 @@ class _NewAgentPageState extends State<NewAgentPage> {Tty.origin,4,),+ // Where "harness" is taught: the moment somebody makes their first one. The agent+ // is Claude Code or Codex; a harness is one session of it — the owner: "you have+ // 1 agent codex but you have multiple harnesses (sessions) with it."child: TtyText(- 'Nothing running yet. Start your first harness.',+ 'A harness is one session of an agent. Start your first.',color: tty.faint,size: TtySize.meta,),@@ -864,8 +867,11 @@ class _NewAgentPageState extends State<NewAgentPage> {crossAxisAlignment: CrossAxisAlignment.stretch,children: [// A first harness has nothing to go on: three first tasks to tap, the kind- // that shows what an agent does in a minute.- if (_task.text.trim().isEmpty && !_creating)+ // that shows what an agent does in a minute. Only then — once something is+ // running, somebody knows what to ask, and the chips were filler over it.+ if (nothingRunning &&+ _task.text.trim().isEmpty &&+ !_creating)Padding(padding: const EdgeInsets.only(bottom: 8),child: Wrap(diff --git a/mobile/test/phone_new_agent_test.dart b/mobile/test/phone_new_agent_test.dartindex f0b1d569d..4f4529df6 100644--- a/mobile/test/phone_new_agent_test.dart+++ b/mobile/test/phone_new_agent_test.dart@@ -169,4 +169,37 @@ void main() {expect(find.byType(NewAgentPage), findsNothing);});++ testWidgets(+ 'a first harness is taught, and offered first tasks; later ones are not',+ (tester) async {+ final app = _app();+ addTearDown(app.dispose);+ await tester.pumpWidget(+ MaterialApp(+ home: NewAgentPage(notifier: app, machineId: 'ready'),+ ),+ );+ await tester.pump();+ expect(+ find.text('A harness is one session of an agent. Start your first.'),+ findsOneWidget,+ );+ expect(find.text('Explain this project to me'), findsOneWidget);++ // Something is running: the lesson is learned, and the chips were filler.+ app.machineStates['ready']!.agents = [+ Agent(id: 'a', name: 'hn', engine: 'claude', terminalAvailable: true),+ ];+ await tester.pumpWidget(const SizedBox());+ await tester.pumpWidget(+ MaterialApp(+ home: NewAgentPage(notifier: app, machineId: 'ready'),+ ),+ );+ await tester.pump();+ expect(find.textContaining('A harness is one session'), findsNothing);+ expect(find.text('Explain this project to me'), findsNothing);+ },+ );}