您如何管理上下文窗口?

1作者: picklepixel3 个月前原帖
我一直在Claude Code上尝试上下文窗口,已经停止使用/compact,而是详细记录我的过程,包括在claude.md中写作。不过,有时候我希望在下一次会话中保留一些上下文,但又不想浪费令牌来保存这些信息,因此我创建了一个MCP服务器,通过不同的模型进行会话回顾,并返回一个简短的总结,以帮助保持进展。你们都是怎么做的呢?
查看原文
I have been experimenting with context window on Claude Code, and I have stopped using &#x2F;compact and instead i document the journey well including writing in claude.md.<p>but sometimes there is just some context that i&#x27;d like to keep with my next sessions but i do not want to burn tokens just to keep it, so i made an MCP server that does session recap through different models, and spits back a small summary to keep things on track.<p>what do you guys do?