All Claude Code modschami1221-eng/my-ai-workbench
bash-rewrite
Rewrites Bash commands that a PreToolUse guard would deny (heredoc or python -c containing backslashes, cd followed by relative file names) into an equivalent form before the guard sees them. Forms it cannot rewrite safely pass through unchanged and are still stopped by the guard.
bash-rewrite reaches L2 (writes or runs) and passed claude plugin validate with warnings.
- Events hooked: 3
- API methods referenced: 9
- Access from classified calls: L2, writes or runs: writes files, reads env vars, persists state, draws
- Static scan, not a runtime test
To install it, open the repository and follow the author’s setup instructions. Mods need Claude Code 2.1.287 or later.
Access
L2 Writes or runswrites files, reads env vars, persists state, drawsValidation
Passed with warningsView the source on GitHub Back to the list
What the scan recorded
- Observed events
- Bash calls
- Hooks
session.start, command.run {command=bash-rewrite}, tool.call {tool=Bash}- API calls
$.clock.now, $.command.register, $.env.get, $.fs.write, $.session.cwd, $.store.get, $.store.set, $.ui.log, $.ui.toast- Validation
- Passed with warnings
- Scanned revision
797f047b5b3d
These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. What a mod can access and how the scan works.
More from chami1221-eng/my-ai-workbench
- hook-daemonAnswers heavy Python command hooks (PreToolUse / PostToolUse / Stop / UserPromptSubmit) from one resident pro…
- layer0-composeMoves the top-priority rule list (Layer 0) from per-turn UserPromptSubmit injection into the system prompt, w…
- prompt-bandShows up to three hints above the prompt: tools that have been running for a while (elapsed time), what a one…
- secret-maskRedacts tokens, API keys and passwords from every row that enters the conversation (tool results, hook contex…
- send-gateBefore an outbound message is drafted, scheduled or sent (email draft script, chat post, chat MCP tools), che…
- shot-peekWhen Claude reads an image from the Screenshots folder, shows its file name and capture time above the prompt…
Badge for your README
Authors can show the latest scan result in their README. Each badge links to this page.
[](https://mods.aidojo.si/mods/chami1221-eng--my-ai-workbench--bash-rewrite/)
[](https://mods.aidojo.si/mods/chami1221-eng--my-ai-workbench--bash-rewrite/)