AI, Why Does It Also Need to Sleep?

marsbit发布于2026-04-07更新于2026-04-07

文章摘要

Anthropic's accidental leak of Claude Code's source code in 2026 revealed an experimental feature called "autoDream," part of the KAIROS system, which gives AI a sleep-like cycle. Unlike the prevailing AI agent paradigm of continuous, uninterrupted operation, autoDream operates offline when users are inactive. It processes and consolidates daily logs—resolving contradictions, converting vague observations into facts, and discarding redundant information—while avoiding the accumulation of noise in the limited context window, a phenomenon known as "context corruption." This mirrors human brain function: the hippocampus temporarily stores daily experiences, and during rest, the brain prioritizes and transfers important memories to the neocortex through processes like active systems consolidation. Both systems must go offline to perform memory maintenance, as simultaneous processing and consolidation compete for resources. autoDream differs in one key aspect: it labels its outputs as "hints" rather than definitive truths, requiring verification upon use—a cautious approach unlike human memory, which often constructs narratives with high confidence. The emergence of this sleep-like mechanism suggests that, beyond mere biological imitation, intelligent systems may inherently require periodic rest to maintain coherence and performance. It challenges the assumption that more power and continuous operation always lead to greater intelligence, pointing instead to the necessity of rh...

Written by: Tang Yitao

Edited by: Jing Yu

Source: GeekPark

On March 31, 2026, Anthropic accidentally leaked 510,000 lines of Claude Code's source code to the public npm registry due to a packaging error. The code was mirrored to GitHub within hours and could not be retrieved.

A lot of content was leaked, and security researchers and competitors took what they needed. But among all the unreleased features, one name sparked widespread discussion—autoDream, automatic dreaming.

autoDream is part of a background resident system called KAIROS (Ancient Greek for "the right moment").

KAIROS continuously observes and records while the user is working, maintaining a daily log (somewhat like a lobster). autoDream, on the other hand, only starts after the user turns off the computer, organizing the memories accumulated during the day, resolving contradictions, and converting vague observations into confirmed facts.

The two form a complete cycle: KAIROS is awake, autoDream is asleep—Anthropic's engineers have created a sleep-wake cycle for AI.

Over the past two years, the hottest narrative in the AI industry has been Agent: autonomous operation, never stopping, which is seen as AI's core advantage over humans.

But the company that has pushed Agent capabilities the deepest has precisely set rest times for AI in its own code.

Why?

The Cost of Never Stopping

An AI that never stops will hit a wall.

Every large language model has a "context window," a physical upper bound on the total amount of information it can process at any one moment. As an Agent runs continuously, project history, user preferences, and conversation records keep piling up. After exceeding a critical point, the model begins to forget early instructions, becomes inconsistent, and fabricates facts.

The tech community calls this "context corruption."

Many Agents adopt a crude coping strategy: shove all the history into the context window and hope the model can prioritize on its own. The result is that the more information there is, the worse the performance becomes.

The human brain hits the same wall.

Everything experienced during the day is quickly written into the "hippocampus." This is a temporary storage area with limited capacity, more like a whiteboard. True long-term memories are stored in the "neocortex," which has large capacity but is slow to write to.

A core task of human sleep is to empty this overloaded whiteboard, moving useful information to the hard drive.

The laboratory of Björn Rasch at the Neuroscience Center of the University of Zurich, Switzerland, named this process "active systems consolidation."

Continuous sleep deprivation experiments repeatedly prove: a brain that never shuts down does not become more efficient; memory fails first, followed by attention, and finally even basic judgment collapses.

Natural selection is extremely cruel to inefficient behaviors, but sleep has not been eliminated. From fruit flies to whales, almost all animals with a nervous system sleep. Dolphins evolved "unihemispheric sleep," where the two brain hemispheres rest alternately—it would rather invent a whole new way of sleeping than give up sleep itself.

Killer whales, belugas, and bottlenose dolphins resting at the bottom of a pool | Image source: National Library of Medicine (United States)

The two systems face the same set of constraints: instant processing power is limited, but historical experience expands infinitely.

Two Answers

In biology, there is a concept called convergent evolution: species that are distantly related, because they face similar environmental pressures, independently evolve similar solutions. The classic example is the eye.

Both octopuses and humans have camera-like eyes: a adjustable lens focuses light onto a retina, and an iris controls the amount of light entering. The overall structure is almost identical.

Comparison of octopus and human eye structure | Image source: OctoNation

