SkillsMar 29, 2026·1 min read

Gemini CLI Extension: Jules — Async Coding Agent

Gemini CLI extension by Google. Asynchronous coding agent for autonomous bug fixes, refactoring, and feature implementation.

TL;DR
Jules extends Gemini CLI with an async coding agent that autonomously fixes bugs, refactors code, and implements features.
§01

What it is

Jules is a Gemini CLI extension built by Google that adds asynchronous coding agent capabilities to the Gemini CLI. Rather than requiring a developer to stay in the loop for every step, Jules works autonomously on tasks like bug fixes, code refactoring, and feature implementation. It runs in the background, processes the task, and delivers results when done.

Developers who use Gemini CLI and want to delegate routine coding tasks benefit most. Jules handles the kind of work that is well-defined but tedious -- fixing lint errors across a codebase, applying a refactoring pattern to multiple files, or implementing a straightforward feature from a spec.

§02

How it saves time or tokens

Because Jules operates asynchronously, you can assign a task and continue working on something else. There is no back-and-forth prompting loop. The agent plans its approach, executes file edits, and reports back. This reduces the context-switching cost of interactive AI coding sessions and avoids burning tokens on conversational overhead.

§03

How to use

  1. Install the Gemini CLI if you have not already:
npm install -g @anthropic-ai/gemini-cli
  1. Enable the Jules extension in your Gemini CLI configuration.
  1. Assign a task to Jules:
gemini jules 'Fix all TypeScript strict mode errors in src/'

Jules analyzes the codebase, plans the fixes, applies them, and returns a summary of changes.

§04

Example

# Refactor a module to use async/await instead of callbacks
gemini jules 'Refactor src/api/client.ts from callback pattern to async/await'

# Implement a feature from a description
gemini jules 'Add input validation to the user registration endpoint in src/routes/auth.ts'

# Fix bugs identified in an issue
gemini jules 'Fix the race condition in the WebSocket handler described in issue #142'

Jules works through each task autonomously and produces a diff you can review before committing.

§05

Related on TokRepo

§06

Common pitfalls

  • Jules works best on well-scoped tasks. Vague instructions like 'improve the codebase' produce inconsistent results. Be specific about files, patterns, or error messages.
  • Review the generated diff before committing. Autonomous agents can introduce subtle logic changes that pass linting but alter behavior.
  • Jules requires a valid Gemini API key with sufficient quota. Long refactoring tasks across large codebases consume significant tokens.

Frequently Asked Questions

What is the difference between Jules and regular Gemini CLI?+

Regular Gemini CLI operates interactively -- you prompt, it responds, you prompt again. Jules adds an asynchronous mode where you assign a complete task and the agent works through it independently, returning results when finished.

Can Jules handle multi-file refactoring?+

Yes. Jules can analyze dependencies across files and apply consistent changes. It understands import chains and type references, so renaming a function in one file updates all callers in other files.

Does Jules support all programming languages?+

Jules supports the languages that Gemini models understand, which includes most popular languages like TypeScript, Python, Java, Go, Rust, and C++. Performance varies by language -- languages with stronger type systems give Jules more signal for accurate edits.

How do I review changes Jules makes?+

Jules outputs a diff summary when the task completes. You can review the changes in your terminal or pipe the output to a file. The changes are applied to your working directory but not committed automatically, so you retain full control.

Is Jules free to use?+

Jules uses Google Gemini API credits. Google provides a free tier with 60 requests per minute for Gemini users. Larger tasks that require many API calls may exceed the free tier depending on codebase size and task complexity.

Citations (3)
🙏

Source & Thanks

Created by Google. Licensed under Apache 2.0. gemini-cli-extensions/jules Part of Gemini CLI — ⭐ 99,400+

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.