omp packages

pi-readonly-mode1.0.0

Strict read-only mode extension for pi: blocks edit/write and destructive bash commands, toggled with /readonly or --readonly.

ryansupak Published 7 days ago MIT ~345 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

pi-readonly-mode

Strict read-only mode extension for pi.

While active it:

  • Limits the active tool set to read, bash, grep, find, ls, question.
  • Silently blocks edit and write tool calls.
  • Blocks bash commands matching destructive patterns (rm, mv, cp, sudo, git writes, package installs, redirects, editors, etc.).
  • Injects hidden guidance telling the model it may only inspect and analyze.
  • Shows a small READONLY status indicator.
  • Persists across sessions and resumes.

Install

pi install npm:pi-readonly-mode

Or try it for a single invocation without saving it:

pi -e npm:pi-readonly-mode

Use

  • Toggle during a session with /readonly.
  • Start a session read-only with pi --readonly.

The mode is persisted in the session, so resuming a session restores its state.

License

MIT