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.
Performance work: wrap-up and resume notes
Work stopped at the owner's request on September 22, 2026. Four independent implementation PRs are ready for review; smaller visual and idle-work changes are grouped together. Benchmark tooling, raw observations and this handoff are in PR #222. No PR was merged during this work.
The priority remains the main workflows: Cmd+N, Cmd+O, Cmd+T, search and workspace switching. Improvements to secondary surfaces do not establish improvements to those workflows.
Ready for review
| PR | Change | Published production revision |
|---|---|---|
| #219 — Search rendering | Reuse prompt-context widgets and text measurements, simplify clipping, avoid per-row temporary sets and apply search highlights immediately. | 04cc6079d73967d519f4cdfda24bedbe8f96b01a |
| #220 — Instant dialogs | Remove shared-dialog/task-palette fades and backdrop blur; build shortcut-browser rows around the viewport and preserve keyboard paging. | 10e15951a84584113b12bec31ed1a5d9ab2826d3 |
| #221 — Grouped small UI fixes | Remove decorative idle loops and unnecessary transitions; stop completed spinners, respect Reduce Motion and restore New Harness accessibility activation. | 2f5e21f301bb9cb75945cd8891700cfec6bfa021 |
| #226 — Cmd+O | Reduce offscreen picker construction to one extra row while preserving traversal beyond the initial viewport. | 2644030ab46accf6a1606f394da5831dd60ddab7 |
| #222 — Measurements and documentation | Reproducible debug and isolated Release benchmarks, destination checks, frame-phase diagnostics, varied input timing, reports and raw observations. | Tooling only; no production behavior change. |
Each implementation PR is based on d4eeec74c2a403c5af6fff37bb793c2683771bf0 and can be reviewed independently. The PRs do not depend on the two rejected experiments. All changed files in the original working copy were verified against their individual PR versions before wrapping up. A combined checkpoint is available on codex/perf-integration-checkpoint; review and merge the individual PRs above, which contain the same changes separated by scope.
What measurably improved
| Workload and comparison | Baseline | After | Result |
|---|---|---|---|
| Cmd+O Release p95, #226 alone, 120 samples/action/revision | 20.043 ms | 16.463 ms | 17.9% lower p95; median 16.332 → 15.675 ms and build median 4.603 → 3.900 ms. |
| Cmd+O debug first frame, 16 / 48 retained terminals, #226 alone | 31.626 / 26.623 ms | 22.872 / 18.525 ms | 28–30% lower median, 34–36% fewer rebuilt widgets. |
| Search query extension, 2,000 agents, isolated #219 debug run | 18.46 ms | 11.40 ms | 38% lower median; p95 50.78 → 16.71 ms. Selection tails did not consistently improve. |
| Shortcut-browser fully opened Release frame, #219–221 combined, 80 samples/action/revision | 153.28 ms | 18.99 ms | 87.6% lower median, primarily from removing the fade. |
These are separate comparisons, not additive gains. There is no single measured percentage for all four implementation PRs combined. Cmd+N and Cmd+T have no established Release latency improvement, and no accepted experiment demonstrated a material tab-switch speedup. Debug CPU gains must not be presented as native display latency. Slower controls, tail outliers and unchanged results are preserved in the detailed reports.
Release measurements cover framework keyboard dispatch through the exact requested Flutter raster-completion frame. They exclude OS input delivery, physical display presentation, native titlebar painting completion, real network and agent response time. The host was an Apple M2 Max with 64 GiB RAM, macOS 26.6.2, Flutter 3.47.2 / Dart 3.13.2. Other applications remained running; our timing runs were serial and did not overlap our builds/tests. This is local synthetic evidence, not a claim of zero latency.
Verification and coverage
The full desktop suite on the earlier combined implementation completed 2,788 passing tests, 10 skips and one daemon-discovery timing failure. That file passed all 31 tests when rerun alone. Later focused suites and changed-file analysis passed on each independent branch: 59 tests for #219, 62 for #220, 149 for #221 and 63 for #226, plus a rerun after finalizing the picker cache API. A 25-test combined primary-workflow check also passed. These counts overlap and should not be added into one total.
The native Release fixture was exercised through application controls for Open/New Harness, query filtering and preview, commands, shortcut browsing/practice, tabs, Store pages, Settings and terminal Find. Repeated dispatch runs independently checked requested states, including new-tab creation and closing/restoration. Nine native-bundle isolation tests passed. The fixture uses disposable state, synthetic transports and blocked networking. Real agent launch, remote transport, reconnect and backend response time were outside this pass.
The final documentation update adds no runtime changes. Implementation PR worktrees were clean and their pushed head revisions verified. The isolated benchmark app was closed when work stopped.
Experiments deliberately excluded
- #224 — Welcome-page retention: closed. Debug gains did not translate into a justified Release benefit. Initial Cmd+T and tab-switch medians worsened; subsequent baseline drift prevents attributing the entire difference to the change. See the primary-workflow report.
- #232 — Outgoing pane-control retention: closed. Tab-switch build work fell about 6%, but both Release input cadences increased elapsed medians. With varied input timing and 360 measured samples/action/revision, median was 19.456 → 20.775 ms and p95 24.828 → 25.477 ms. All 6,600 observations across 14 completed runs are retained in the pane experiment report.
Neither rejected production change is present in the combined checkpoint or ready PRs.
Resume here
- Start with Cmd+N/T and workspace switching; they still lack a demonstrated Release speedup. Review current main and the status of the ready PRs before starting new branches.
- Profile native titlebar work during those operations. Source inspection found that
SwarmTitlebar.updateHistoryimmediately reconstructs and sizes the History menu whenever its entries change, even when closed. This is a candidate, not an established bottleneck or implemented fix. The attempted final system sample caught idle activity and did not produce a fresh completed benchmark result; it is excluded from all performance claims. - If deferring hidden-menu work helps, preserve menu shortcut availability, validation, accessibility and current entries on opening. Existing native checks live in
desktop/tool/swarm_titlebar_checks.swiftanddesktop/tool/check_swarm_titlebar.sh. - Keep identical benchmark tooling on both production revisions. Use both post-frame and varied-input modes, alternate complete baseline/modified runs, preserve every completed observation and check build/raster work separately from frame waiting. Retain a change only when the benefit justifies its complexity.
Reports and reproduction instructions:
- Earlier combined changes, tests, profiling and manual checks
- Cmd+O and primary workflows
- Rejected pane experiment and input-phase diagnostics
- Native benchmark modes and measurement limits
Large debug CPU profiles remain in /private/tmp/rapid-moose-before-2000.json and /private/tmp/rapid-moose-after-2000.json; their compact summaries are committed. Temporary build directories are disposable and may not survive until the next session. The committed source, reports and observations are the durable handoff.