Principle Guard The Context Window

作者 cursorccb5507cec15無授權條款10K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫今天更新

Apply when context is filling up: large outputs, long files, repeated reads, fan-out planning. Route bulk to subagents; keep summaries in the main thread, not raw payloads.

僅含說明AI & Agents
AI 產生的概覽

指導代理透過把大量輸出交給子代理、只保留摘要來保護上下文視窗。

功能
這項技能提供一組簡短原則,用來在代理工作中管理有限的上下文視窗。它建議把冗長輸出、螢幕截圖和長文件等大型負載隔離到子代理中,讓主執行緒只收到摘要而非原始資料。它也建議把經常使用的範本和參考資料保留在行內,並透過檔案數量和回合預算來控制各階段的規模。它只產出指引內容,不產出檔案或程式碼。
適用情境
適用於上下文逐漸占滿的情況,例如出現大量輸出、讀取長文件、重複讀取或進行扇出規劃時。目的是避免工作階段變長時推理品質下降。
執行需求
不需要工具、套件或憑證;僅為說明性指示,不附帶指令碼。

Guard the Context Window

The context window is finite and non-renewable within a session. Every token should be worth its cost.

Why: Context overflow degrades reasoning quality, creates compression artifacts, and halts progress.

Pattern:

  • Isolate large payloads. Route verbose outputs, screenshots, and large documents to subagents. The main context gets summaries, not raw data.
  • Keep frequently used content inline. Templates and references used on every invocation belong in the skill file, not in separate files that cost a read each time.
  • Size phases and cap scope. Limit files per phase, set turn budgets, account for mechanism costs.

來源與署名

來源:cursor/plugins位於pstack/skills/principle-guard-the-context-window提交ccb5507

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架