[{"data":1,"prerenderedAt":390},["ShallowReactive",2],{"blog-post-/blogs/harmonyos7-agent":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"image":11,"alt":12,"ogImage":11,"tags":13,"published":18,"body":19,"_type":383,"_id":384,"_source":385,"_file":386,"_stem":387,"_extension":388,"sitemap":389},"/blogs/harmonyos7-agent","blogs",false,"","鸿蒙7来了，我看到了Agent开发者的机会","作为一个天天跟Agent打交道的开发者，HarmonyOS 7发布时我读出的东西跟别人不太一样。","2026-06-14","/blogs-img/harmonyos7-agent.png","鸿蒙7与Agent开发",[14,15,16,17],"HarmonyOS","AI Agent","鸿蒙开发","HDC 2026",true,{"type":20,"children":21,"toc":374},"root",[22,30,40,44,49,60,65,72,82,87,92,97,102,112,122,132,138,150,155,160,172,177,183,188,198,203,208,214,219,230,235,243,249,254,289,294,299,304,309,343,353,356],{"type":23,"tag":24,"props":25,"children":27},"element","h1",{"id":26},"鸿蒙7来了我看到了agent开发者的机会",[28],{"type":29,"value":8},"text",{"type":23,"tag":31,"props":32,"children":33},"blockquote",{},[34],{"type":23,"tag":35,"props":36,"children":37},"p",{},[38],{"type":29,"value":39},"作为一个天天跟Agent打交道的开发者，这次HDC 2026上HarmonyOS 7的发布，我读出了一些不一样的东西。",{"type":23,"tag":41,"props":42,"children":43},"hr",{},[],{"type":23,"tag":35,"props":45,"children":46},{},[47],{"type":29,"value":48},"前阵子一直在折腾智能体，打磨我的两个专家Agent——阿郎和阿森。所以当看到华为在HDC 2026上发布HarmonyOS 7时，我关注的点和别人不太一样。",{"type":23,"tag":35,"props":50,"children":51},{},[52,54],{"type":29,"value":53},"别人看的是系统性能、设备互联、应用生态。我关心的是：",{"type":23,"tag":55,"props":56,"children":57},"strong",{},[58],{"type":29,"value":59},"鸿蒙对Agent开发者到底意味着什么？",{"type":23,"tag":35,"props":61,"children":62},{},[63],{"type":29,"value":64},"看完发布会资料，我发现HarmonyOS 7可能是目前对Agent开发者最友好的操作系统。这不是夸张。",{"type":23,"tag":66,"props":67,"children":69},"h2",{"id":68},"一系统为agent而生",[70],{"type":29,"value":71},"一、系统为Agent而生",{"type":23,"tag":35,"props":73,"children":74},{},[75,77],{"type":29,"value":76},"HarmonyOS 7的系统架构围绕\"Agent亲和性\"做了深度重构。翻译成人话就是：",{"type":23,"tag":55,"props":78,"children":79},{},[80],{"type":29,"value":81},"系统本身就在等你开发Agent，而不是你做了Agent再去适配系统。",{"type":23,"tag":35,"props":83,"children":84},{},[85],{"type":29,"value":86},"核心逻辑是把系统能力模块化、Skill化。以前开发者做Agent，最头疼的是跨应用调用和设备协同——你要调个地图服务，得先判断用户手机上装了什么App，没装怎么办，装了版本不对又怎么办。这些破事占据了大量精力。",{"type":23,"tag":35,"props":88,"children":89},{},[90],{"type":29,"value":91},"鸿蒙的做法是：你只管调系统Skill，剩下的事系统帮你搞定。",{"type":23,"tag":35,"props":93,"children":94},{},[95],{"type":29,"value":96},"比如某电商Agent想帮用户在App里比价下单，传统做法是接第三方API，谈合作，联调，上线。鸿蒙的做法是直接调GUI操控能力，Agent自己\"看\"屏幕、\"点\"按钮，不需要任何API。",{"type":23,"tag":35,"props":98,"children":99},{},[100],{"type":29,"value":101},"三件事让我觉得这真不是噱头：",{"type":23,"tag":35,"props":103,"children":104},{},[105,110],{"type":23,"tag":55,"props":106,"children":107},{},[108],{"type":29,"value":109},"AI全链路调优",{"type":29,"value":111},"——系统会学习用户习惯。如果你的Agent经常调打车服务，系统会自动预加载地图和支付模块，响应速度提升30%。这对用户体验的提升是实打实的。",{"type":23,"tag":35,"props":113,"children":114},{},[115,120],{"type":23,"tag":55,"props":116,"children":117},{},[118],{"type":29,"value":119},"鸿蒙星盾安全体系",{"type":29,"value":121},"——端云协同AI安全认证，芯片级隐私保护。开发者不用自己搞加密模块，省了很多合规的破事。",{"type":23,"tag":35,"props":123,"children":124},{},[125,130],{"type":23,"tag":55,"props":126,"children":127},{},[128],{"type":29,"value":129},"鸿蒙智能体框架2.0",{"type":29,"value":131},"——开放20+系统级AI能力，复杂任务成功率90%以上。",{"type":23,"tag":66,"props":133,"children":135},{"id":134},"二开发工具变了从写代码到教ai写代码",[136],{"type":29,"value":137},"二、开发工具变了：从写代码到教AI写代码",{"type":23,"tag":35,"props":139,"children":140},{},[141,143,148],{"type":29,"value":142},"华为这次发布的DevEco Code和DevEco CLI，说白了一句话：",{"type":23,"tag":55,"props":144,"children":145},{},[146],{"type":29,"value":147},"让开发者从\"码农\"变成\"教官\"",{"type":29,"value":149},"。",{"type":23,"tag":35,"props":151,"children":152},{},[153],{"type":29,"value":154},"什么意思？你不再需要一行一行写ArkTS代码，而是用自然语言表达需求，AI帮你生成代码。",{"type":23,"tag":35,"props":156,"children":157},{},[158],{"type":29,"value":159},"比如输入\"创建一个带商品列表的购物页面\"，工具自动生成UI布局、数据绑定、状态管理代码。输入\"用户输入会议时间地点，自动规划出行并设置提醒\"，工具组合多个系统Skill完成任务。",{"type":23,"tag":35,"props":161,"children":162},{},[163,165,170],{"type":29,"value":164},"最让我觉得实用的是",{"type":23,"tag":55,"props":166,"children":167},{},[168],{"type":29,"value":169},"编译报错自修复",{"type":29,"value":171},"。当检测到ArkTS类型错误时，DevEco Code会调一个叫fixarktserror的技能，结合知识库给出修复建议。实测80%的编译错误5秒内自动解决。",{"type":23,"tag":35,"props":173,"children":174},{},[175],{"type":29,"value":176},"我自己的经验是，写代码最消耗心力的不是写，是调试。这一下省了多少事。",{"type":23,"tag":66,"props":178,"children":180},{"id":179},"三空间计算agent的新交互维度",[181],{"type":29,"value":182},"三、空间计算：Agent的新交互维度",{"type":23,"tag":35,"props":184,"children":185},{},[186],{"type":29,"value":187},"HarmonyOS 7推出了鸿蒙空间计算能力。听起来很高大上，举个例子就懂了：",{"type":23,"tag":35,"props":189,"children":190},{},[191,193],{"type":29,"value":192},"教育类Agent可以把3D模型投射到真实桌面上，你用手势旋转、缩放模型，Agent实时解析你的操作意图，调整教学内容。",{"type":23,"tag":55,"props":194,"children":195},{},[196],{"type":29,"value":197},"Agent不再是屏幕里的对话框，而是能\"看到\"你周围环境的智能助手。",{"type":23,"tag":35,"props":199,"children":200},{},[201],{"type":29,"value":202},"还有一个细节：你说\"把会议纪要同步到平板\"，Agent会基于鸿蒙的星河互联架构，自动选择最优传输路径（比如Wi-Fi 7直连），在平板上以分屏形式展示文字和录音。",{"type":23,"tag":35,"props":204,"children":205},{},[206],{"type":29,"value":207},"这才是真正的跨设备体验——用户不需要操心设备，Agent帮你搞定。",{"type":23,"tag":66,"props":209,"children":211},{"id":210},"四2100-skill池你不用重复造轮子",[212],{"type":29,"value":213},"四、2100+ Skill池：你不用重复造轮子",{"type":23,"tag":35,"props":215,"children":216},{},[217],{"type":29,"value":218},"鸿蒙生态已开放2100+系统级Skill，覆盖出行、办公、娱乐等场景。对开发者来说，这意味着：",{"type":23,"tag":35,"props":220,"children":221},{},[222,224,229],{"type":29,"value":223},"你不是从零开始开发一个Agent，而是",{"type":23,"tag":55,"props":225,"children":226},{},[227],{"type":29,"value":228},"从已有的Skill池里组合你想要的功能",{"type":29,"value":149},{"type":23,"tag":35,"props":231,"children":232},{},[233],{"type":29,"value":234},"比如健康Agent想获取智能手表的心率数据，直接调系统\"心率监测\"Skill就行，用户不用额外安装健康App。用户说\"帮我订明天去上海的机票，选靠窗座位\"，Agent自动组合\"航班查询\"\"值机选座\"\"支付\"三个Skill。",{"type":23,"tag":35,"props":236,"children":237},{},[238],{"type":23,"tag":55,"props":239,"children":240},{},[241],{"type":29,"value":242},"这跟我做阿森、阿郎的思路是一样的：专业的事交给专业的模块，主智能体只做编排和调度。",{"type":23,"tag":66,"props":244,"children":246},{"id":245},"五实战一个会议助手agent怎么搭",[247],{"type":29,"value":248},"五、实战：一个会议助手Agent怎么搭",{"type":23,"tag":35,"props":250,"children":251},{},[252],{"type":29,"value":253},"以\"会展中心会议出行\"为例，三步搞定：",{"type":23,"tag":255,"props":256,"children":257},"ol",{},[258,269,279],{"type":23,"tag":259,"props":260,"children":261},"li",{},[262,267],{"type":23,"tag":55,"props":263,"children":264},{},[265],{"type":29,"value":266},"定义意图",{"type":29,"value":268},"：在DevEco Studio里用自然语言描述——\"用户输入会议时间地点，自动规划出行并设置提醒\"",{"type":23,"tag":259,"props":270,"children":271},{},[272,277],{"type":23,"tag":55,"props":273,"children":274},{},[275],{"type":29,"value":276},"调用系统Skill",{"type":29,"value":278},"：schedule.getevent获取会议详情，map.calculateroute计算路线，alarm.set_reminder创建提醒",{"type":23,"tag":259,"props":280,"children":281},{},[282,287],{"type":23,"tag":55,"props":283,"children":284},{},[285],{"type":29,"value":286},"GUI自动化兜底",{"type":29,"value":288},"：如果某打车App没开放API，用gui.click_button模拟点击\"预约\"按钮",{"type":23,"tag":35,"props":290,"children":291},{},[292],{"type":29,"value":293},"三步下来，一个端到端的Agent服务就完成了。",{"type":23,"tag":66,"props":295,"children":297},{"id":296},"结语",[298],{"type":29,"value":296},{"type":23,"tag":35,"props":300,"children":301},{},[302],{"type":29,"value":303},"HarmonyOS 7的发布，让我看到操作系统正在从\"应用容器\"向\"Agent平台\"转变。",{"type":23,"tag":35,"props":305,"children":306},{},[307],{"type":29,"value":308},"对于像我这样的Agent开发者来说，这意味三件事：",{"type":23,"tag":310,"props":311,"children":312},"ul",{},[313,323,333],{"type":23,"tag":259,"props":314,"children":315},{},[316,321],{"type":23,"tag":55,"props":317,"children":318},{},[319],{"type":29,"value":320},"门槛更低",{"type":29,"value":322},"：AI工具链让写代码变成教AI写代码",{"type":23,"tag":259,"props":324,"children":325},{},[326,331],{"type":23,"tag":55,"props":327,"children":328},{},[329],{"type":29,"value":330},"场景更广",{"type":29,"value":332},"：系统级Skill调用让Agent的能力边界大幅扩展",{"type":23,"tag":259,"props":334,"children":335},{},[336,341],{"type":23,"tag":55,"props":337,"children":338},{},[339],{"type":29,"value":340},"生态更强",{"type":29,"value":342},"：2100万开发者共建的Skill池，后来者很难追赶",{"type":23,"tag":35,"props":344,"children":345},{},[346,348],{"type":29,"value":347},"当然，鸿蒙生态还在成长中，是否会成为Agent开发的主流平台还有待时间验证。但有一点是确定的：",{"type":23,"tag":55,"props":349,"children":350},{},[351],{"type":29,"value":352},"当操作系统开始为Agent设计底层能力时，Agent开发者的黄金时代才刚刚开始。",{"type":23,"tag":41,"props":354,"children":355},{},[],{"type":23,"tag":35,"props":357,"children":358},{},[359,365,370],{"type":23,"tag":360,"props":361,"children":362},"em",{},[363],{"type":29,"value":364},"作者：加加",{"type":23,"tag":360,"props":366,"children":367},{},[368],{"type":29,"value":369},"公众号：加加笔记",{"type":23,"tag":360,"props":371,"children":372},{},[373],{"type":29,"value":10},{"title":7,"searchDepth":375,"depth":375,"links":376},2,[377,378,379,380,381,382],{"id":68,"depth":375,"text":71},{"id":134,"depth":375,"text":137},{"id":179,"depth":375,"text":182},{"id":210,"depth":375,"text":213},{"id":245,"depth":375,"text":248},{"id":296,"depth":375,"text":296},"markdown","content:blogs:harmonyos7-agent.md","content","blogs/harmonyos7-agent.md","blogs/harmonyos7-agent","md",{"loc":4},1781448874080]