Session bottle —
【免费下载链接】claude-memPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More项目地址: https://gitcode.com/GitHub_Trending/cl/claude-mem
project: · started: · rendered: mode: full
Original request
<第一条真实用户 prompt,逐字>
User(10:32) <逐字>
What happened:
- [#102401] Explored hooks/ — every platform hook wraps 5 shared cores
- [#102402] Read start.mjs — 6 self-heal layers before MCP boot
Assistant(10:41) <逐字>
要点: - observation 保持一行:`[#id] title — narrative 第一子句`。ID 让任意一行都可以通过 claude-mem 的搜索工具展开;**绝不在行内展开完整 narrative**。 - 消息逐字且不截断。压缩刚刚释放了数十万 token,用几千 token 的成本换取一份忠实记录正是本特性的意义所在。 - `mode:` 头行是承重的——降级 bottle 必须自我声明(`mode: reconstructed`)。 ## 7. 注入内容 **全量模式**:[claude-mem] Endless Mode — session continuation
Before doing anything else, Read this file and continue the session from where it ends:
<absolute bottle path>- It is the authoritative session record: verbatim conversation, with observations in place of tool activity. Where it conflicts with the summary above, the bottle wins.
- The final assistant message in it was already delivered to the user. Do not repeat it or redo work it describes as done — continue from its end state.
- The newest tool activity may still be settling into observations; check the timeline if the last few minutes look thin.
Current task: <one line, from the latest session summary or last user prompt>
**降级模式**替换中间三条:- It is a partial reconstruction: only the user's messages are verbatim. Your own replies were not preserved — do not assume prior phrasings. Session summary blocks are generated, not your words.
- The last session summary describes where you left off; continue from there.
【免费下载链接】claude-memPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More项目地址: https://gitcode.com/GitHub_Trending/cl/claude-mem
创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考