chaos-test

chaos-test is a command for Claude Code from TheLobbi/claude. It costs 0 tokens per session (2,852 once invoked), scanned A, original, MIT.

A command set for chaos engineering, the practice of deliberately testing how a system behaves when parts fail. It covers failures such as network breaks, exhausted resources, and chain reactions between services.

In plain words
What is it for?
Use it to inject controlled failures, observe system behavior, validate fault-tolerance mechanisms, test recovery procedures, and report results.
Why use it?
It helps find weaknesses in fault handling and recovery before an unexpected failure exposes them in production. It also supports checking whether disaster-recovery procedures work as intended.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Part of the claude-orchestration plugin — 6 skills, 133 commands, 9 agents, 8 hooks, 6 plugins shipped together

Good fit Use it to inject controlled failures, observe system behavior, validate fault-tolerance mechanisms, test recovery procedures, and report results.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/thelobbi/claude/chaos-test
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/TheLobbi/claude

Made for: Claude Code.

Or install claude-orchestration, the plugin that ships this one along with the rest of its 6 skills, 133 commands, 9 agents, 8 hooks, 6 plugins.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for chaos-test

README.md
[![agentmods](https://agentmods.dev/badge/commands/thelobbi/claude/chaos-test.svg)](https://agentmods.dev/commands/thelobbi/claude/chaos-test)
Your own site
<a href="https://agentmods.dev/commands/thelobbi/claude/chaos-test"><img src="https://agentmods.dev/badge/commands/thelobbi/claude/chaos-test.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,852 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.02852
Opus 5 $0.00000 $0.01426
Sonnet 5 $0.00000 $0.00570
Haiku 4.5 $0.00000 $0.00285

Measured 7d ago against content hash 9f4ec1f71df3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

chaos-test scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/chaos-test.md · 391 lines

How it starts

The opening of the file, as written. The whole thing — 391 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Chaos Engineering & Resilience Testing

Comprehensive chaos engineering and resilience testing to validate system behavior under failure conditions, network partitions, resource exhaustion, and cascading failures.

Purpose

Systematically inject controlled failures into your system to discover weaknesses, validate fault tolerance mechanisms, test disaster recovery procedures, and build confidence in system resilience before failures happen in production.

Multi-Agent Coordination Strategy

Uses controlled chaos pattern where chaos agents inject failures while monitoring agents observe system behavior and recovery, coordinated to ensure safety and comprehensive coverage.

Chaos Testing Architecture

``` ┌──────────────────────────────────────────────────┐ │ Chaos Engineering Command │ │ (chaos-orchestrator) │ └────────────┬─────────────────────────────────────┘ │ ┌────────┼────────┬────────┬────────┐ ▼ ▼ ▼ ▼ ▼ Inject Monitor Validate Rollback Report ```

Execution Flow

Phase 1: Baseline & Steady State (0-15 mins)

  1. steady-state-validator - Define steady state metrics
  2. baseline-recorder - Record normal system behavior
  3. sla-monitor - Establish SLA/SLO baselines
  4. health-checker - Verify all systems healthy

Phase 2: Chaos Experiment Design (15-30 mins)

  1. chaos-architect - Design chaos experiments
  2. failure-catalog - Catalog potential failure modes
  3. hypothesis-generator - Generate testable hypotheses
  4. risk-assessor - Assess experiment risk levels

Phase 3: Infrastructure Chaos (30-60 mins)

  1. instance-terminator - Random instance termination
  2. network-partitioner - Network partition injection
  3. latency-injector - Network latency/jitter injection
  4. packet-loss-simulator - Packet loss simulation
  5. dns-chaos - DNS resolution failures
  6. disk-failure-simulator - Disk I/O failures

Read the full file on GitHub · 391 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 391 lines · 0 tokens per session scan A 9f4ec1f71df3

Subscribe to this mod's changes

chaos-test is a command published in the GitHub repository TheLobbi/claude (21 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,852 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.