Google智能体Jules小试牛刀

news/2025/9/23 15:19:49/文章来源:https://www.cnblogs.com/wintersun/p/19107275


image

Jules 能做什么

Google 的 Jules 是一个编程相关的 AI 助手(coding agent),它可以在背景中异步地处理各种代码任务,让开发者腾出时间专注于更重要/更有创意的工作。

处理各种编码任务
Jules 能够写测试代码、修 bug、升级依赖、为项目加新功能等等。

异步工作(Asynchronous)
你可以把任务交给 Jules,它会在后台用云端虚拟机(cloud VM)处理,不需要你一直盯着。

与 GitHub 集成
它可以克隆你的代码仓库,把变更做成分支和 PR(pull request),让你审查后合并。

可视化/可听化变更日志
Jules 提供变更的 “diff” 预览,以及所谓的 “audio changelog”(听变更日志)功能,方便你快速了解改动内容。

支持并行任务 & 多任务同时处理
可以同时处理多个任务,而且在不同的并发任务中工作。

上下文感知、项目整体理解
它会整个克隆项目(或者已有仓库)到 VM,理解项目结构,从而在写代码/修 bug 时考虑全局,而不是只看单个文件。

隐私/数据隔离
默认情况下是私有的。对于私有仓库,它的数据不会被用来训练公共模型;对于公开仓库,如果有相应的条款,可能会有不同。

限制与注意事项

虽然可以处理很多任务,但你需要对它建议的计划进行审查或批准。它不会自动把代码变动直接推到生产环境;你可以查看变更的 “diff” 之后决定是否合并。

使用量 / 并发任务数在不同层级 (free / Pro / Ultra) 有限制。

对于非常复杂或非常依赖特定上下文的任务,其 AI 可能做出不完美的改动,需要人为干预。因为 AI 虽强,但还不可能完全取代人的判断。

自动为代码仓库增加代码注释

自动生成提示词

Your task is to thoroughly document this entire repository. Please follow these steps meticulously:

Full Docstring Coverage: Systematically scan every source file. Add a complete docstring to every single public function, method, and class. Do not skip any, regardless of their apparent simplicity.

High-Quality Docstrings: For each docstring, ensure you clearly explain:

  • The purpose or main action of the code.
  • A description for every parameter/argument.
  • A description of the return value.

Follow Conventions: Adhere to the standard documentation style for the repository's programming language (e.g., JSDoc, Google Style Python Docstrings, GoDoc).

Update the README: Review and update the main README file to be a complete guide for a new developer, covering purpose, setup, and usage. If no README exists, create one from scratch.

You should not ask me questions until the task is completed.


image

15分钟完成小DEMO工程注释增加任务

image

变更可以选择生成pull request

image

上下理解还需要加强,它删除了swagger client生成模型model的markdown文件

image

支持中文注释生成提示词

Your task is to thoroughly document this entire repository. Please follow these steps meticulously:

Full Docstring Coverage: Systematically scan every source file. Add a complete docstring to every single public function, method, and class in Simplified Chinese. Do not skip any, regardless of their apparent simplicity.

High-Quality Docstrings: For each docstring, ensure you clearly explain:

The purpose or main action of the code. A description for every parameter/argument. A description of the return value. Follow Conventions: Adhere to the standard documentation style for the repository's programming language (e.g., JSDoc, Google Style Python Docstrings, GoDoc).

Update the README: Review and update the main README file to be a complete guide for a new developer, covering purpose, setup, and usage. If no README exists, create one from scratch.

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.

You should not ask me questions until the task is completed.

image

继续

image

完成任务后

image

更多任务模板

https://github.com/google-labs-code/jules-awesome-list

Everyday Dev Tasks

  • // Refactor {a specific} file from {x} to {y}... General-purpose, applies to any language or repo.

  • // Add a test suite... Useful for repos lacking test coverage.

  • // Add type hints to {a specific} Python function... Python codebases transitioning to typed code.

  • // Generate mock data for {a specific} schema... APIs, frontends, or test-heavy environments.

  • // Convert these commonJS modules to ES modules... JS/TS projects modernizing legacy code.

  • // Turn this callback-based code into async/await... JavaScript or Python codebases improving async logic.

  • // Implement a data class for this dictionary structure... Useful for Python projects moving towards more structured data handling with dataclasses or Pydantic.

