@crooycom/pi-read-only
Read-only mode for Pi — question & discussion mode with no side effects
Package details
Install @crooycom/pi-read-only from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@crooycom/pi-read-only- Package
@crooycom/pi-read-only- Version
0.1.1- Published
- Oct 2, 2026
- Downloads
- 285/mo · 15/wk
- Author
- crooycom
- License
- MIT
- Types
- extension
- Size
- 14.5 KB
- Dependencies
- 0 dependencies · 4 peers
Pi manifest JSON
{
"extensions": [
"./extensions/*.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-read-only
Read-Only mode for Pi — a read-only question & discussion mode.
When active, every user message is treated as a question, request for explanation, or point of discussion. The agent researches freely but never makes any changes.
Features
/read-only— toggle on/off (/readonlyis an alias)/read-only on//read-only off— explicit controlpi --read-only— start a session in Read-Only mode- Status bar shows
📖 read-onlywhile active [read-only]widget above the editor- Persists across
/reload, resume, and fork - Tool enforcement:
edit/writeremoved,bashrestricted to reads
Detection API for other extensions
Read-only mode exposes a global API that other extensions can check:
// Check if read-only mode is active
const ro = (globalThis as any).__PI_READ_ONLY;
if (ro?.enabled) {
// Don't perform destructive operations
}
// Subscribe to changes
const unsub = ro?.on("change", (enabled: boolean) => {
console.log("Read-only mode is now", enabled ? "ON" : "OFF");
});
// Clean up listener when done
unsub?.();
Install
From npm:
pi install npm:@crooycom/pi-read-only
Or straight from git:
pi install git:tangled.org/crooy.tngl.sh/pi-read-only
Then run /reload in Pi.
Structure
pi-read-only/
├── package.json # pi package manifest
├── extensions/
│ └── read-only.ts # the extension
└── README.md