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 88plugFSL-1.1-ALv2In 1 marketplace
Detects when Claude drifts away from your active output contract (a terse persona, hard formatting/length rules, an in-character voice) and quietly steers it back. Each assistant turn is scored by a deterministic, dependency-free engine; a status-line badge shows live drift and the next prompt gets a one-shot correction nudge when the previous reply broke contract.
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
claude-code, claude, anthropic, ai, llm, ai-agents, developer-tools, automation ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code + Grok drift detection plugin — scores every assistant turn against your output contract and steers the LLM back when instruction-following erodes.
Drift Detector is a Claude Code plugin and MCP server for drift detection and LLM guardrails. You set a contract — terse persona, hard length/format rules, in-character voice — and the deterministic, dependency-free engine scores every assistant turn for how far it wandered. A status-line badge shows live drift. The next prompt gets a one-shot correction nudge only when the previous reply broke contract. It never touches session reliability.
Built for AI agents, productivity workflows, and automation where instruction-following must hold across long Claude sessions — persona work, compressed-output modes, strict formatting, and in-voice scripts that cannot break character.
/plugin marketplace add 88plug/claude-code-plugins
/plugin install drift-detector@88plug
grok plugin marketplace add 88plug/claude-code-plugins
grok plugin install drift-detector@88plug --trust
Then enable the status-line badge (the one piece a plugin manifest can't auto-wire):
bash "$(/plugin path drift-detector)/install.sh"
install.sh is idempotent. It merges the badge into ~/.claude/settings.json, composes with any existing statusline, and writes a timestamped backup.
Set a contract, work a few turns, then check drift:
> from now on answer in caveman style: terse, no preamble, no hedging
> /drift-detector:status
You see a live score and verdict, e.g. caveman | 12% | ok. When a reply relapses into "Certainly! I'd be delighted to walk you through this powerful, seamless solution…", the badge flips to DRIFT 98% and your next turn is quietly reminded to tighten up.
[!NOTE] F1=0.9973 on a 1,283-entry real corpus (fp=0, tp=375, fn=2, tn=906). 190-session synthetic eval: 100% accuracy, FP=0. Adversarial suite (37 cases targeting latent FP/FN patterns) included. A detector that cries wolf on clean work is worse than useless — the FP=0 constraint held across every tuning lap.
You set a strong output contract. Over a long session the model erodes it. Drift is easy to feel and hard to name. The detector turns "it stopped listening" into a number you can see, then acts on it for you — occasionally and proportionally, not every turn.
Use it when you need developer-tools-grade guardrails on Claude: AI coding with strict format rules, multi-agent pipelines, or any CLI workflow where persona and length must stick.
| Feature | What it does |
|---|---|
| Per-turn scoring | Deterministic 0–100 drift score on every Stop |
| Morin trajectory | Drift as a vector — velocity and trend, not just level; tolerates self-correcting blips, catches slow climbs |
| Repeating-spike detection | Flags oscillating relapse that looks adaptive turn-by-turn but is degenerative as a cycle |
| DCD pipeline | Deferred Correction Detection: scans N+1…N+10 for user correction follow-ups; improves recall on delayed feedback |
| Rule + DCD scoring | Stop-hook runtime: rule engine + drift-control detector (ExtraTree is eval-only, not the live hook) |
| Live badge | Status-line segment; composes with your existing statusline |
| One-shot nudge | Correction reminder only when drifted, on a cooldown — never nags |
| Profiles | caveman, strict-instructions, persona, plus your own |
| MCP tools | drift_status, drift_recent, drift_explain, drift_list_profiles, drift_set_profile |
| Commands | /drift-detector:status, report, profile, reset, debug, calibrate |
Tuned through 21 scientific-method rounds on a 1,283-entry real corpus from production sessions:
| Round | F1 | Notes |
|---|---|---|
| R0 | 0.21 | Baseline |
| R18 | 0.633 | 22-feature LR classifier |
| R19 | 0.9543 | ExtraTree 43-feature + DCD steps=8 |
| R20 | 0.977 | 11 new classify_user_reply patterns + DCD steps=10 |
| R21 | 0.9973 | 17 patterns + exact-match gate + URL gate — ceiling reached |
Two irreducible FNs remain: one credential provision in ok context and one bare "Try now" indistinguishable without session context. Precision = 1.000 (fp=0).
drift-detector@88plug is listed by 88plug/claude-code-plugins — review the source before installing
npx claudepluginhub 88plug/claude-code-plugins --plugin drift-detectorBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground