Environment variables
The Claude Code variables the plugin's docs and reports rely on, plus where the plugin looks for its own files. Pins are not configurable here; the routing options live in config.json, see Configuration.
| Variable | Effect |
|---|---|
CLAUDE_CONFIG_DIR | The Claude Code config directory, written <config> in these docs. The dispatch counter reads transcripts from <config>/projects and your agents from <config>/agents. Unset, it is ~/.claude. |
CLAUDE_PLUGIN_DATA | Set by Claude Code for the plugin: ~/.claude/plugins/data/<id>/, kept across updates and deleted on uninstall. The dispatch log dispatches.jsonl lives here. |
CLAUDE_CODE_SUBAGENT_MODEL | Since Claude Code 2.1.251 a DEFAULT below everything else: an explicit model param wins, then a frontmatter pin, then this var, then the session model (inherit is the same as leaving it unset). The dispatch report marks the rows it actually decided agent (env=...). While it is set the plugin's automatic default for bare dispatches stays out of the way. |
CLAUDE_CODE_SUBAGENT_MODEL_FORCE | Since Claude Code 2.1.257, =1 inverts the above and makes the harness ignore every param and every pin. With both set, subagents run the env model; with only FORCE set they run the session model. Those rows read agent (forced=...). The automatic default is skipped too. |
See Overriding pins for how these fit with the other override paths, and the dispatch counter for how the report treats them.