Adds .claude/statusline.sh (reads context_window.used_percentage + context_window_size straight from the statusLine JSON; green<70/yellow/red bar) and wires it via .claude/settings.json statusLine. Committed in-repo so it follows boma to any clone, matching how .claude/ already tracks hooks + plugins. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
78 lines
2 KiB
JSON
78 lines
2 KiB
JSON
{
|
|
"$schema": "https://json.schemastore.org/claude-code-settings.json",
|
|
"extraKnownMarketplaces": {
|
|
"claude-plugins-official": {
|
|
"source": { "source": "github", "repo": "anthropics/claude-plugins-official" }
|
|
}
|
|
},
|
|
"enabledPlugins": {
|
|
"superpowers@claude-plugins-official": true,
|
|
"context7@claude-plugins-official": true,
|
|
"terraform@claude-plugins-official": true,
|
|
"claude-md-management@claude-plugins-official": true
|
|
},
|
|
"permissions": {
|
|
"allow": [
|
|
"Read",
|
|
"Grep",
|
|
"Glob",
|
|
"Bash(git status:*)",
|
|
"Bash(git diff:*)",
|
|
"Bash(git log:*)",
|
|
"Bash(git show:*)",
|
|
"Bash(git branch:*)",
|
|
"Bash(make lint:*)",
|
|
"Bash(make test:*)",
|
|
"Bash(make check:*)",
|
|
"Bash(python3 -m pytest:*)",
|
|
"Bash(rbw unlocked)",
|
|
"Bash(ls:*)",
|
|
"Bash(cat:*)",
|
|
"Bash(rg:*)",
|
|
"Bash(find:*)"
|
|
]
|
|
},
|
|
"hooks": {
|
|
"PreToolUse": [
|
|
{
|
|
"matcher": "Write|Edit",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/guard-generated-files.sh\"",
|
|
"timeout": 10,
|
|
"statusMessage": "Checking generated-file guard"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": "Bash",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/guard-vault-preflight.sh\"",
|
|
"timeout": 10,
|
|
"statusMessage": "Checking rbw vault pre-flight"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Stop": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/guard-execution-mode-menu.sh\"",
|
|
"timeout": 10,
|
|
"statusMessage": "Checking for execution-mode menu"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"statusLine": {
|
|
"type": "command",
|
|
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/statusline.sh\"",
|
|
"padding": 0
|
|
}
|
|
}
|