dex· @dexhorthy · X·· 2026-10-26AI 评分61
AI 导读
针对同一会话中调用多个技能是否会污染上下文的问题,作者指出 5 步左右的常规流程通常可以直接运行,但极长复杂任务或大量技能同时激活时需要使用子智能体、新建会话或预合并消息。作者将技能内容分为权重外信息、流程步骤与行为引导三类,建议对步骤指令逐步展开,纯信息可合并输入,关键行为规则则需通过钩子或在各步骤中重复以防注意力衰减。作者还强调避免在技能中写入模型权重已具备的通用知识,以免降低灵活性。
正文
@canberryto8lo3 https://t.co/eA2CHeoQkW
question from the TL: > quick question, do you think consuming more skills in the same session unnecessarily dirties the context? > > Say you have a 5 step work, each step with a skill. You can either run all on single session, divide into subagents with relevant skills, or compact or new chat per step. my intuition says 5 steps in a process is fine. Each successive skill will take a share of attention from previous skills, so if you have a VERY long complex process where you need skills to STACK (ie instructions from skill 2 must still be honored while skill 6 is executing) Or if you have many (eg 200) separate skills that all need to be active during a session ( think: agent memory snippets implemented as skills, probably an antipattern in today’s harnesses) Then you want fresh context, subagents, or to synthetically precombine many skill contents into a single user message (although then you lose the attention recency bias for instructions in step 6 of the process) Also worth noting that good skills can be a mix of: - information not in the weights - steps to execute a process (not in the weights) -general steering or behavior They usually contain all three, but what’s in your skills nudges the meta here. More instructions / process steps? You wanna string those out Mostly information? Probably safe to combine into one user message. Behavior? Depends. Adherence can decay over a long session. Fine to split or combine, but if it’s important, you want some way of repeating important rules, either by including rules in all the steps of a process, or by something more deterministic like hooks And OF COURSE I’m begging you PLEASE stop putting stuff that’s in the weights in your skills. You are wasting time and locking in a specific, potentially suboptimal behavior.在 X 查看被引用的帖子
来源:dex · x.com