跳到正文
TakoAPI
返回技能列表

context-management

由 marcus-daemon 提供

Web & Frontend Development
558下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Manage AI agent context window consumption, prevent compaction death spirals, and enforce sub-agent spawn policies.

描述

该技能的功能

Monitors AI agent context window consumption and enforces policies for sub-agent spawning, compaction preparation, and post-compaction recovery. Tracks usage thresholds, estimates remaining runway, and profiles session patterns to recommend config adjustments.

Unlike general memory tools, this skill targets context window mechanics specifically — spawn thresholds, compaction checkpoints, and config tuning — preventing the silent quality degradation that happens before hard limits are hit.

何时使用

  • Checking how much context runway remains mid-session
  • Deciding whether to spawn a sub-agent for a tool-heavy task
  • Writing a structured checkpoint before triggering compaction
  • Recovering working state after compaction or starting a new session
  • Tuning context compression and pruning settings based on work style

示例工作流

输入

User asks: What's eating my context and how much runway do I have?

智能体
  1. 1

    Run session_status to get current window size and usage percentage

  2. 2

    Estimate breakdown across baseline, messages, tool call results, and compaction summaries

  3. 3

    Classify session pattern as tool-heavy, conversational, mixed, or bursty

  4. 4

    Report usage as a range with threshold-based recommendations

输出

Context usage breakdown with runway estimate and a recommendation to spawn sub-agents or compact based on current percentage

安装

clawhub install marcus-daemon/context-management

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接