But octopuses are mollusks, and humans are vertebrates. Their common ancestor lived over 500 million years ago, a time when there were no complex visual organs on Earth. Two completely independent evolutionary paths arrived at almost the same endpoint. Because to efficiently convert light into a clear image, the path allowed by physical laws is almost only the camera type: a lens that can focus, a light-sensitive surface to capture the image, and an aperture to regulate light intake—all indispensable.

The relationship between autoDream and human brain sleep might be of this kind—under similar constraints, the two types of systems may converge to similar structures.

The necessity to go offline is one of their most similar common points.

autoDream cannot run while the user is working. It starts independently as a forked subprocess, completely isolated from the main thread, with strictly limited tool permissions.

The human brain faces the same problem and offers a more radical solution: moving memories from the hippocampus (temporary storage) to the neocortex (long-term storage) requires a set of brainwave rhythms that only appear during sleep.

The most critical among these are the hippocampal sharp-wave ripples, responsible for packaging the day's encoded memory fragments and sending them piece by piece to the cerebral cortex; the slow oscillations of the cortex and the spindle waves from the thalamus provide precise timing coordination for the entire process.

This set of rhythms cannot form in a waking state; external stimuli disrupt it. So you don't sleep because you are tired; rather, the brain must close the front door to open the back door.

Or put another way, within the same time window, information intake and structural organization compete for resources; they are not complementary.

Active systems consolidation model during sleep. A (Data Migration): During deep sleep (slow-wave sleep), memories recently written to the 'hippocampus' (temporary storage) are repeatedly replayed, gradually transferred, and consolidated into the 'neocortex' (long-term storage). B (Transmission Protocol): This data transfer process relies on highly synchronized 'dialogue' between the two regions. The cerebral cortex emits slow brainwaves (red line) as the master rhythm. Driven by the wave peaks, the hippocampus packages memory fragments into high-frequency signals (green line, sharp-wave ripples), perfectly synchronized with the carrier waves (blue line, spindle waves) emitted by the thalamus. This is like embedding high-frequency memory data precisely into the gaps of the transmission channel, ensuring information is synchronously uploaded to the cerebral cortex. | Image source: National Library of Medicine (United States)

Another similarity is not making full memories, but editing them.

After starting, autoDream does not keep all logs. It first reads existing memories to confirm known information, then scans KAIROS's daily log, focusing on processing parts that deviate from previous cognition: memories that contradict what was said yesterday, or are more complex than previously thought, are prioritized for recording.

The organized memories are stored in a three-layer index: a lightweight pointer layer is always loaded, topic files are loaded on demand, and the full history is never loaded directly. Facts that can be directly looked up from the project code (like which file a function is defined in) are not written into memory at all.

The human brain does almost the same thing during sleep.

A study by Harvard Medical School lecturer Erin J. Wamsley showed that sleep preferentially consolidates unusual information, such as things that surprised you, caused emotional波动, or are related to unsolved problems. Large amounts of repetitive, featureless daily details are discarded, leaving only abstract patterns—you might not remember exactly what you saw on your way to work yesterday, but you clearly remember how to get there.

Interestingly, there is one point where the two systems made different choices. The memories produced by autoDream are explicitly labeled as "hint" rather than "truth" in the code. The agent must re-verify their validity before each use because it knows its organized content might be inaccurate.

The human brain lacks this mechanism. This is why eyewitnesses in court often give wrong testimony. They are not intentionally lying; it's because memory is temporarily pieced together from scattered fragments in the brain, and errors are the norm.

Evolution probably found no need to install an uncertainty tag for the human brain. In a primitive environment requiring quick physical reactions, believing memory enables immediate action, while doubting memory leads to hesitation—and hesitation means defeat.

But for an AI that repeatedly makes knowledge-based decisions, the cost of verification is low, while blind confidence is dangerous.

Two different contexts lead to two different answers.

Smarter Laziness

In evolutionary biology, convergent evolution means two independent lineages, without directly exchanging information, arrive at the same endpoint. There is no plagiarism in nature, but engineers can read papers.

When Anthropic designed this sleep mechanism, was it because they hit the same physical wall as the human brain, or did they reference neuroscience from the start?

The leaked code contains no citations of neuroscience literature; the name "autoDream" seems more like a programmer's joke. A stronger driver was likely the engineering constraints themselves: the context has a hard limit, long-term operation leads to noise accumulation, and online organization would pollute the main thread's reasoning. They were solving an engineering problem; biomimicry was never the goal.