Debugging

  • // Help me fix {a specific} error... For any repo where you're stuck on a runtime or build error.

  • // Why is {this specific snippet of code} slow? Performance profiling for loops, functions, or queries.

  • // Trace why this value is undefined... Frontend and backend JS/TS bugs.

  • // Diagnose this memory leak... Server-side apps or long-running processes.

  • // Add logging to help debug this issue... Useful when troubleshooting silent failures.

  • // Find race conditions in this async code Concurrent systems in JS, Python, Go, etc.

  • // Add print statements to trace the execution flow of this Python script... For debugging complex Python scripts or understanding unexpected behavior.

Documentation

  • // Write a README for this project Any repo lacking a basic project overview.

  • // Add comments to this code Improves maintainability of complex logic.

  • // Write API docs for this endpoint REST or GraphQL backends.

  • // Generate Sphinx-style docstrings for this Python module/class/function... Ideal for Python projects using Sphinx for documentation generation.

Testing

  • // Add integration tests for this API endpoint Express, FastAPI, Django, Flask apps.

  • // Write a test that mocks fetch Browser-side fetch or axios logic.

  • // Convert this test from Mocha to Jest JS test suite migrations.

  • // Generate property-based tests for this function Functional or logic-heavy code.

  • // Simulate slow network conditions in this test suite Web and mobile apps.

  • // Write a test to ensure backward compatibility for this function Library or SDK maintainers.

  • // Write a Pytest fixture to mock this external API call... For Python projects using Pytest and needing robust mocking for testing.

Package Management

  • // Upgrade my linter and autofix breaking config changes JS/TS repos using ESLint or Prettier.

  • // Show me the changelog for React 19 Web frontend apps using React.

  • // Which dependencies can I safely remove? Bloated or legacy codebases.

  • // Check if these packages are still maintained Security-conscious or long-term projects.

  • // Set up Renovate or Dependabot for auto-updates Best for active projects with CI/CD.

AI-Native Tasks

  • // Analyze this repo and generate 3 feature ideas Vision-stage or greenfield products.

  • // Identify tech debt in this file Codebases with messy or fragile logic.

  • // Find duplicate logic across files Sprawling repos lacking DRY practices.

  • // Cluster related functions and suggest refactors Projects with lots of utils or helpers.

  • // Help me scope this issue so Jules can solve it For working with Jules on real issues.

  • // Convert this function into a reusable plugin/module Componentizing logic-heavy code.

  • // Refactor this Python function to be more amenable to parallel processing (e.g., using multiprocessing or threading)... For optimizing performance in computationally intensive Python applications.

Context

  • // Write a status update based on recent commits Managerial and async communication.

  • // Summarize all changes in the last 7 days Catching up after time off.

Fun & Experimental

  • // Add a confetti animation when {a specific} action succeeds Frontend web apps with user delight moments.

  • // Inject a developer joke when {a specific} build finishes Personal projects or team tools.

  • // Build a mini CLI game that runs in the terminal For learning or community fun.

  • // Add a dark mode Easter egg to this UI Design-heavy frontend projects.

  • // Turn this tool into a GitHub App Reusable, platform-integrated tools.

Start from Scratch

  • // What's going on in this repo? Great for legacy repos or onboarding onto unfamiliar code.

  • // Initialize a new Express app with CORS enabled Web backend projects using Node.js and Express.

  • // Set up a monorepo using Turborepo and PNPM Multi-package JS/TS projects with shared dependencies.

  • // Bootstrap a Python project with Poetry and Pytest Python repos aiming for clean dependency and test setup.

  • // Create a starter template for a Chrome extension Browser extension development.

  • // I want to build a web scraper—start me off Data scraping or automation tools using Python/Node.

实战任务工程JDK8升级JDK17

       任务过去我们人工升级,需要调试各类包冲突,还是需要足够多经验与时间,今天我们异步让他执行

image

中间Agent产生过疑问,我们让他继续执行

image

最后花费21分钟完成这次升级任务

image

