Case study: Giving agents UI memory cuts operation time by half
naykip · reddit · 2026-08-25
The author added persistent UI structure memory for agents operating real software. In a Telegram Desktop task, the first run took 110 seconds/9 calls, while the second run dropped to 59.9 seconds/4 calls. Savings came from the agent not needing to re-locate the search box and composer fields.
Core Architecture:
- Live Map: Real-time window structure map (dies with the window)
- Change Stream: Stream of changes (avoids re-reading to see action results)
- Per-App Dictionary: Persistent dictionary keyed by app and version (stores rules like search box != composer)
- Replayable Paths: Reusable operation paths (e.g., "open chat with NAME")
Safety Design:
- Consent Gate: Send/submit/apply stops for human approval; paths cannot learn around it.
- Non-persistent: Never stores live handles, user data, or permission grants.
More from coding & agent
- ByteDance's TRAE launches TRAE Bao: a cloud-based coding assistant you control from your phone — xiaohu · 2026-11-30
- ByteDance's TRAE 2.0 gives its coding agent a cloud computer that works while your laptop is closed — xiaohu · 2026-11-30
- 19 GitHub Actions Runner Providers Benchmarked: Speed and Cost, Updated Weekly — DanielLockyer · 2026-11-30
- User says Grok agents killed his Gmail habit — Musk amplifies the agent-takes-over-email workflow — elonmusk · 2026-11-30
- open-daytona: rootless gVisor sandbox pool runs 1,536 concurrent agent-RL sandboxes on Slurm — victor_explore · 2026-11-30
- SteerCamp launches on iPhone: AI coworkers run cloud PCs while you approve on the go — pramodk73 · 2026-11-30