# readonly-guard

Three-mode, per-session tool guard for Ulpi: read-only (writes blocked; inspection tools plus single allowlisted read-only shell commands), plan.

- Type: Plugin
- Version: 3.8
- Updated: 22 Nov 2026
- Publisher: mciocchi
- Category: Desktop

[Contact us](https://www.ulpi.io/en/support#contact)

## What it does

Three-mode, per-session tool guard for Ulpi: read-only (writes blocked; inspection tools plus single allowlisted read-only shell commands), plan (the same, plus the plan markdown), and writable. Switched from the status bar, /readonly, the dashboard API, or — in the Desktop app — three contributed keybinds (Ctrl+Alt+R read-only, Ctrl+Alt+P plan, writable left unbound), which appear in Settings -\> Keybinds under Session and are rebindable there; keybinds are desktop-only, because the registry belongs to the desktop renderer.

A session that is never switched follows a configurable default (read-only). Disclosure — registers a pre_tool_call hook that can block any tool call, and fails closed when the hook raises; writes \<ULPI_HOME\>/readonly-guard.state (session -\> mode) and plugins.entries.readonly-guard.settings.default_mode; a writable lease expires after writable_expiry_minutes (30 by default) minutes without a message from the user, the expiry is latched (a later message does not revive it), and a turn that is already running is never interrupted; in read-only and plan modes it runs single, allowlisted, read-only shell commands through terminal (a speed bump, not a sandbox; on Windows those run under Git Bash); no network calls, no environment variables, no Python dependencies.

## Review notes

What an owner reads and accepts before the install is approved.

- Ulpi has not reviewed this version: it is listed in the public plugin catalog, and the install still fetches it at its pinned commit, checks its shape and scans it before you approve

## More in Desktop

- [reasoning-switch](https://www.ulpi.io/en/marketplace/plugins/reasoning-switch): Rotate the focused session reasoning effort from the status bar.
- [Receipts](https://www.ulpi.io/en/marketplace/plugins/receipts-d6439a): Your agent says it's done.
- [Rehearse](https://www.ulpi.io/en/marketplace/plugins/rehearse): Practise any interview or talk out loud: job, technical, case, admission, visa, medical, media and podcast interviews, presentations, investor and sales pitches.

[All listings →](https://www.ulpi.io/en/marketplace) · [Publisher's guide →](https://www.ulpi.io/en/docs) · [Report a problem →](https://www.ulpi.io/en/security#report)