What truly determined the shape of the answer was the compressive force of the constraints themselves.

Over the past two years, the AI industry's definition of "stronger intelligence" has almost always pointed in the same direction—larger models, longer context, faster reasoning, 7×24 uninterrupted operation. The direction is always "more."

The existence of autoDream suggests a different proposition: a smarter agent might be a lazier one.

An agent that never stops to organize itself will not become smarter; it will only become more chaotic.

The human brain, through hundreds of millions of years of evolution, arrived at a seemingly clumsy conclusion: intelligence must have rhythm. Wakefulness is for perceiving the world; sleep is for understanding it. When an AI company, in solving an engineering problem, independently arrives at the same conclusion, this perhaps hints at something:

Intelligence has some unavoidable basic overhead.

Perhaps, an AI that never sleeps is not a stronger AI. It is merely an AI that has not yet realized it needs to sleep.

相关问答

QWhat is the main reason AI systems like Claude Code might need a 'sleep' mechanism similar to humans?

AAI systems need a 'sleep' mechanism to prevent 'context corruption,' where continuous operation leads to information overload, causing the model to forget early instructions, become inconsistent, and generate false information, due to the physical limits of their context window.

QHow does the human brain's memory consolidation during sleep compare to the AI's autoDream system?

ABoth systems offline to transfer information from temporary storage (human hippocampus or AI's daily logs) to long-term storage (human neocortex or AI's indexed memory), prioritizing unusual or conflicting information for consolidation while discarding redundant details.

QWhat is 'convergent evolution' as mentioned in the article, and how does it relate to AI and human sleep patterns?

