agent-cli
Free別AIのCLI呼び出しを支援する。Codex以外のCLIを使う依頼で使う。 Codexへの相談・実装委譲は codex Skill を使う。Skill運用の移行は agent-skill-migrate、配置監査は overlay-audit を使う。
The English summary is being prepared. Showing the original description.
アプリがモデルへ送るプロンプトとtool定義のサイズを計測・整理するときに使う。エージェント指示ファイルの整理は instruction-refactor を使う。計測scriptの作成は依頼がある場合に限る。
The English summary is being prepared. Showing the original description.
Run score Not tested
See how to installReview the instructions the agent will receive before you install.
プロンプト変更は計測してから完了とする。効果は「送信バイト数」と「挙動不変」の2点で示す。
モデルへ実際に送られるテキストは4層ある。層を分けて数えること:
| 層 | 内容 | 頻度 |
|---|---|---|
| system prompt | ベース指示 + role + プロジェクト指示 + per-model 注記 | 毎リクエスト |
| 注入ブロック | transform_context / middleware が毎回追記する索引・ヘッダ | 毎リクエスト |
| tool surface | 各ツールの name + description + JSON スキーマ(TypeBox 等) | 毎リクエスト |
| 副プロンプト | judge / verifier / compaction / 要約などの一回きり指示 | 呼出ごと一回 |
文字列を削るだけでなく、inline 埋め込み文字列を名前付き定数にする。名前がない文面は計測できず、重複や内容のずれが起きる。
git show HEAD:<file> の旧版と新版を同じ抽出器に通し、解決済み文字列を SAME/DIFF/NEW/GONE で突き合わせる。DIFF があったら意図した文面差か確認する。やる:
## ヘッダ / 注入ブロックを名前付き定数へ(計測可能にする)やらない:
scripts/prompt-budget.ts(Node/TS プロジェクト想定)依頼された場合に限り、次を参考にする:
src/ を走査し const NAME = \...` | '...'(NAME に PROMPT/BLOCK を含む)を抽出。${NAME}` 補間は全定数から再帰解決(WORKER_PROMPT ⊃ BASE_PROMPT 型の入れ子に対応)。エントリポイントが import で main を実行する場合は ソース抽出で回避name + description + JSON.stringify(parameters) のサイズを計る--json(前後 diff 用)。トークン推定は chars/4 でよい。目的は同じ物差しで比較することで、絶対精度は求めない。No reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
別AIのCLI呼び出しを支援する。Codex以外のCLIを使う依頼で使う。 Codexへの相談・実装委譲は codex Skill を使う。Skill運用の移行は agent-skill-migrate、配置監査は overlay-audit を使う。
The English summary is being prepared. Showing the original description.
明示されたCodex・CursorのSkill運用移行を、指定設計と既存点検に基づき適用する。一般的な指示ファイルの整理は instruction-refactor を使う。通常の実装依頼では起動しない。
The English summary is being prepared. Showing the original description.
明示されたリポジトリのSkill・Agent・呼出し・生成配布を点検または移行する。通常の実装・レビュー・調査では起動しない。一般的な指示ファイルの整理は instruction-refactor を使う。
The English summary is being prepared. Showing the original description.
プロジェクトのデザインシステムを SSOT として作成・監査・更新する。トークン、デザインシステムに関わるアクセシビリティ、Typography、Motion、aesthetic direction の作業に使う。デザインシステムに紐づかない単発UI実装や個別デザインレビューには使わない。
The English summary is being prepared. Showing the original description.
デザインシステムの作成・監査・保守、デザイントークンやUIの一貫性・個性・アクセシビリティの改善に使う。
The English summary is being prepared. Showing the original description.
会話を振り返ったAI視点の日記を作成・保存する。日記や感想の依頼に使う。作業改善の振り返りは /retro、知見の記録や要約は /ai-ltm。
The English summary is being prepared. Showing the original description.