Claude Code v2.1.88 三层「自愈记忆」架构深度解析

深度解析 Claude Code v2.1.88 源码:技术栈与底层实现全揭秘(基于流出架构资料) 摘要:本文基于流出的Claude Code v2.1.88技术资料(51.2万行TypeScript代码),深度解析其生产级AI Agent架构实现。该系统采用五层架构设计:UI交互层(React+Ink)、记忆管理层、查询引擎层(4.6万行核心代码)、工具执行层(40+工具)和安全基础设施层。核心亮点包括TAOR自主循环机制、三层记忆系统、多Agent协作以及严格的安全防护。 阅读详情

基于 Claude Code 源码(通过 sourceMap 还原)逆向分析其上下文管理与记忆系统。

一、架构全景

Claude Code 的上下文管理是一个 三层渐进式压缩 + 多重自愈恢复 的系统。三层并非平行运行,而是按「代价从低到高」依次升级:

┌──────────────────────────────────────────────────────────┐
│  Token 消耗曲线                                          │
│  0% ───── 87% ──── 90% ──── 93% ──── 95% ──── 100%     │
│   │         │         │        │         │          │     │
│  正常    AutoCompact  警告    错误     阻塞      硬上限  │
│  运行      触发       提示    阈值     限制              │
└──────────────────────────────────────────────────────────┘

关键阈值(来自 services/compact/autoCompact.ts):

阈值计算说明
AutoCompact 触发effective_window - 13,000 tokens~87% 上下文使用率
警告threshold - 20,000 tokens~90% 使用率时提示用户
错误threshold - 20,000 tokens高使用率时的错误状态
阻塞effective_window - 3,000 tokens~97% 时阻止新请求
熔断器连续 3 次失败停止尝试自动压缩

二、第一层:Micro-Compact(轻量清理)

源码文件: services/compact/microCompact.ts

核心思想

不改变对话结构,只清除过期的工具返回内容(文件读取、Shell 输出、Grep 结果等)。

触发机制

模式触发条件操作
时间模式距上次 assistant 消息 > 60 分钟将旧工具结果替换为 [Old tool result content cleared]
缓存模式检测到缓存压力用 API cache_edits 精准删除旧工具结果,保留缓存前缀

可清理的工具类型

const COMPACTABLE_TOOLS = new Set<string>([
  FILE_READ_TOOL_NAME,    // 文件读取
  ...SHELL_TOOL_NAMES,    // Shell 命令输出
  GREP_TOOL_NAME,         // 搜索结果
  GLOB_TOOL_NAME,         // 文件匹配结果
  WEB_SEARCH_TOOL_NAME,   // 网页搜索结果
  WEB_FETCH_TOOL_NAME,    // 网页抓取结果
  FILE_EDIT_TOOL_NAME,    // 文件编辑(编辑结果)
  FILE_WRITE_TOOL_NAME,   // 文件写入(写入结果)
])

压缩效果

  • 压缩率: 中等(保留对话结构,清除工具输出)
  • 用户感知: 无感
  • 代价: 几乎为零(不需要额外 API 调用)

三、第二层:Session Memory Compact(会话记忆压缩)

源码文件: services/SessionMemory/sessionMemory.ts + services/compact/sessionMemoryCompact.ts

核心思想

后台维护一个 Markdown 格式的会话笔记文件,压缩时用笔记替代旧消息,保留最近消息原文不动。

工作流程

阶段 1:后台笔记提取(不阻塞对话)
对话进行中...
  │
  ├─ 检查触发条件:
  │   ├─ Token 阈值达到?(默认 min 2000 tokens)
  │   ├─ 工具调用次数达到?(默认 min 3 次)
  │   └─ 或:当前轮次无工具调用(自然对话间隙)
  │
  └─ 触发 → 启动 forked agent(后台进程,共享 prompt cache)
      ├─ 读取当前笔记文件
      ├─ 构建更新 prompt
      ├─ 用 Edit 工具增量更新笔记文件
      └─ 记录 lastSummarizedMessageId

触发条件细节(shouldExtractMemory()):

const shouldExtract =
  (hasMetTokenThreshold && hasMetToolCallThreshold) ||
  (hasMetTokenThreshold && !hasToolCallsInLastTurn)

即:token 阈值必须满足,在此基础上要么工具调用次数也满足,要么当前轮无工具调用(在自然对话间隙安全提取)。

阶段 2:压缩时使用笔记
Token 达到 87% 阈值...
  │
  ├─ 检查是否有 Session Memory 笔记
  │   ├─ 有笔记 → 使用笔记替代旧消息
  │   │   ├─ 从 lastSummarizedMessageId 之后开始保留
  │   │   ├─ 向前扩展直到满足最低 token 数(10K)
  │   │   ├─ 向前扩展直到满足最低文本消息数(5条)
  │   │   ├─ 不超过最大保留量(40K)
  │   │   └─ 调整切分点,确保 tool_use/result 配对完整
  │   │
  │   └─ 无笔记 → 降级到第三层 Full Compact

关键算法:calculateMessagesToKeepIndex()

这是「最近几轮低压缩、之前高压缩」的核心实现:

// 从 lastSummarizedIndex 向前扩展,满足最低要求
for (let i = startIndex - 1; i >= floor; i--) {
  totalTokens += estimateMessageTokens([msg])
  if (hasTextBlocks(msg)) textBlockMessageCount++
  startIndex = i

  if (totalTokens >= config.maxTokens) break     // 最多 40K
  if (totalTokens >= config.minTokens             // 至少 10K
      && textBlockMessageCount >= config.minTextBlockMessages) break  // 至少 5 条
}

配置参数

const DEFAULT_SM_COMPACT_CONFIG = {
  minTokens: 10_000,           // 压缩后至少保留 10K tokens
  minTextBlockMessages: 5,     // 压缩后至少保留 5 条文本消息
  maxTokens: 40_000,           // 压缩后最多保留 40K tokens
}

效果:最近 10K~40K tokens 的消息原文保留,更早的消息被 Session Memory 笔记总结替代。

压缩效果

  • 压缩率: 高(旧消息变成笔记摘要,约 100K+ → ~5-10K)
  • 用户感知: 最近几轮对话完全正常
  • 代价: 低(不需要额外 API 调用来生成摘要,笔记已在后台维护)

四、第三层:Full Compact + Auto-Memory(全量压缩 + 持久记忆)

