# 量一遍常驻占用:逐个列出常驻层部件,看谁最贵
for f in prompt/system.md prompt/tools/*.json prompt/skills/*/SKILL.md; do
[ -f "$f" ] || continue
wc -m "$f"
done
# 按需层只应在被选中后展开:技能正文与引用文件不应出现在常驻清单里
for f in prompt/skills/*/references/*.md; do
[ -f "$f" ] || continue
echo "按需:$f"
wc -m "$f"
done
the set of strategies for curating and maintaining the optimal set of tokens (information) during LLM inference ... including all the other information that may land there outside of the prompts.
whether direct user input, retrieved content, tool output ... persistent memory, alters the model's behavior in ways the application developer did not intend.
many skills were written as elaborate itineraries or recipes. ... overly specific guidance can now hinder results where it previously helped. ... skill descriptions should be as short as possible
06术语
术语渐进式披露 Progressive Disclosure
界定提示资产只在前端暴露最短的触发描述与索引,把细节留到确实需要时再加载,以压低常驻上下文占用。
相关节点—
术语工具定义与滥用治理 Tool Definition and Abuse Governance
界定工具的名称、描述与参数模式构成提示词面的一部分;描述含糊会诱发误用,工具过多会诱发滥用与误选。
相关节点—
术语子 Agent 委派与返回契约 Sub-agent Delegation and Return Contract