feat: integrate OpenCLI as a Gemini CLI extension (TOML + Agent Skill approach)#274
Open
dull-bird wants to merge 1 commit intojackwener:mainfrom
Open
feat: integrate OpenCLI as a Gemini CLI extension (TOML + Agent Skill approach)#274dull-bird wants to merge 1 commit intojackwener:mainfrom
dull-bird wants to merge 1 commit intojackwener:mainfrom
Conversation
- Added `gemini-extension.json` and `commands/opencli.toml` to register OpenCLI as a command-line tool extension for Gemini CLI using a declarative configuration. - Added `skills/opencli/SKILL.md` (via symlink) to provide the AI agent with specific instructions and workflow context on how to use OpenCLI. - Dropped the experimental programmatic tools implementation in favor of this simpler, maintainable architecture.
e62e8bf to
bf2db9c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
📝 Summary
This PR establishes the formal integration architecture for OpenCLI as an extension for Gemini CLI. By adopting a declarative TOML configuration for command definitions and combining it with Agent Skills for expert workflow guidance, we enable Gemini CLI to natively support OpenCLI's features and empower AI agents with autonomous web interaction capabilities.
🛠️ Key Changes
commands/opencli.toml, which explicitly defines the OpenCLI command set and associated prompts, ensuring Gemini CLI can precisely identify and invoke various website adapters.skills/opencli/SKILL.mdvia a symlink. This provides AI agents with expert operational standards, experience-based insights, and workflow context for executing complex tasks using OpenCLI.gemini-extension.jsonas the core metadata file to define the extension's identity, versioning, and functional description.versionlifecycle hook inpackage.json. Whenevernpm versionis executed (or a version bump is triggered), the version ingemini-extension.jsonautomatically syncs withpackage.jsonand is staged for the commit, ensuring version consistency across the project.📦 Installation & Discovery
Once the extension is indexed or installed, you can invoke OpenCLI directly within Gemini CLI:
/opencli help me find videos about Karpathy on YouTubeYou can also activate the
opencliskill to allow the AI agent to perform automated browser interaction tasks.