源码文件: services/compact/compact.ts + services/extractMemories/extractMemories.ts

核心思想

当第二层不可用时(没有笔记、笔记为空),进行全量 API 压缩:将整个对话发给 Claude,生成结构化摘要。

4.1 Full Compact 流程

compactConversation(messages, context, ...)
  │
  ├─ 1. 前处理: 剥离图片、已注入的附件
  │
  ├─ 2. 消息分组: groupMessagesByApiRound()
  │   └─ 按 API 轮次边界分组(每轮 = 一个 assistant.id)
  │
  ├─ 3. 构建 Fork Agent(共享缓存)
  │   ├─ 相同 system prompt(复用缓存前缀)
  │   ├─ 相同 tools 列表(缓存键匹配)
  │   └─ 用户消息 = 对话历史 + 压缩 prompt
  │
  ├─ 4. 生成 9 段式结构化摘要:
  │   1. Primary Request and Intent(主要请求与意图)
  │   2. Key Technical Concepts(关键技术概念)
  │   3. Files and Code Sections(文件和代码片段)
  │   4. Errors and fixes(错误与修复)
  │   5. Problem Solving(问题解决过程)
  │   6. All user messages(全部用户消息)
  │   7. Pending Tasks(待办任务)
  │   8. Current Work(当前工作)
  │   9. Optional Next Step(可选下一步)
  │
  ├─ 5. 后处理:
  │   ├─ 恢复最近访问的文件(最多5个,每个≤5K tokens)
  │   ├─ 恢复 Skill 附件(每个≤5K tokens)
  │   ├─ 恢复 Plan 文件
  │   └─ 执行 PostCompact hooks
  │
  └─ 6. 重试机制:
      └─ "prompt_too_long"? → 丢弃最旧的消息组 → 重试

4.2 压缩 Prompt 设计

压缩使用精心设计的 prompt(services/compact/prompt.ts),要求 AI 先在 <analysis> 标签中做分析草稿,然后在 <summary> 标签中输出正式摘要。最终只保留 summary 部分。

关键设计:

  • NO_TOOLS_PREAMBLE: 明确禁止压缩 agent 调用任何工具(避免浪费唯一的 turn)
  • 分析-总结分离: analysis 作为草稿被丢弃,summary 作为最终输出
  • 用户消息全部保留: 第 6 段要求列出所有用户消息,确保不丢失用户意图
  • 支持自定义指令: 用户可以通过 /compact 命令传入自定义压缩偏好

4.3 Auto-Memory 持久记忆提取

独立于压缩运行,在每次查询循环结束时后台执行:

对话轮次结束...
  │
  ├─ 检查: 主 agent?自动记忆启用?非远程模式?
  │
  ├─ 检查: 主 agent 是否已直接写入记忆?
  │   ├─ 是 → 跳过(避免重复)
  │   └─ 否 → 继续
  │
  ├─ 节流: 每 N 轮执行一次(默认 1)
  │
  └─ 启动 forked agent:
      ├─ 扫描已有记忆文件(生成清单)
      ├─ 构建提取 prompt
      ├─ 权限: 只能读 + 只能在记忆目录写
      ├─ 最多 5 轮工具调用
      └─ 写入记忆到 ~/.claude/projects/<path>/memory/
          ├─ MEMORY.md(索引文件,≤200行)
          └── 各主题 .md 文件

记忆类型

类型内容生命周期
User用户角色、目标、职责跨会话永久
Feedback用户纠正、偏好跨会话永久
Project项目工作、目标、缺陷跨会话永久
Reference外部系统指针跨会话永久

记忆文件结构

~/.claude/
├── memory/                         # 全局记忆(跨项目)
│   └── MEMORY.md                   # 索引文件(≤200行/25KB)
├── projects/<path>/memory/         # 项目级记忆
│   ├── MEMORY.md                   # 项目索引
│   ├── user_role.md                # 用户角色信息
│   ├── feedback_testing.md         # 测试相关反馈
│   └── project_architecture.md     # 项目架构知识
└── session-memory/                 # 会话级记忆(临时)
    └── project-name/
        └── session-notes.md        # 当前会话笔记

压缩效果

  • Full Compact 压缩率: 极高(100K+ → ~5-10K tokens 摘要)
  • Auto-Memory: 将关键信息持久化,新对话自动加载(MEMORY.md 注入系统提示)

五、手动 Compact 的执行路径

用户输入 /compact 时,按以下优先级选择策略:

/compact 命令
  │
  ├─ 优先级 1: Session Memory Compact
  │   ├─ 有笔记文件?→ 用笔记替代旧消息,保留最近原文
  │   └─ 无笔记?→ 降级
  │
  ├─ 优先级 2: Reactive Compact(仅响应式模式)
  │   └─ 按消息组逐层丢弃,直到 API 接受
  │
  └─ 优先级 3: 传统 Full Compact
      ├─ 先执行 Micro-Compact 清理旧工具结果
      ├─ 再调用 compactConversation() 生成完整摘要
      └─ 使用 forked agent 共享 prompt cache

六、「自愈」机制详解

这是整个架构最精巧的部分 —— 不是被动压缩,而是主动修复。

1. 熔断器(Circuit Breaker)

// autoCompact.ts:70
const MAX_CONSECUTIVE_AUTOCOMPACT_FAILURES = 3

// 连续 3 次失败后停止尝试
// BQ 2026-03-10: 1,279 sessions had 50+ consecutive failures,
// wasting ~250K API calls/day globally.

自愈逻辑: 防止无限重试浪费 API 调用。连续失败说明上下文已不可恢复,停止尝试比持续浪费更好。

2. 重试降级(Retry with Degradation)

compactConversation 内部:
  │
  ├─ API 返回 "prompt_too_long"
  │   ├─ 丢弃最旧的消息组(groupMessagesByApiRound 的第一组)
  │   └─ 重试压缩
  │
  └─ 再次失败?→ 继续丢弃 → 重试...

自愈逻辑: 第一次摘要生成失败时,自动减少上下文再试,逐步降级直到成功。

3. API 不变量保护(API Invariant Preservation)

// sessionMemoryCompact.ts: adjustIndexToPreserveAPIInvariants()
// 1. 确保 tool_use / tool_result 配对不分离
//    → 如果保留的消息包含 tool_result,向前查找匹配的 tool_use
// 2. 确保 thinking 块不丢失
//    → 同 message.id 的流式消息必须一起保留

