claudecodemods.dev

All mods / thieung/claude-mods

worktree-guard

CAUTION

★ 0 by Thieu Nguyen Repository ↗ Mod source ↗

Safety & guards Git Code quality

Description

Guards a shared worktree: stops `git add -A` from staging files this session did not touch, previews destructive git commands, and points at the process holding a busy port.

What it can do

Reach level 2 — writes or runs What does this mean? →

other: $.state.getother: $.state.setruns processesdraws

Can see: every tool call · Bash calls

Raw API calls (13) +
  • $.command.register
  • $.process.run
  • $.session.cwd
  • $.session.id
  • $.state.get
  • $.state.set
  • $.ui.ask
  • $.ui.close
  • $.ui.log
  • $.ui.open
  • $.ui.panes
  • $.ui.resolve
  • $.ui.toast

Static check passed on Claude Code 2.1.295.

Install

$/plugin marketplace add thieung/claude-mods
$/plugin install worktree-guard

Check the repo for the exact name.

Details

Repository
thieung/claude-mods
Path in repo
worktree-guard
License
MIT
Last updated
Oct 5, 2026
First seen
Oct 10, 2026
Last scanned
Oct 10, 2026

Related mods — reach level 2

Capability data is machine-generated by static analysis and may be incomplete. A SAFE badge is not a guarantee — read the code before installing anything with broad access. Not affiliated with Anthropic.

Found a mistake in this listing or verdict? Report an issue →