百度Comate的AI编程工具小试

背景

  • 百度Comate基于文心大模型(ERNIE-Code) ,结合百度内部编程大数据及GitHub优质开源数据训练,具备深度语义理解能力。
  • 支持100+编程语言(如Go、Java、Python、JavaScript等),兼容主流IDE(VS Code、JetBrains系列)。

Zulu智能体

提示词

依然重要

As a Developer, I want to ask you to perform a code review.

Consider previous comments noted below and avoid repeating similar recommendations.

If you spot a recurring issue, skip it.

Make your feedback clear, concise, and actionable, with specific improvement recommendations.

Review the code snippet below based on these criteria:

Syntax and Style: Look for syntax errors and deviations from conventions.

Performance Optimization: Suggest changes to improve efficiency.

Security Practices: Check for vulnerabilities and hard-coded secrets (mask half the info).

Error Handling: Identify unhandled exceptions or errors.

Code Quality: Look for code smells, unnecessary complexity, or redundant code.

Bug Detection: Find potential bugs or logical errors.

  • Please make sure to use Simplified Chinese as the language for interactions with users, unless it is for specific proprietary terms or situations where English words are more appropriate.
image

自动修改代码

需要发出patch_file指令

image

/调优建议

选择上下文件,输入 "/调优建议"

image

大型工程OOP分析

提示词来自《Trae中实现OOP原则工程重构》,发现5000个JAVA文件,但实际上只分析了120个

image

代码索引需要手动构建

image

对于超长上下会自动切割与停止

image

我们命令其生成markdown文档

突然重启了

image

生成zip文件,文件是损坏的

image

前端js文件统计

勉强完成任务,但markdown输出是混乱的

结论

百度Comate工具看上去不太稳定,百度内置大模型ERNIE一直以后都是鸡肋,只能做其他模型与工具不可用时辅助。

相关推荐
小霖家的混江龙8 分钟前
不再费脑, 拆解 AI 的数学工具, 诠释函数, 向量, 矩阵和神经网络的关系
人工智能·llm·aigc
一 乐8 小时前
婚纱摄影网站|基于ssm + vue婚纱摄影网站系统(源码+数据库+文档)
前端·javascript·数据库·vue.js·spring boot·后端
码事漫谈9 小时前
Protocol Buffers 编码原理深度解析
后端
码事漫谈9 小时前
gRPC源码剖析:高性能RPC的实现原理与工程实践
后端
程序员佳佳10 小时前
【万字硬核】从零构建企业级AI中台:基于Vector Engine整合GPT-5.2、Sora2与Veo3的落地实践指南
人工智能·gpt·chatgpt·ai作画·aigc·api·ai编程
踏浪无痕11 小时前
AI 时代架构师如何有效成长?
人工智能·后端·架构
程序员小假11 小时前
我们来说一下无锁队列 Disruptor 的原理
java·后端
武子康12 小时前
大数据-209 深度理解逻辑回归(Logistic Regression)与梯度下降优化算法
大数据·后端·机器学习
maozexijr12 小时前
Rabbit MQ中@Exchange(durable = “true“) 和 @Queue(durable = “true“) 有什么区别
开发语言·后端·ruby
源码获取_wx:Fegn089513 小时前
基于 vue智慧养老院系统
开发语言·前端·javascript·vue.js·spring boot·后端·课程设计