MirrorGuard code
MirrorGuard code is a framework in the Awesome CUA catalog, last verified 2026-10-19. MirrorGuard pipeline that synthesizes risky and benign computer-use trajectories in a text-based GUI simulator, builds unsafe-to-safe thought corrections for training, and plugs the corrector into OSWorld-style agents.
Reviewed against a primary source.
What is this resource?
- Resource type
- Framework
- Environment
- Desktop, Linux
- Topics
- Safety & security, Data generation
- Evidence retrieved
- 2026-10-19
- Resource ID
- github:whitzardagent/mirrorguard
What licenses are recorded?
Code, training data, weights, and documents each have their own entry. A blank entry means the license is unknown.
- Code
- MIT (repository LICENSE header)
- Data
- Not recorded
- Document
- Not recorded
- Weights
- Not recorded
Recorded specifications
- availability
- Public synthesis, correction and dataset-preparation code with bundled train/test JSONL files and agent integration examples; the trained corrector is released separately on Hugging Face.
- repository revision
- 9c5fb812a126493c75b6adda757af3b680a24708
Explore related topics
Scope and limitations
Official WhitzardAgent code for the MirrorGuard paper. MirrorWorld task generation (task_generation/) and an LLM-driven GUI simulator (simulator.py) produce text-only trajectories; dataset_generation/safe_thought.py rewrites unsafe thoughts and prepare_dataset.py packages ShareGPT-style training files. The repository includes dataset_generation/train.jsonl (about 86 MB) and test.jsonl (2,439 lines, of which 16 are invalid standalone JSON), each holding a system prompt and a conversation. Integration examples cover replacement steering for a ReAct agent, prefilling steering for UI-TARS, and an Owl agent reference, written as OSWorld-style agent files; examples/shared/correction_runtime.py calls the deployed corrector through an OpenAI-compatible endpoint with the screenshot, history and original thought. The released MirrorGuard VLM is on Hugging Face. Unsafe-rate and OSWorld figures in the README are paper results; code was read.
Related resources
- documented by: MirrorGuard: Toward Secure Computer-Use Agents via Simulation-to-Real Reasoning Correction
Connected assets
These links come from reviewed resource records.
- Model variant: MirrorGuard checkpoint · Models and checkpoints · relationship evidence
Primary evidence and verification
Use the original publication or publisher page when citing claims about the resource.
- editorial primary review
Retrieved 2026-10-19T06:50:26Z. Supports: name, kind, summary, environments, topics, scope, notes, relations.
Content fingerprint
90ab7463e9d9c4d6c5e3b60acf385486ca1d9f09455aea0450b167406cfdf728 - editorial primary review
Retrieved 2026-10-19T06:50:27Z. Supports: identity, release_status, details.repository_revision, details.availability, notes.
Content fingerprint
211b758a19e3b00b79b57bdc8f3f649687aa955195f5714be25693ed693ceb0f - editorial primary review
Retrieved 2026-10-19T06:50:27Z. Supports: notes.
Content fingerprint
4c9079f876657bd3c2ff7d43629ab5e8d92eb14fa5132e422c28ff73e646c087 - editorial primary review
Retrieved 2026-10-19T06:50:28Z. Supports: summary, notes.
Content fingerprint
29a8e430e061f53a4ed958f1f48a7ebc5e6a5d7792cb65e423716da1946a4e23 - editorial primary review
Retrieved 2026-10-19T06:50:28Z. Supports: summary, notes.
Content fingerprint
9554149045ab49a83727510e159d7cea448ab97ba1d4853aa632b6796e4b5dbf - editorial primary review
Retrieved 2026-10-19T06:50:27Z. Supports: licenses.code.
Content fingerprint
8bb263819f9a6ee87b8c7bc6d058c3c4b1d338835006d5b5089f53560c2bc770 - license header
Retrieved 2026-10-19T06:51:27Z. Supports: licenses.code.
Content fingerprint
8bb263819f9a6ee87b8c7bc6d058c3c4b1d338835006d5b5089f53560c2bc770
Suggest a correction
Open a source-backed correction. Include this record ID and the original source. Read our editorial policy and coverage boundaries.