Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

Commit 8e22487

Browse files
authored
Implement Official Gemini CLI Extension (October 8, 2025 Framework) (#63)
1 parent 3dbe581 commit 8e22487

22 files changed

Lines changed: 3743 additions & 18 deletions

GEMINI.md

Lines changed: 128 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,114 @@
11
# 🧠 GEMINI.md - Gemini CLI Integration & MCP Hub
22

3-
> **Version**: 3.1.0 | **Status**: Production Ready | **Updated**: January 2025
3+
> **Version**: 3.3.0 | **Status**: Production Ready | **Updated**: October 2025
44
>
5-
> **Purpose**: Optimized for Gemini CLI integration and Google AI services orchestration
5+
> **Purpose**: Optimized for Gemini CLI integration as an official Extension (October 8, 2025) with MCP server orchestration
66
7-
## 🚀 NEW: Gemini CLI Integration Mode
7+
## 🚀 NEW: Gemini CLI Extension Framework (October 8, 2025)
88

9-
**Use `--gemini` flag for enhanced Google AI integration in all commands**
9+
**Official Gemini CLI Extensions support for gemini-flow - Package your AI orchestration platform as an installable Gemini CLI extension**
10+
11+
### What is Gemini CLI Extensions?
12+
13+
The October 8, 2025 update introduced the **Gemini CLI Extensions framework**, allowing developers to:
14+
- Package MCP servers, custom commands, and context into installable extensions
15+
- Use `gemini-extension.json` manifest for configuration
16+
- Install extensions via `gemini extensions install` commands
17+
- Enable/disable extensions dynamically
18+
- Share extensions via GitHub or local directories
19+
20+
### gemini-flow as a Gemini Extension
21+
22+
gemini-flow is now available as an official Gemini CLI extension, packaging:
23+
- **9 MCP Servers**: Redis, Git Tools, Puppeteer, Sequential Thinking, Filesystem, GitHub, Mem0, Supabase, Omnisearch
24+
- **7 Custom Commands**: hive-mind, swarm, agent, memory, task, sparc, workspace
25+
- **Auto-loading Context**: GEMINI.md and project documentation
26+
- **Advanced Features**: Agent coordination, swarm intelligence, SPARC modes
27+
28+
### Installation
29+
30+
```bash
31+
# Install from GitHub
32+
gemini extensions install github:clduab11/gemini-flow
33+
34+
# Install from local clone
35+
cd /path/to/gemini-flow
36+
gemini extensions install .
37+
38+
# Enable the extension
39+
gemini extensions enable gemini-flow
40+
```
41+
42+
### Using gemini-flow Commands
43+
44+
Once enabled, use gemini-flow commands directly in Gemini CLI:
45+
46+
```bash
47+
# Hive mind operations
48+
gemini hive-mind spawn "Build AI application"
49+
gemini hive-mind status
50+
51+
# Agent swarms
52+
gemini swarm init --nodes 10
53+
gemini swarm spawn --objective "Research task"
54+
55+
# Individual agents
56+
gemini agent spawn researcher --count 3
57+
gemini agent list
58+
59+
# Memory operations
60+
gemini memory store "key" "value" --namespace project
61+
gemini memory query "pattern"
62+
63+
# Task management
64+
gemini task create "Feature X" --priority high
65+
```
66+
67+
### MCP Servers Auto-Configured
68+
69+
The extension automatically sets up all 9 MCP servers:
70+
1. **Redis** - Key-value storage (396,610 ops/sec)
71+
2. **Git Tools** - Git operations via Python
72+
3. **Puppeteer** - Browser automation
73+
4. **Sequential Thinking** - Planning and reasoning
74+
5. **Filesystem** - File operations
75+
6. **GitHub** - GitHub API integration
76+
7. **Mem0 Memory** - Persistent memory
77+
8. **Supabase** - Database operations
78+
9. **Omnisearch** - Multi-source research
79+
80+
### Extension Management
81+
82+
```bash
83+
# List installed extensions
84+
gemini extensions list
85+
86+
# Enable/disable
87+
gemini extensions enable gemini-flow
88+
gemini extensions disable gemini-flow
89+
90+
# Update extension
91+
gemini extensions update gemini-flow
92+
93+
# Uninstall
94+
gemini extensions uninstall gemini-flow
95+
```
96+
97+
### Built-in Extension Manager
98+
99+
gemini-flow also includes its own extension management commands:
100+
101+
```bash
102+
# Using gem-extensions command
103+
gemini-flow gem-extensions install github:user/extension
104+
gemini-flow gem-extensions list
105+
gemini-flow gem-extensions enable extension-name
106+
gemini-flow gem-extensions info extension-name
107+
```
108+
109+
### Gemini CLI Integration Mode
110+
111+
**Use `--gemini` flag for enhanced Google AI integration in gemini-flow commands**
10112

11113
### Quick Examples
12114
```bash
@@ -26,6 +128,7 @@ gemini-flow --gemini task create "Deploy to GCP"
26128
-**Google Workspace**: Native Docs/Sheets integration
27129
-**Context Loading**: Automatic GEMINI.md context loading
28130
-**GCP Services**: Seamless authentication & resources
131+
-**Extension Framework**: Official Gemini CLI Extensions (October 8, 2025)
29132

30133
---
31134

@@ -37,12 +140,27 @@ This documentation is specifically engineered for **Gemini Code Assist** using G
37140

38141
## 📋 Quick Navigation
39142

40-
1. [**MCP Integration Hub**](#mcp-integration-hub) - Deploy and manage 9 MCP servers
41-
2. [**5-Branch ToT Methodology**](#5-branch-tot-methodology) - Advanced reasoning framework
42-
3. [**Gemini Code Assist Features (2025)**](#gemini-code-assist-features-2025) - Latest capabilities
43-
4. [**Prompt Engineering Mastery**](#prompt-engineering-mastery) - Google's best practices
44-
5. [**Quick Access Commands**](#quick-access-commands) - Essential operations
45-
6. [**Cross-References**](#cross-references) - Links to gemini-flow.md
143+
1. [**Gemini CLI Extensions**](#-new-gemini-cli-extension-framework-october-8-2025) - Official extension framework
144+
2. [**MCP Integration Hub**](#mcp-integration-hub) - Deploy and manage 9 MCP servers
145+
3. [**5-Branch ToT Methodology**](#5-branch-tot-methodology) - Advanced reasoning framework
146+
4. [**Gemini Code Assist Features (2025)**](#gemini-code-assist-features-2025) - Latest capabilities
147+
5. [**Prompt Engineering Mastery**](#prompt-engineering-mastery) - Google's best practices
148+
6. [**Quick Access Commands**](#quick-access-commands) - Essential operations
149+
7. [**Cross-References**](#cross-references) - Links to gemini-flow.md
150+
151+
---
152+
153+
## 🔌 Gemini CLI Extensions
154+
155+
> **Note**: This section has been moved to the top of this document. See [Gemini CLI Extension Framework](#-new-gemini-cli-extension-framework-october-8-2025) for the official October 8, 2025 extensions implementation.
156+
157+
gemini-flow is now available as an official Gemini CLI extension. Install it with:
158+
159+
```bash
160+
gemini extensions install github:clduab11/gemini-flow
161+
```
162+
163+
---
46164

47165
---
48166

README.md

Lines changed: 121 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,18 @@ gemini-flow init --protocols a2a,mcp --topology hierarchical
3434

3535
# Deploy intelligent agent swarms that scale with your business
3636
gemini-flow agents spawn --count 50 --specialization "enterprise-ready"
37+
38+
# NEW: Official Gemini CLI Extension (October 8, 2025)
39+
gemini extensions install github:clduab11/gemini-flow # Install as Gemini extension
40+
gemini extensions enable gemini-flow # Enable the extension
41+
gemini hive-mind spawn "Build AI application" # Use commands in Gemini CLI
3742
```
3843

3944
**🚀 Modern Protocol Support**: Native A2A and MCP integration for seamless inter-agent communication and model coordination
4045
**⚡ Enterprise Performance**: 396,610 ops/sec with <75ms routing latency
4146
**🛡️ Production Ready**: Byzantine fault tolerance and automatic failover
42-
**🔧 Google AI Native**: Complete integration with all 8 Google AI services
47+
**🔧 Google AI Native**: Complete integration with all 8 Google AI services
48+
**🔌 Gemini CLI Extension**: Official October 8, 2025 extension framework support
4349

4450
## 🌟 Complete Google AI Services Ecosystem Integration
4551

@@ -473,6 +479,120 @@ This isn't just software—it's the beginning of intelligent, coordinated AI sys
473479
- 📚 **Documentation**: [Production Deployment Guide](https://github.com/clduab11/gemini-flow/wiki/production)
474480
- 🛟 **24/7 Support**: Available for enterprise customers
475481

482+
## 🔌 Gemini CLI Extension (October 8, 2025)
483+
484+
### Official Gemini CLI Extensions Support
485+
486+
gemini-flow is now available as an **official Gemini CLI extension**, providing seamless integration with the Gemini CLI Extensions framework introduced on October 8, 2025.
487+
488+
### Installation
489+
490+
```bash
491+
# Install from GitHub
492+
gemini extensions install github:clduab11/gemini-flow
493+
494+
# Install from local clone
495+
cd /path/to/gemini-flow
496+
gemini extensions install .
497+
498+
# Enable the extension
499+
gemini extensions enable gemini-flow
500+
```
501+
502+
### What's Included
503+
504+
The extension packages gemini-flow's complete AI orchestration platform:
505+
506+
- **9 MCP Servers**: Redis, Git Tools, Puppeteer, Sequential Thinking, Filesystem, GitHub, Mem0 Memory, Supabase, Omnisearch
507+
- **7 Custom Commands**: hive-mind, swarm, agent, memory, task, sparc, workspace
508+
- **Auto-loading Context**: GEMINI.md and project documentation
509+
- **Advanced Features**: Agent coordination, swarm intelligence, SPARC modes
510+
511+
### Using Commands in Gemini CLI
512+
513+
Once enabled, use gemini-flow commands directly in Gemini CLI:
514+
515+
```bash
516+
# Hive mind operations
517+
gemini hive-mind spawn "Build AI application"
518+
gemini hive-mind status
519+
520+
# Agent swarms
521+
gemini swarm init --nodes 10
522+
gemini swarm spawn --objective "Research task"
523+
524+
# Individual agents
525+
gemini agent spawn researcher --count 3
526+
gemini agent list
527+
528+
# Memory management
529+
gemini memory store "key" "value" --namespace project
530+
gemini memory query "pattern"
531+
532+
# Task coordination
533+
gemini task create "Feature X" --priority high
534+
gemini task assign TASK_ID --agent AGENT_ID
535+
```
536+
537+
### Extension Management
538+
539+
```bash
540+
# List installed extensions
541+
gemini extensions list
542+
543+
# Enable/disable extension
544+
gemini extensions enable gemini-flow
545+
gemini extensions disable gemini-flow
546+
547+
# Update extension
548+
gemini extensions update gemini-flow
549+
550+
# Get extension info
551+
gemini extensions info gemini-flow
552+
553+
# Uninstall extension
554+
gemini extensions uninstall gemini-flow
555+
```
556+
557+
### Built-in Extension Manager
558+
559+
gemini-flow also includes its own extension management commands:
560+
561+
```bash
562+
# Using gem-extensions command
563+
gemini-flow gem-extensions install github:user/extension
564+
gemini-flow gem-extensions list
565+
gemini-flow gem-extensions enable extension-name
566+
gemini-flow gem-extensions info extension-name
567+
```
568+
569+
### Extension Manifest
570+
571+
The extension is defined in `gemini-extension.json` at the repository root:
572+
573+
```json
574+
{
575+
"name": "gemini-flow",
576+
"version": "1.3.3",
577+
"description": "AI orchestration platform with 9 MCP servers",
578+
"entryPoint": "extensions/gemini-cli/extension-loader.js",
579+
"mcpServers": { ... },
580+
"customCommands": { ... },
581+
"contextFiles": ["GEMINI.md", "gemini-flow.md"]
582+
}
583+
```
584+
585+
### Features
586+
587+
**Official Gemini CLI Integration** - Works with official Gemini CLI
588+
**9 Pre-configured MCP Servers** - Ready to use out of the box
589+
**7 Custom Commands** - Full gemini-flow functionality
590+
**Auto-loading Context** - Automatic GEMINI.md integration
591+
**Lifecycle Hooks** - Proper onInstall, onEnable, onDisable, onUpdate, onUninstall handling
592+
**GitHub Installation** - Easy one-command installation
593+
594+
For more details, see [extensions/gemini-cli/README.md](extensions/gemini-cli/README.md) and [GEMINI.md](GEMINI.md).
595+
476596
## 🚀 What's Next?
477597

478598
- **Q1 2025**: Enterprise SSO integration and advanced monitoring

dist/cli/commands/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ export { ConfigCommand } from "./config.js";
1717
export { WorkspaceCommand } from "./workspace.js";
1818
export { GeminiCommand } from "./gemini.js";
1919
export { DGMCommand } from "./dgm.js";
20+
export { JulesCommand } from "./jules.js";
21+
export { ExtensionsCommand } from "./extensions.js";

0 commit comments

Comments
 (0)