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.
15分钟完成小DEMO工程注释增加任务
变更可以选择生成pull request
上下理解还需要加强,它删除了swagger client生成模型model的markdown文件
支持中文注释生成提示词
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.
继续
完成任务后
更多任务模板
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 withdataclassesor 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 codeConcurrent 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 projectAny repo lacking a basic project overview.// Add comments to this codeImproves maintainability of complex logic.// Write API docs for this endpointREST 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 endpointExpress, FastAPI, Django, Flask apps.// Write a test that mocks fetchBrowser-side fetch or axios logic.// Convert this test from Mocha to JestJS test suite migrations.// Generate property-based tests for this functionFunctional or logic-heavy code.// Simulate slow network conditions in this test suiteWeb and mobile apps.// Write a test to ensure backward compatibility for this functionLibrary 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 changesJS/TS repos using ESLint or Prettier.// Show me the changelog for React 19Web frontend apps using React.// Which dependencies can I safely remove?Bloated or legacy codebases.// Check if these packages are still maintainedSecurity-conscious or long-term projects.// Set up Renovate or Dependabot for auto-updatesBest for active projects with CI/CD.
AI-Native Tasks
// Analyze this repo and generate 3 feature ideasVision-stage or greenfield products.// Identify tech debt in this fileCodebases with messy or fragile logic.// Find duplicate logic across filesSprawling repos lacking DRY practices.// Cluster related functions and suggest refactorsProjects with lots of utils or helpers.// Help me scope this issue so Jules can solve itFor working with Jules on real issues.// Convert this function into a reusable plugin/moduleComponentizing 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 commitsManagerial and async communication.// Summarize all changes in the last 7 daysCatching up after time off.
Fun & Experimental
// Add a confetti animation when {a specific} action succeedsFrontend web apps with user delight moments.// Inject a developer joke when {a specific} build finishesPersonal projects or team tools.// Build a mini CLI game that runs in the terminalFor learning or community fun.// Add a dark mode Easter egg to this UIDesign-heavy frontend projects.// Turn this tool into a GitHub AppReusable, 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 enabledWeb backend projects using Node.js and Express.// Set up a monorepo using Turborepo and PNPMMulti-package JS/TS projects with shared dependencies.// Bootstrap a Python project with Poetry and PytestPython repos aiming for clean dependency and test setup.// Create a starter template for a Chrome extensionBrowser extension development.// I want to build a web scraper—start me offData scraping or automation tools using Python/Node.
实战任务工程JDK8升级JDK17
任务过去我们人工升级,需要调试各类包冲突,还是需要足够多经验与时间,今天我们异步让他执行
中间Agent产生过疑问,我们让他继续执行
最后花费21分钟完成这次升级任务
结论
Google Jules一个编程相关的 AI 助手(coding agent),我们体验了2个简单研发任务文档注释与工程版本迁移。目前看到都可以完成,目前使用Pro会员,限制Daily task limit (100)任务,官方文档在这儿。 从企业IT软件研发过程中,有这样代码智能体Agent确实可以提高效率,我们可以让一些复杂任务在凌晨异步执行,也是自动化流水线中串联体现。