AConvergent evolution refers to unrelated species developing similar solutions to similar environmental pressures. Similarly, AI (like Anthropic's autoDream) and human brains independently evolved offline 'sleep' mechanisms to manage limited processing capacity and infinite historical data expansion.

QWhy does the AI's autoDream label its consolidated memories as 'hints' rather than 'truth,' and how the human brain handles memories?

AAI labels memories as 'hints' to enforce verification before use, avoiding overconfidence in potentially inaccurate consolidated data. Human brains lack this mechanism, often leading to false memories, as evolution prioritized quick action over accuracy in primitive environments.

QWhat does the existence of autoDream suggest about the future direction of AI intelligence development?

AIt suggests that smarter AI may not be about continuous operation ('more'), but about rhythmic cycles of activity and rest ('laziness'), emphasizing that intelligence has fundamental overheads like periodic consolidation to avoid chaos and improve understanding.

你可能也喜欢

智能体第一案,判了什么

4月30日,广州互联网法院作出国内智能体领域首份行为保全裁定,责令一款开源智能体软件停止提供下载、停止避开平台技术措施、删除相关教程和数据。该软件通过调用操作系统“无障碍服务”权限,绕过平台规则实现自动化操作,被诉侵害原告平台权益。 此前,美国法院也在类似案件(Amazon起诉Perplexity)中发出禁令,理由同样是智能体绕过平台API直接操作页面,破坏了技术管理措施。两案共同指向智能体发展的核心法律问题:操作平台不仅需要用户授权,还需获得平台方授权,即“双重授权”原则。 文章指出,平台反对此类绕过行为,主要出于权责对等的考量。若智能体绕过平台审核与安全机制,将导致内容管理、数据安全和隐私保护体系失效,责任归属模糊。这不仅是商业竞争,更是法律责任问题。 以豆包手机为例,其1.0版本曾尝试通过系统权限直接操作其他App,但遭遇阻力;2.0版本则转向与生态厂商(如阿里)谈判授权、通过API接口合作,体现了从“绕过”到“合规”的战略调整。 综合分析,中美司法案例及行业实践表明,智能体“野蛮生长”阶段已结束,行业正进入“合规竞赛”时代。合规成本成为重要门槛,“双重授权”渐成行业标准,开源亦不能免责。监管通过对激进典型案例的裁决,旨在引导整个行业走向规范合作。未来,预计将有更多智能体与平台通过授权对接,推动行业游戏规则重构。

marsbit3分钟前

智能体第一案,判了什么

marsbit3分钟前

老年人借钱炒股、全民加杠杆,韩股跳水后“蚂蚁大军”慌了

韩国股市近期从高位大幅回调,引发广泛关注。此前,在AI半导体热潮推动下,韩国KOSPI指数一路飙升,逼近9000点,催生了全民炒股的热潮。散户投资者(被称为“蚂蚁大军”)热情高涨,不仅开户数激增(活跃账户超1亿,远超人口总数),更普遍采用融资加杠杆、甚至借钱的方式入市,大量资金集中押注三星电子和SK海力士等少数科技龙头股。 然而,市场风向骤变。受美股科技股回调、外资撤离及韩元贬值等因素影响,韩国股市近期连续重挫,两大龙头股双双跌停并触发市场熔断。这导致大量使用杠杆的散户面临巨大压力,恐慌情绪蔓延。 此次热潮中呈现几个突出特点:一是投资群体覆盖全年龄段,从未成年人到老年人纷纷开户,甚至有家长为婴儿开户投资ETF;二是“银发族”成为重要力量,不少老年人动用养老储蓄、甚至退保筹集资金投入股市;三是杠杆工具被广泛使用,高风险的单股杠杆ETF交易量占比极高,放大了市场波动。 监管层已对杠杆投资激增和市场的“羊群效应”表示担忧。市场剧烈震荡后,韩国总统李在明出面喊话稳定信心,英伟达CEO黄仁勋访韩也被视为对半导体产业的信心支持。当前局面凸显了在牛市狂热中,过度依赖杠杆和集中投资所带来的风险。

marsbit10分钟前

老年人借钱炒股、全民加杠杆,韩股跳水后“蚂蚁大军”慌了

marsbit10分钟前

从混元到微信AI,腾讯的慢节奏走到交付关口

2026年6月8日,微信AI进入内测阶段,用户可通过自然语言对话直接调用和操作微信小程序。开放平台提供“自动模式”和“开发模式”两种接入方式。自动模式允许平台读取小程序源码,实现零开发成本接入,旨在吸引微信生态内数十万中小开发者;开发模式则允许服务商自定义技能。此举标志着腾讯AI从技术储备、独立产品验证走向在超级应用内的场景交付。 微信AI的底层能力依赖于腾讯自研的混元大模型。该模型在中文大模型评测中基础能力排名国内第二,但在应用与Agent能力上领先。腾讯坚持季度级稳健迭代,而非追逐高频发布,旨在为微信AI所需的稳定、可靠的操作型任务提供支撑。 此前,腾讯的独立AI应用“元宝”在2026年春节凭借红包活动实现日活峰值超5000万、月活破亿,但节后数据回落,常态日活约900万。这验证了微信社交链的拉新能力,也凸显了独立App在留存上的挑战。因此,微信选择将AI原生集成至应用内,通过绑定实际使用场景来提升用户黏性。 微信AI的目标是实现小程序的“龙虾化”(即智能体化),使其能自主执行跨应用任务。但这引发了生态平衡的核心矛盾:高效的中心化AI调度可能削弱服务商的页面流量、品牌曝光与用户沉淀。腾讯管理层承认需兼顾“中心化调度与去中心化流量保护”,具体规则尚未公布。 目前,腾讯AI已形成混元(底座)、元宝(C端验证)、微信AI(场景交付)三条并进的路径。微信AI内测是整合与交付的关键一步,但其成功取决于三个变量:开发者对源码授权的信任、生态流量的合理分配以及AI操作的准确性与责任界定。腾讯的AI战略是一场马拉松,内测仅是中途标记,最终体验与市场接受度仍需时间验证。

marsbit10分钟前

从混元到微信AI,腾讯的慢节奏走到交付关口

marsbit10分钟前

交易

现货
合约

热门文章

加密市场宏观研报:原油飓风、AI巨浪与比特币的十字路口

全球金融市场正经历一场由地缘冲突引发的系统性重估:霍尔木兹海峡封锁导致原油一度暴涨30%,G7紧急释放储备后涨幅收窄,滞胀风险取代通胀成为核心担忧,美元成为“唯一避风港”并逼近100大关,亚太及美股遭遇“黑色星期一”全线重挫;AI领域则冰火两重天,国家发改委提出“十五五”末10万亿规模目标,OpenClaw项目火爆推动概念股狂飙;比特币在宏观风暴中跌破70000美元关键防线。

552人学过发布于 2026.03.12更新于 2026.03.12

加密市场宏观研报:原油飓风、AI巨浪与比特币的十字路口

相关讨论

欢迎来到HTX社区。在这里,您可以了解最新的平台发展动态并获得专业的市场意见。以下是用户对AI(AI)币价的意见。

活动图片