cli-contexts について
cli-contextsは、コンテキストエンジニアリング設定、context-relay構成、会話セッションを管理するomnirouteのコマンドラインスキルです。コンテキストパイプラインの確認やセッション管理を行う運用担当者向けです。
主な機能
- 01コンテキストエンジニアリングの確認と設定
- 02RTKフィルターと割り当ての管理
- 03コンテキストの追加、切り替え、入出力
- 04認証情報をOSキーチェーンへ移行
- 05セッションの一覧、確認、期限切れ処理
活用シーン
- 01コンテキストのトークン予算とフィルターを調整
- 02アクティブなサーバーと認証コンテキストを切り替え
- 03コンテキスト認証情報をOSキーチェーンに移行
- 04指定した会話セッションを確認または期限切れにする
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ cheaper-inference/ omniroute --skill cli-contextsインストール後、Claude Code で/cli-contextsを入力して読み込まれたか確認します。
詳細
概要
CLI からコンテキストエンジニアリングの設定、RTK フィルターセット、会話セッションを管理できます。コンテキストリレーの設定を適用し、アクティブなコンテキストパイプラインを確認できます。
クイックインストール
npm install -g omniroute # or: npx omniroute
omniroute --version
サブコマンド
context-eng
例:
omniroute context-eng
context-eng analytics
フラグ:
--period <p>
例:
omniroute context-eng analytics
context-eng caveman
例:
omniroute context-eng caveman
context-eng config
例:
omniroute context-eng config
context-eng show
例:
omniroute context-eng show
context-eng set
フラグ:
--aggressiveness <n>--max-shrink-pct <n>--preserve-tags <list>
例:
omniroute context-eng set
context-eng rtk
例:
omniroute context-eng rtk
context-eng config
例:
omniroute context-eng config
context-eng show
例:
omniroute context-eng show
context-eng set
フラグ:
--token-budget <n>--reserve-pct <n>
例:
omniroute context-eng set
context-eng filters
例:
omniroute context-eng filters
context-eng list
例:
omniroute context-eng list
context-eng add
フラグ:
--pattern <p>--priority <n>--action <a>
例:
omniroute context-eng add
context-eng remove <id>
フラグ:
--yes
例:
omniroute context-eng remove <id>
context-eng test
フラグ:
--file <path>
例:
omniroute context-eng test
context-eng raw-output <id>
例:
omniroute context-eng raw-output <id>
context-eng combos
例:
omniroute context-eng combos
context-eng list
例:
omniroute context-eng list
context-eng get <id>
例:
omniroute context-eng get <id>
context-eng assignments <id>
例:
omniroute context-eng assignments <id>
contexts
例:
omniroute contexts
contexts list
すべてのコンテキストを一覧表示します
例:
omniroute contexts list
contexts add <name>
新しいコンテキストを追加します
フラグ:
--url <u>--api-key <k>--api-key-stdin--access-token <t>--access-token-stdin--scope <s>--description <d>
例:
omniroute contexts add <name>
contexts use <name>
アクティブなコンテキストを切り替えます
例:
omniroute contexts use <name>
contexts current
アクティブなコンテキスト(サーバー、認証、スコープ)を表示します
フラグ:
--name-only
例:
omniroute contexts current
contexts show <name>
コンテキストの詳細を表示します
例:
omniroute contexts show <name>
contexts remove <name>
コンテキストを削除します
フラグ:
--yes
例:
omniroute contexts remove <name>
contexts rename <old> <new>
コンテキストの名前を変更します
例:
omniroute contexts rename <old> <new>
contexts export
コンテキストを JSON にエクスポートします
フラグ:
--out <path>--no-secrets--include-secrets
例:
omniroute contexts export
contexts import <file>
JSON ファイルからコンテキストをインポートします
フラグ:
--merge
例:
omniroute contexts import <file>
contexts migrate
従来のプレーンテキスト形式のコンテキスト認証情報を OS のキーチェーンに移行します
フラグ:
--yes
例:
omniroute contexts migrate
sessions
例:
omniroute sessions
sessions list
フラグ:
--user <u>--kind <k>--active--limit <n>
例:
omniroute sessions list
sessions show <sessionId>
例:
omniroute sessions show <sessionId>
sessions expire <sessionId>
フラグ:
--yes
例:
omniroute sessions expire <sessionId>
sessions expire-all
フラグ:
--user <u>--yes
例:
omniroute sessions expire-all
sessions current
例:
omniroute sessions current
コメント
Markdown 対応