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.

你可能也喜欢

富达年中复盘:2026 年数字资产的 6 大关键趋势

富达数字资产研究团队在2026年年中复盘报告中,梳理了年初展望中提出的六大关键趋势进展,认为数字资产领域正在进行结构性“重塑”。 1. **数字资产与传统资本市场加速整合**:趋势持续且快于预期。现货比特币ETP期权未平仓合约激增,代币化领域活跃,监管框架(如SEC/CFTC指南)趋于清晰,推动数字资产进一步融入主流金融体系。 2. **代币持有者权利受关注但仍不明朗**:生态内相关机制(如回购、治理重组)的试验在继续,但市场尚未对此形成明确的“权利溢价”定价,该趋势仍处早期。 3. **人工智能算力需求可能影响比特币挖矿**:比特币算力与挖矿难度出现下降,虽部分受季节性因素影响,但增长放缓的长期趋势与AI算力竞争加剧的预测相符,矿工可能正转向更有利可图的AI数据中心业务。 4. **比特币网络处于新的转折点**:OP_RETURN数据上限放宽未导致网络滥用或臃肿。当前焦点转向网络动态,Bitcoin Knots节点占比约17%,虽引发对潜在分裂风险的讨论,但Bitcoin Core(占比77%)仍主导共识。同时,抗量子计算等长期安全升级研究获得进展。 5. **空头暂时掌控市场局面**:年初至今,受清算去杠杆、高通胀及地缘政治不确定性影响,熊市情景占上风,比特币价格下跌。但近期在地缘冲突后,比特币展现出避险属性,跑赢部分传统资产,且机构参与、监管清晰度提升等结构性利好依然存在。 6. **黄金保持强势,去美元化趋势显现**:黄金在央行购金及去美元化趋势支撑下表现强劲。有证据显示比特币开始在一些国际贸易场景(如伊朗)作为支付手段被使用,但比特币紧随黄金优异表现的情景尚未出现。 **结论**:当前数字资产市场呈现短期压力与长期结构性进展并存的局面。投资者需超越价格波动,关注机构融合、监管、基础设施等领域的实质推进,这些正为下一阶段增长积蓄力量。

marsbit54分钟前

富达年中复盘:2026 年数字资产的 6 大关键趋势

marsbit54分钟前

富达年中复盘:2026 年数字资产的 6 大关键趋势

富达数字资产在年中复盘中,梳理了其在《2026年展望》中提出的六大关键趋势的当前进展: 1. **数字资产与资本市场加速整合**:传统金融渠道对数字资产的敞口需求坚挺,现货比特币ETP期权等产品发展迅速,反映出机构和主流投资者采用率持续上升。代币化势头增强,监管框架也趋于清晰,推动数字资产进一步融入金融体系。 2. **代币持有者权利逐渐受关注**:生态内正在试验更多机制以绑定持有者利益,如基于储备的回购和治理结构更新。但相关的“权利溢价”尚未完全体现在市场定价中,趋势仍处早期。 3. **人工智能与挖矿的潜在转变**:比特币算力增长呈现放缓趋势,部分原因可能是矿工将能源和基础设施转向利润率可能更高的AI算力需求。这符合此前关于结构性转变的判断。 4. **比特币处于新的转折点**:提高OP_RETURN数据上限并未导致区块链明显膨胀或网络压力。当前焦点转向网络动态,如Bitcoin Knots节点的波动可能带来潜在分裂风险,但Bitcoin Core节点仍主导共识。同时,抗量子计算等长期安全升级的准备工作也在推进。 5. **空头暂时掌控局面**:受去杠杆、高通胀及地缘政治不确定性影响,比特币价格承压,熊市情景占上风。但在压力时期,比特币也展现出作为高流动性中立资产的韧性,且机构参与、监管清晰度提升等结构性利好依然存在。 6. **黄金保持强势**:受央行购金及全球“去美元化”趋势支撑,黄金年初表现强劲。央行需求持续,黄金已成为全球主要储备资产。然而,此前预期的比特币紧随黄金的优异表现尚未出现。 **结论**:当前数字资产市场呈现短期压力与长期结构性进展并存的局面。机构化、监管和基础设施等趋势正按预期推进,为下一阶段增长积蓄力量,投资者需关注这些底层转变而非短期价格波动。

