statusline-setup agent ignores CLAUDE_CONFIG_DIR environment variable
Description
The /statusline command (statusline-setup agent) hardcodes the config path to ~/.claude/settings.json instead of respecting the CLAUDE_CONFIG_DIR environment variable.
Steps to Reproduce
- Set up multiple Claude Code accounts using different config directories:
``bash``
alias claude-work="CLAUDE_CONFIG_DIR=~/.claude-work claude"
alias claude-personal="CLAUDE_CONFIG_DIR=~/.claude-personal claude"
- Start Claude Code with one of the aliases (e.g.,
claude-personal)
- Verify the env var is set:
``bash``
echo $CLAUDE_CONFIG_DIR
# Returns: /Users/kay/.claude-personal
- Run
/statuslinecommand
Expected Behavior
The statusline-setup agent should read/write settings.json from the directory specified in $CLAUDE_CONFIG_DIR (e.g., ~/.claude-personal/settings.json)
Actual Behavior
The agent attempts to read/write from ~/.claude/settings.json, ignoring the CLAUDE_CONFIG_DIR environment variable entirely.
Workaround
Manually create/edit the settings.json file in the correct config directory.
Environment
- macOS
- Claude Code with multiple account setup using CLAUDE_CONFIG_DIR
This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