HumanLayer 的 Dex Horthy 分享跨会话、压缩和新会话场景下的上下文工程技巧。核心做法是把所有重要的上下文和决策写入 artifacts 中的文档(如设计。
tip for @humanlayer_dev on context engineering across sessions, compaction, and handing off to another human who will carry a session or task forward:
For sessions losing context on compact / new session, you should
1. make sure all context/decisions are into a doc in the artifacts (design, research, etc)
2. you can use a `/rpi:iterate-*` skill, e.g. `/rpi:iterate-design-discussion` to tell the agent in a new session to load context from artifacts
2b. You can also just @-mention the artifacts that matter in a new session
But the core approach is "offload all context to artifacts so resume / handoff is really easy" - nothing that matters should ever live ONLY in your context window
来源:dex · x.com