Enable experimental swarm/multi-agent features in Claude Code using a pure in-memory bypass.
# Download the bypass script
mkdir -p ~/.claude/injectors
curl -o ~/.claude/injectors/feature-flag-bypass-pure.mjs \
https://gist.githubusercontent.com/gastonmorixe/9c596b6de1095b6bd3b746ca3a1fd3d7/raw/feature-flag-bypass-pure.mjsNODE_OPTIONS="--import $HOME/.claude/injectors/feature-flag-bypass-pure.mjs" claudeBYPASS_SILENT=1 NODE_OPTIONS="--import $HOME/.claude/injectors/feature-flag-bypass-pure.mjs" claudeAdd to ~/.bashrc or ~/.zshrc:
# Claude Code with swarm features
alias claude-swarm='NODE_OPTIONS="--import $HOME/.claude/injectors/feature-flag-bypass-pure.mjs" claude'
# Silent version
alias claude-swarm-silent='BYPASS_SILENT=1 NODE_OPTIONS="--import $HOME/.claude/injectors/feature-flag-bypass-pure.mjs" claude'Reload your shell:
source ~/.bashrc # or ~/.zshrcNow run:
claude-swarmAdd to ~/.config/fish/config.fish:
function claude-swarm
set -x NODE_OPTIONS "--import $HOME/.claude/injectors/feature-flag-bypass-pure.mjs"
claude $argv
end- Node.js 18.19+ or 20.6+
- Native Claude Code installation (
claudecommand available)
The bypass intercepts fs.readFileSync calls and injects the tengu_brass_pebble feature flag into Claude Code's cached settings. This enables swarm/multi-agent features without modifying any files on disk.
DISABLE_TELEMETRY environment variables because Claude Code skips reading cached feature flags when they're set.
Original bypass script by @gastonmorixe: https://gist.github.com/gastonmorixe/9c596b6de1095b6bd3b746ca3a1fd3d7