Gemini CLI Extension: Jules — Async Coding Agent
Gemini CLI extension by Google. Asynchronous coding agent for autonomous bug fixes, refactoring, and feature implementation.
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.
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.
How to use
- Install the Gemini CLI if you have not already:
npm install -g @anthropic-ai/gemini-cli
- Enable the Jules extension in your Gemini CLI configuration.
- 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.
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.
Related on TokRepo
- AI Coding Tools -- Browse coding agents and developer tools on TokRepo
- Automation Tools -- Workflow automation assets for development teams
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
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.
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.
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.
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.
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)
- Gemini CLI GitHub Repository— Jules is a Gemini CLI extension by Google for asynchronous coding
- Google Gemini API Documentation— Gemini CLI supports extensions for additional agent capabilities
- Google DeepMind Gemini— Gemini 2.5 Pro provides 1M token context for code understanding
Related on TokRepo
Source & Thanks
Created by Google. Licensed under Apache 2.0. gemini-cli-extensions/jules Part of Gemini CLI — ⭐ 99,400+