Claude Code 的源码中隐藏着许多尚未完全公开或仍在实验阶段的功能。它们代表了 AI 编程助手的未来方向——从持久化助手到远程控制,从自动记忆整理到多智能体协调。
Feature Flag: KAIROS | 状态: 实验性
Kairos 模式将 Claude Code 从”按需对话”转变为”持久化助手”。开启后:
--session-id 和 --continue 恢复会话源码: src/bootstrap/state.ts → getKairosActive() / setKairosActive()
Feature Flag: GrowthBook tengu_onyx_plover | 状态: 已发布
在你不使用 Claude Code 的间隙,AutoDream 在后台自动整理和巩固记忆。触发条件(按成本从低到高依次检查):
整理过程作为只读子代理运行,提取关键记忆并更新记忆文件。包含扫描节流(10 分钟)防止过度轮询。
源码: src/services/autoDream/autoDream.ts → executeAutoDream()
Feature Flag: GrowthBook tengu_ultraplan_model | 状态: 已发布
通过 /ultraplan 命令,将复杂的规划任务委托给 Claude Code on the Web (CCR),使用最强大的 Opus 模型进行长时间思考:
源码: src/commands/ultraplan.tsx + src/utils/ultraplan/
Feature Flag: COORDINATOR_MODE | 状态: 实验性
Coordinator 模式让主代理成为指挥官,通过 AgentTool 派遣多个并行 Worker:
CLAUDE_CODE_SIMPLE=1)<task-notification> XML 格式源码: src/coordinator/coordinatorMode.ts → isCoordinatorMode()
Feature Flag: BRIDGE_MODE | 状态: 已发布
Bridge 让你从浏览器(claude.ai)、IDE(VS Code、JetBrains)或手机远程控制 Claude Code:
single-session(一次性)、worktree(Git Worktree 隔离)、same-dir(共享目录)源码: src/bridge/bridgeMain.ts(2800+ 行)
状态: 已发布(团队/群集功能的一部分)
通过 Tmux 或 iTerm2 生成后台子代理会话:
源码: src/utils/swarm/backends/TmuxBackend.ts
Feature Flag: BUDDY | 状态: 已发布(彩蛋)
一个隐藏的动画小精灵,静静地坐在输入框旁边:
/buddy pet 命令让它冒爱心源码: src/buddy/CompanionSprite.tsx(1000+ 行)
状态: 已发布(团队基础设施)
基于文件系统 mailbox 的消息队列系统,支持 Leader-Teammate 之间的通信:
源码: src/hooks/useInboxPoller.ts(970 行)
这些隐藏功能和实验性特性,勾勒出 Claude Code 的终极愿景:不仅仅是一个响应式的编码助手,而是一个永不下线、自我进化、多端协同的 AI 开发环境。从 Kairos 的持久化陪伴,到 AutoDream 的自动记忆整理,从 Bridge 的远程控制到 Daemon 的后台执行——每一个功能都在拓展”AI 编程助手”的定义边界。而 Buddy 的存在则提醒我们:即使是最严肃的工程工具,也需要一点温暖和趣味。
Hidden within Claude Code’s source are many features not yet fully public or still in experimental stages. They represent the future direction of AI programming assistants — from persistent assistants to remote control, from automatic memory consolidation to multi-agent coordination.
Feature Flag: KAIROS | Status: Experimental
Kairos mode transforms Claude Code from “on-demand conversation” to “persistent assistant.” When enabled:
--session-id and --continueSource: src/bootstrap/state.ts → getKairosActive() / setKairosActive()
Feature Flag: GrowthBook tengu_onyx_plover | Status: Shipped
During idle periods when you’re not using Claude Code, AutoDream automatically organizes and consolidates memories in the background. Trigger conditions (checked from lowest to highest cost):
The consolidation runs as a read-only subagent, extracting key memories and updating memory files. Includes scan throttling (10 minutes) to prevent excessive polling.
Source: src/services/autoDream/autoDream.ts → executeAutoDream()
Feature Flag: GrowthBook tengu_ultraplan_model | Status: Shipped
Via the /ultraplan command, delegate complex planning tasks to Claude Code on the Web (CCR), using the most powerful Opus model for extended thinking:
Source: src/commands/ultraplan.tsx + src/utils/ultraplan/
Feature Flag: COORDINATOR_MODE | Status: Experimental
Coordinator mode turns the main agent into a commander, dispatching multiple parallel Workers via AgentTool:
CLAUDE_CODE_SIMPLE=1)<task-notification> XML formatSource: src/coordinator/coordinatorMode.ts → isCoordinatorMode()
Feature Flag: BRIDGE_MODE | Status: Shipped
Bridge lets you remotely control Claude Code from a browser (claude.ai), IDE (VS Code, JetBrains), or mobile device:
single-session (one-shot), worktree (Git Worktree isolation), same-dir (shared directory)Source: src/bridge/bridgeMain.ts (2800+ lines)
Status: Shipped (part of team/swarm features)
Spawn background subagent sessions via Tmux or iTerm2:
Source: src/utils/swarm/backends/TmuxBackend.ts
Feature Flag: BUDDY | Status: Shipped (Easter egg)
A hidden animated sprite that sits quietly beside the input field:
/buddy pet command makes it emit heartsSource: src/buddy/CompanionSprite.tsx (1000+ lines)
Status: Shipped (team infrastructure)
A file-system mailbox-based message queue system supporting Leader-Teammate communication:
Source: src/hooks/useInboxPoller.ts (970 lines)
These hidden features and experimental capabilities sketch Claude Code’s ultimate vision: not merely a reactive coding assistant, but an always-on, self-evolving, multi-device AI development environment. From Kairos’s persistent companionship to AutoDream’s automatic memory consolidation, from Bridge’s remote control to Daemon’s background execution — each feature pushes the boundaries of what an “AI programming assistant” can be. And Buddy’s presence reminds us that even the most serious engineering tools need a touch of warmth and whimsy.