← Back to home
Skill

上下文压缩策略

tencent_skillhub · 0.1.1 · Downloads 197 · Heat 40.1

Introduction

上下文压缩、长会话压缩、结构化摘要、compaction、按任务而非按请求优化 token、可持久的交接摘要(保留决策/文件/风险/下一步)、Agent 忘了自己改过哪些文件、压缩质量评估。当用户说「会话太长要压缩一下」「怎么设计对话摘要策略」「压缩之后 Agent 就忘了改过什么文件」「怎么评估摘要有没有丢关键信息」「大代码库超出上下文怎么办」时使用。核心:优化「每任务 token」而不是「每请求 token」(压缩丢了路径/报错/理由会逼 Agent 重新探索,反而更贵);三种方法——锚定迭代摘要(长会话、需要文件追踪,首选)、不透明压缩(短会话、极致压缩、不可审计)、全量再生摘要(可读性优先、有清晰阶段边界);先解决「产物轨迹」这个最弱维度;带强制章节的结构化摘要;用探针而不是 ROUGE 评估;六维评分。附评估框架参考。也覆盖「改过的文件」「对话摘要策略」「关键信息」这类说法。改编自 Agent Skills for Context Engineering 的 context-compression(MIT)。

Resource Information

Author:user_a3a2e24a
Category:Automation
Version:0.1.1
Auth: No auth
Pricing: Not specified

License information is collected from official sources and may be outdated or missing. Refer to the LICENSE file in the original repository before commercial use.

Tags
提示词优化上下文管理记忆增强

Information boundary

Information on this page is collected from official documents for technical presentation only and does not imply our endorsement. Pricing, quotas and availability are subject to the latest official statements. We make no commitment regarding any action you take after leaving this site.

Similar skills

Agent Browser

Not specified

用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。

技能发现·Find Skills

API key required

不知道装什么技能?想让 AI 自己找到最合适的技能?技能发现·Find Skills 是场景驱动+关键词双模式的技能发现工具(skill discovery / skill finder / install skills):用自然语言描述场景/需求(如"我想做一个海报""帮我分析股票""找个薅羊毛技能"),或明确说"安装技能/find skills/找个skill/有没有做XX的技能"时,自动从官方内置、本地已安装、SkillHub、虾评、GitHub、ClawHub 六层联合搜索并推荐最合适的技能,支持一键安装。已完全替代官方原 find-skills 插件。触发词:找技能、安装技能、技能推荐、技能发现、find skills、skill discovery、install skill。

self-improving agent

Not specified

记录自身发现以实现自我改进的技能

Agent Browser

Not specified

用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。

Proactive Agent

FreemiumAPI key required

将 AI 代理从任务执行者转变为能够预见需求、持续优化的主动伙伴。现已支持 WAL Protocol、Working Buffer、Autonomous Crons 及经过实战验证的模式。属于 Hal Stack 🦞。

Memory Setup

API key required

启用并配置 Moltbot/Clawdbot 记忆搜索以实现持久上下文。适用于初始化记忆、解决“金鱼脑”问题或协助用户配置 memorySearch。涵盖 MEMORY.md、日志记录及向量搜索设置。

What is a Skill

A Skill is a packaged single capability, such as text recognition, document summarization, or keyword extraction. Developers wrap the calling logic and prompts into a plugin-like unit, so users can load it without understanding the underlying model. StackPilot indexes a large number of skills that can be tried instantly or assembled into a plan.