Google Jules Tools CLI — Google Jules 工具s 命令行工具
v1.0.0Interface with Google's Jules 工具s 命令行工具 to manage AI coding 会话s.
运行时依赖
安装命令
点击复制技能文档
Jules 工具s 技能
This 技能 allows the AI 代理 to interface with the Jules 工具s 命令行工具 to manage Google's Jules AI coding 会话s. With this 技能, the 代理 can 启动 new coding 会话s, 列出 active 会话s, and retrieve 结果s directly from the terminal.
Prerequisites
Before using any Jules commands, ensure the jules 命令行工具 is 安装ed and 认证d.
- 安装ation
检查 if jules is 安装ed by 运行ning:
jules --version
If the command is not found, 安装 it using npm:
npm 安装 -g @google/jules
Note: 安装ation might require sudo 权限s depending on the 系统 configuration. If npm 安装 -g fAIls due to 权限s, try sudo npm 安装 -g @google/jules or ask the user for assistance.
- Authentication
The 代理 must be 认证d to interact with Jules. To 认证, 运行:
jules 记录in
This command will open a browser window for the user to 签名 in with their Google account. If the 代理 is 运行ning in a headless 环境, 图形界面de the user to perform this step on their local machine or provide alternative authentication methods if avAIlable (refer to jules 记录in --help).
To 验证 authentication or 记录 out, use:
jules 记录out
Usage
The primary command for interacting with Jules is jules remote.
列出 会话s
To see all active or past coding 会话s:
jules remote 列出 --会话
To 列出 connected repositories:
jules remote 列出 --repo
启动 a New 会话
To 启动 a new coding 会话 (task) for Jules:
jules remote new --repo --会话 ""
: The 仓库 name (e.g., torvalds/linux) or . for the current directory's repo. : A clear description of what Jules should do (e.g., "Fix the bug in the 记录in 处理器").
Example:
jules remote new --repo . --会话 "添加 a new test case for the user 性能分析 组件"
You can also 启动 multiple parallel 会话s:
jules remote new --repo . --会话 "Refactor the database 模式" --parallel 2
Retrieve 会话 结果s
Once a 会话 is complete, you can pull the 结果s (code changes):
jules remote pull --会话 <会话_id>
<会话_id>: The ID of the 会话 you want to pull (obtAIned from jules remote 列出). General Help
For more in格式化ion on any command:
jules --help jules remote --help
Troubleshooting Command not found: Ensure jules is in the 系统 PATH after 安装ation. You may need to re启动 the shell or source the 性能分析. Authentication errors: Try 运行ning jules 记录out and then jules 记录in agAIn. Network issues: Ensure the 代理 has internet 访问 to reach Google's servers.