auto-mode
Reviewed
at commit 9a763c8
New version, not yet reviewed
Enhancements for Claude Code auto mode
0 upvotes
Log in to upvote or save- Made by
- Ben Drucker
- Pinned commit
-
9a763c857f6d9473cdcb45b1dba647f0b91bd515 - What we checked
-
Watches each tool call and passes a record of the tool name, the permission verdict (decision, rule, reason, setting, decider, ceiling), the timing, whether the tool was read-only and the outcome to the separate mod-events plugin it depends on, plus a record for each server-side tool the API ran. It never changes a decision or a tool call. What happens to the records depends on mod-events.
Review details
Static review of the source at the pinned commit; not run. Delta review of the changes since 3b9154b; the rest carries over from the review at that commit. Hooks: session.start, tool.check, tool.call, turn.step. Calls $.modEvents.emit with mod name, tool_use_id, agent id, tool name, whether the tool is interactive, the engine's decision, rule, hook and reason, timings (via $.clock.now) and outcome; for server tools it emits id, name, turn id, step and timings. New in this version: the verdict record also keeps the engine's setting, decider and ceiling fields, and the tool.call record adds them plus a read_only flag taken from the tool result's isReadOnly boolean. Tool inputs and outputs are still not included. Both tool hooks pass the engine's result through unchanged and have a catch that lets the call proceed on failure; errors from the tool call are rethrown. No network, file, process or env access in this code. Not reviewed: the mod-events plugin (declared dependency in plugin.json), where the emitted records are stored or sent.
- What it uses
-
- Reads your prompts: no
- Sees tool calls: yes
- Blocks or changes tool calls: no
- 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: no
- Hooked events
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/auto-mode/)