migrate-osworld-agent

migrate-osworld-agent is a skill for Claude Code from AMAP-ML/LongHorizon-Harness. It costs 33 tokens per session (495 once invoked), scanned A, original, MIT.

A guide for bringing an AI agent from the original OSWorld project into the OSWorld-V2 codebase. It covers adapting the agent, adding runners, and checking that it works with the local evaluation environment.

In plain words
What is it for?
Use it when adding an upstream OSWorld agent, creating its Python and shell launchers, adapting its actions, or verifying multi-environment execution.
Why use it?
It defines the repository-specific interfaces the imported agent must follow, reducing integration mistakes and preserving task loading, logs, checkpoints, and cleanup.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when adding an upstream OSWorld agent, creating its Python and shell launchers, adapting its actions, or verifying multi-environment execution.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/amap-ml/longhorizon-harness/migrate-osworld-agent
About the project

LongHorizon-Harness is a computer-use harness that lets AI agents continue work across desktop applications and the command line for extended periods by planning, acting, verifying, checkpointing, and recovering. It is for users who need Claude Code, Codex, OpenCode, or DeepSeek Harness to make reliable progress on complex long-running workflows without training a new model. The catalogue entries provide skills for operating this execution loop.

AMAP-ML/LongHorizon-Harness · 1,492 stars · on GitHub · lh-harness.pages.dev

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AMAP-ML/LongHorizon-Harness --skill migrate-osworld-agent
Clone the repo
git clone --depth 1 https://github.com/AMAP-ML/LongHorizon-Harness

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for migrate-osworld-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/amap-ml/longhorizon-harness/migrate-osworld-agent/github.svg)](https://agentmods.dev/skills/amap-ml/longhorizon-harness/migrate-osworld-agent)
Your own site
<a href="https://agentmods.dev/skills/amap-ml/longhorizon-harness/migrate-osworld-agent"><img src="https://agentmods.dev/badge/skills/amap-ml/longhorizon-harness/migrate-osworld-agent/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for migrate-osworld-agent

Your own site · 80×15
<a href="https://agentmods.dev/skills/amap-ml/longhorizon-harness/migrate-osworld-agent"><img src="https://agentmods.dev/badge/skills/amap-ml/longhorizon-harness/migrate-osworld-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 495 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.00495
Opus 5 $0.00016 $0.00247
Sonnet 5 $0.00007 $0.00099
Haiku 4.5 $0.00003 $0.00049

Measured 12d ago against content hash 597ace848f61, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

migrate-osworld-agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

eval/OSWorldv2-harness/OSWorld-V2/.claude/skills/migrate-osworld-agent/SKILL.md · 58 lines

What it actually says

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.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 58 lines · 33 tokens per session scan A 597ace848f61

Subscribe to this mod's changes

migrate-osworld-agent is a skill published in the GitHub repository AMAP-ML/LongHorizon-Harness (1,492 stars, last pushed 22d ago), licensed MIT. It adds 33 tokens to every session and 495 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

open-code-review

Performs AI-powered code review on Git changes using the ocr CLI from alibaba/open-code-review. Use when the user asks to review code, review a pull request, review staged/unstaged changes, review a commit, or compare branches for code quality issues. Produces line-level review comments and can automatically apply…

alibaba/open-code-review · 98 tokens

harness-creator

Build, audit, and improve harnesses that make AI coding agents reliable: AGENTS.md/CLAUDE.md instruction files, feature/state tracking, verification gates, scope boundaries, session handoff, memory persistence, context budgets, tool-permission safety, and multi-agent coordination. Use this whenever a coding agent is…

walkinglabs/learn-harness-engineering · 142 tokens

remote-claude-code

Run Claude Code on a remote host over SSH — a persistent expect-driven login session, headless claude -p with the stdin fix, the interactive TUI inside a remote tmux driven by send-keys/capture-pane (one keystroke at a time, capture-verified; relayed user messages go through verbatim), and multi-turn continuity via…

Prism-Shadow/penguin-harness · 107 tokens

web-design

Penguin visual language for generated web pages and app UIs — GitHub-style simplicity with a single blue accent, light and pure-black dark themes, design tokens, component and chat-interface recipes, plus an opt-in warm paper editorial theme.

Prism-Shadow/penguin-harness · 51 tokens

agent-optimization

Improve an Agent State through versioned scores and score-linked Traces from a frozen Benchmark.

Prism-Shadow/penguin-harness · 22 tokens

agent-evaluation

Run one specified Test Agent on one specified Benchmark Case exactly once, privately score that execution, and return one protocol result.

Prism-Shadow/penguin-harness · 28 tokens