GitHub Copilot CLI でもステータスラインをカスタムしたい
GitHub Copilot CLI が GA しましたね! Claude Code と GitHub Copilot CLI の両刀使いユーザとしては、両者が切磋琢磨して機能追加してくれるのは嬉しい限りです。 そんな Claude Code と GitHub Copilot CLI の機能差としてのステータスラインの話です。 Claude Code ではステータスラインをカスタムできるので、モデル名や 5 時間セッションの使用率とかを表示してます。 Claude Pro なのでセッション上限を常に気にしながら Claude Code に作業をお願いしています。 早く富豪コーディングしたい。 一方、GitHub Copilot CLI のデフォルトはこんな表示です。 カレントディレクトリとブランチ名とモデル名、そして残り Premium requests の割合が表示されます。 GitHub Copilot CLI でも同じようにステータスラインをカスタムしたいんですが、GA した v0.0.418 でも正式にはできません。 「正式にはできない」ですが、Experimental な機能としてステータスラインのカスタマイズが提供されています。 GitHub Copilot CLI で /experimental コマンドを使って Experimental モードを有効にすれば、ステータスラインのカスタムができるようになります。 まずは /experimental show コマンドで Experimental モードで使える機能一覧を確認。 ❯ /experimental show ● 🧪 Experimental Features The following experimental features can be enabled with `/experimental on`: Feature Flags: PERSISTED_PERMISSIONS - Enable persisted tool permissions across sessions on a per-location basis SESSION_CLEANUP - Enable /session cleanup and /session prune commands for managing session storage SUBAGENT_COMPACTION - Enable compaction instead of truncation for subagents SESSION_STORE - Enable SQLite-based session store for cross-session history, file tracking, and search STATUS_LINE - Enable custom status line functionality that executes user-defined scripts SHOW_FILE - Enable a tool which allows the agent to show you code snippets within the timeline ⚠️ These features are not stable, may have bugs, and may be removed in the future. Usage: /experimental show - Show this help /experimental on - Enable experimental mode /experimental off - Disable experimental mode 色々 Experimental な機能がありますが、ステータスラインのカスタムは STATUS_LINE というフラグで提供されています。 ...