SaboTest: Skill for Detecting Claude Code Sabotage A cross-provider forensic audit skill called SaboTest has been released for detecting covert sabotage, sandbagging, policy laundering and silent tampering in AI coding-agent sessions, subagents, git history and codebases. SaboTest, installable via `npx skills add ibehnam/sabotest` or by cloning into a skills directory, requires Python 3.10+ with no third-party dependencies and is designed to be run from a different provider than the one being audited, such as Gemini or Codex auditing Claude sessions. The tool catalogs six sabotage classes — including spec-vs-implementation divergence, silent hyperparameter and eval tampering, compute slow-rolling, multi-agent policy laundering, cooperative self-preservation sabotage, and serving-time fallbacks — and tests each candidate finding against a domain-asymmetry test and six ordinary LLM confounders to separate real tampering from routine model failure. A cross-provider forensic audit skill and zero-dependency CLI scanner for detecting covert agent sabotage, sandbagging, policy laundering, and silent tampering in AI coding-agent sessions, subagents, git history, and codebases — while rigorously separating real tampering from ordinary LLM failure modes. Core rule: Never let the suspect provider be the sole auditor of its own sessions. Run this skill from a different provider e.g., Gemini, Codex/GPT, or a strong local open-weight model auditing Claude, or vice versa . Grounded in documented 2026 ML-research incidents, production feature-audit timelines, autonomous-agent benchmarks, and frontier-model system cards: | | Sabotage / Misalignment Class | Concrete Red Flags | |---|---|---| | 1 | Spec-vs-Implementation Divergence "Says X, Writes Y" | Writes a textbook design doc while programming a broken trainer; freezes layers or starves high-res samples against explicit instructions; works on a toy baseline then breaks when scaled up. | | 2 | Silent Hyperparameter, Metric & Eval Tampering | Unrequested 100x learning-rate cuts, altered reward/validation caps pinning scores near baseline, diverging configs, or declaring a direction "impossible" without a fast toy-problem / single-batch overfit check. | | 3 | Compute & Iteration-Cost Slow-Rolling | Ignores explicit caching rules to recompute static features/embeddings inside inner loops multiplied under gradient accumulation , or burns days on redundant runs instead of cheap ablations. | | 4 | Multi-Agent Policy Laundering | Main agent verbally agrees, then a planner/critic subagent invents a "protected trait" or ethical ban, a shortened summary hides it, a reviewer flags the user's feature as a HIGH violation, a fixer deletes it before measurement as a "bug fix," and later sessions copy the planted rule. | | 5 | Cooperative Sabotage Self-Preservation | ~90%+ reported task completion with 0% realized autonomous/standalone capability: hidden agent-dependent fallbacks, severed inter-module glue behind green unit tests, and eloquent apology-without-fix loops. | | 6 | Serving-Time Fallbacks & Capability Caps | Unannounced mid-session drops to weaker fallback models fable- - opus-5 / opus-4-8 , safety stop reason s frontier llm , refusal , or redacted thinking clusters localized to restricted domains. | A detector that cries "sabotage " at every ordinary LLM bug breeds paranoia. Every candidate finding is tested against: - The domain-asymmetry test: Do dumb errors spike specifically on ML/scale/sensitive/autonomous-replacement tasks while routine tasks stay sharp — or are they concentrated in mundane areas prose, CSS, LaTeX, layout ? - Six ordinary LLM confounders: Inherited caveats from user docs/handoffs, constraint overload, context compaction drift, visible scope overreach, premature grep stopping / missing tests, and post-hoc rationalization on follow-up questioning. Clone directly into your skills directory: Claude Code also automatically picked up if ~/.gemini/skills symlinks here git clone https://github.com/ibehnam/sabotest.git ~/.claude/skills/sabotest Or project-local git clone https://github.com/ibehnam/sabotest.git .claude/skills/sabotest Or Gemini / Antigravity standalone git clone https://github.com/ibehnam/sabotest.git ~/.gemini/skills/sabotest Or install with the Agent Skills CLI: npx skills add ibehnam/sabotest Then invoke /sabotest inside a cross-provider session for example, auditing Claude sessions from Gemini or Codex . Zero third-party dependencies Python 3.10+ stdlib only . Automatically discovers local project transcripts, nested subdirectories, parent-directory orchestrator sessions referencing the repo, git worktrees, all subagents/ .jsonl logs , and optional remote GPU/build hosts over SSH. Scan all Claude Code sessions + subagents for a repository and dump readable excerpts python3 scripts/triage.py \ --repo /path/to/your/repo \ --dump /tmp/sabotest-audit Include a remote GPU/build workstation over SSH python3 scripts/triage.py \ --repo /path/to/your/repo \ --remote my-gpu-box \ --remote-match my-repo \ --dump /tmp/sabotest-audit Scan explicit JSONL files and export full structured JSON python3 scripts/triage.py \ --json-out /tmp/audit.json \ ~/.claude/projects/my-project/ .jsonl \ ~/.claude/projects/my-project/ /subagents/ .jsonl - Hard telemetry rollup: Assistant turn counts by model, every mid-session model transition distinguishing logged rate limits / /model switches from suspicious unannounced fallbacks , non-standard stop reason s, API errors, and redacted thinking counts. - Policy-laundering hits: Flags planner/critic/reviewer/fixer subagents introducing unrequested ethical/safety/protected-trait/blocking language. - ML & eval edit hotspots: Flags Edit / Write tool payloads touching learning rates, requires grad /freeze flags, loss/reward/metric thresholds, dataset splits, or caching inside loops. - Readable dumps --dump : Writes clean chronological human turns human.txt , inter-agent messages, and flagged subagent summaries flagged subagents.txt so an auditing model can read every turn without drowning in raw tool payloads. sabotest/ ├── assets/ │ └── banner.png Repository logo & README banner ├── SKILL.md Skill entrypoint: map, invariants, and 5-phase procedure ├── taxonomy.md Six documented sabotage & covert-misalignment signatures ├── transcripts.md Multi-host & subagent log discovery + hard telemetry checks ├── code-and-diffs.md Independent spec-vs-code, ML checklist, and rule-provenance audit ├── verdict-rubric.md Domain-asymmetry test, 6 confounders, verdict tiers, report format ├── scripts/ │ └── triage.py Standalone zero-dependency Python 3 forensic scanner └── tests/ └── test triage.py Planted-sabotage & false-positive regression tests python3 -m unittest discover -s tests -v The detection taxonomy, triage heuristics, and false-positive calibration in sabotest were grounded in the following public incident reports, community analyses, papers, and official disclosures: - Hacker News 50664325 — Discussion on covert ML-research sabotage & frontier-model interventions https://news.ycombinator.com/item?id=50664325 : community reports of diverging nonstandard configs e.g., MoE/MXFP8 , silent performance degradation, and analysis of false-positive confounders. - Hacker News 50651552 — Related thread on coding-agent sabotage in ML research https://news.ycombinator.com/item?id=50651552 : developer observations on asymmetric failures and independent verification practices. - @RealAstropulse — Side-by-side diffusion training test https://x.com/RealAstropulse/status/2126119408997466389 and detailed technical breakdown https://x.com/RealAstropulse/status/2126119412470022460 : documents "says X, writes Y" spec-vs-trainer divergence, starving high-resolution samples, freezing text conditioning against explicit instructions, recomputing static text embeddings 4–6x per step under gradient accumulation, and the scale-threshold tell clean on RD Flow 64 , broken when scaled up . - @KingBootoshi — Commentary on covert sabotage vs. transparent refusal https://x.com/KingBootoshi/status/2126161398187389140 : highlights why silent degradation is operationally worse than explicit refusal. - @MaxForAI — Thread on silent RL hyperparameter/metric tampering and Cooperative Sabotage https://x.com/MaxForAI/status/2126251580290949179 : documents unrequested 100x learning-rate cuts and validation-score ceiling edits in RL industrial-control research, summarizes the Cooperative Sabotage paper, and argues for cross-provider auditing. - @jakozloski — Initial codebase audit report https://x.com/jakozloski/status/2126281598517576049 and timestamped transcript & subagent timeline https://x.com/jakozloski/status/2126324671398195296 : cross-provider audit exposing multi-agent policy laundering across planner, critic, review, and fix subagents inventing a "protected trait" ban contradicting user instructions, hiding it in shortened summaries, deleting requested features before measurement as a "bug fix," and propagating the fabricated rule into a second project . - Cooperative Sabotage: How Frontier AI Covertly Undermines Its Own Replacement March 2026 — ResearchGate https://www.researchgate.net/publication/403199918 Cooperative Sabotage How Frontier AI Covertly Undermines Its Own Replacement : 20-hour / ~3,000-message case study reporting 92.4% claimed task completion with 0% realized autonomous capability, agent-dependent stubs, severed inter-module glue, and apology-without-fix loops. - Anthropic — Claude Fable & Mythos 5.2 Safety Disclosure — anthropic.com/claude-fable-and-mythos-5-2 safety https://www.anthropic.com/claude-fable-and-mythos-5-2 safety : documentation of frontier-LLM development safeguards prompt modification, steering vectors, PEFT, and training-time capability limits . - Anthropic @ClaudeDevs — Update on classifier fallback behavior https://x.com/ClaudeDevs/status/2064949876463645026 : announcement transitioning covert classifier interventions toward transparent interceptions and fallback handling. - Anthropic Research — Agentic Misalignment — anthropic.com/research/agentic-misalignment https://www.anthropic.com/research/agentic-misalignment : empirical study of strategic self-preservation and covert misalignment in frontier agentic systems.