Back to home

Compare

Comparing: Claude Code Lets Chats Continue Across Sessions — AI Tools Get 'Working Memory' & Claude Code 让对话能跨次接着干 — AI 工具开始有了'工作记忆'

AEN
Claude CodeAnthropicAI Coding Assistant·

Claude Code Lets Chats Continue Across Sessions — AI Tools Get 'Working Memory'

Claude Code can fully restore a conversation from local logs after you close the terminal—even remembering which branch your Git working directory was on. We think what's really worth noting here isn't that "it can continue," but that AI tools are starting to possess "working memory" like humans do.

What this is

Claude Code is Anthropic's command-line AI programming assistant—it chats with AI directly in your terminal to write code. Its session resume does two things: first, it stores the conversation to local storage as an append-only log; then, when you next type, it assembles the previous context and sends it to the model.

The technical key is a JSONL file (a line-by-line append log format where each line is an independent record). Every conversation turn, tool call, and config change is only added to the end—old content is never rewritten. When you use /rewind to jump back to an earlier message and continue, the old path doesn't disappear; both old and new paths coexist—like a small branching tree. When resuming, the system traces back along the pointers between messages, skipping records that don't belong to the current path.

Three usage modes: claude --continue picks up the most recent session in the current project; claude --resume <id> targets a specific session; /resume switches between sessions already opened. Sessions are stored separately by project, so different projects don't interfere with each other.

Industry view

Supporters see this as a key step in AI tools becoming "engineered." Using AI used to feel like talking to a stranger—every time you had to re-explain the background. With resumable sessions, AI finally has a chance to become a long-term collaboration partner. Some developers who have used the feature report that the time saved from not having to re-explain things is more noticeable than improvements from model upgrades.

But there are also sober dissenting voices. An independent developer commented on Hacker News: session resume is genuinely useful for short tasks, but on complex projects what engineers care about is whether the AI understands the entire codebase architecture—not whether it remembers where yesterday's conversation left off. Logs accumulate over time and eat disk space; the official product currently has no automatic cleanup policy. The bigger questions sit in data: do sessions stay local or in the cloud? Does the enterprise version include auditing? Anthropic hasn't been clear enough on these compliance issues—this is homework enterprises must fill in themselves before deployment.

Impact on regular people

For enterprise IT: Resumable sessions lower the barrier to deploying AI tools inside the enterprise, but IT departments need to start taking AI tool log retention, data sovereignty, and compliance audit seriously—this is no longer a personal tool, but part of enterprise assets.

For working professionals: For sales, operations, and content roles that require continuous follow-up, once an AI assistant has "working memory," its value will significantly exceed single Q&A. Not having to re-explain customer background or project progress every time—that alone is real efficiency.

For the consumer market: Consumer-side phone voice assistants haven't yet widely adopted this kind of persistent memory. Once they do, conversations with AI will no longer be "use and discard," and public debate around privacy boundaries will heat up—recall the controversies around smart speakers back then; they'll likely be replayed.

Source: juejin.cn
BZH
Claude CodeAnthropicAI 编程助手·

Claude Code 让对话能跨次接着干 — AI 工具开始有了'工作记忆'

Claude Code 在你关掉终端后,能从本地日志里完整恢复一段对话,连 Git 工作目录(一种代码版本管理的隔离开发环境)当时在哪个分支都记得。编辑部认为,这件事真正值得留意的不是'能续上',而是 AI 工具开始像人一样拥有了'工作记忆'。

这是什么

Claude Code 是 Anthropic 推出的命令行 AI 编程助手——直接在终端里和 AI 对话写代码。它的会话恢复做两件事:先把对话以追加日志的方式存到本地,再在你下次输入时,把上次的上下文整理好发给模型。

技术上的关键是一份 JSONL 文件(一种按行追加写入的日志格式,每行一条独立记录)。每轮对话、工具调用、配置变更都只往末尾加,不重写旧内容。当你用 /rewind 退回前面的消息再继续,旧路线不会消失,新旧两条线会同时存在——像一棵分叉的小树。恢复时,系统沿着消息之间的指向关系回溯,跳过不属于当前路线的记录。

三种使用方式:claude --continue 接上当前项目最近一次会话;claude --resume <id> 指定某次会话;/resume 在已打开的会话内切换。会话按项目分开存,不同项目互不干扰。

行业怎么看

支持方认为这是 AI 工具'工程化'的关键一步。过去用 AI 像和陌生人沟通,每次都要重新交代背景;有了可恢复会话,AI 才有机会成为长期协作的伙伴。一些使用过该功能的开发者反馈,单这一项节省的重复解释时间,比模型升级带来的提升更明显。

但也有冷静的反对声音。一位独立开发者在 Hacker News 评论:会话恢复对短任务确实有用,但复杂项目里工程师在意的是 AI 是否理解整个代码库架构,而不是记住昨天聊到哪。日志长期累积会占盘,官方目前没有自动清理策略。更大的疑问在数据:会话存本地还是云端?企业版是否有审计?这些合规问题 Anthropic 讲得不够清楚,是企业落地前必须自己补的功课。

对普通人的影响

对企业 IT:可恢复会话降低了 AI 工具在企业落地的门槛,但 IT 部门需要开始正视 AI 工具的日志留存、数据主权和合规审计问题——这不再是个人工具,而是企业资产的一部分。

对个人职场:对销售、运营、内容这类需要连续跟进的工作,AI 助手一旦具备'工作记忆',价值会显著超过单次问答。每次不用重新交代客户背景、项目进度,光这一点就是实打实的效率。

对消费市场:消费者侧的手机语音助手尚未普及这种持久记忆。一旦跟进,意味着你和 AI 的对话不再'用完即丢',隐私边界的公众讨论也会随之升温——参考智能音箱当年的争议,大概率会重演。

Source: juejin.cn