bash-quoting-rescue

by seanrobertwright · ★ 3 · updated 20 days ago

GuardsAutomationwarnings

0

Before a shell command runs, parses it with the shell's own parser and refuses one that does not parse, such as an unclosed quote or heredoc, so none of it runs.

install bash-quoting-rescue

Install

/plugin marketplace add seanrobertwright/claude-mods
/plugin install bash-quoting-rescue@claude-mods

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
tool.call
API calls
$.process.run$.session.surfaces
Can see
/"^(Bash|PowerShell)$"/ calls
Reach
level 2 of 3 runs processes

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/seanrobertwright/claude-mods
Path in repo
mods/bash-quoting-rescue
Source commit
9f77f9f the exact code the scan read
Author
@seanrobertwright
License
No license declared — ask the author before reusing code.
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

More from seanrobertwright/claude-mods

archon-panel

seanrobertwright/claude-mods

An Archon pane in the side panel: this project's workflow runs, their graphs and logs, and the approvals that wait on you.

★ 3PanesStatus lineCommands

auto-resume

seanrobertwright/claude-mods

When a turn dies on a rate limit (or an overloaded API), counts down to the reset and sends "continue" for you.

★ 3BandsStatus lineCommands

branch-guard

seanrobertwright/claude-mods

Before Claude commits or pushes on the default branch, asks you whether to create a branch first.

★ 3GuardsAutomation

chrome-tab-self-heal

seanrobertwright/claude-mods

When a Claude in Chrome tool says its tab is gone, tells Claude to fetch the current tab IDs before trying again.

★ 3Guards

dev-server-manager

seanrobertwright/claude-mods

A pane of the project's dev servers: start, restart and watch them, and fill a crash's error into the prompt.

★ 3PanesStatus lineGuards

env-guard

seanrobertwright/claude-mods

Asks you before Claude reads a .env or key file, and refuses when no one is there to answer.

★ 3ToastsGuards

github-panel

seanrobertwright/claude-mods

A GitHub pane in the side panel: the repo's open pull requests and issues; click one to open it in the browser, or fill /implement or /wayfinder with an issue. The issue a /wayfinder run works on is pinned at the top, with its next takeable ticket. A toast when your branch's pull request turns green or red, and a button that fills a fix on red.

★ 3PanesCommandsPrompt

hud

seanrobertwright/claude-mods

Two coloured, animated lines under the prompt, every figure named: model, effort, context window, rate limits, turn timer, tool calls, agents, git state, worktree, cost, session length and folder.

★ 3BandsReskinsGuards

lint-test-gate

seanrobertwright/claude-mods

Runs the project's checks from a band button, and before Claude's git commit, and hands back only the failures.

★ 3BandsGuards

mod-settings

seanrobertwright/claude-mods

A gear at the top right of each mod's pane opens one dialog for every claude-mods setting: pick a mod, change its settings, save.

★ 3PanesCommands

model-effort-presets

seanrobertwright/claude-mods

One press above the prompt switches the model and the effort together: a plan preset, an execute preset, or your own, also by /preset or when you send a mapped command.

★ 3BandsCommands

open-file-guard

seanrobertwright/claude-mods

Before Claude uses a Word, Excel or PowerPoint file you have open, asks you to close it instead of letting the write fail.

★ 3GuardsAutomation

Other mods in Guards, close to this one by stars.