Skip to content

Environment variables

Every environment variable a plugin reads, in one place. Plugins have no config file of their own: each setting is an environment variable. Set it under env in a Claude Code settings file, ~/.claude/settings.json (user: every folder you open Claude Code in) or .claude/settings.json (project: this folder, and everyone who clones it, because that file is committed):

{ "env": { "CEH_BRANCH_GUARD": "off" } }

If the file already has an env block, add the key to it instead of pasting the whole line over it. If the file or the block does not exist, create it with the line above. To undo a setting, delete its key: every variable here has a default, shown in the table. To check CEH_BRANCH_GUARD, ask Claude to create a throwaway file such as scratch.txt while the default branch is checked out, then delete it. The write is allowed once the setting applies and denied while the guard is on.

Each plugin README documents its own variables in full. This file is the index across plugins, so a name collision or an undocumented variable is visible at a glance. Add a row in the same commit that introduces the variable.

Variable Plugin Read by Default Effect
CEH_USAGE_LIMIT_THRESHOLD ceh-every-session scripts/usage-limit-watch.py 90 Usage percentage (5-hour or weekly window, whichever is closer to its cap) at which the agent is told to hand off. Setting it also makes a missing statusline export a once-per-session warning.
CEH_USAGE_STALE_MINUTES ceh-every-session scripts/usage-limit-watch.py 15 Statusline readings older than this are treated as unknown. Setting it also makes a missing statusline export a once-per-session warning.
CEH_USER_RULES_DIR ceh-every-session record-project-decisions (skill prose, no script) ~/.claude/rules/ Folder a decision that binds all the user’s projects is written to. A folder other than the default loads through an @ import line per rule in ~/.claude/CLAUDE.md, which the skill adds
BULK_READER_MIN_LINES ceh-every-session scripts/bulk-read-guard.py, bulk-read-bash-guard.py unset (guards inert) Opt-in. Whole-file reads at or above this many lines are denied and pointed at delegate-bulk-reads. 350 is a sane start
BULK_READER_ALLOW ceh-every-session scripts/bulk-read-guard.py, bulk-read-bash-guard.py unset Globs never blocked, separated by the OS path separator (:, or ; on Windows), on top of the built-in lockfile, minified, image and archive exclusions
CEH_BRANCH_GUARD ceh-git-workflow scripts/branch-guard.py unset (guard on) off allows file edits on the default branch, for when editing it in place is what the user asked for
CEH_BUILD_RECORD_GUARD ceh-build-plan scripts/build-record-guard.py unset (guard on) off allows a plan’s Built Phase line without implement-from-plan having run in the session
CEH_ARTIFACT_CHECK ceh-build-plan, ceh-check-build-against-plan, ceh-testing, ceh-codebase-explanation, ceh-product-direction, ceh-security-audit, ceh-usability, ceh-coding-conduct, ceh-every-session, ceh-competitor-analysis, ceh-blog-and-seo, ceh-git-workflow, ceh-session-learning, ceh-session-orchestration scripts/artifact-render-hook.py, generated-md-guard.py unset (check on) off stops checking and rendering a YAML artifact (plan/v2, evidence/v2, architecture/v3, vision/v2, strategy/v2, business-plan/v3, qa-report/v2, perf-report/v2, security-audit/v2, first-run-audit/v2, interface-audit/v2, error-messages-audit/v2, fix-record/v3, handoff/v2, competitor-report/v2, glossary/v2, blog-voice/v2, repeat-mistake/v2, plan-review/v3, business-plan-review/v3, investor-deck/v2, investor-outreach/v2, refactor-report/v2, test-audit/v2, stress-test/v3, learning/v2, blog-draft/v2, repurposed-post/v2, code-review/v3, period-retro/v3, session-retro/v3, general-review/v1, general-audit/v1, orchestration-instance/v2) on write, and allows edits to its generated Markdown
CLAUDE_CONFIG_DIR ceh-git-workflow scripts/sync-agents-workspace.py ~/.claude Claude Code’s own variable. The folder whose settings.json the workspace sync hook reads for the user’s attribution.commit line, after the project’s .claude/settings.local.json and .claude/settings.json
CLAUDE_PROJECT_DIR ceh-git-workflow scripts/sync-agents-workspace.py set by Claude Code Claude Code’s own variable, so do not set it. When the workspace sync hook’s cwd is in a main checkout and the variable names a linked worktree of that checkout, the hook acts on the worktree
GIT_SSH_COMMAND ceh-git-workflow scripts/sync-agents-workspace.py unset Git’s own variable. When unset, the workspace sync push and fetch use ssh -o BatchMode=yes, so an SSH remote that needs a passphrase fails at once instead of waiting out the 60 s timeout
CEH_SKILL_STARTED_GUARD ceh-git-workflow, ceh-testing scripts/skill-started-guard.py unset (guard on) off allows a call, such as git commit, before a skill that owns its moment was started in the session
CEH_DISABLED_HOOKS ceh-every-session, ceh-coding-conduct, ceh-git-workflow, ceh-build-plan, ceh-check-build-against-plan, ceh-testing, ceh-codebase-explanation, ceh-product-direction, ceh-security-audit, ceh-usability, ceh-competitor-analysis, ceh-blog-and-seo, ceh-session-learning, ceh-session-orchestration every hook script, and ceh-session-orchestration’s hooks/role-label.tsx for load-orchestrator unset (all hooks on) Comma-separated hook script names without the extension (branch-guard,bulk-read-guard). A listed hook exits at once and does nothing. With load-orchestrator listed, the role label shows no orchestrator label
TEST_DATABASE_URL ceh-python-service scripts/run-integration-tests.sh, run-system-tests.sh unset Required by the integration runner (it exits without it). The system runner only warns when this and APP_BASE_URL are both unset
APP_BASE_URL ceh-python-service scripts/run-system-tests.sh unset Target of the system tests. Only checked, with TEST_DATABASE_URL, to warn when neither is set
E2E_BASE_URL, BASE_URL ceh-web-frontend scripts/run-e2e.sh unset Target of the E2E run (E2E_BASE_URL wins). A prod-looking URL is refused for anything but smoke
NODE_ENV ceh-web-frontend scripts/run-e2e.sh unset production refuses any E2E run but smoke, the same guard as a prod-looking URL
CEH_ORCHESTRATION_MAX_WORKERS ceh-session-orchestration scripts/load-orchestrator.py 5 The most workers one orchestrator runs at once, of which at most 1 runs in a hub folder that is no git repository. The hook passes it to orchestrate-worker-sessions at session start. A value that is not a whole number of at least 1 gives 5, and the hook’s startup line says so
CEH_ORCHESTRATION_DEFAULT_MODEL ceh-session-orchestration scripts/load-orchestrator.py opus The model a worker runs on when neither the user nor the smaller-model rule of orchestrate-worker-sessions picks one: an alias or a full model name. The hook passes it to the skill at session start. A value that is not a model name gives opus, and the hook’s startup line says so
CEH_ORCHESTRATION_DEFAULT_EFFORT ceh-session-orchestration scripts/load-orchestrator.py medium The effort every worker starts at unless the user names one: low, medium, high, xhigh or max. The hook passes it to the skill at session start. Any other value gives medium, and the hook’s startup line says so
CEH_ORCHESTRATION_WORKER ceh-session-orchestration scripts/load-orchestrator.py, scripts/orchestrator-scope-guard.py, hooks/role-label.tsx unset Set by orchestrate-worker-sessions on each worker it starts, through --settings, to the name of the orchestrator’s folder (the hub). Any non-empty value makes the hook load no orchestrator standard, so the worker stays a worker, makes the scope guard leave it alone, and shows the worker label