Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By patientlyv0.8.1MITIn 1 marketplace
Five hooks enforcing anti-tangent-mcp's conventions (six registrations: the stop check is registered on both Stop and SubagentStop). A PreToolUse hook on Edit/Write/NotebookEdit refuses a dispatched implementer's first edit until validate_task_spec has been called; with ANTI_TANGENT_EDIT_GATE=subagents or all (off by default) it refuses edits to project files in every subagent, or every session including the main one, until that session has made its own successful validate_task_spec call, exempting paths outside the project root (CLAUDE_PROJECT_DIR, else the session cwd) and ANTI_TANGENT_EDIT_GATE_EXEMPT globs (default docs/**/*.md). Under the same switch, a Stop/SubagentStop hook asks a session to call validate_completion before it stops when its validate_task_spec opened a task it has edited and nothing closed, once per stretch of edits. A PostToolUse hook on TaskUpdate mandates the validate_completion gate when a protocol task closes, blocks a full-protocol close whose completion ran with no task session, and, when the evidence that call submitted adds comments carrying change history, returns a blocking instruction to reopen and fix — reading the submitted diff, or a final_files completion through git, which reports nothing for work already committed. It detects rather than prevents: PostToolUse fires after the state change. A PreToolUse hook on Edit/Write refuses such a comment before it is written. A second, optional tier reads the whole touched comment block semantically when ANTI_TANGENT_JEV=1 and a TYPESAFE_API_KEY is present, refusing the write when TypeSafe's Jev reads it as change history the pattern tells missed. A PostToolUse hook on Edit/Write/NotebookEdit asks a task once for a check_progress call when it reaches ten edits since validate_task_spec without one; it refuses nothing. Set ANTI_TANGENT_TICKET_PATTERN to your tracker's key shape to have tracker keys caught. Kill switches: ANTI_TANGENT_SESSION_GUARD=0 (fingerprinted start gate and no-session close rule), ANTI_TANGENT_COMPLETION_GUARD=0 (TaskUpdate completion gate only), ANTI_TANGENT_COMMENT_GUARD=0 (comment scan, both hooks), ANTI_TANGENT_PROGRESS_GUARD=0 (progress reminder), ANTI_TANGENT_STOP_GUARD=0 (stop check only).
Trending plugins
7-day copy clicks
Run automatically on Claude Code events. Claude doesn't decide.
1 caution to review before installing
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Five hooks enforcing anti-tangent-mcp's conventions. Four are on by default: a PostToolUse hook that
mandates the validate_completion gate at task close, blocks a full-protocol
close that ran with no task session, and detects when submitted diffs add
comments carrying change history; a PreToolUse hook on Edit/Write/
NotebookEdit that refuses a dispatched implementer's first edit until
validate_task_spec has been called; a PreToolUse hook that prevents
such comments from being written in the first place; and a PostToolUse hook
on Edit/Write/NotebookEdit that asks a task, once, for a
check_progress call when it reaches ten edits without one.
Two more behaviours are off by default and turned on together by one switch,
ANTI_TANGENT_EDIT_GATE (off, subagents or all): the start gate widens into an
edit gate covering every subagent, or every session including the main one, and the
fifth hook, on Stop and SubagentStop, adds a stop check that asks a session to close
the task it opened before it stops, blocking the stop once per stretch of edits. They exist for a spec-driven workflow with no plan, where no
TaskUpdate ever fires. See "Edit gate (opt-in)" and "Stop check (opt-in)" below.
Four of its hooks are active with no configuration step. As soon as it is
installed, every TaskUpdate call is watched for the completion gate, every
Edit/Write/NotebookEdit call inside a dispatched subagent is watched for
the start gate, and every Edit/Write call is intercepted for the write-time
comment-hygiene scan, and each of those edits is counted toward the progress
reminder — there is nothing further to turn on. The Stop/SubagentStop hook is
registered too, but with ANTI_TANGENT_EDIT_GATE unset it exits before reading its input.
PostToolUse fires after the tool call it matches has already run — the
task's status is already completed by the time this hook sees the event. It
cannot prevent the close. What it does is post-close detection plus a
mandated recovery flow: exit 2 returns the hook's stderr to the model as
something it must address before its next action, without refusing a state
change that may well be correct. A PreToolUse hook could block the close
outright, but could not see the subagent's pasted summary_block, which only
exists in the result of the very call being closed.
The hook enforces the gate this way — as an installable plugin hook, not as
logic inside the MCP server — deliberately. anti-tangent-mcp's server is
advisory: it never blocks a caller (see the root CLAUDE.md, "What This Repo
Is Not"). Enforcement, where a project wants it, lives here instead.
The hook watches for a TaskUpdate whose tool_input.status is completed.
Every other tool call, and every other status, is a silent no-op (exit 0).
For a matching close, the hook scans the transcript window for this task (see
"Window scoping" below) for two possible pass signals: a direct
mcp__anti-tangent__validate_completion tool call, or an anti-tangent envelope / session_id: summary block, tagged tool: validate_completion,
pasted into a tool_result (this is how a subagent's report of running the
gate becomes visible from the controller's own transcript). It blocks
(exit 2) in exactly four cases:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub patiently/anti-tangent-mcp --plugin anti-tangent-guardPlugins from other owners that cover similar ground