/gaia-statusline-enable
user-facingWhat it does
/gaia-statusline-enable enables the GAIA statusline by adding the canonical statusLine block to ~/.claude/settings.json. The statusline renders project context -- version, model, branch, and context usage -- on every Claude Code prompt cycle. This command is idempotent -- if the statusline is already enabled, it reports the current state without writing.
When to use it
- You have installed the statusline runtime and want to activate it in Claude Code.
- You previously disabled the statusline and want to re-enable it.
Prerequisites
- The statusline runtime must be installed. Run
install-statusline.shfirst. The runtime installs to~/.claude/gaia-statusline/statusline.sh. This command refuses to proceed if the runtime script is not present and tells you to run the installer.
How to invoke
/gaia-statusline-enable
What it does step by step
- Pre-flight check Verifies the runtime script exists at
~/.claude/gaia-statusline/statusline.sh. If missing, exits with an error directing you to runinstall-statusline.sh. - Read current state Checks whether a
statusLineblock already exists in~/.claude/settings.json. - Check idempotency If the statusline block is already present, reports the state and exits without writing.
- Write the settings block Adds the
statusLineblock to~/.claude/settings.jsonwith the command path pointing to the installed runtime. - Report Confirms the statusline is now enabled. The change takes effect on the next prompt cycle.
Inputs
| Input | Source | Description |
|---|
Outputs
| Output | Location | Description |
|---|---|---|
| Updated settings | ~/.claude/settings.json | The statusLine block added with the runtime command path. |
Example session
> /gaia-statusline-enable
Statusline enabled. The GAIA statusline will appear on your next prompt.
> /gaia-statusline-enable
Statusline already enabled.
What to run next
- The statusline renders automatically. Customize it with the
GAIA_STATUSLINE_THEMEenvironment variable (minimal,default, orrich). See Statusline Reference for details. - To disable the statusline later, run
/gaia-statusline-disable.
Troubleshooting
Runtime not installed
The command exits with an error if ~/.claude/gaia-statusline/statusline.sh does not exist. Run install-statusline.sh to install the runtime first.
settings.json is malformed
If ~/.claude/settings.json contains invalid JSON, the command cannot write to it. Fix the JSON syntax manually or delete the file to let Claude Code recreate it.