agentleFS
IgorGanapolskyIgorGanapolsky/mac-yolo-safeguards/.cursor/rules/no-desktop-hijack.mdc

mac-yolo-safeguards / rules

Cursor rule3 starsChanged 3 days agoMITView on GitHub

NEVER drive Igor's interactive Chrome, steal macOS focus, or use Computer Use unless he explicitly asks in that turn.

The file

Files
no-desktop-hijack.mdc
---
description: NEVER drive Igor's interactive Chrome, steal macOS focus, or use Computer Use unless he explicitly asks in that turn.
alwaysApply: true
---

# No desktop hijack (hard rule)

**Default:** CLI, API, SSH, `adb`, headless Docker Playwright only. Igor's daily-driver Mac stays usable. **Interactive Chrome on the daily driver is forbidden.**

**Explicit opt-in required in the same user message.** Accept phrases like: `use my Chrome`, `drive my Chrome`, `open Chrome for me`, `use Computer Use`, `take over my browser`. If Igor did not say one of these (or equivalent), **stop** and use headless/API paths instead.

**NEVER without that explicit opt-in:**

- `osascript` / AppleScript driving **Google Chrome** (activate, quit, front window, JS injection)
- `drive-logged-in-chrome`, `use-existing-browser-sessions`, `web-browsing-with-computer-use`, or any skill that opens/focuses his Chrome
- Cursor **Computer Use**, headed Playwright (`headless: false`), browser MCP / CDP on Igor's daily-driver profile
- `com.hermes.chrome-cdp` install/heal or CDP against port 9222 on the daily driver
- `install-browser-bridge.sh --profile=daily` (quits Chrome)
- `cursor-ide-browser` lock/click/type on Igor's logged-in tabs

**Prefer (in order):** `gh`, Play Developer API, ASC API / `asc-cli` (`.p8`), Gmail API/MCP, Stripe CLI, `adb`, SSH to Mac mini (`100.94.135.78`), headless Playwright in Docker or `~/.hermes/chrome-cdp-profile` only after opt-in.

**Opt-in gate:** set `HERMES_ALLOW_INTERACTIVE_CHROME=1` only when Igor explicitly asked for browser control in **that same message**. Never set it proactively.

Canonical: [AGENTS.md](../../AGENTS.md) § No desktop hijack · [docs/HEADLESS-BACKGROUND-OPS.md](../../docs/HEADLESS-BACKGROUND-OPS.md) · [docs/NO-DESKTOP-HIJACK.md](../../docs/NO-DESKTOP-HIJACK.md)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.