提示词
Audience: coding-agent / long-session products.
Steps:
1) Snapshot tool-call/result blocks.
2) Noul/Choice: keep | delete | truncate.
3) Code splices kept text verbatim — no summary rewrite of kept spans.
Expected effect: smaller context with verbatim retention (author claim).
Caveat: omit ≠ proven unnecessary.
需要授权:typesafe-sdkcoding-agent
它是怎么搭起来的
以下说明为英文原文(来自社区作者),提示词本身建议保留英文。
Sources: fast-jev-compaction · cobanov “Context and compaction” in awesome-jev · aliaihub agent-supervision showcase.
Keep verbatim spans the agent must not invent. Sibling pattern: tool-result sieve. Compaction quality claims from community repos are author-reported.
Sources (wave-2 deepen)
为什么它好用
Decision model chooses what stays; code owns transcript bytes.
本案例收集自公开的 Jev 社区,版权归原作者所有。提示词属于参考资料:运行前请先审阅内容, 并且不要让 bot 超出你实际授予的权限行事。