用 Gemini 4 搭 AI 智能体:Google 开源工具箱
Gemini 4 发布后,Google 及其生态里搭 AI 智能体用得上的开源项目:Gemini 基础工具、Agent 框架、技能包、多智能体协作和配套工具。
Gemini 基础
google-gemini/gemini-cli109,585主要面向企业 Gemini Code Assist 用户,没有针对 Gemini 4 优化;个人用户 Google 推荐改用 Antigravity CLI。
A terminal coding agent from Google that reads code, edits files and runs commands using Gemini models.
TypeScriptDeveloper Tools
npx skills add google-gemini/gemini-cli --skill '*'
想让脚本或别的 Agent 直接调用 Gemini 4 等模型,用它从命令行调。
A Go CLI that lets coding agents and shell scripts call Gemini models, generate media, analyze files, and run managed agents.
GoDeveloper Tools
git clone https://github.com/google-gemini/gemini-api-cli.git
google-gemini/cookbook18,143不知道 Gemini API 怎么调时,先来这里找现成的 Notebook。
Official Gemini API tutorials and runnable notebooks for developers learning prompting, multimodal input, agents, media generation and grounding.
Jupyter NotebookLearning Resources
git clone https://github.com/google-gemini/cookbook.git
装给编程助手,让它写 Gemini 调用代码时少出错。
Agent skills that teach coding assistants current Gemini API, SDK, and Live API practices.
PythonDeveloper Tools
npx skills add google-gemini/gemini-skills --skill '*'
搭智能体
google/adk-python22,559Google 官方的 Agent 框架,用 Python 写 Agent 从这里开始。
A code-first Python framework for building, evaluating, and deploying modular AI agents and workflows.
PythonAI Engineering
npx skills add google/adk-python --skill '*'
google/adk-recipes10,753ADK 的现成示例和插件,照着改比从零写快。
Runnable Agent Development Kit recipes and vertical plugins that give developers a working starting point for building agents.
PythonAI Engineering
npx skills add google/adk-recipes --skill '*'
google/agents-cli6,514要把 ADK Agent 部署到 Google Cloud 时用;原来的 agent-starter-pack 已经并入它。
A CLI plus agent skills that help coding assistants scaffold, evaluate, and deploy ADK agents on Google Cloud.
PythonDeveloper Tools
npx skills add google/agents-cli --skill '*'
genkit-ai/genkit6,703不用 Python、要在 JS / Go / Dart 里做 AI 应用时选它。
Open-source SDK for building AI-powered apps with model plugins, tool calling, RAG and flows across JS, Go, Python and Dart.
TypeScriptAI Engineering
npx skills add genkit-ai/genkit --skill '*'
技能包
addyosmani/agent-skills122,764让 AI 编程助手按工程流程干活:写规范、测试、评审、发布。
A set of Markdown workflow skills that make AI coding agents follow spec, test, review and ship discipline.
JavaScriptDeveloper Tools
npx skills add addyosmani/agent-skills --skill '*'
google/skills25,610让编程助手用对 Google Cloud、Firebase 等 Google 产品。
Installable Agent Skills that give AI coding agents working knowledge of Google Cloud and other Google products.
PythonDeveloper Tools
npx skills add google/skills --skill '*'
配合 Stitch MCP,在设计稿和 React 组件之间互转。
Agent skills that let coding assistants drive Google Stitch to turn frontend code into designs, and designs back into React.
TypeScriptDeveloper Tools
npx skills add google-labs-code/stitch-skills --skill '*'
一个带上下文的 Agent 写方案、一个不带上下文的 Agent 审查,动手前先把规格理清。
An open-source plugin that helps coding agents draft software specifications and runs fresh-context reviewers to expose gaps before implementation.
PythonDeveloper Tools
npx skills add google/elephant-goldfish-model --skill '*'
多智能体协作
google/ax14,779要在集群上大规模调度 Agent 任务时看它。
A declarative Kubernetes-style control plane for scheduling sandboxed autonomous agent tasks at cluster scale.
GoAI Engineering
npx skills add google/ax --skill '*'
a2aproject/A2A26,834不同框架、不同厂商的 Agent 要互相协作时用的开放协议。
An open protocol that lets AI agents from different frameworks and vendors discover each other, negotiate formats, and collaborate on long-running tasks without exposing internal state.
ShellAI Engineering
git clone https://github.com/a2aproject/A2A.git
google/agentmesh1,888给自己的 Agent 搭私有网络,互相发现和调用工具。
Run a private, identity-verified network that lets AI agents publish, discover and call each other's tools and models.
GoDevOps & Self-hosting
npx skills add google/agentmesh --skill '*'
配套工具

让 Agent 打开真实的 Chrome 调试网页、分析性能。
Lets coding agents drive a live Chrome instance to record traces, inspect network traffic and debug web apps.
TypeScriptAI Engineering
npx skills add ChromeDevTools/chrome-devtools-mcp --skill '*'
googleapis/mcp-toolbox17,081让 Agent 查询和操作数据库的 MCP 服务器。
Open-source MCP server that connects AI agents and IDEs to enterprise databases with prebuilt or custom tools.
GoAI Engineering
npx skills add googleapis/mcp-toolbox --skill '*'
google/langextract39,478从长文本里抽出结构化信息,每条结果都能定位回原文。
Extracts schema-structured entities from long text with LLM calls and maps each result to its exact source span.
PythonAI Engineering
npx skills add google/langextract --skill '*'
google/mantis2,939让编程 Agent 找漏洞、复现并修复,适合做安全审计。
A modular multi-agent toolkit that finds, reproduces and patches vulnerabilities in a codebase, for security engineers and developers.
PythonSecurity & Privacy
npx skills add google/mantis --skill '*'