链捕手1小时前

富达年中复盘:2026 年数字资产的 6 大关键趋势

链捕手1小时前

Crypto GP 的中年危机:没有 PMF,就没有 LP 的下一张支票

**Crypto GP的中年危机:没有PMF,就没有LP的下一张支票** 当前加密货币市场,有限合伙人(LP)已不再愿意为虚无的梦想买单,普通合伙人(GP)必须拿出具有产品市场契合度(PMF)的具体产品才能持续获得融资。市场环境已从“购买未来愿景”转向“购买具体产品”阶段,LP要求立即、相对确定的赚钱机会。 文章将当前加密募资产品分为三大类:一级市场(Primary)、流动性市场(Liquid)以及中心化/去中心化金融原生收益(CeFi/DeFi Native Yield)。本文上篇重点分析一级市场。 **一级市场现状与挑战:** 过去,LP投资加密VC的主要理由包括:捕捉行业增长红利、获取项目投资渠道、信赖GP的卓越判断力、看重GP的“攒局”资源整合能力,或是进行声誉投资。然而,这些理由如今已大大削弱: 1. 获取加密资产曝险的途径(如ETF、托管账户等)已非常丰富,不再依赖VC盲池基金。 2. LP自身学习能力增强,或已建立内部团队,对GP渠道的依赖降低。 3. 多数GP在上个周期未能证明其判断力优于市场。 4. 市场下行时,“攒局”与退出变得困难。 **谁能留在牌桌上?** 在当前环境下,能继续在一级市场募资的GP主要包括: 1. 管理规模足以进入捐赠基金等长期耐心资本配置范围的基金。 2. 使用自有资金投资的家族办公室、公司或高净值人士。 3. 在本周期内真正为LP创造了超额回报的少数基金。 4. 具备明确生态资源和利益置换能力的“攒局型”基金。 对于其他大多数GP而言,行业信任已然受损,需要心态归零,在细分领域重新证明自己创造超额回报的能力,或提供具体的服务价值,以此重建信任并寻求发展。

marsbit1小时前

Crypto GP 的中年危机:没有 PMF,就没有 LP 的下一张支票

marsbit1小时前

脱钩时代来临,比特币不再是加密的唯一罗盘

文章指出,加密市场正告别以比特币为单一风向标的时代,分化为“内生型”和“外生型”两大资产阵营。 内生型资产(如比特币和多数传统加密货币)的价值仍与加密市场整体行情深度绑定。而外生型资产的崛起成为新趋势,其价值主要依托自身业务的真实需求和基本面,日益独立于比特币价格波动。 例如,Hyperliquid作为混合型案例,其部分合约交易已转向非加密资产。Venice等项目则完全脱离加密市场,其商业模式更接近消费级AI服务,收入来自用户为AI推理付费。Figure公司利用区块链技术提升贷款效率,其核心价值在于金融科技业务本身。 此外,稳定币等赛道的企业收购与高增长(如BVNK、Bridge),也显示了其发展与加密牛熊周期的脱钩。 这一转变意味着行业分析逻辑的根本改变:研究外生型资产需要像分析传统企业一样,专注于用户群体、经济模型和行业护城河等基本面,而非紧盯比特币价格。文章列举了多个具备潜力的外生型赛道,包括链上金融服务、AI与加密融合、新型数字银行、支付、非金融消费产品等。 目前,投资相关企业股权仍是主要途径,代币机制仍需优化。但核心趋势已定:加密市场的驱动力正变得多元,行业研究重心将从解读比特币图表转向深耕企业基本面。未来,加密市场齐涨共跌的局面或将不再。

marsbit3小时前

脱钩时代来临,比特币不再是加密的唯一罗盘

marsbit3小时前

交易

现货
合约

热门文章

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

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

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

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

相关讨论

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

活动图片