Hacker News 中文摘要

RSS订阅

在Claude开发者平台上管理上下文 -- Managing context on the Claude Developer Platform

文章摘要

Claude开发者平台推出上下文编辑和记忆工具两项新功能,帮助开发者构建能处理长期任务的高性能AI代理。通过自动清理过时内容保留关键信息,有效突破上下文窗口限制,提升模型性能。

文章总结

标题:Claude开发者平台推出上下文管理新功能

主要内容: Anthropic公司今日在Claude开发者平台推出两项管理AI代理上下文的新功能:上下文编辑和记忆工具。这些功能基于最新发布的Claude Sonnet 4.5模型,可帮助开发者构建能够高效处理长期任务的AI代理。

核心功能亮点: 1. 上下文编辑功能 - 自动清理过时的工具调用和结果 - 保留对话流程的同时优化上下文空间 - 有效延长代理运行时间,无需人工干预

  1. 记忆工具
  • 通过文件系统存储和检索上下文窗口外的信息
  • 支持创建、读取、更新和删除文件操作
  • 数据持久化存储,支持跨会话知识积累

性能提升: - 在内部测试中,结合使用两项功能使代理性能提升39% - 单独使用上下文编辑功能提升29%性能 - 在100轮网络搜索测试中,减少84%的token消耗

典型应用场景: 1. 编程开发:清理旧文件读取记录,保存调试见解 2. 研究分析:存储关键发现,清理过时搜索结果 3. 数据处理:保存中间结果,清理原始数据

技术特点: - 完全客户端操作 - 开发者可自主管理存储后端 - 与Claude Sonnet 4.5的上下文感知能力深度集成

目前这些功能已在Claude开发者平台、Amazon Bedrock和Google Cloud的Vertex AI开放公测。开发者可通过官方文档和示例代码库获取详细使用指南。

(注:已移除与主题无关的版权声明和图片描述等次要信息)

评论总结

以下是评论内容的总结:

  1. 关于Claude新功能的实用性

    • 正面评价认为新功能(如上下文编辑和记忆API)能有效管理长文档和复杂任务:
      • "That’s powerful... It may take time to build the required knowledge bases but it must be worth it"(评论3)
      • "10/10 great feature... it kept on working for another 20 minutes"(评论16)
    • 负面评价认为这些功能并非创新,用户已能自行实现:
      • "I have been doing something similar for a month with opencode"(评论12)
      • "This isn't something that needs to be Claude Code specific though, you can 100% implement this with tool wrappers"(评论17)
  2. 技术实现与优化

    • 部分评论讨论技术细节,如上下文管理的重要性:
      • "Context editing is interesting because most agents work on the assumption that KV cache is the most important thing to optimise"(评论7)
      • "Our agents typically run autonomously for hours, so effective context management is critical"(评论10)
    • 也有对模型优化的疑问:
      • "is the new thing that the new sonnet model is fine tuned to call these tools 'better'?"(评论12)
  3. 功能改进建议

    • 用户希望增加更多实用功能:
      • "Hopefully one day Anthropic will allow zipfile uploads"(评论4)
      • "I wish every instruction and response had a enable/disable checkbox"(评论15)
    • 对功能未集成到Claude Code的疑问:
      • "Why are both this new Memory API and the Filesystem as (evolving) Context releases only for the Developer API?"(评论8)
  4. 对Anthropic/Claude的总体看法

    • 部分用户表达了对Anthropic的兴趣和职业发展的思考:
      • "I want to really get into anthropic... what does it take for someone in Non-US/Non-EU region to get into big labs such as these?"(评论11)
    • 也有对隐私和商业策略的担忧:
      • "I just want Anthropic to release a way to remove my payment method from Claude before the eventual data breach"(评论13)
      • "these changes will make it harder to swap transparently between providers"(评论14)

总结:评论对新功能持两极态度,一部分用户肯定其价值,另一部分认为缺乏创新或实现不足。技术讨论集中在上下文管理和优化,同时用户对功能改进和商业策略有较多期待和担忧。