claudecodex

worktree-guard

Hooks that keep edits out of a repository's main checkout: a PreToolUse ask-prompt on Edit/Write/NotebookEdit (deny on Codex apply_patch) targeting a main checkout, plus a SessionStart rule telling Claude to work in a git worktree.

1 on GitHubby cjthompsonv1.0.0MITupdated 13 days agodevelopment
/

Plugin worktree-guard from marketplace cjthompson-claude-code-config in cjthompson/claude-code-config. Commands read from the repo's manifest — 12 days ago.

This plugin runs code on your machine — its hooks fire automatically on events like tool use. The exact commands are listed below; read them before installing.

What it installs

Hooks (2)

  • PreToolUse

    /usr/bin/python3 "${CLAUDE_PLUGIN_ROOT}/hooks/worktree-guard.py" pre-tool-use

  • SessionStart

    /usr/bin/python3 "${CLAUDE_PLUGIN_ROOT}/hooks/worktree-guard.py" session-start

View source on GitHub

More from cjthompson/claude-code-config

All 12 plugins →

project-tasks

claudecodex

Capture tasks inline with task:/fix:/todo:/plan: prefixes, store in SQLite, group work under plans, dispatch to subagents, and auto-generate changelogs.

1 skill · 12 commands

1

Deep TypeScript production guidance for testing, tooling, modules, packaging, and type-system work.

6 skills · LSP

1

command-watchdog

claudecodex

Shared Claude Code and Codex shell watchdog with mandatory lowest CPU priority; stops idle, overlong, orphaned, or stalled wait-loop tasks.

5 commands · hooks

1

Deep Python production guidance for testing, project tooling, concurrency, and type-system work.

6 skills

1

lean-agents

claudecodex

Reduced-toolset sub-agent profiles (read-only, lean-executor, standard-executor, main, full-executor) that lower System-tools token overhead vs. spawning the default agent. Pair with project-tasks, which dispatches to these agents by name.

5 agents

1

python-scripting

claudecodex

Low-context guidance for safe one-off Python helpers, typed scripts, lightweight quality checks, and zero-dependency macOS utilities.

4 skills · LSP

1

Similar plugins

superpowers

claudecodex

Core skills library for Claude Code: TDD, debugging, collaboration patterns, and proven techniques

15 skills · hooks

obra/superpowers 316,836

CMEM Pro

claude

CMEM Pro for the Claude app - hooks stream tool use to cmem.ai and inject observations into new sessions and agents

3 skills · 1 MCP server · hooks

thedotmack/claude-mem 116,618

context7

claudecodex

Up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your coding agent's context.

1 MCP server

upstash/context7 64,709

mempalace

claudecodex

AI memory system — mine projects and conversations into a searchable palace. 47 MCP tools, auto-save hooks, guided setup.

3 skills · 6 commands · 1 MCP server · hooks

MemPalace/mempalace 60,536

Build powerful, stateful CLI interfaces for any GUI application using the cli-anything harness methodology.

5 commands

HKUDS/CLI-Anything 58,665

Automates browser interactions for web testing, form filling, screenshots, and data extraction

12 skills

vercel-labs/agent-browser 50,373

Maintain worktree-guard?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex plugins12 plugins