结论

      Google  Jules 一个编程相关的 AI 助手(coding agent),我们体验了2个简单研发任务文档注释与工程版本迁移。目前看到都可以完成,目前使用Pro会员,限制Daily task limit (100)任务,官方文档在这儿。 从企业IT软件研发过程中,有这样代码智能体Agent确实可以提高效率,我们可以让一些复杂任务在凌晨异步执行,也是自动化流水线中串联体现。



今天先到这儿,希望对AI,云原生,技术领导力, 企业管理,系统架构设计与评估,团队管理, 项目管理, 产品管理,信息安全,团队建设 有参考作用 , 您可能感兴趣的文章:
微服务架构设计
视频直播平台的系统架构演化
微服务与Docker介绍
Docker与CI持续集成/CD
互联网电商购物车架构演变案例
互联网业务场景下消息队列架构
互联网高效研发团队管理演进之一
消息系统架构设计演进
互联网电商搜索架构演化之一
企业信息化与软件工程的迷思
企业项目化管理介绍
软件项目成功之要素
人际沟通风格介绍一
精益IT组织与分享式领导
学习型组织与企业
企业创新文化与等级观念
组织目标与个人目标
初创公司人才招聘与管理
人才公司环境与企业文化
企业文化、团队文化与知识共享
高效能的团队建设
项目管理沟通计划
构建高效的研发与自动化运维
某大型电商云平台实践
互联网数据库架构设计思路
IT基础架构规划方案一(网络系统规划)
餐饮行业解决方案之客户分析流程
餐饮行业解决方案之采购战略制定与实施流程
餐饮行业解决方案之业务设计流程
供应链需求调研CheckList
企业应用之性能实时度量系统演变

如有想了解更多软件设计与架构, 系统IT,企业信息化, 团队管理 资讯,请关注我的微信订阅号:

_thumb_thumb_thumb_thumb_thumb_thumb

作者:Petter Liu
出处:http://www.cnblogs.com/wintersun/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。 该文章也同时发布在我的独立博客中-Petter Liu Blog。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/912963.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

免费浏览的网站完全静态化成wordpress

一、Ken Burns特效 当使用OpenCV时,最常使用的是图像,但是我们也可以多个图像创建动画,通过引入时间轴更容易可视化。 Ken Burns特效这是一种以电影制片人肯伯恩斯 (Ken Burns) 命名的平移和缩放技术,Ken Burns 效果不是在屏幕上显示大型静态照片,而是裁剪细节,然后平移图…

泰安网站制作哪家好wordpress 建站教程

日志记录是软件开发中不可或缺的功能,它能帮助开发者在应用程序运行时记录重要信息,便于调试和监控。本文将详细介绍C#中的常用日志记录功能以及常用的日志库,包括日志级别控制、日志输出格式、自定义日志目标、结构化日志和异步日志记录。同…

深圳网站设计公司哪家好境外注册网站

根据现实需要,此系统我们设计出一下功能,主要有以下功能模板。 (1)新闻发布系统前台:首页、时事新闻、公告资讯、个人中心。 (2)管理员功能:首页、个人中心、用户管理、新闻分类管理…

wordpress第一个版本学seo可以做网站吗

目录 MySQL数据库提权简介 UDF提权 原理 利用条件 利用准备 利用过程 MOF提权 原理 利用条件 利用过程 自启动提权 反弹shell提权 总结 MySQL数据库提权简介 一般数据库提权思路: 检测数据库的存在(探测端口)获取到数据库的权限…

网站怎么做首页比较好燕郊seo

docker基本命令是一个开源的应用容器引擎;是一个轻量级容器技术;docker主机(Host):安装了Docker程序的机器(Docker直接安装在操作系统之上);docker客户端(Client):连接docker主机进行操作&#…

外包做网站一般多少钱wordpress中文标题转换拼音插件

用户管理 一个用户必须有一个主组一个用户可以拥有多个组 但是必须一个主组 其它组是临时组一个组可以拥有多个用户用户的信息放到 /etc/passwd 用户的密码 存入 /etc/shadow 组信息存到 /etc/group添加用户 add useradd shengliang 这时候会在 /etc/passwd 下生成一条记录 she…

珠宝行业网站建设生活馆网站开发背景

