Jules Extension for Gemini CLI: Asynchronous Tasks and Automated GitHub PRs

11月4日 Published inDeveloper Tools

The Jules extension for the Gemini CLI allows you to delegate coding tasks—such as bug fixes, refactoring, dependency updates, and documentation maintenance—to an asynchronous agent named Jules. Because Jules operates in the background, your terminal remains available for other work. Once a task is complete, Jules automatically commits the changes to a new branch within your GitHub repository. You can initiate and monitor these tasks using straightforward commands.

Tasks you can delegate to Jules:

  • Bug fixes
  • Code refactoring
  • Dependency updates
  • Documentation maintenance

Jules processes these requests in the background and, upon completion, pushes the updates to a dedicated branch in your GitHub repository.

Setup Requirements

Before using the Jules extension, ensure you have the following:

  1. A Jules account – sign up at jules.google.com.
  2. A GitHub repository linked to your Jules account.

Installation

Run the following command in your terminal (requires Gemini CLI v0.4.0 or newer):

gemini extensions install https://github.com/gemini-cli-extensions/jules --auto-update

The --auto-update flag is optional. Including it ensures the tool updates itself automatically whenever a new version is released.

How to Use

To start a Jules task, use the /jules command followed by your specific request. For example:

/jules add missing unit tests to my repo

After you execute the /jules command, the extension moves the task to the background. To check the progress of your work, simply ask:

/jules what is the status of my last task?

If the Jules CLI is not yet installed, the Gemini CLI will attempt to install it automatically. If the installation requires administrative privileges (such as sudo npm install ...), the system will prompt you for your password. Press CTRL+F to switch focus to the interactive shell prompt when entering your password.

If you encounter a permission error—such as "you don't seem to have permission to install packages"—try re-running the command with sudo:

sudo npm install -g @google/jules

Press CTRL+F to focus the prompt and enter your sudo password, or press ESC to cancel (you have 1 minute and 32 seconds to complete this action). The session is currently utilizing two GEMINI.md files and one MCP server. You may type a message or use @path/to/file to specify a particular file path.