Claude Code 的 /dream 命令:像 REM 睡眠一样的自动记忆整合
📄 中文摘要
Claude Code 推出了 /dream 命令,该命令能够自动审查用户的会话历史,修剪过时或矛盾的记忆,并将其整合为结构化的知识。这一过程类似于人类的 REM 睡眠,旨在优化 AI 代理的记忆管理。/dream 在满足特定条件(如距离上次梦境超过 24 小时或完成 5 次以上会话)后在后台运行。它会审查超过 900 个过去的会话记录,识别 CLAUDE.md 和记忆文件中的矛盾和过时信息,并用实际日期替换模糊的时间参考,如“今天”或“最近”。
📄 English Summary
Claude Code's /dream Command: Automatic Memory Consolidation Like REM Sleep
Claude Code has introduced the /dream command, which automatically reviews a user's session history, prunes outdated or contradictory memories, and consolidates them into structured knowledge. This process is akin to REM sleep in humans, aimed at optimizing memory management for AI agents. The /dream command operates in the background after certain conditions are met, such as more than 24 hours since the last dream or completion of over five sessions. It reviews over 900 past session transcripts, identifies contradictions and outdated information in the CLAUDE.md and memory files, and replaces vague time references like 'today' or 'recently' with actual dates.
Powered by Cloudflare Workers + Payload CMS + Claude 3.5
数据源: OpenAI, Google AI, DeepMind, AWS ML Blog, HuggingFace 等