8000 [Computer] Add App-Use to Computer interface by ddupont808 · Pull Request #280 · trycua/cua · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Computer] Add App-Use to Computer interface #280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 41 commits into from
May 31, 2025

Conversation

ddupont808
Copy link
Contributor
AppUse.mp4

Introduces App-Use, an experimental feature that creates lightweight virtual desktops scoped to specific applications, enabling focused agent control and parallel multi-agent workflows.

Changes

  • Added experiments parameter to Computer.__init__()
  • Added create_desktop_from_apps() method to create app-scoped desktops
  • Added assertion requiring experiments=["app-use"] to enable feature
  • Created blog post documenting usage and examples

Example

# Enable App-Use and create app-scoped desktop
computer = Computer(experiments=["app-use"])
desktop = computer.create_desktop_from_apps(["Safari", "Notes"])

# The app-scoped desktop exposes a Computer interface
# This screenshot will only show Safari and Notes, and will be dynamically scaled to fit the app windows
screenshot = await desktop.interface.screenshot()
with open("screenshot.png", "wb") as f:
    f.write(screenshot)

# Agent can now only see/interact with Safari and Notes
agent = Agent(computer=desktop, model=LLM(...))
await agent.run("Research AI news and take notes")

@ddupont808 ddupont808 merged commit 99b979e into main May 31, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0