Skip to content
Back to skills

Osworld Reset

ASecurity

Reset the OSWorld environment. Soft mode clears step counter only. Hard mode calls DesktopEnv.reset() to revert to snapshot state.

  • 10 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 6, 2026
toolspython

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned June 6, 2026

npx -y skills add bdambrosio/Cognitive_workbench --skill osworld-reset --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Osworld Reset?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Osworld Reset
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bdambrosio-osworld-reset/badge)](https://www.skillsdirectory.com/skills/bdambrosio-osworld-reset)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: osworld-reset
type: python
description: "Reset the OSWorld environment. Soft mode clears step counter only. Hard mode calls DesktopEnv.reset() to revert to snapshot state."
schema_hint:
  value: "string ('soft' or 'hard')"
  mode: "string ('soft' or 'hard', alternative to value)"
  out: "$variable"
examples:
  - '{"type":"osworld-reset","mode":"soft","out":"$reset"}'
  - '{"type":"osworld-reset","value":"hard","out":"$reset"}'
---

# OSWorld Reset Tool (Level 4)

## Input
- `mode` or `value`: string (required) - "soft" or "hard"
  - `soft`: Clear step counter only, no state change
  - `hard`: Call DesktopEnv.reset() to revert environment to snapshot state

## Output
- Note ID (bound to `out` variable) containing:
  - `text`: formatted reset result
  - `format`: "text"
  - `metadata`: reset data including:
    - `success`: boolean - whether reset succeeded
    - `mode`: string - reset mode used
    - `step_counter`: integer - step counter after reset (0)

## Configuration
- `OSWORLD_URL` environment variable (defaults to `http://localhost:3002`)
- Or pass `osworld_url` in character config's `osworld_config` section

## Common Workflow
```json
{"type":"osworld-reset","mode":"hard","out":"$reset"}
{"type":"osworld-observe","out":"$obs"}
{"type":"osworld-execute","python":"pyautogui.click(100,200)","out":"$result"}
```

## Notes
- **Soft reset**: Only clears step counter. Useful for reflection without losing state.
- **Hard reset**: Reverts environment to snapshot state. Critical for counterfactual replay and reflection.
- Hard reset is the key reflection enabler - allows Jill to explore "what if" scenarios.

Files in this skill

  • Skill.md1.6 KB
  • tool.py2.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.