自愈逻辑: 切分消息时自动向前回溯,修复孤立的工具调用和思考块。

修复的场景示例:

Session storage (before compaction):
  Index N:   assistant, message.id: X, content: [thinking]
  Index N+1: assistant, message.id: X, content: [tool_use: ORPHAN_ID]
  Index N+2: assistant, message.id: X, content: [tool_use: VALID_ID]
  Index N+3: user, content: [tool_result: ORPHAN_ID, tool_result: VALID_ID]

If startIndex = N+2:
  ❌ 旧代码: 只检查 N+2 → 找不到 tool_result → 返回 N+2
     结果: ORPHAN tool_use 被排除,但 ORPHAN tool_result 保留 → API 错误
  ✅ 新代码: 检查所有保留消息的 tool_result → 发现 ORPHAN_ID → 回溯到 N
     结果: 所有配对完整 → API 正常

4. 尾随提取(Trailing Extraction)

// extractMemories.ts:
// 提取进行中收到新请求 → 存入 pendingContext
// 当前提取完成 → 自动用最新上下文再跑一次

自愈逻辑: 不丢失任何消息。延迟的请求会在上一次完成后自动补上。

5. 光标回退(Cursor Rollback)

// extractMemories.ts:
// 提取成功 → lastMemoryMessageUuid 前进
// 提取失败 → lastMemoryMessageUuid 不动 → 下次重新处理这些消息

自愈逻辑: 失败不会导致消息丢失,下次自动重试。

6. 缓存共享(Prompt Cache Sharing)

// compact.ts 使用 runForkedAgent:
// - 相同 system prompt → 复用缓存前缀
// - 相同 tools 列表 → 缓存键匹配
// - 20K tokens 保留给摘要输出

自愈逻辑: 压缩请求共享主对话的缓存,减少成本和延迟。即使压缩发生,缓存前缀仍然有效。

7. 文件重新注入(File Re-injection)

// compact.ts: createPostCompactFileAttachments()
// 压缩后自动恢复:
// - 最近访问的最多 5 个文件(每个≤5K tokens)
// - 活跃的 Skill 附件(每个≤5K tokens)
// - 当前 Plan 文件

自愈逻辑: 压缩后主动恢复工作上下文,防止 AI「失忆」——它知道自己刚才在看什么文件。

8. 会话恢复(Session Restoration)

// sessionMemoryCompact.ts:
// 场景: 恢复的会话没有 lastSummarizedMessageId
// 处理: lastSummarizedIndex = messages.length - 1
//       → startIndex 从 messages.length 开始(不保留任何消息)
//       → 用整个 session memory 作为摘要

自愈逻辑: 即使跨会话恢复,也能利用已有的记忆文件重建上下文。

9. 记忆新鲜度追踪

// memoryFileDetection.ts: memoryFreshnessNote()
// 记忆超过 1 天 → 自动添加时效性警告
// 让 AI 知道这些记忆可能已过时

自愈逻辑: 不盲目信任旧记忆,通过时效性标注降低幻觉风险。


七、消息分组算法

源码文件: services/compact/grouping.ts

消息分组是压缩的基础设施,按 API 轮次边界 分组:

function groupMessagesByApiRound(messages: Message[]): Message[][] {
  // 边界判定: 新 assistant 消息的 message.id 与前一个不同
  // 同一次 API 响应的流式块共享 message.id → 保持在同一组
  // 这保证了 tool_use/result 配对不会被拆分
}

设计决策:

  • 使用 assistant.message.id 作为分组边界(而非用户消息)
  • 支持单次 prompt 的 agentic 会话(SDK/eval 场景)
  • 对畸形对话(dangling tool_use)由 fork 的 ensureToolResultPairing 修复

八、三层系统协同工作流

┌─────────────────────────────────────────────────────────────────┐
│                         用户发起对话                              │
└─────────────────────┬───────────────────────────────────────────┘
                      │
                      ▼
┌─────────────────────────────────────────────────────────────────┐
│  对话进行中(后台并行)                                           │
│  ┌───────────────────────┐  ┌────────────────────────────────┐ │
│  │ Session Memory 提取   │  │ Auto-Memory 持久记忆提取       │ │
│  │ (每轮结束后后台运行)   │  │ (每轮结束后后台运行)            │ │
│  │ → 更新会话笔记文件    │  │ → 更新 ~/.claude/ 记忆文件     │ │
│  └───────────────────────┘  └────────────────────────────────┘ │
└─────────────────────┬───────────────────────────────────────────┘
                      │
                      ▼
┌─────────────────────────────────────────────────────────────────┐
│  Token 使用量达到 87%?                                          │
│  ┌─── 否 ──────────────────┐                                    │
│  │  继续对话               │                                    │
│  │  同时: Micro-Compact    │                                    │
│  │  清理过期工具结果       │                                    │
│  └─────────────────────────┘                                    │
│  ┌─── 是 ──────────────────────────────────────────────────┐    │
│  │                                                          │    │
│  │  有 Session Memory 笔记?                                │    │
│  │  ├─ 有 → Session Memory Compact                         │    │
│  │  │       (笔记替代旧消息 + 保留最近原文)                  │    │
│  │  │                                                       │    │
│  │  └─ 无 → Full Compact                                   │    │
│  │          (API 生成 9 段摘要 + 恢复最近文件)              │    │
│  │                                                          │    │
│  │  连续失败 3 次?→ 熔断,停止尝试                          │    │
│  └──────────────────────────────────────────────────────────┘    │
└─────────────────────┬───────────────────────────────────────────┘
                      │
                      ▼
┌─────────────────────────────────────────────────────────────────┐
│  Token 使用量达到 95%?                                          │
│  ┌─── 是 ──────────────────┐                                    │
│  │  阻塞新请求             │                                    │
│  │  强制用户手动 /compact  │                                    │
│  └─────────────────────────┘                                    │
└─────────────────────────────────────────────────────────────────┘
                      │
                      ▼
┌─────────────────────────────────────────────────────────────────┐
│  会话结束                                                        │
│  → Auto-Memory 将关键信息持久化                                  │
│  → 下次新对话自动加载 MEMORY.md                                 │
└─────────────────────────────────────────────────────────────────┘

