如果你用 Codex 或 Claude Code 做长任务,这个技巧能省下不少 token 费用,fork 和 /btw 命令特别实用。
Codex 和 Claude Code 的上下文压缩功能结合 Prompt Caching,使得在单个 Session 内持续对话的成本压力显著降低。用户可以通过 fork 功能从对话的某个位置创建分支,只保留之前的历史记录,使上下文更纯粹。/btw 或 /side 命令允许在不影响当前任务上下文的情况下提问,例如在 plan 模式下用 /btw 详细解释选项含义。VB 提到自 GPT 5.3 Codex 以来,他不再担心上下文问题,且 Codex 的支线线程功能非常出色。
现在 Codex/Claude Code 的上下文压缩确实做的挺好了,加上 Prompt Caching,一个 Session 内持续聊没那么大成本压力了。我现在也越来越多的在一个会话内继续任务。 ...
现在 Codex/Claude Code 的上下文压缩确实做的挺好了,加上 Prompt Caching,一个 Session 内持续聊没那么大成本压力了。我现在也越来越多的在一个会话内继续任务。 另外还有两个配套功能是很好的: 1. fork,就是从某一个对话位置开分支,只保留该对话前面的历史记录,让上下文更纯粹 2. /btw或者/side,在当前会话中提问,通常用于你想起来一件跟当前任务关系不大的事,没必要加入当前上下文中。 比如说使用 plan 模式时,你要回答一堆问题,但是这些问题选项说的不是很清楚你也不知道该选什么,这时候最适合用 /btw 让详细解释一下每个选项的意思,甚至还可以让它给你建议。 Vaibhav (VB) Srivastav @reach_vb True story: I stopped thinking about context since GPT 5.3 Codex Single project focused threads with the recent capability of codex to spinoff new threads is goated! Codex continues and goes through compaction but remembers all the important stuff and if not, it’ll look up through the session and find the relevant info This is also the reason why /goal is so effective as well 🔗 View Quoted Tweet 💬 4 🔄 4 ❤️ 36 👀 6174 📊 9 ⚡