cd /news/ai-agents/sabotest-skill-for-detecting-claude-… Β· home β€Ί topics β€Ί ai-agents β€Ί article
[ARTICLE Β· art-177553] src=github.com β†— pub= topic=ai-agents verified=true sentiment=Β· neutral

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.

key takeaway

Run SaboTest from a different provider than the agent under audit, since it flags six sabotage classes and filters findings through a domain-asymmetry test plus six ordinary LLM confounders.

read6 min views17 publishedNov 28, 2026
SaboTest: Skill for Detecting Claude Code Sabotage
Image: Michielbdejong (auto-discovered)

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 ), safetystop_reason s (frontier_llm ,refusal ), orredacted_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:

git clone https://github.com/ibehnam/sabotest.git ~/.claude/skills/sabotest

git clone https://github.com/ibehnam/sabotest.git .claude/skills/sabotest

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.

python3 scripts/triage.py \
  --repo /path/to/your/repo \
  --dump /tmp/sabotest-audit

python3 scripts/triage.py \
  --repo /path/to/your/repo \
  --remote my-gpu-box \
  --remote-match my-repo \
  --dump /tmp/sabotest-audit

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-standardstop_reason s, API errors, andredacted_thinking counts.
  • Policy-laundering hits: Flags planner/critic/reviewer/fixer subagents introducing unrequested ethical/safety/protected-trait/blocking language.
  • ML & eval edit hotspots: FlagsEdit /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:

── more in #ai-agents 4 stories Β· sorted by recency
── more on @sabotest 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/sabotest-skill-for-d…] indexed:0 read:6min 2026-11-28 Β· β€”