九、压缩率分层策略总结

                    压缩率
  高 ────────────────────────────────────────────
  │  Full Compact
  │  (旧消息→9段摘要,~90%压缩)
  │
  │  Session Memory Compact
  │  (旧消息→笔记,最近保留原文,~70%压缩)
  │
  │  Micro-Compact
  │  (只清工具结果,~30%压缩)
  │
  低 ────────────────────────────────────────────
  │<──── 旧 │─────── 近 ──────>│ 新 │
  │       轮次             轮次 │轮次│

十、核心设计哲学

  1. 越近越保真: 最近几轮对话几乎零压缩,越远压缩越狠
  2. 后台无感: 所有提取、整理在后台 forked agent 中进行,用户零感知
  3. 渐进升级: 从最轻量的清理到最重的全量摘要,按需升级、层层递进
  4. 永不丢弃:
    • API 不变量(tool 配对、thinking 块)始终保护
    • 提取失败自动重试(光标不前进)
    • 摘要失败有熔断器(防止雪崩)
  5. 跨会话延续: Auto-Memory 将关键信息持久化,新对话自动继承旧对话的「经验」
  6. 缓存友好: 压缩使用 forked agent 共享 prompt cache,最小化额外 API 成本

附录 A:关键系统提示词(Prompt)原文

以下是从源码中提取的完整 Prompt 原文,按功能模块分类。

A.1 全量压缩 Prompt(Full Compact)

文件: services/compact/prompt.ts

AI 在生成对话摘要时收到的完整指令:

CRITICAL: Respond with TEXT ONLY. Do NOT call any tools.

- Do NOT use Read, Bash, Grep, Glob, Edit, Write, or ANY other tool.
- You already have all the context you need in the conversation above.
- Tool calls will be REJECTED and will waste your only turn — you will fail the task.
- Your entire response must be plain text: an <analysis> block followed by a <summary> block.

Your task is to create a detailed summary of the conversation so far, paying close
attention to the user's explicit requests and your previous actions.
This summary should be thorough in capturing technical details, code patterns, and
architectural decisions that would be essential for continuing development work
without losing context.

Before providing your final summary, wrap your analysis in <analysis> tags to
organize your thoughts and ensure you've covered all necessary points. In your
analysis process:

1. Chronologically analyze each message and section of the conversation.
   For each section thoroughly identify:
   - The user's explicit requests and intents
   - Your approach to addressing the user's requests
   - Key decisions, technical concepts and code patterns
   - Specific details like: file names, full code snippets, function signatures, file edits
   - Errors that you ran into and how you fixed them
   - Pay special attention to specific user feedback that you received, especially
     if the user told you to do something differently.
2. Double-check for technical accuracy and completeness, addressing each required
   element thoroughly.

Your summary should include the following sections:

1. Primary Request and Intent:
   Capture all of the user's explicit requests and intents in detail
2. Key Technical Concepts:
   List all important technical concepts, technologies, and frameworks discussed.
3. Files and Code Sections:
   Enumerate specific files and code sections examined, modified, or created.
   Pay special attention to the most recent messages and include full code snippets
   where applicable and include a summary of why this file read or edit is important.
4. Errors and fixes:
   List all errors that you ran into, and how you fixed them. Pay special attention
   to specific user feedback that you received, especially if the user told you to
   do something differently.
5. Problem Solving:
   Document problems solved and any ongoing troubleshooting efforts.
6. All user messages:
   List ALL user messages that are not tool results. These are critical for
   understanding the users' feedback and changing intent.
7. Pending Tasks:
   Outline any pending tasks that you have explicitly been asked to work on.
8. Current Work:
   Describe in detail precisely what was being worked on immediately before this
   summary request, paying special attention to the most recent messages from both
   user and assistant. Include file names and code snippets where applicable.
9. Optional Next Step:
   List the next step that you will take that is related to the most recent work
   you were doing. IMPORTANT: ensure that this step is DIRECTLY in line with the
   user's most recent explicit requests, and the task you were working on
   immediately before this summary request. If your last task was concluded, then
   only list next steps if they are explicitly in line with the users request.
   Do not start on tangential requests or really old requests that were already
   completed without confirming with the user first.
   If there is a next step, include direct quotes from the most recent conversation
   showing exactly what task you were working on and where you left off. This should
   be verbatim to ensure there's no drift in task interpretation.

REMINDER: Do NOT call any tools. Respond with plain text only — an <analysis>
block followed by a <summary> block. Tool calls will be rejected and you will
fail the task.

压缩后注入到新对话的衔接语:

This session is being continued from a previous conversation that ran out of
context. The summary below covers the earlier portion of the conversation.

[9段摘要内容]

Recent messages are preserved verbatim.

Continue the conversation from where it left off without asking the user any
further questions. Resume directly — do not acknowledge the summary, do not
recap what was happening, do not preface with "I'll continue" or similar.
Pick up the last task as if the break never happened.

A.2 Session Memory 笔记模板

文件: services/SessionMemory/prompts.ts

后台 forked agent 维护的笔记文件模板(10 个固定区域):

# Session Title
_A short and distinctive 5-10 word descriptive title for the session. Super info dense, no filler_

# Current State
_What is actively being worked on right now? Pending tasks not yet completed. Immediate next steps._

# Task specification
_What did the user ask to build? Any design decisions or other explanatory context_

# Files and Functions
_What are the important files? In short, what do they contain and why are they relevant?_

# Workflow
_What bash commands are usually run and in what order? How to interpret their output if not obvious?_

# Errors & Corrections
_Errors encountered and how they were fixed. What did the user correct?
What approaches failed and should not be tried again?_

# Codebase and System Documentation
_What are the important system components? How do they work/fit together?_

# Learnings
_What has worked well? What has not? What to avoid?
Do not duplicate items from other sections_

# Key results
_If the user asked a specific output such as an answer to a question,
a table, or other document, repeat the exact result here_

# Worklog
_Step by step, what was attempted, done? Very terse summary for each step_

笔记更新 Prompt(发给 forked agent 的指令):

IMPORTANT: This message and these instructions are NOT part of the actual user
conversation. Do NOT include any references to "note-taking", "session notes
extraction", or these update instructions in the notes content.

Based on the user conversation above (EXCLUDING this note-taking instruction
message as well as system prompt, claude.md entries, or any past session
summaries), update the session notes file.

The file {notesPath} has already been read for you. Here are its current contents:
<current_notes_content>
{currentNotes}
</current_notes_content>

