@ekil9/pi-readonly
Readonly mode for pi — disables edit/write tools and blocks high-risk bash commands
Package details
Install @ekil9/pi-readonly from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@ekil9/pi-readonly- Package
@ekil9/pi-readonly- Version
1.0.0- Published
- Jun 1, 2026
- Downloads
- not available
- Author
- likelz
- License
- unknown
- Types
- extension
- Size
- 7.5 KB
- Dependencies
- 0 dependencies · 2 peers
Pi manifest JSON
{
"extensions": [
"./extensions"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-readonly
Readonly mode extension for pi.
Toggle with /readonly. While enabled:
- Built-in
editandwritetools are disabled - High-risk bash commands are blocked as a safety net (rm, mv, cp, chmod, chown, sudo, redirects, git write operations, package installs, etc.)
- Bash remains available for read-only inspection commands
Install
pi install git:github.com/ekil1100/pi-readonly
Or add to your settings:
{
"packages": ["git:github.com/ekil1100/pi-readonly"]
}
Usage
/readonly # toggle readonly mode on/off
/readonly on # enable readonly mode
/readonly off # disable readonly mode (restores previous tools)
When readonly mode is active, a mode:readonly status indicator appears in the footer.