By patiently
Anti-tangent MCP server companions: the anti-tangent-protocol on-demand protocol plugin, the bm-scribe Basic Memory note-writing plugin, and I/O-delegation hooks (anti-tangent-shunt for bulk reads, anti-tangent-guard for task-session and completion enforcement and comment hygiene, which also refuses a dispatched implementer's edits before validate_task_spec (and, opted in, any session's) and Edit/Write calls that add comments carrying change history).
npx claudepluginhub patiently/anti-tangent-mcpOn-demand loader for the anti-tangent-mcp drift-protection protocol. A description-triggered skill that loads only the role-scoped part of the protocol an agent actually needs — keeping the always-loaded footprint to one line, and the on-demand read to roughly half of what a single combined document would cost. Also ships the investigate skill, which turns a reported error or production incident into an approved bug-fix brief, and the test-value and debugging rules under rules/ for review tooling to read.
Claude Code plugin that writes Basic Memory notes per v0.7.0 project-knowledge conventions and the BM v0.21.1 three-step permalink-canonicalization pattern.
Routes I/O-heavy implementer work to a cheap worker model through anti-tangent-mcp. PreToolUse hooks block oversized full-file reads and redirect them to the bulk_read MCP tool, so a large file corpus never enters the implementer's context.
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).
7-day visitors to each marketplace page
An advisory MCP server that fights agent drift. Implementing subagents call three lifecycle tools — validate_task_spec, check_progress, validate_completion — and a reviewer LLM (Anthropic, OpenAI, or Google) returns structured findings against the task's acceptance criteria.
The reviewer is intentionally a different model than the implementer, so reviews are not blind to the implementer's blind spots.
go install github.com/patiently/anti-tangent-mcp/cmd/anti-tangent-mcp@latest
Or grab a pre-built binary from the releases page. Or pull the container image:
docker pull ghcr.io/patiently/anti-tangent-mcp:latest
If your host is Claude Code or opencode, you can paste the matching prompt below into a fresh session and the agent will fetch the latest release binary, register the MCP, and set up the protocol so it loads on demand (Claude Code installs the anti-tangent-protocol plugin; opencode wires a slim pointer). Only core.md plus the part matching the agent's role loads — not on every call, and only when a task carries a Goal/Acceptance-criteria header, or a controller has just finished a multi-task plan run and needs to call plan_run_report. The prompts resolve "latest" from the GitHub API, so they don't need to be edited each release.
These prompts target Linux and macOS. Windows users should follow the manual install above and adapt the steps to their host's MCP config format.
Pick the host you use:
Install the latest anti-tangent-mcp release on this Linux/macOS machine and
wire it into Claude Code. Do all of the following, reporting progress after
each step and stopping on any error. NEVER echo the value of any API key in
your reports — redact to `***` whenever a step would otherwise print one.
1. Detect this machine's OS and arch (`uname -s`, `uname -m`). Map to one of
Linux_x86_64, Linux_arm64, Darwin_x86_64, Darwin_arm64. If the host is
Windows, stop and tell me to use the manual install instead.
2. Look up the latest release tag from
https://api.github.com/repos/patiently/anti-tangent-mcp/releases/latest
(`tag_name` is shaped like `v0.5.0`; strip the leading `v` to get VERSION).
3. Download `anti-tangent-mcp_${VERSION}_${OS}_${ARCH}.tar.gz` from the release
assets and extract the `anti-tangent-mcp` binary to
`~/.local/bin/anti-tangent-mcp`. `mkdir -p ~/.local/bin` first; `chmod +x`
after extraction. Run `~/.local/bin/anti-tangent-mcp --version` and confirm
it prints VERSION.
4. If `~/.local/bin` is not on my PATH, tell me the one-line export to add to
my shell profile (do not edit my dotfiles yourself). Continue with the
absolute path regardless.
5. Register the MCP server at user scope so it applies across all projects:
claude mcp add anti-tangent ~/.local/bin/anti-tangent-mcp -s user
Verify with `claude mcp list`.
6. The server needs at least one reviewer key. Ask me which of
ANTHROPIC_API_KEY / OPENAI_API_KEY / GOOGLE_API_KEY to use. If I want
Claude Code to inherit it from my shell env, leave the registration as-is
and remind me to export the variable from my shell profile. Otherwise
re-register with `-e KEY=VALUE` so the key lives in Claude Code's MCP
config instead of my shell env. Do not print the value back in any
subsequent report.
7. Install the anti-tangent-protocol plugin — it carries the drift-protection
protocol as an on-demand skill. Its one-line description is the only
always-loaded footprint; only `core.md` plus the part matching the agent's
role loads, and only when a task has a Goal/Acceptance-criteria header or a
controller has just finished a plan run. This replaces the old always-inlined
INTEGRATION.md import (do NOT write INTEGRATION.md into ~/.claude/):
claude plugin marketplace add patiently/anti-tangent-mcp
claude plugin install anti-tangent-protocol@anti-tangent-mcp
Verify with `claude plugin list`. Migration (if I previously installed the
old way): so the protocol is not double-loaded alongside the plugin, delete
the old `@`-import of `anti-tangent.md` from `~/.claude/CLAUDE.md` (the line
under `## Active integrations`, and the heading if it is now empty), and
delete the `~/.claude/anti-tangent.md` mirror file.
8. Optional: install the bm-scribe companion plugin (available since
anti-tangent-mcp v0.7.1). It wraps the standard `basic-memory` MCP tools with
skills that enforce the v0.7.0 project-knowledge layout and the BM v0.21.1
three-step permalink-canonicalization pattern. Ask me whether to enable it.
If yes (the marketplace was already added in step 7):
claude plugin install bm-scribe@anti-tangent-mcp
Verify with `claude plugin list`. Tell me to set `BM_SCRIBE_PROJECT` (and
RuFlo Marketplace: Claude Code native agents, swarms, workers, and MCP tools for continuous software engineering
Directory of popular Claude Code extensions including development tools, productivity plugins, and MCP integrations
Plugins with agents, skills, and commands for Claude Code and six other coding tools. Local plugins are maintained as one Markdown source and adapted to each tool.