pkexec-guard

by Josh Kerr · ★ 0 · updated 10 days ago

ToastsGuardsvalidates

0

Routes sudo in Bash calls to a password prompt the person can answer: pkexec on a Linux desktop, an osascript administrator dialog on macOS, and Windows sudo's UAC prompt on Windows.

install pkexec-guard

Install

/plugin marketplace add joshkerr/claude-mods
/plugin install pkexec-guard@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
$.env.get$.process.run$.ui.toast
Can see
Bash calls
Reach
level 2 of 3 runs processesreads env varsdraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/joshkerr/claude-mods
Path in repo
pkexec-guard
Source commit
2467a03 the exact code the scan read
Author
Josh Kerr @joshkerr
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 joshkerr/claude-mods

herdr-statusline

joshkerr/claude-mods

A band above the prompt showing the herdr workspace and pane, the working directory, and the git branch with its dirty/ahead/behind state, on Linux, macOS and Windows.

★ 0BandsCommands

long-task-notifier

joshkerr/claude-mods

Shows a live timer for long-running Bash commands and background tasks, then toasts, chimes and sends a desktop notification when they finish, on Linux, macOS and Windows.

★ 0Status lineGuards