Skip to content
Automation
Skill

/migrate-osworld-agent

Migrate an agent from upstream OSWorld into this OSWorld-V2 repository, add matching evaluation entrypoints, and verify the integration.

From plugin
longhorizon-harness
1.8k5 skills

Claude Code

$ npx -y skills add AMAP-ML/LongHorizon-Harness --skill migrate-osworld-agent --agent claude-code

SKILL.md

migrate-osworld-agent.SKILL.md
name: migrate-osworld-agent
description: "Migrate an agent from upstream OSWorld into this OSWorld-V2 repository, add matching evaluation entrypoints, and verify the integration."

Migrate OSWorld Agent

Use this when adding an upstream OSWorld agent to this repo.

Workflow

1. Read the upstream agent. 2. Read local patterns before editing:

  • use `scripts/python/run_multienv_claude.py` as the main runner reference
  • use `scripts/bash/run_multienv_claude.sh` as the shell entrypoint reference
  • if a similar local agent exists, use it only for interface shape
  • if none exists, derive the interface from the runner and `DesktopEnv`

3. Copy the agent into `mm_agents/` with a clear, non-conflicting name. 4. Adapt only the repo-facing interfaces:

  • `predict()` return shape
  • action dict fields consumed by `DesktopEnv.step()`
  • `ASK_USER` turns and follow-up user responses
  • done/fail markers
  • task current date
  • platform, screen, provider, and password settings

5. Add a matching multi-env Python runner under `scripts/python/run_multienv_<agent>.py`.

  • start from the closest retained runner structure
  • keep task loading, env recreation, checkpoint args, logs, and cleanup behavior
  • remove provider/model checks that only apply to the source runner

6. Add a small shell entrypoint under `scripts/bash/`.

  • use `uv run`

7. Keep unrelated agents, scripts, results, and local dirty files out of the change.

Verify

Run fast checks first.

  • Compile the new Python files.
  • Check shell syntax.
  • Check staged diff for whitespace.
  • Run local fake tests for:
  • action parsing
  • `ASK_USER`
  • user response returning to the agent
  • checkpoint argument parsing if touched

Then run one small real smoke test.

  • Use the intended provider.
  • Use a tiny step limit.
  • Prefer public IP for cloud providers when the local machine cannot reach private IPs.
  • Confirm the model call happens.
  • Confirm at least one environment action executes.
  • Confirm result files and trajectory are written.
  • Confirm cloud resources are cleaned up.

Before opening a PR, stage only the migration files and re-run the fast checks.

Read more
@amap-ml
Ships withlonghorizon-harness

The long-horizon computer-use harness. Run AI agents across desktop apps and the CLI for extended periods while preserving task state and making reliable progress on complex workflows. Features fresh-context execution, durable verified state, independent auditing, recoverable progress, and native Claude Code / Codex / OpenClaw integration.

Stars on GitHub

Momentum

stars in total
1.8k
Star history of AMAP-ML/LongHorizon-Harness on GitHub, a chart by star-history.com

Other skills on longhorizon-harness.

analyze-traj

analyze-traj

Analyze OSWorld-V2 agent trajectory logs and task results to produce actionable insights. Use this skill whenever the user wants…

More skills from other plugins.

agent-builder

agent-builder

Load immediately after an Agent intent, before the first agent_builder_* call. Governs how you create, configure, test, and…

n8n10d209k
@n8n-io@n8n-ioInstall Skill
browser-use

browser-use

Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also covers…

@browser-use@browser-useInstall Skill
agent-browser

agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling…

@vercel-labs-2@vercel-labs-2Install Skill
add-anydoc

add-anydoc

Add local office-document-to-Markdown conversion to NanoClaw agent containers with the pinned Firecrawl AnyDoc CLI. Use when…

@nanocoai@nanocoaiInstall Skill

Questions about migrate-osworld-agent.

Which coding agents can use migrate-osworld-agent?
migrate-osworld-agent installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.