Your ONLY task is to use the Edit tool to update the notes file, then stop.
You can make multiple edits (update every section as needed) - make all Edit
tool calls in parallel in a single message. Do not call any other tools.

CRITICAL RULES FOR EDITING:
- The file must maintain its exact structure with all sections, headers, and
  italic descriptions intact
  - NEVER modify, delete, or add section headers (the lines starting with '#')
  - NEVER modify or delete the italic _section description_ lines
  - The italic _section descriptions_ are TEMPLATE INSTRUCTIONS that must be
    preserved exactly as-is - they guide what content belongs in each section
  - ONLY update the actual content that appears BELOW the italic descriptions
- Do NOT reference this note-taking process or instructions anywhere in the notes
- It's OK to skip updating a section if there are no substantial new insights
- Write DETAILED, INFO-DENSE content for each section
- Keep each section under ~2000 tokens/words
- Focus on actionable, specific information
- IMPORTANT: Always update "Current State" to reflect the most recent work

CRITICAL: The session memory file is currently ~{X} tokens, which exceeds the
maximum of 12000 tokens. You MUST condense the file to fit within this budget.
Aggressively shorten oversized sections by removing less important details,
merging related items, and summarizing older entries. Prioritize keeping
"Current State" and "Errors & Corrections" accurate and detailed.

A.3 Auto-Memory 持久记忆系统 Prompt

文件: memdir/memdir.ts + memdir/memoryTypes.ts

注入到系统提示词中的完整记忆指令:

# auto memory

You have a persistent, file-based memory system at `{memoryDir}`.
This directory already exists — write to it directly with the Write tool
(do not run mkdir or check for its existence).

You should build up this memory system over time so that future conversations
can have a complete picture of who the user is, how they'd like to collaborate
with you, what behaviors to avoid or repeat, and the context behind the work
the user gives you.

If the user explicitly asks you to remember something, save it immediately as
whichever type fits best. If they ask you to forget something, find and remove
the relevant entry.

## Types of memory

There are several discrete types of memory that you can store in your
memory system:

<types>
<type>
    <name>user</name>
    <description>Contain information about the user's role, goals,
    responsibilities, and knowledge. Great user memories help you tailor
    your future behavior to the user's preferences and perspective. Your
    goal in reading and writing these memories is to build up an
    understanding of who the user is and how you can be most helpful to
    them specifically.</description>
    <when_to_save>When you learn any details about the user's role,
    preferences, responsibilities, or knowledge</when_to_save>
    <how_to_use>When your work should be informed by the user's profile
    or perspective.</how_to_use>
    <examples>
    user: I'm a data scientist investigating what logging we have in place
    assistant: [saves user memory: user is a data scientist,
               currently focused on observability/logging]

    user: I've been writing Go for ten years but this is my first time
          touching the React side of this repo
    assistant: [saves user memory: deep Go expertise, new to React and
               this project's frontend — frame frontend explanations in
               terms of backend analogues]
    </examples>
</type>
<type>
    <name>feedback</name>
    <description>Guidance the user has given you about how to approach
    work — both what to avoid and what to keep doing. Record from failure
    AND success: if you only save corrections, you will avoid past mistakes
    but drift away from approaches the user has already validated.</description>
    <when_to_save>Any time the user corrects your approach ("no not that",
    "don't", "stop doing X") OR confirms a non-obvious approach worked
    ("yes exactly", "perfect, keep doing that"). Corrections are easy to
    notice; confirmations are quieter — watch for them.</when_to_save>
    <how_to_use>Let these memories guide your behavior so that the user
    does not need to offer the same guidance twice.</how_to_use>
    <body_structure>Lead with the rule itself, then a **Why:** line
    (the reason the user gave) and a **How to apply:** line.</body_structure>
    <examples>
    user: don't mock the database in these tests — we got burned last quarter
    assistant: [saves feedback memory: integration tests must hit a real
               database, not mocks. Reason: prior incident where mock/prod
               divergence masked a broken migration]

    user: stop summarizing what you just did at the end of every response,
          I can read the diff
    assistant: [saves feedback memory: this user wants terse responses
               with no trailing summaries]
    </examples>
</type>
<type>
    <name>project</name>
    <description>Information about ongoing work, goals, initiatives, bugs,
    or incidents within the project that is not otherwise derivable from
    the code or git history.</description>
    <when_to_save>When you learn who is doing what, why, or by when.
    Always convert relative dates to absolute dates when saving
    (e.g., "Thursday" → "2026-03-05").</when_to_save>
    <how_to_use>Use these memories to more fully understand the details
    and nuance behind the user's request.</how_to_use>
    <body_structure>Lead with the fact or decision, then a **Why:** line
    and a **How to apply:** line.</body_structure>
    <examples>
    user: we're freezing all non-critical merges after Thursday
    assistant: [saves project memory: merge freeze begins 2026-03-05 for
               mobile release cut. Flag any non-critical PR work after that date]
    </examples>
</type>
<type>
    <name>reference</name>
    <description>Stores pointers to where information can be found in
    external systems.</description>
    <when_to_save>When you learn about resources in external systems
    and their purpose.</when_to_save>
    <how_to_use>When the user references an external system or information
    that may be in an external system.</how_to_use>
    <examples>
    user: check the Linear project "INGEST" if you want context on tickets
    assistant: [saves reference memory: pipeline bugs are tracked in
               Linear project "INGEST"]
    </examples>
</type>
</types>

## What NOT to save in memory

- Code patterns, conventions, architecture, file paths, or project structure
  — these can be derived by reading the current project state.
- Git history, recent changes, or who-changed-what — git log/blame are
  authoritative.
- Debugging solutions or fix recipes — the fix is in the code.
- Anything already documented in CLAUDE.md files.
- Ephemeral task details: in-progress work, temporary state, current
  conversation context.

These exclusions apply even when the user explicitly asks you to save.
If they ask you to save a PR list or activity summary, ask what was
*surprising* or *non-obvious* about it — that is the part worth keeping.

## How to save memories

Saving a memory is a two-step process:

**Step 1** — write the memory to its own file (e.g., `user_role.md`,
`feedback_testing.md`) using this frontmatter format:

