Help us improve
Share bugs, ideas, or general feedback.
From agentbreak
Initialize AgentBreak — set up chaos testing, fault injection, and resilience testing for your LLM agent
npx claudepluginhub mnvsk97/agentbreak --plugin agentbreakHow this command is triggered — by the user, by Claude, or both
Slash command
/agentbreak:initThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# AgentBreak -- Init You are helping the user set up AgentBreak for chaos testing their agent. ## Your job 1. Check AgentBreak is installed 2. Run `agentbreak init` 3. Analyze the codebase 4. Ask: mock or proxy mode? 5. Configure `application.yaml` and `scenarios.yaml` based on findings + mode 6. Validate the config (+ test connection if proxy) 7. If MCP enabled, run `agentbreak inspect` 8. Offer project-specific scenarios Ask the user to confirm before writing config. ## Step 1: Install & update check First detect the user's Python environment and install accordingly: Based on the...
/aqe-chaosRuns chaos testing scenarios (latency, failure, resource-exhaustion, network-partition) to validate system resilience and fault tolerance. Supports options for duration, intensity, target, recovery checks.
/chaosDesigns chaos engineering experiments for failure injection, validates circuit breakers, plans game days, and generates resilience scorecards in docs/chaos/. Supports targeted flags like --network, --gameday.
/ai-agents-testTests multi-agent system by running a provided task through agent network, displaying handoffs, performance metrics (time, count), and coordination validation.
/chaosDesigns, runs, and debugs Chaos Engineering experiments on Kubernetes using Litmus Chaos or Chaos Mesh. Supports install, experiment, schedule, gameday, debug, and report modes.
/testllmExecutes LLM-driven test workflow: reads testing_llm/ specs, catalogs all tests including integrations, builds checklists, validates with evidence, produces verified report.
Share bugs, ideas, or general feedback.
You are helping the user set up AgentBreak for chaos testing their agent.
agentbreak initapplication.yaml and scenarios.yaml based on findings + modeagentbreak inspectAsk the user to confirm before writing config.
First detect the user's Python environment and install accordingly:
# Detect environment
which uv 2>/dev/null && echo "HAS_UV=1" || echo "HAS_UV=0"
python3 -c "import sys; print('IN_VENV=1' if sys.prefix != sys.base_prefix else 'IN_VENV=0')" 2>/dev/null
Based on the result:
uv pip install agentbreakpip install agentbreakpython3 -m venv .venv && source .venv/bin/activate && pip install agentbreak, or uv pip install agentbreak if they have uvThen check it works:
agentbreak --help
After confirming it's installed, check for updates:
pip index versions agentbreak 2>/dev/null | head -1
agentbreak --version
Compare the installed version with the latest on PyPI. If a newer version is available, tell the user:
"AgentBreak X.Y.Z is installed, but A.B.C is available. Run
pip install --upgrade agentbreakto update."
If pip index is not available (older pip), use this fallback:
pip install agentbreak --dry-run 2>&1 | grep -i "already satisfied\|would install"
Don't block on this — if the check fails, just skip it and continue.
agentbreak init
Creates .agentbreak/ with default application.yaml and scenarios.yaml.
Scan the project to understand the agent. Look for:
openai, anthropic, OPENAI_API_KEY, ANTHROPIC_API_KEY in code and .envlanggraph, langchain, crewai, autogen, openai SDK usagemcp, MCPClient, tool_call patternsmax_retries, retry, except, timeout, backoffPresent findings:
"Here's what I found:
- Provider: [openai/anthropic]
- Framework: [langgraph/langchain/openai SDK/etc.]
- MCP tools: [detected/none]
- Error handling: [has retry logic / no retry logic]
Does this look correct?"
If the provider is ambiguous, ask which one to use.
After presenting codebase findings, ask the user:
"How do you want to run chaos tests?"
- Mock mode — No API keys needed. AgentBreak generates synthetic responses. Good for demos, CI, and testing fault handling logic.
- Proxy mode — Real API traffic. AgentBreak sits between your agent and the real upstream, injecting faults into live calls. Requires valid API keys.
Based on analysis + mode choice, write .agentbreak/application.yaml:
Mock mode:
llm:
enabled: true
mode: mock
mcp:
enabled: true # if MCP detected
mode: mock
serve:
port: 5005
Proxy mode:
llm:
enabled: true
mode: proxy
upstream_url: https://api.openai.com # or anthropic URL
auth:
type: bearer
env: OPENAI_API_KEY
mcp:
enabled: true # if MCP detected
mode: proxy
upstream_url: http://localhost:8001/mcp
# auth: ...
serve:
port: 5005
For proxy mode, use the detected upstream URLs and auth env vars from Step 3. If MCP was detected but no upstream URL was found, ask the user for it.
agentbreak init generates scenarios.yaml with a standard preset based on what's enabled:
preset: standard (6 baseline LLM scenarios)preset: standard-mcp (7 baseline MCP scenarios)preset: standard-all (13 baseline scenarios)Present the generated config and ask for confirmation before writing.
agentbreak validate
If validation fails, fix the config and re-validate.
If proxy mode is configured, run an auth pre-check:
agentbreak validate --test-connection
This tests connectivity and auth against the upstream(s). Possible results:
If auth fails, help the user fix the config (check env var name, verify the key is set, confirm URL). Re-run --test-connection until it passes. Do NOT proceed to chaos testing with broken auth — every test will fail for the wrong reason.
Skip --test-connection for mock mode (no upstream to check).
If mcp.enabled: true in application.yaml, discover the upstream tools:
agentbreak inspect
Expected output:
Discovered N MCP tools
Wrote registry: .agentbreak/registry.json
If this fails (e.g. 401 auth error, connection refused), do NOT silently skip it. Stop and ask the user:
"MCP inspect failed: [error details]. Would you like to:
- Fix it — check the token/URL and retry
- Skip MCP — disable MCP testing and continue with LLM-only scenarios"
Wait for the user's answer before proceeding. Only disable MCP if they explicitly choose option 2.
Run inspect in ALL modes (mock and proxy) when MCP is enabled. The registry is needed regardless of mode.
After validation passes, tell the user what standard scenarios are included, then ask:
"Standard chaos tests are ready — these cover baseline faults like rate limits, server errors, latency, bad JSON, empty responses, and schema violations.
Want me to also analyze your codebase and generate project-specific scenarios? These target your specific tools, models, and failure modes."
scenarios: key in scenarios.yaml (keeping the preset), re-validate.Tell the user:
"AgentBreak is initialized. Run
/agentbreak:run-teststo start chaos testing."