目录 1.定时任务实现 2.quartz说明 3.存储方式 4.示例 5.定时任务的重新定制,恢复,暂停及删除 1.定时任务实现 定时任务的实现方式有很多,如下: 1.启动类中添加EnableScheduling,开启定时任务功能,然…

搞笑椅子机房语录

抽象2025.9.23 (已知院长同学很爱唱“我要当主席”,此时正在唱校歌) 47:咋都开始唱校歌了 院长:我都当主席了还不能唱校歌了? 珂乌:还是当主席吧

在AI技术快速实现创意的时代,挖掘渗透测试框架新需求成为关键挑战

该篇文章无摘要a.内容描述核心功能定位:该项目是一个可扩展的后渗透测试和对抗仿真框架,采用服务器/客户端架构设计,主要面向专业渗透测试人员。服务器端采用Golang开发,客户端采用C++ QT框架实现跨平台支持。关键…

基于区域的空间域图像融合MATLAB实现

基于区域的空间域图像融合MATLAB实现,结合多尺度区域分割与特征加权策略一、方法原理区域分割 采用SLIC超像素分割算法将图像划分为均匀区域,每个区域包含约200-300个像素。 区域特征提取颜色特征:HSV空间均值 纹理…

网站seo自己怎么做什么是关键词

前言 对象图和包图依然是对系统的静态的描写叙述。UML九种图加上包图,事实上是十幅图。 包图 1.构成 2.包中的元素 类、接口、用例、构件、其他包等。(若包被撤销,当中的元素被撤销) 3.包之间的关系 泛化、细化、依赖(…

甘肃建设职工教育培训中心网站计算机网络设计是干什么的工作

文章目录 前言一、安装cudn二、安装cudnn三、安装pytorch 前言 确保Windows系统版本高于windows10 21H2或Windows11,然后在Windows中将显卡驱动升级到最新即可,WSL2已支持对显卡的直接调用。 一、安装cudn 进入英伟达官网中的cuda下载地址&#xff1…

怎么建造网站天津网站建设品牌推广

微软2024年1月的更新补丁正常更新会出现0x80070643错误,原因是正常安装系统默认的恢复分区留小了,通过压缩系统盘空间然后在diskgenius扩容恢复分区空间可以解决这个问题,但是笔者在进行上述操作时依旧出现了报错,按照网上的说法可…

intitle:律师网站建设的重要性做网站公司怎么样

为什么80%的码农都做不了架构师?>>> ##Win10除了Edge/IE,其他浏览器打开和载入速度都很慢 解决办法:以管理员身份运行cmd,输入netsh winsock reset重置winsock,然后重启电脑即可 转载于:https://my.oschin…

广州建设网站公司哪个济南兴田德润有活动吗做网站的图片=gif

Ajax-05 xhr(level-2)新特性 responseType属性和response属性 responseType: 表示预期服务器返回的数据的类型 “” ,默认空text,和空一样,表示服务器返回的数据是字符串格式json,表示服务器返回的是js…

网站登录 效果代码产品软文范例500字

如果没有正确的工具来汇总和解析日志数据,则几乎不可能找到并了解您正在寻找的信息。 日志有无穷无尽的用途,因为日志本身是无止境的。 应用程序日志,安全日志,BI日志, 林肯日志 (好吧,也许不是…

网站留白做301网站打不开

所有的NLP大模型 都是transformer结构 1.Mask attention 的策略不同 2.训练任务目标不同 国内大模型nb公司:百度、清华智谱 一、主流大模型 粉色:Encoder-only。 绿色:Encoder-Decoder,尽头智谱ChatGLM。 蓝色:…

梳理 | 脑神经科学原理学习资料整理

梳理 | 脑神经科学原理学习资料整理 前言 我想,我似乎一直都在试图探寻着什么,但在过去我甚至都不知道这一点 在近一年不断的在和AI交流的过程中我似乎渐渐地看清了自己的一点轮廓 【就像是最开始的这几篇甚至是在和…

如何做有效的Bug管理?

有效的Bug管理,就是让团队形成一种“对质量负责”的共识大家好,我是陈哥。 有读者留言说,他们团队老是因为反复出现同类Bug导致项目延期。 他们团队没有统一 Bug 记录渠道,测试人员一般发现问题口头告知或者汇总文…