👾 Open Computer Use – Open-Source Alternative to Codex Computer Use
Swift accessibilityai-agentai-agentsclaude-codecodexcodex-computer-usecomputer-usecomputer-use-agentcross-platformcuadesktop-automationgemini-cligui-automationmacosmcpmodel-context-protocolopen-computer-useopen-computer-use-mcpopenai-codexopencode
[2026-04-19 23:00] | Task: 新增基于 Python 重建脚本的 StandaloneCursor
🤖 Execution Context
- Agent ID:
codex - Base Model:
GPT-5 - Runtime:
Codex CLI
📥 User Query
现在有一个
swift run CursorMotion的版本,但是感觉做得很不理想。基于单独的scripts/cursor-motion-re/reconstruct_cursor_motion.py去实现一个新的StandaloneCursor版本出来看看。
🛠 Changes Overview
Scope: Package.swift、experiments/StandaloneCursor/、README*、docs/
Key Actions:
- [新增独立 target]: 在
Package.swift里增加StandaloneCursorexecutable target、StandaloneCursorSupportsupport module 和对应测试 target,避免继续改当前脏着的CursorMotion线路。 - [Swift 版重建模型]: 在
experiments/StandaloneCursor/Sources/StandaloneCursorSupport/StandaloneCursorModel.swift里按 Python 脚本重建20条 candidate、measure + score、selection policy,以及response=1.4/dampingFraction=0.9/dt=1/240的 raw spring timeline。 - [新独立 viewer]: 新增
StandaloneCursorapp,支持拖动起终点、切换 candidate、重放路径,并把 endpoint lock / close-enough 时间直接展示在 UI 上。 - [验证与文档]: 新增
StandaloneCursorSupportTests,并补齐experiments/StandaloneCursor/README.md、顶层 README、docs/ARCHITECTURE.md和执行计划。
🧠 Design Intent (Why)
现有 CursorMotion 更偏视觉和交互实验,不适合继续承载“基于 Python 脚本直接对照 binary lift”的诉求。这次把新 viewer 做成独立 target,一方面能保留旧 lab 的实验自由度,另一方面也能给后续对照脚本、继续往主运行时收敛时提供一个更干净的中间层。
📁 Files Modified
Package.swiftexperiments/StandaloneCursor/README.mdexperiments/StandaloneCursor/Sources/StandaloneCursor/StandaloneCursorApp.swiftexperiments/StandaloneCursor/Sources/StandaloneCursor/StandaloneCursorRootView.swiftexperiments/StandaloneCursor/Sources/StandaloneCursorSupport/StandaloneCursorModel.swiftexperiments/StandaloneCursor/Tests/StandaloneCursorSupportTests/StandaloneCursorSupportTests.swiftREADME.mdREADME.zh-CN.mddocs/ARCHITECTURE.mddocs/exec-plans/completed/20260419-standalone-cursor-from-python-reconstruction.md