bash-quoting-rescue

by seanrobertwright · ★ 1 · updated yesterday

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
b5b342b 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

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.

★ 1BandsStatus lineCommands

branch-guard

seanrobertwright/claude-mods

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

★ 1GuardsAutomation

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.

★ 1Guards

env-guard

seanrobertwright/claude-mods

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

★ 1ToastsGuards

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.

★ 1PanesCommandsPrompt

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.

★ 1BandsReskinsGuards

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.

★ 1BandsGuards

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.

★ 1PanesCommands

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.

★ 1BandsCommands

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.

★ 1GuardsAutomation

outputs

seanrobertwright/claude-mods

A pane listing the files this session has made or changed, newest first; click one to open it.

★ 1PanesGuardsCommands

post-merge-cleanup

seanrobertwright/claude-mods

/cleanup after a PR merges: switch to the default branch, pull, and delete the merged branch and its worktree, after one confirmation.

★ 1ToastsCommands