Feature Gates Guide
Some Claude Code features exist in the software but are turned off by default. They require an environment variable, a Statsig flag (enabled by Anthropic on your account), or a specific plan tier to activate. These are called feature gates.
This guide covers the gates most likely to affect you as you explore Claude Code. You don’t need to understand all of them — most are for enterprise deployments or experimental research features.
Types of feature gates
Section titled “Types of feature gates”| Gate type | Example | How it’s activated | Can you set it? |
|---|---|---|---|
| Environment variable | CLAUDE_CODE_ENABLE_TASKS=1 | Set it in your shell | Yes |
| Statsig flag | tengu_session_memory | Enabled by Anthropic on your account | No |
| Plan tier | Max plan required | Upgrade your subscription | Yes, via your account |
| Dual-gate | /team-onboarding | Requires both an env var AND a Statsig flag | Partially — you set the env var, Anthropic sets the flag |
Feature gates relevant to junior developers
Section titled “Feature gates relevant to junior developers”Persistent tasks
Section titled “Persistent tasks”CLAUDE_CODE_ENABLE_TASKS=1Enables a task coordination system that persists across sessions.
Agent teams
Section titled “Agent teams”CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1Enables TeamCreate/TeamDelete tools for coordinating groups of agents.
Coordinator mode
Section titled “Coordinator mode”CLAUDE_CODE_COORDINATOR_MODE=1Enables full multi-agent orchestration mode.
Session memory
Section titled “Session memory”tengu_session_memory (Statsig — Anthropic enables this, not you)A background subagent extracts key notes from your session into ~/.claude/sessionMemory.md.
Scratchpad
Section titled “Scratchpad”tengu_scratch (Statsig — Anthropic enables this, not you)Enables a .claude/scratchpad/ shared directory between agents.
Team onboarding
Section titled “Team onboarding”CLAUDE_CODE_TEAM_ONBOARDING=1# AND tengu_flint_harbor Statsig flag (Anthropic enables)Enables the /team-onboarding command.
Loop skill
Section titled “Loop skill”CLAUDE_CODE_ENABLE_LOOP=1Enables the /loop command for recurring scheduled prompts.
CLAUDE_CODE_ENABLE_CFC=1Purpose unknown — this env var exists in the source but its command surface is undocumented.
How to set environment variables
Section titled “How to set environment variables”You can set these in your shell session, or add them to a .env file if your setup supports it:
# In your shell (lasts for this terminal session)export CLAUDE_CODE_ENABLE_TASKS=1claude
# Or when starting Claude directlyCLAUDE_CODE_ENABLE_TASKS=1 claudeFor persistent configuration, add to your shell profile (~/.bashrc, ~/.zshrc):
export CLAUDE_CODE_ENABLE_TASKS=1Feature disable flags
Section titled “Feature disable flags”Some features are on by default and can be turned off:
| Flag | What it disables |
|---|---|
CLAUDE_CODE_DISABLE_AUTO_MEMORY=1 | Turns off automatic memory extraction (privacy) |
CLAUDE_CODE_DISABLE_TELEMETRY=1 | Disables usage telemetry |
DISABLE_<COMMAND>_COMMAND=1 | Disables a specific slash command (e.g., DISABLE_FEEDBACK_COMMAND=1) |
Before enabling experimental features
Section titled “Before enabling experimental features”See also
Section titled “See also”- ENV/feature-disable-flags.md — full list of disable flags
- Commands/experimental-unreleased-feature-flag-gated-commands.md — gated slash commands
- Commands/discrepancies-and-gaps.md — known issues with gated features
- ENV/README.md — all environment variables