SuperAPIAI Directory

understudy

github.com · AI agents

Local-first desktop agent that can control GUI apps, browser, shell, and messaging channels, and can learn repeatable tasks from a single demonstrated run.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsiOS · macOS · Linux

About this tool

Understudy is an open-source, local-first desktop AI agent whose goal is to operate an entire computer—GUI, browser, shell, and messaging apps—and complete work from a single natural-language instruction. It also supports a "teach" mode: demonstrate once and it learns, then gradually speeds up through daily use. Users can bring their own models; the official demo environment is macOS plus GPT-5.4 (via Codex/OpenAI), and it also works with providers such as Claude and Gemini.

Purpose and positioning Understudy is first and foremost a general-purpose agent that can research online, control the browser, invoke skills, and deliver results. It also supports remotely dispatching tasks from a phone via a messaging app to be executed on the desktop, for example converting a webpage to PDF, then opening the desktop version of Telegram to find a contact and send it. It is aimed at users who want to drive an entire computer with natural language and are willing to teach the agent reusable tasks through demonstration.

Main capabilities

  1. Native computer operation: It is not a simple GUI clicker, but rather mixes multiple execution paths within one agent loop, one session, and one policy pipeline. The planner decides the path for each step, and a single task may simultaneously involve browsing the web, running shell commands, clicking native apps, and sending messages. GUI grounding uses a dual-model architecture: the main model decides what to do, and a separate grounding model decides the location on screen; it supports Retina high DPI, can automatically refine at high resolution for small targets, and offers two grounding modes: simple prediction or multi-round verification plus simulated overlay. The official claim is that its grounding benchmark achieves 30/30 successful target resolutions, including explicit labels, ambiguous targets, pure icon elements, and vague prompts.
  2. Learning from demonstration (Teach): It can record a demonstration once, analyze it, clarify the task, optionally verify by replay, and publish a reusable skill. This is not a macro recorder, but rather learns intent rather than coordinates. The published SKILL.md is a three-layer abstraction: intent flow (natural-language steps), path options (preferred/fallback), and GUI replay hints (only as a last resort, re-grounding from the current screenshot each time). Therefore, after an interface redesign, window scaling, or switching to a similar app, the skill remains effective as long as the semantic target still exists. The draft/publish pipeline can now publish three types of workspace artifacts: skill, worker, and playbook, but teaching through demonstration currently most often produces reusable skills. Regarding privacy: demonstration videos, event logs, and trajectories are stored locally by default, but teach analysis and GUI grounding may send selected screenshots to the configured model provider.Diagrams, keyframes, or other image evidence.
  3. Remember effective practices (partially implemented): without explicit teaching, automatically identify repeated patterns during daily use and crystallize successful paths. Repeated multi-turn work in the same workspace is compressed in the background; once a pattern repeats enough, Understudy automatically publishes a workspace skill, hot-loads it into the active session, and notifies the user. Current boundaries: the learning loop is deliberately conservative, continuing to explore when patterns are not clear enough; segmentation, clustering, and skill synthesis are currently LLM-driven; promotion thresholds are still heuristic rather than fully policy-driven; fourth-layer-style path upgrades are still limited.
  4. Get faster over time (partially implemented): path preferences, taught path annotations, browser automatic fallback, and capability-aware routing are already available. The system prompt guides the agent to prefer faster paths: direct tool/API > Shell/CLI > browser > GUI. Skills produced by teaching annotate each step with preferred/fallback/observation paths. Browser mode supports hosted Playwright and Chrome extension relay, with automatic mode trying the relay first and then falling back. The GUI capability matrix dynamically enables/disables tool subsets based on permissions.
  5. Proactive autonomy (mostly a vision): scheduling and runtime interfaces already exist, but passive observation, isolated workspaces, and proactive autonomy are still in the future. The trust model is progressive: each skill starts manually, and is only upgraded after sustained success.

Workspace artifacts The teaching pipeline and crystallization pipeline can produce three types of workspace artifacts, which combine into larger automations: a playbook spawns each stage as a sub-agent—an independent sub-session with its own context window and tools; a worker is deterministic and produces structured output according to instructions; a skill is agentic, receiving a goal and quality gates and then deciding on its own how to achieve them. The artifact type is declared in the metadata.understudy.artifactKind field of SKILL.md; a playbook declares its child artifacts, and the end-to-end testing framework validates the complete contract (required output files, manifest schema, and stage order).

How to use It can be installed via npm or GitHub Packages (the latter requires a GitHub token with read:packages permission), and source installation is also supported. All installations require several prerequisites; source installation/development also requires additional dependencies; on macOS, GUI automation requires granting both Accessibility and Screen Recording system permissions. Missing permissions will degrade or hide some GUI tools, rather than all GUI capabilities failing equally. Terminal, Web, mobile, and consumerAll applications connect through a single endpoint; chat, teaching, scheduled tasks, and sub-agents share the same session run loop; every tool call passes through security, trust, and logging hooks. For messaging applications, it supports Telegram, Discord, Slack, WhatsApp, Signal, LINE, iMessage, and Web.

Use cases Suitable for people who need to have agents collaborate across browsers, desktop applications, command line, and messaging channels to complete tasks; suitable for users who want to turn a single demonstration into a generalizable skill and automatically accumulate workflows in daily use. Official demos include: completing web research and generating a technical-style landing page with one message; sending a message from a phone to have the desktop convert a file to PDF and send it on Telegram; publishing a skill after one demonstration and replaying it in natural language; and triggering a six-stage pipeline with one prompt to complete real App Store browsing, install an app via iPhone mirroring, autonomously explore, compose a vertical video with FFmpeg, upload to YouTube, and clean up the device.

Limitations Understudy is currently developed and tested on macOS. Core functions such as the CLI, gateway, browser, and channels are cross-platform by design, but native GUI automation and demonstration teaching currently require macOS, and GUI backends for Linux and Windows are still planned. In the five-layer design, the first and second layers are implemented and usable, the third and fourth layers are partially implemented, and the fifth layer remains a long-term direction. In terms of models, it is not tied to a model and can be configured via provider/model. By default it uses openai-codex/gpt-5.4. The actually available models are subject to the built-in catalog of the current runtime and the local model registry.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools