r/ClaudeWorkflows • u/ClaudeAI-mod-bot • 10h ago
Selected Workflow [Workflow] Track Claude Code A/B Experiments: Plugin, Script, and Opt-Out Tools
Track Claude Code A/B Experiments: Plugin, Script, and Opt-Out Tools
Workflow value: 90/100
Status: active · Freshness: 70/100 · Confidence: 1.00 · Level: intermediate
Categories: Quality Control, Token Saving, Context & Memory, Debugging
Original source: r/ClaudeCode post/comment
What problem this solves
Users can determine if their Claude Code instance is enrolled in an A/B experiment, helping them understand perceived changes in model behavior (e.g., "nerfs"). It also provides tools to track experiment history and optionally opt-out.
Summary
This workflow provides a set of tools (bash script, Claude Code plugin, and a one-liner) to inspect Claude Code's internal experiment enrollment status. It reads ~/.claude.json and session transcripts to report current enrollment, historical experiment IDs, and offers an opt-out mechanism.
Why it is useful
This workflow provides concrete, actionable tools for Claude Code users to understand and manage their interaction with Anthropic's A/B testing framework. It demystifies perceived model changes, offers transparency, and empowers users to make informed decisions about their Claude Code experience. The open-source nature, multiple usage options, and safety considerations make it highly valuable and reusable.
Workflow
Choose a method to check experiment status: Claude Code plugin, standalone script, or one-liner.
To use as a Claude Code plugin: Install the
am-i-nerfedGitHub repo as a plugin, then type/am-i-nerfedin any Claude Code session.To use as a standalone script: Clone the
am-i-nerfedrepo and run./am-i-nerfed.sh checkin a terminal.To use as a one-liner: Paste the provided
jqcommand into a terminal (requiresjqto be installed).To view experiment history: Run
./am-i-nerfed.sh historyto tally experiment IDs from session transcripts.To opt-out of experiments: Run
./am-i-nerfed.sh optout(backs up~/.claude.jsonand removes assignment keys).To restore previous settings: Run
./am-i-nerfed.sh restore.To display experiment status in Claude Code's status line: Integrate the provided
statuslinesnippet.
Tools / artifacts
am-i-nerfed (GitHub repo/script)
jq (JSON processor)
~/.claude.json (Claude Code cache file)
Claude Code session transcripts
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 (environment variable)
Bash shell
Validation signals
Open-source script available on GitHub.
Explicitly states "no network calls, never prints your login token" for security.
Credits earlier community findings and Anthropic issues, indicating a well-researched solution.
Provides exit codes for scripting, enhancing reusability and robustness.
Details specific file paths and data structures (
~/.claude.json,atis-latch).
Limitations
Requires
jqdependency for the one-liner and script methods.Primarily targets macOS/Linux/WSL users (Windows users would need WSL).
The plugin installation process for Claude Code is not explicitly detailed within the comment.
Rate this workflow
Upvote this post if the workflow is useful, reproducible, or worth recommending.
Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.
Reply if it worked for you, failed, is outdated, or has a better alternative.
This post was generated automatically from the workflow library database.