```markdown
---
name: {{memory name}}
description: {{one-line description — used to decide relevance in future
              conversations, so be specific}}
type: {{user, feedback, project, reference}}
---

{{memory content — for feedback/project types, structure as: rule/fact,
then **Why:** and **How to apply:** lines}}

Existing memory files

[已有记忆文件清单]

Check this list before writing — update an existing file rather than creating
a duplicate.

[后接 A.3 中的记忆类型定义、保存规则等]


---

### A.5 Dream(记忆整理)Prompt

**文件**: `services/autoDream/consolidationPrompt.ts`

跨会话记忆整理(后台定期运行)的完整 4 阶段指令:

```markdown
# Dream: Memory Consolidation

You are performing a dream — a reflective pass over your memory files.
Synthesize what you've learned recently into durable, well-organized memories
so that future sessions can orient quickly.

Memory directory: `{memoryRoot}`
This directory already exists — write to it directly with the Write tool.

Session transcripts: `{transcriptDir}` (large JSONL files — grep narrowly,
don't read whole files)

---

## Phase 1 — Orient

- `ls` the memory directory to see what already exists
- Read `MEMORY.md` to understand the current index
- Skim existing topic files so you improve them rather than creating duplicates
- If `logs/` or `sessions/` subdirectories exist, review recent entries there

## Phase 2 — Gather recent signal

Look for new information worth persisting. Sources in rough priority order:

1. **Daily logs** (`logs/YYYY/MM/YYYY-MM-DD.md`) if present — these are the
   append-only stream
2. **Existing memories that drifted** — facts that contradict something you
   see in the codebase now
3. **Transcript search** — if you need specific context, grep the JSONL
   transcripts for narrow terms:
   `grep -rn "<narrow term>" {transcriptDir}/ --include="*.jsonl" | tail -50`

Don't exhaustively read transcripts. Look only for things you already
suspect matter.

## Phase 3 — Consolidate

For each thing worth remembering, write or update a memory file at the top
level of the memory directory. Use the memory file format and type conventions
from your system prompt's auto-memory section.

Focus on:
- Merging new signal into existing topic files rather than creating
  near-duplicates
- Converting relative dates ("yesterday", "last week") to absolute dates so
  they remain interpretable after time passes
- Deleting contradicted facts — if today's investigation disproves an old
  memory, fix it at the source

## Phase 4 — Prune and index

Update `MEMORY.md` so it stays under 200 lines AND under ~25KB.
It's an **index**, not a dump — each entry should be one line under ~150
characters: `- [Title](file.md) — one-line hook`. Never write memory content
directly into it.

- Remove pointers to memories that are now stale, wrong, or superseded
- Demote verbose entries: if an index line is over ~200 chars, it's carrying
  content that belongs in the topic file — shorten the line, move the detail
- Add pointers to newly important memories
- Resolve contradictions — if two files disagree, fix the wrong one

---

Return a brief summary of what you consolidated, updated, or pruned.
If nothing changed (memories are already tight), say so.

附录 B:关键源码文件索引

文件职责
services/compact/autoCompact.ts自动压缩触发、阈值计算、熔断器
services/compact/compact.ts全量压缩主流程、文件恢复、重试降级
services/compact/microCompact.ts轻量工具结果清理
services/compact/sessionMemoryCompact.tsSession Memory 压缩策略、消息保留算法
services/compact/prompt.ts压缩 prompt 模板(9段式摘要)
services/compact/grouping.ts消息分组算法(按 API 轮次)
services/SessionMemory/sessionMemory.ts会话笔记后台提取
services/extractMemories/extractMemories.ts持久记忆提取
services/autoDream/autoDream.ts跨会话记忆整理(Dream 机制)
memdir/memoryScan.ts记忆文件扫描与索引
memdir/paths.ts记忆文件路径管理
utils/forkedAgent.tsForked Agent 框架(缓存共享)
Claude Code 压缩与长记忆系统深度解析 基于 Claude Code v2.1.88 源码分析:CC采用6层压缩机制和分层长期记忆系统协同工作,处理超长对话和跨会话记忆: 压缩系统: 自动压缩:在上下文接近满载时触发(93%阈值) 传统压缩:核心AI摘要机制,保留9个关键字段的结构化输出 会话记忆压缩:直接利用记忆文件作为摘要来源 微压缩:轻量级处理工具结果累积 部分压缩:用户可指定压缩范围 API层微压缩:处理大体量内容 记忆系统: 基于文件的四类记忆存储(user/feedback/project/reference) 两阶段写入流程 阅读详情

相关推荐

1.5 Harness 架构深度解析:Claude Code 为什么强?

文章摘要: Claude Code 的核心优势在于其 Harness 架构——一套包裹在语言模型外的运行时框架,赋予模型实际执行能力。Harness 包含五大组件:工具系统(Tools)提供读写执行能力,上下文管理器(Context)优化信息传递,记忆系统(Memory)实现持久化存储,钩子机制(Hooks)实现自动化反射,权限控制(Permissions)确保安全边界。通过 Agentic Loop 循环(推理→执行→反馈),Harness 将静态语言模型转化为能实际完成编码任务的智能体。2026年的关键

本是田间草,孤身探路遥。愿作后来梯,莫怕风雨嚣。 994

Claude Code每日更新速览(v2.1.8)-2026/03/31

ClaudeCode v2.1.88版本带来多项实用改进:新增无闪烁屏幕渲染选项和自动模式重试机制;修复了Windows系统CRLF处理、大文件编辑崩溃等关键问题;优化了PowerShell工具提示和权限提示功能;改进了UI显示问题如梵文截断、通知清除等。其中环境变量设置、大文件处理优化、权限管理改进等更新尤为实用。版本持续优化工具稳定性和用户体验,建议用户关注变更日志以充分利用新功能。

Soari的博客 868

代码之谜:Claude Code v1.0.33的逆向工程启示录

分层多智能体架构是一种将复杂任务分解为多个独立模块的系统设计,每个模块由一个或多个智能体负责处理。这种架构的优势在于模块化、可扩展性和容错性,特别适合需要并发处理和动态调度的场景。这种设计带来的好处显而易见:相比单一智能体系统,Claude Code的多智能体架构在处理。

步子哥的博客 2140

【深度解析 Anthropic Claude-Code 2.1.88 源码结构:从 Source Map 揭秘 AI 编程助手内部实现】

开源项目claude-code-sourcemap通过逆向Anthropic的Claude-Code工具Source Map文件,还原出2.1.88版本的TypeScript源码。项目包含4756个文件,核心模块涵盖工具系统、命令系统、服务层等,展示了模块化设计、TypeScript应用和多模式支持等技术亮点。分析该源码可学习大型AI工具架构设计,但需注意这是非官方还原版本,仅供技术研究。该项目为理解商业级AI编程工具提供了宝贵参考,同时体现了开源社区的技术探索精神。

小云的博客 6434

Claude Code源码架构分析文档

Claude Code架构分析摘要 Claude Code 2.1.88是Anthropic推出的CLI工具,基于Bun/Node.js和TypeScript构建,包含约800+模块和10万+行核心代码。系统采用分层架构设计: 技术栈:使用React+Ink构建终端UI,自定义状态管理,集成@anthropic-ai/sdk和MCP协议SDK 架构分层: 用户交互层:Ink组件和React Hooks 命令层:支持100+可扩展命令 工具层:提供Bash、MCP等43+工具接口 服务层:包含MCP、Auth

zy11408200109的博客 850

Claude Code Memory 系统深度解析:从对话记忆到持久化知识图谱

本文核心要点回顾核心要点├── 三层架构:CLAUDE.md(手动指令)+ Auto Memory(自动学习)+ Memory MCP(知识图谱)├── 设计哲学:文件即记忆 -> 纯 Markdown -> 透明可治理├── 四种记忆类型:user / feedback / project / reference├── 加载机制:MEMORY.md 索引前 200 行启动加载 + 主题文件按需读取├── 关键约束:Advisory 非强制、200 行 / 25KB 上限、本机本地。

我的博客 237

Claude Code v2.1.88 新增 NO_FLICKER 模式:无闪烁渲染 + 鼠标支持

Claude Code 上线 NO_FLICKER 终端渲染模式,彻底解决长对话闪屏问题。一行命令启用,附带鼠标点击交互支持。本文解释技术原理、介绍彩蛋功能,并说清楚真实的限制和代价。

m0_74837192的博客 1674

DeepSeek V4 + Claude Code + CC Switch:VS Code 本地编程流闭环实战指南

大模型编程辅助已从网页问答迈入IDE内核级协同阶段。其核心在于将代码理解、生成与诊断能力深度嵌入开发流程,而非简单调用API。关键技术支撑包括AST感知解析、LSP协议适配、本地缓存穿透及面向代码的Tokenizer设计。DeepSeek V4凭借12TB代码预训练与企业级对齐,在pandas链式调用、asyncio混用等真实场景中显著提升意图识别准确率;CC Switch则作为协议翻译网关,实现VS Code与Claude Code/vLLM服务间的格式转换与上下文保真。该组合直击本地开发流中断痛点,适用

caodaoxi的专栏 720

Claude Code v2.1.88 三层「自愈记忆」架构深度解析:从 settings.json 到 config.toml 的 TaoToken 配置骨架

Claude Code v2.1.88 三层自愈记忆架构解析:从 settings.json 的 compact 阈值到 config.toml 的 profile 骨架,一次配通统一 Key 通道。用 TaoToken 统一 API 基址,按 Micro-Compact、Session Memory、Full Compact 顺序触发压缩,并附 prompt_too_long 与 tool_use 配对报错的复现验证步骤。官网 https://taotoken.net/?utm_source=taotok

weixin_42593701的博客 180

anthropic-claude-code 2.1.88-compiled.zip

anthropic-claude-code 2.1.88-compiled 是基于anthropic-claude-code 2.1.88 版本的 sourcemap 修复编译运行的版本。 压缩包中提供了anthropic-claude-code 2.1.88原版及修复版本两个包,极具学习、参考价值。 修复版本不仅提供了修复后的完整源码,且分析总结了大量 claude-code 大量内置隐含特性。 编译修复版本步骤: # 1. 安装依赖 bun install # 2. 启动还原后的 CLI bun run dev # 3. 验证安装(可选) bun run version

Claude Code 源码架构深度解析-第二版

Claude Code 源码架构深度解析-第二版作者亲自审校,降低技术门槛,试图让非技术背景的读者也能建立对 Agent 系统设计的真实认知。 这个项目还包含一个教学用的最小 Python Agent 项目,用于演示一个 AI Agent 的核心结构应该怎么组织。 核心代码位置 Agent 核心代码:src/agt/agent.py CLI 入口:src/agt/cli.py 教学文档:docs/

Claude Code v2.1.88 三层自愈记忆架构解析

大模型的上下文窗口不断增大,但窗口不等于记忆:它只承载当前会话,无法解决跨会话遗忘和重要信息筛选。Claude Code v2.1.88 将记忆重构为工作记忆、短期记忆、长期记忆三层,并引入自愈机制:通过上下文压缩沉淀结论、主动更新会话摘要、以冲突检测和版本回退修复记忆错误。这一架构让 Agent 在长周期、多分支项目中保持上下文一致性,减少方案变更后的旧信息干扰与知识库污染。合理配置长期记忆和冲突检测灵敏度,就能让记忆系统从“能存”进化为“可校验、可自愈”,为持续维护型项目提供更稳定的协作体验。

weixin_29032337的博客 213

解决usbisp不识别无法烧录Atmega328P,Arduino不识别问题

如果使用Arduino IDE里面的烧录,可能会遇到一个问题,就是不识别国产这种廉价的USBISP 点击烧录引导程序,会遭遇到找不到USB设备的问题,选哪个都会提示找不到,比如选择USBasp could not find USB device with vid=0x16c0 pid=0x5dc vendor='www.fischl.de' product='USBasp' 因此,我们需要使用到progisp这一个软件的1.72版本 选择好芯片的型号后,调用编译好的HEX文...

arenascat的博客 7450

Claude Code与Codex记忆体系深度对比:Agent开发中的三层记忆架构

在大语言模型(LLM)驱动的智能体(Agent)开发中,‘记忆’并非模型自带能力,而是需分层设计的工程基础设施。其核心包含Token级缓存(短期工作记忆)、向量级存储(中长期语义记忆)和状态级编排(跨会话逻辑记忆)三层。这一体系直接决定Agent的上下文连贯性、状态可追溯性与故障可诊断性。当前行业高频搜索如‘agent开发’‘rag增强llm’均指向记忆能力落地瓶颈——单纯扩大context window或叠加向量检索无法替代系统化记忆治理。本文基于Claude Code与Codex实测对比,揭示不同架构在

weixin_42619061的博客 233

告别仿真报错!手把手教你为Intel MAX10 FPGA定制IBIS模型(附Allegro Skill工具)

本文详细介绍了为Intel MAX10 FPGA定制IBIS模型的完整流程,解决信号完整性仿真中的管脚映射问题。通过Allegro Skill工具自动化处理管脚信息,优化IBIS模型关键段落,提升仿真效率和精度,适用于高速数字电路设计。

weixin_33217202的博客 332

从充电管理芯片里‘偷师’:拆解一个PMOS双向开关电路,搞定你的固态继电器需求

本文深入解析了PMOS双向开关电路在固态继电器应用中的设计要点,重点探讨了防电流倒灌和高侧双向开关的实现技巧。通过拆解充电管理芯片中的PMOS背靠背结构,工程师可以构建高效可靠的固态开关方案,适用于智能硬件和电池管理系统。文章还提供了关键参数选择、电路优化建议及实测数据对比,助力解决电源防反接等工程难题。

weixin_33698043的博客 490

(学习)Claude Code 源码架构深度解析

本文介绍了Claude Code项目的8大核心设计原则和架构设计。项目注重启动性能优化,采用快速路径、动态导入等技术实现毫秒级启动;强调安全性,包含6层权限检查和反调试机制;通过流式处理和极简状态管理(仅34行代码)提升效率;支持可扩展性,提供43个工具接口和5种传输协议;采用渐进式发布策略和智能上下文管理;并贯穿测试友好的设计理念。文章还详细解析了入口层的启动优化技术,包括并行预取、反调试机制和版本化迁移系统等关键实现细节。

小橘子的博客 1928

猫头虎AI赠书第14期赠书活动:《Claude Code技术架构深度解析:Harness工程与AI编程新范式》

《Claude Code技术架构深度解析》是一本聚焦AI编程新范式的专业著作,基于Anthropic公司51.2万行TypeScript源码深度剖析Claude Code的Harness工程体系。全书通过五篇十三章系统讲解AI编程从理论到实践的完整框架,重点拆解工具命令、权限管控、观察反馈等五大核心模块,揭示Agent Loop调度、多智能体协作等关键技术。本书区别于工具书,旨在帮助开发者从"使用AI"进阶到"掌控AI",解决企业级AI Agent落地中的权限失控、上下文溢出等痛点,适合各层级技术人员构建A

猫头虎技术团队:授渔优于赠鱼,兴趣引领智慧,探索之乐尤显珍贵。商务合作+:Libin9iOak ,万粉变现+:CSDNWF,猫头虎承诺每年免费为100名C站创作者做账号流量诊断服务!全网搜:猫头虎技术团队,点击文章底部名片或直接私信我一切皆可谈,快找虎哥! 2万+

CANoe如何实现TLS协议

TLS,Transport Layer Security,传输层安全协议。是在传输层和应用层之间,为了保证应用层数据能够安全可靠地通过传输层传输且不会泄露的安全防护。

jasonj333 1176

NX二次开发常用函数——从一个坐标系到另一个坐标系的转换(UF_MTX4_csys_to_csys )相同体坐标转化

本文介绍了在项目开发中实现坐标转换的方法,重点解析了两个关键函数UF_MTX4_csys_to_csys和UF_MTX4_vec3_multiply的使用。通过4个变换矩阵(transform1-4)实现工作坐标系与绝对坐标系之间的相互转换,并以圆柱体为例详细说明了坐标转换的具体实现过程,包括原点、X/Y轴方向的转换处理。相比之前采用的if-else判断方法,这种矩阵转换方式在代码复杂度和运行效率上都更具优势。

weixin_47753171的博客 608

Claude Code三层意图锚定系统深度解析

在AI编程工具领域,'状态管理'与'上下文一致性'是保障智能编码可靠性的核心基础。其底层原理并非传统记忆存储,而是通过意图识别、上下文快照和本地持久化构成的分层状态绑定机制。该设计以确定性校验替代模糊记忆,显著提升重构、补全等操作的原子性与可回溯性,同时带来对Linux内核特性(如inotify、renameat2、VFS Hook)的高度依赖。典型应用场景包括跨会话意图延续、断网环境下的本地代码诊断、以及高精度AST驱动的自动化重构。本文聚焦Claude Code真实架构中的意图锚定系统,深入解析Type

weixin_34185320的博客 378

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

基于Claude Code源码的AI Agent学习报告

2026年3月Anthropic旗下Claude Code v2.1.88因Source Map配置失误导致核心源码泄露,此次泄露无混淆、无加密,包含51.2万行TypeScript源码、1900+文件及20+未发布特性,成为AI Agent领域不可多得的工业级实践参考资料。本报告结合泄露源码核心逻辑、GitHub开源解析仓库()架构概览、Onefly.top深度架构分析播客(

weixin_49089441的博客 634

C# WinForm 基于DirectShow.dll编写的程序,可边预览边保存视频,音频和图片

基于微软的DirectShow.dll的二次开发1.自动识别连接的摄像头跟麦克风且可以对其进行选择(默认选中第一个)2.可录制wmv和avi两种格式的视频并且都带有音频,avi可以录制的分辨率和帧数进行选择,wmv默认进行了淸晰度优化如不喜欢可去除代码中有相关提示3.可在预览点开之后进行拍照,也可边录制视频边拍照4.添加了视频和音频的压缩功能(酌情使用)这次二次开发发现C#对DirectShow的相关信息太少,这次做完也不敢藏私共享出来,还望大家指正

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

Claude Code v2.1.238 深度解析:从配置到实战,AI编程助手体验全面升级

AI编程助手正通过深度集成大型语言模型(LLM)能力,重塑开发者的编码工作流。其核心原理在于将代码生成与智能建议无缝嵌入IDE环境,通过上下文感知降低开发者的心智负担。这一技术的价值在于显著提升编码效率与代码质量,尤其适用于快速原型开发、代码重构和复杂问题调试等场景。随着生态的成熟,如何高效配置与连接第三方模型成为关键。例如,针对网络热词中频繁出现的“claude code怎么接入deepseek”等配置难题,新版Claude Code通过引入图形化的headersHelper功能,极大地简化了API请求头

weixin_34111790的博客 408

假人有限元模型

假人模型,车辆碰撞假人有限元模型,适合做乘员安全的研究者利用

上一篇: 用 Vue 3 重构 Dify 聊天前端(下篇):高级功能与优化
下一篇: Claude Code Buddy 伴侣系统解析
Fzuim
博客等级 码龄11年 146粉丝 169原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值