The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(computer_use): pitch background-FIRST (not background-only) in schema, prompt block, and skill
Teknium65605d4a7aa0
diff --git a/agent/prompt_builder.py b/agent/prompt_builder.pyindex 91bff527298..29ad9595379 100644--- a/agent/prompt_builder.py+++ b/agent/prompt_builder.py@@ -681,10 +681,10 @@ def computer_use_guidance(platform_name: Optional[str] = None) -> str:example_app = "Safari" if is_macos else ("Chrome" if is_windows else "Firefox")return (- f"# Computer Use ({os_name} background control)\n"- f"You have a `computer_use` tool that drives the {os_name} desktop in "- "the BACKGROUND — your actions do not steal the user's cursor, "- "keyboard "+ f"# Computer Use ({os_name} desktop control, background-first)\n"+ f"You have a `computer_use` tool that drives the {os_name} desktop. "+ "Input is background-FIRST: by default your actions do not steal the "+ "user's cursor, keyboard "+ share_line +"## Preferred workflow\n""1. Call `computer_use` with `action='capture'` and `mode='som'` "diff --git a/skills/autonomous-ai-agents/computer-use/SKILL.md b/skills/autonomous-ai-agents/computer-use/SKILL.mdindex bd94b6c305a..f098ce8c20e 100644--- a/skills/autonomous-ai-agents/computer-use/SKILL.md+++ b/skills/autonomous-ai-agents/computer-use/SKILL.md@@ -1,6 +1,6 @@---name: computer-use-description: "Drive the desktop in the background without stealing focus."+description: "Drive the desktop background-first; escalate on signal."version: 2.0.0author: Francesco Bonacci (f-trycua), Hermes Agentlicense: MITdiff --git a/tools/computer_use/schema.py b/tools/computer_use/schema.pyindex 35b9b5c86cd..0cde95a84ff 100644--- a/tools/computer_use/schema.py+++ b/tools/computer_use/schema.py@@ -16,19 +16,20 @@ from typing import Any, DictCOMPUTER_USE_SCHEMA: Dict[str, Any] = {"name": "computer_use","description": (- "Drive the desktop in the background via cua-driver — screenshots, "- "mouse, keyboard, scroll, drag — without stealing the user's cursor "- "or keyboard focus. Supported on macOS, Windows, and Linux. "- "Preferred workflow: call with "- "action='capture' (mode='som' gives numbered element overlays), "- "then click by `element` index for reliability. Pixel coordinates "- "are supported for models trained on them. Image captures include a "- "shareable `screenshot_path`; when the user asks to receive the image "- "and the current surface supports attachments, deliver that file using "- "the platform's native MEDIA attachment syntax. Do not automatically "- "send screenshots used only for computer control. Works on any window — "- "hidden, minimized, or behind another app. Requires cua-driver to "- "be installed."+ "Drive the desktop via cua-driver — screenshots, mouse, keyboard, "+ "scroll, drag — on macOS, Windows, and Linux. Input is "+ "background-FIRST, not background-only: the default delivery routes "+ "to the target window without stealing the user's cursor or focus "+ "(works even on hidden/minimized windows), and when the returned "+ "effect signals the input did not land you escalate — pixel "+ "coordinates, the typed browser route (cua_browser_* actions for "+ "page content), or delivery_mode='foreground' (briefly fronts the "+ "window; separate approval). Preferred workflow: action='capture' "+ "(mode='som' gives numbered element overlays), then click by "+ "`element` index. Image captures include a shareable "+ "`screenshot_path`; deliver it via the platform's MEDIA syntax when "+ "the user asks to see it — not for captures used only for control. "+ "Requires cua-driver to be installed."),"parameters": {"type": "object",