Skip to content

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 19 Nov 08:14
· 256 commits to main since this release
2df36a7
  • Legato for Mac (app/macos): a menu-bar app that runs Legato on your own Mac with your own model and key.
    Open it with Fn (hold Fn to say the task), switch models from the command bar (⌘1-⌘4, ⌘K), and watch each step;
    risky actions wait for your yes. Providers: OpenAI, Claude (Anthropic), Gemini, Grok (xAI), OpenRouter, Together AI,
    Fireworks AI, Groq, Cerebras, and any OpenAI-compatible server. app/macos/release.sh builds a
    signed, notarized .dmg with its own engine inside; the mac-app workflow attaches it and the Sparkle update feed
    to each release, and the app updates itself.

  • MCP: --wait-scope app (with --local on macOS) waits on the front app's windows only; --fixed-wait S sleeps
    instead of waiting, as a baseline. benchmarks/mcp_h2h/ compares Claude Code with Legato's MCP against Claude
    Code's built-in computer use (#21); no results yet.

  • MCP: screenshots go to the agent as JPEG (quality 85), like the harness since #17; legato mcp --image-format png
    keeps PNG. Recordings (--record) stay PNG.

  • Plans read labels (click_text, wait_for, labelled clicks) on Linux too: where macOS Vision is not available,
    legato.plan uses RapidOCR if it is installed (pip install rapidocr-onnxruntime, CPU). A label also matches a
    line the reader ran together ("Document saved" in "Documentsaved").

  • Harness(plan=True): one plan tool call carries the steps of a turn (screen actions, click_text by visible
    label, shell, AppleScript, wait_for a label, done), run in order until one cannot go on; the model then sees what
    ran and why it stopped. Labels are read with macOS Vision. end_fix=True: a reply that says the task is complete
    without an action gets a note, and a second one in a row ends the task as done.

  • legato.tools.applescript(env): AppleScript that is compiled against the app's dictionary first and read back with
    a check script; an error returns the app's real terms.

  • Harness(image_format="jpeg"): screenshots go to the model as JPEG, the same pixels in about a fifth of the bytes.
    The upload is most of a hosted call's wait for its first token on a home uplink; on replayed Mac turns through
    OpenRouter it halved a call with the next action unchanged, and on 27 live Mac tasks it
    cut a median task from 23.7 to 18.5 s with passes held. JPEG is the default; image_format="png" sends
    the screenshots lossless.

  • legato.local() is safe to run on your own Mac: move the mouse into a corner or hold Escape to stop it, and risky
    keys and typed shell commands (legato/safety.py) wait for a yes (confirm=, legato run --yes). legato doctor
    checks the macOS permissions. wait_scope="app" waits on the front app's windows only; wait="ax|cells" ends a
    wait on the front app's Accessibility events.

  • Off by default, for experiments: change_log (one screenshot and a text log of what changed on the screen, with
    change_log_lines and change_log_turns), progress_note, history_scale, hedge_after_s, ocr_cache,
    ocr_near, plan_trust_first_click, strict_done.

  • MCP: desktop_open(url=..., app=...) starts a page or app first and returns once its window has drawn, so the agent
    skips typing a launch command and waiting for it.

  • MCP: desktop_shell(desktop_id, command, timeout_s=30) runs a shell command on the desktop's computer and returns
    its output and exit code, so an agent can start apps, read files and check results without the screen.

  • A native in-sandbox helper (Rust, native/legato-step) for Linux sandboxes and E2B, on x86_64 and arm64. Each
    action is faster: it reads the screen through shared memory instead of running xwd, and encodes the screenshot
    while the wait sits out its quiet time. The stop rule and the JSON it answers are unchanged. Sandboxes it can't run
    in keep the Python helper; LEGATO_HELPER=python chooses it.

  • Requests to OpenRouter name Legato as the app (HTTP-Referer, X-Title); LEGATO_NO_ATTRIBUTION=1 turns it off.

  • Harness(tools=[...]): tools beside computer. legato.tools.bash(env) runs commands in the desktop's own shell
    (E2B, attach(shell=...), --sandbox docker, legato.local()); legato.Tool wraps your own function. Calls run
    in the order the model sent them, each result goes back as text, and a tool that raises is reported to the model.
    Models without native tool calls are told the JSON form. Without tools, requests are unchanged.
    result.report() shows tool time.