Context Compaction
コンテキスト圧縮
コンテキスト圧縮は、古い会話状態をより小さいアイテムに置き換え、長いタスクを続行できるようにします。そのアイテムは読める要約でない場合もあり、詳細が失われることがあります。
history → compact item → continuity checkモデル制限前のトリガーコーディングエージェントがコンテキストの限界に近づきます。システムは以前のターンを圧縮しますが、目標、意思決定、変更されたファイル、未解決のエラーは利用可能なままにします。目標 · ファイル · エラー不透明アイテム C7C7 + 新しい入力history → preserved state + compact item → continuity checkOPSもう一つの例
コーディングエージェントがコンテキストの限界に近づきます。システムは以前のターンを圧縮しますが、目標、意思決定、変更されたファイル、未解決のエラーは利用可能なままにします。
主な部分
- 01圧縮トリガー
- 02ソース履歴
- 03保持するステート
- 04コンパクトアイテム
- 05続き入力
- 06連続性チェック
以下の場合に使用します
必要なコンテキストがモデルの制限に近い場合に使用します。次のターンでもタスクが完了できるか確認してください。
以下の場合は使用しないでください
コンパクトアイテムを完全な記録として扱わないでください。権限、正確な値、未完の作業、ソースの証拠は別の場所に保持してください。
コードで使用する名前
history → preserved state + compact item → continuity check 出荷前に
Check the model and prompt versions, source data, versioned evaluation set, and measures. Verify links to evidence, tool permissions, privacy, common failures, decline-to-answer and fallback behavior, human review, monitoring, cost, speed, and rollback.
Outcome:Complete the task with コンテキスト圧縮 (Context Compaction)。 User context:コーディングエージェントがコンテキストの限界に近づきます。システムは以前のターンを圧縮しますが、目標、意思決定、変更されたファイル、未解決のエラーは利用可能なままにします。 AI method or concept:コンテキスト圧縮 (Context Compaction)。 Why it fits:必要なコンテキストがモデルの制限に近い場合に使用します。次のターンでもタスクが完了できるか確認してください。 Do not use it when:コンパクトアイテムを完全な記録として扱わないでください。権限、正確な値、未完の作業、ソースの証拠は別の場所に保持してください。 AI requirements: Define the input and source evidence. Set model and tool permissions. Use versioned evaluation data and measures. Define failure, decline-to-answer, privacy, speed, and cost limits. Operational safeguards: Keep a clear trace and hide sensitive log data. Show users a safe fallback. Mark steps that need human review. Define how to roll back the model or prompt. Acceptance criteria: Record baseline and target measures on a versioned evaluation set. Test edge cases and hostile inputs. Verify fallback, monitoring, permissions, and rollback. Evidence and limits (evidence boundary):その情報源にとって公式です。他のプラットフォームやチームはその用語を別の方法で使用する場合があります。 Unknowns to confirm: Target task, model and version, evaluation owner, source data, risk limit, tool permissions, and production fallback.
このリクエストを確認する
Review how コンテキスト圧縮 (Context Compaction) is used now. Definition: コンテキスト圧縮は、古い会話状態をより小さいアイテムに置き換え、長いタスクを続行できるようにします。そのアイテムは読める要約でない場合もあり、詳細が失われることがあります。 Release checks: Check the model and prompt versions, source data, versioned evaluation set, and measures. Verify links to evidence, tool permissions, privacy, common failures, decline-to-answer and fallback behavior, human review, monitoring, cost, speed, and rollback. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.