Claude Code のカスタム設定スクリプト集。
Claude Code のステータスライン(画面下部のバー)に モデル名・effort・コンテキスト使用率 を表示するスクリプト。
Opus 4.6 | high | 42%
~/.claude/settings.json に以下を追加:
{
"statusLine": {
"type": "command",
"command": "/path/to/claude-code-config/statusline/statusline.py --threshold 70",
"refreshInterval": 5
}
}スクリプトに実行権限を付与:
chmod +x statusline/statusline.py| オプション | デフォルト | 説明 |
|---|---|---|
--threshold <N> |
70 |
コンテキスト使用率が N% 以上になると ! を表示 |
しきい値を変更する場合は command にオプションを追加:
"command": "/path/to/statusline.py --threshold 80"<model> | <effort> | <context%>[!]
| フィールド | 例 | 備考 |
|---|---|---|
| model | Opus 4.6 |
モデルの表示名 |
| effort | high |
未設定時は省略 |
| context% | 42% |
コンテキストウィンドウ使用率。--threshold(デフォルト70%)以上で ! 付与 |