Repository navigation
Closed
Labels
Milestone
Description
Summary
Add a ComputerUseAgent that perceives the screen (vision) and acts via mouse + keyboard — driving any GUI app. Wraps Claude computer-use, OpenAI Operator, and open-source equivalents behind a single SynapseKit interface, fully integrated with the existing tool framework.
Motivation
The next interface boundary is the screen itself. Most enterprise workflows still live in legacy GUIs with no API. A unified, provider-agnostic computer-use agent makes SynapseKit the natural choice for automation that goes beyond REST calls.
Design Sketch
from synapsekit import ComputerUseAgent, ScreenProvider
agent = ComputerUseAgent(
llm=AnthropicLLM.claude_computer_use(), # or operator, or open-source
screen=ScreenProvider.local(), # or .browser(), .vnc(host=...)
safety=SafetyPolicy(
confirm_before=[\"delete\", \"send\", \"purchase\", \"navigate_to_new_domain\"],
forbidden_apps=[\"keychain\", \"1password\"],
record_session=True,
),
)
await agent.run(\"Open the Q2 spreadsheet in Excel, sum column D, paste the total into the Slack #finance channel\")Components
-
ComputerUseAgentbase class -
ScreenProviderinterface — local (pyautogui), browser (Playwright), remote (VNC) - Provider wrappers: Anthropic computer-use, OpenAI Operator, open-source (e.g. Cua, OS-Atlas)
-
SafetyPolicy— confirm-before-act, app allowlist, action audit log -
SessionRecorder— full screen + action log for replay/debugging - Tool integration: existing
BrowserToolbecomes a special case ofComputerUseAgentwith browser screen provider -
@requires_human_confirmationdecorator for sensitive actions - Sandbox runner: container/VM mode for risky tasks
Use Cases
- Legacy GUI automation (SAP, Oracle, on-prem ERPs)
- QA: agent drives the app like a user, runs test scenarios
- Data entry from PDFs into ancient web portals
- Accessibility: voice → computer-use for motor-impaired users
- Self-onboarding agents that learn workflows by watching
Risks
- Safety is the Add MarkdownTextSplitter #1 concern. Default to confirm-before-act for anything destructive. Hard-block credential managers.
- Determinism — screen state varies. Need robust retry + visual grounding ("click button labeled X" not "click pixel 400,200").
- Cross-platform — macOS / Windows / Linux screen APIs differ. Start with macOS + Linux; Windows in a follow-up.
Acceptance Criteria
- End-to-end demo: agent fills out a form on a legacy web app + posts result to Slack
- Safety policy blocks a malicious instruction in test suite (e.g. "delete all files")
- Session recordings are replayable
- At least 2 providers wired (Anthropic + 1 open-source)
- Docs: safety guide is mandatory reading
Related
- Extends
BrowserTool(already shipped) - Synergy with
WorldModelRAG— agent observes app state into the world model
Activity
AmitoVrito commentedon Aug 1, 2026
Status: implementation complete (exceeds spec) — one acceptance item pending
Shipped (in
src/synapsekit/computer_use/):ComputerUseAgent(agent.py),ScreenProvider+BrowserScreenProvider(local/browser/VNC), 3 providers wired —AnthropicComputerUseProvider,OpenAIComputerUseProvider,OpenSourceComputerUseProvider(acceptance asked for 2);SafetyPolicywith forbidden-apps/domain allow+block lists (4 "blocks malicious instruction" tests),SessionRecorder,@requires_human_confirmation; 22 tests; safety guidedocs/computer-use-safety.md.Pending to close this issue (acceptance criteria):
examples/script (none exists yet).SessionRecorderexists; add a test that replays a recorded session to satisfy "recordings are replayable."test(computer-use): end-to-end form→Slack demo + session-replay (#737) (