read-only-mode
Reviewed
at commit 39335b2
Toggle a reminder guard that refuses built-in mutating tools and Bash.
0 upvotes
Log in to upvote or save- Made by
- Yash Thakker
- Pinned commit
-
39335b2d1e5885573fabbb98ef2dd4c49f011f86 - What we checked
-
Adds a /read-only-mode command with a switch that, while on, refuses every Edit, Write, NotebookEdit and Bash call and tells Claude to ask you to turn it off. It is off by default and resets each session. MCP tools and other mods are not covered; nothing is sent or stored.
Review details
Static review of the source at the pinned commit; not run. Registers session.start (registers the /read-only-mode command), command.run (opens the pane), tool.call filtered to Edit, Write, NotebookEdit and Bash (returns a deny result with an explanation while the in-memory flag is on, otherwise passes the call on, and counts refused calls) and ui.render for its own Pane. Only the tool name is used; tool input is not read. The state is in memory only, so the guard is off at every start. The tool.call registration is chained with .catch(...) that would deny on failure; since on() may not return a promise, this chain could fail at load in some runtimes, which would be a functional bug rather than a safety issue (not run to confirm). No network, file, process or model calls. No npm dependencies.
- What it uses
-
- Reads your prompts: no
- Sees tool calls: yes
- Blocks or changes tool calls: yes
- Reads or writes files: no
- Runs programs on your machine: no
- Calls the model (uses tokens): no
- Sends data over the network: no
- Stores data: no
- Shows something on screen: yes
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/read-only-mode/)