context-compression
✓在压缩代理上下文、实现对话摘要、减少长会话中的令牌使用或询问“上下文压缩”、“对话历史记录”、“令牌优化”、“上下文限制”、“摘要策略”时使用
SKILL.md
When agent sessions generate millions of tokens, compression becomes mandatory. Optimize for tokens-per-task (total tokens to complete a task), not tokens-per-request.
| Fixed threshold | 70-80% context | Simple but may compress early | | Sliding window | Last N turns + summary | Predictable size | | Importance-based | Low-relevance first | Complex but preserves signal | | Task-boundary | At task completions | Clean but unpredictable |
File tracking is the weakest dimension (2.2-2.5/5.0 in evaluations). Coding agents need:
在压缩代理上下文、实现对话摘要、减少长会话中的令牌使用或询问“上下文压缩”、“对话历史记录”、“令牌优化”、“上下文限制”、“摘要策略”时使用 来源:eyadsibai/ltk。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/eyadsibai/ltk --skill context-compression- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-17
- 更新时间
- 2026-02-18
快速解答
什么是 context-compression?
在压缩代理上下文、实现对话摘要、减少长会话中的令牌使用或询问“上下文压缩”、“对话历史记录”、“令牌优化”、“上下文限制”、“摘要策略”时使用 来源:eyadsibai/ltk。
如何安装 context-compression?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/eyadsibai/ltk --skill context-compression 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/eyadsibai/ltk
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-17