---
catalog_id: "P-023"
kind: "pattern"
domain: "agent"
domain_label: "Agent 编排 / Agent Systems"
date: "2026-11-28"
title: "Google 5 层 Agent 工程栈、协议互操作与运行时选型模式（Google 5-Layer Agent Stack, Protocols & Runtimes）"
verdict: "五层谷歌 Agent 栈选型矩阵与全栈源码避坑清单"
summary: "把裸跑 `/swarm` 升级为完整 5 层 Google Agent 工程栈（终端与 API → ADK 构建与归档迁移 → Worker 技能与大象/金鱼认知分离 → 运行时与 A2A/libp2p 协议 → Grounded 工具）的选型矩阵、‘先装 3 个而非 20 个’渐进采纳阶梯与全栈源码级避坑清单。"
summary_en: "Upgrades bare /swarm runs into a 5-layer Google agent stack across ADK, A2A, and Elephant/Goldfish isolation with a start-with-3 adoption ladder."
canonical_url: "https://oumuatown.com/patterns/google-agent-stack-protocols-and-runtimes/"
markdown_url: "https://oumuatown.com/patterns/google-agent-stack-protocols-and-runtimes.md"
og_image_zh: "https://oumuatown.com/og/zh/P-023.png"
og_image_en: "https://oumuatown.com/og/en/P-023.png"
cite_count: 4
tags:
  - "pattern"
  - "agent-orchestration"
  - "multi-agent-swarm"
  - "agent-skills"
  - "gemini-cli"
  - "adk"
  - "a2a"
  - "mcp"
  - "agent-runtime"
  - "elephant-goldfish-model"
  - "context-engineering"
github_repos:
  - "https://github.com/google-gemini/gemini-cli/tree/60f8082"
  - "https://github.com/google-gemini/gemini-api-cli/tree/3dcbb6e"
  - "https://github.com/google-gemini/cookbook/tree/4ab7a6f"
  - "https://github.com/google-gemini/gemini-skills/tree/c4d0c62"
  - "https://github.com/google/adk-python/tree/03725e8"
  - "https://github.com/google/adk-recipes/tree/252a57c"
  - "https://github.com/google/agents-cli/tree/ea7a3c9"
  - "https://github.com/googlecloudplatform/agent-starter-pack/tree/0db0669"
  - "https://github.com/addyosmani/agent-skills/tree/e997ac5"
  - "https://github.com/google/skills/tree/10c799e"
  - "https://github.com/google-labs-code/stitch-skills/tree/75f4696"
  - "https://github.com/google/elephant-goldfish-model/tree/4693375"
  - "https://github.com/google-gemini/demolab/tree/6a5e364"
  - "https://github.com/google/ax/tree/6173dad"
  - "https://github.com/a2aproject/a2a/tree/a506d01"
  - "https://github.com/google/agentmesh/tree/e83bc4d"
  - "https://github.com/genkit-ai/genkit/tree/6125d54"
  - "https://github.com/chromedevtools/chrome-devtools-mcp/tree/597b029"
  - "https://github.com/googleapis/mcp-toolbox/tree/ff628a9"
  - "https://github.com/google/langextract/tree/9ed9613"
  - "https://github.com/google/mantis/tree/f21cd11"
---

# P-023 · Google 5 层 Agent 工程栈、协议互操作与运行时选型模式（Google 5-Layer Agent Stack, Protocols & Runtimes）

> **结论 / Verdict**: 五层谷歌 Agent 栈选型矩阵与全栈源码避坑清单
> **EN Summary**: Upgrades bare /swarm runs into a 5-layer Google agent stack across ADK, A2A, and Elephant/Goldfish isolation with a start-with-3 adoption ladder.

## Provenance & Evidence

- Referenced Repository: https://github.com/google-gemini/gemini-cli/tree/60f8082
- Referenced Repository: https://github.com/google-gemini/gemini-api-cli/tree/3dcbb6e
- Referenced Repository: https://github.com/google-gemini/cookbook/tree/4ab7a6f
- Referenced Repository: https://github.com/google-gemini/gemini-skills/tree/c4d0c62
- Referenced Repository: https://github.com/google/adk-python/tree/03725e8
- Referenced Repository: https://github.com/google/adk-recipes/tree/252a57c
- Referenced Repository: https://github.com/google/agents-cli/tree/ea7a3c9
- Referenced Repository: https://github.com/googlecloudplatform/agent-starter-pack/tree/0db0669
- Referenced Repository: https://github.com/addyosmani/agent-skills/tree/e997ac5
- Referenced Repository: https://github.com/google/skills/tree/10c799e
- Referenced Repository: https://github.com/google-labs-code/stitch-skills/tree/75f4696
- Referenced Repository: https://github.com/google/elephant-goldfish-model/tree/4693375
- Referenced Repository: https://github.com/google-gemini/demolab/tree/6a5e364
- Referenced Repository: https://github.com/google/ax/tree/6173dad
- Referenced Repository: https://github.com/a2aproject/a2a/tree/a506d01
- Referenced Repository: https://github.com/google/agentmesh/tree/e83bc4d
- Referenced Repository: https://github.com/genkit-ai/genkit/tree/6125d54
- Referenced Repository: https://github.com/chromedevtools/chrome-devtools-mcp/tree/597b029
- Referenced Repository: https://github.com/googleapis/mcp-toolbox/tree/ff628a9
- Referenced Repository: https://github.com/google/langextract/tree/9ed9613
- Referenced Repository: https://github.com/google/mantis/tree/f21cd11
- Verified Source Citations (#Lxx): 4
- Web Reader: https://oumuatown.com/patterns/google-agent-stack-protocols-and-runtimes/

# Google 5 层 Agent 工程栈、协议互操作与运行时选型模式（Google 5-Layer Agent Stack, Protocols & Runtimes）

## 触发场景（When to Use）

- 什么时候应当采用本模式：
  - 已搭好 [verified-agent-swarm-harness-and-model-casting](verified-agent-swarm-harness-and-model-casting.md) 中的 `/swarm` 分权骨架（planner / executor /异模型 verifier），但发现 worker 仍靠通用上下文“裸跑”——缺工程纪律、缺最新 SDK 约束、缺可验证浏览器/数据库/安全工具。
  - 需要把本地跑通的多 Agent 工作流固化为可评测、可部署的 ADK/Genkit 生产服务，或打通跨进程/跨组织的 A2A 与私有 P2P 工具网格。
  - 评估引入 Google 系开源 Agent 仓库（20 仓生态）时，需要依据源码真实成熟度避开已归档模板、文档幻觉与协议误读。
- 什么时候不该用（过度设计信号）：
  - **一次性把 20 个仓库/Skills/MCP 全塞进 `.agents/` 或系统提示**：工具 Schema 与长篇技能正文会直接撑爆上下文、抬高 Token 成本并击穿前缀缓存。
  - 仅做单仓小步编码迭代：止步于“先装 3 件套”（`gemini-cli` + `adk-python` + `addyosmani/agent-skills`）即可，不必提前引入 `ax`、Kademlia `agentmesh` 或 20 节点 `mantis`。

## 问题本质

- **编排骨架不等于专业能力**：`/swarm` 与 `AGENTS.md` 只解决“谁规划、谁落盘、谁验收”的组织分工；若无技能（Skills）、计划契约（Specs）与 Grounded 工具（Tools），多个 Agent 只是在并行空转并放大通用训练记忆误差（如写错 `google-generativeai` 旧 SDK 或盲猜数据库表结构）。
- **“社媒清单命名”与“源码真实形态/成熟度”存在巨大落差**：清单常被统称为“Agent Skills”，实则混杂了终端 Agent CLI、Jupyter Notebook、Python 库、云端脚手架、已归档别名包、规范文档与 Demo 级研究套件；不先核对源码，极易把没有 A2A/DAG 的 `ax` 当编排器、把 Python 库 `langextract` 当 MCP Server、或依赖仅在 Claude Code 生效的 `omitClaudeMd: true` 隔离规则。
- **记忆复用与独立审校的张力**：长程设计需要“大象式”全量上下文（`HorizonPreloadMemoryTool` / `audit_stem` 前缀缓存），盲审与安全验证却需要“金鱼式”零历史、零锚定上下文（`egm-comprehension` / `INV-1` Nonce 哨兵）——混在同一会话必然导致自我背书。

## 标准解法与最小实现骨架

### 1. 渐进采纳阶梯：“先装 3 个，而不是 20 个”（Start with 3, not 20）

在投入任何重型基础设施前，先以最小三件套跑通本地团队闭环，再让协调者按项目缺口逐层点菜挂载：

1. **交互与终端驱动（To talk to）**：`google-gemini/gemini-cli`（有状态工作区终端 Agent）或搭配 `google-gemini/gemini-api-cli`（无状态媒体/Interactions 外包 CLI）。
2. **编排与服务化底座（To build with）**：`google/adk-python`（2.x `Workflow` 确定性图编排），后续按需接 `agents-cli` / `adk-recipes` 落地部署与护栏。
3. **Worker 工程规范（For the workers）**：`addyosmani/agent-skills`（SDLC 全流程技能、反合理化表与 Verification 门禁），高风险设计再叠加 `elephant-goldfish-model` 盲审。

### 2. 五层 Google Agent 栈源码核实选型矩阵

| 层级 | 定位与核心组件 | 源码核实事实与关键锚点 | 何时引入 / 替代关系 |
|---|---|---|---|
| **Layer 1**<br>终端与 API | `gemini-cli@60f8082`<br>`gemini-api-cli@3dcbb6e`<br>`gemini-skills@c4d0c62`<br>`cookbook@4ab7a6f` | • `gemini-cli`：`MAX_TURNS=100` + `checkNextSpeaker` 自续跑、`SafeRegExp`/`re2js` + `tree-sitter-bash`（上限 5 层 wrapper）、Seatbelt/`bwrap`+Seccomp、双轨 `ChatCompressionService` + `ContextManager`；**`models.ts` 仍默认 `@google/genai@1.30.0` `generateContent`**。<br>• `gemini-api-cli`：无状态 Go 单二进制封装 `CreateInteraction`，媒体只回路径/信封、退出码 `0/1/2/3`、`--dry-run` 零网络零钥匙串。<br>• `gemini-skills` (`v2.8.0`)：4 技能（`search_docs` 优先查文档 + `[BLOCKS]`/`[TUNE]` 迁移核查表 + `v1beta` 强制提醒），`gemini-omni-flash-api` 附带 `upload_file.py`（密钥/内网 URL 脱敏 + `>100 MB` 非交互 OOM 拦截）。<br>• `cookbook`：主线迁至 `google-genai>=2.30.0` + Interactions/Decisions/Genie 4 + `tools/nblint`；**个别 notebook 仍残留已弃用 `antigravity-preview-05-2026`**。 | **Day 1 必选**：交互编程选 `gemini-cli`；Shell/Agent 调多模态或托管 Agent 选 `gemini-api-cli`；防 SDK 幻觉挂 `gemini-skills`；查完整可运行案例稀疏检出 `cookbook`。 |
| **Layer 2**<br>ADK 构建与归档迁移 | `adk-python@03725e8`<br>`adk-recipes@252a57c`<br>`agents-cli@ea7a3c9`<br>`agent-starter-pack@0db0669`（已归档） | • `adk-python` (`2.15.1`)：`Workflow` 元组扇出/`JoinNode`/路由回环/`single_turn` + `include_contents='none'`；无运行期最大迭代守卫。<br>• `adk-recipes`：`core/`（11 个带 `AGENTS.md` 导览配方）/`contrib/`/`plugins/`（v1.0.0 规范，目前仅交付 `plugins/retail/`）；`HorizonPreloadMemoryTool` 把历史记忆后置保 Gemini Context Cache；`ModelArmorSafetyFilterPlugin` / `LlmAsAJudge` 挂 Runner `BasePlugin`；**`run_plugin_eval.py` 只是静态 rubric/assertion schema 审计器**。<br>• `agents-cli` (`v1.16.0`)：`_MainGroup` 懒加载 CLI，内置 7 个随 wheel 分发技能与 3 级离线回退、`create`/`enhance`/`upgrade` 三路合并、`agent_runtime`/Cloud Run(600s 窄签名 IAM 403 重试)/GKE 部署、GEPA `eval optimize`（`pyproject.toml` 仍写 `1.15.0`）。<br>• `agent-starter-pack`：**2026-11-15 已归档**（`#1004` 删空源码转为 `google-agents-cli` 别名包）；仅旧 tag `v0.41.3` 保留 OIDC `wif.tf`、同镜像晋级与 `NO_CONTENT` OTel→BigQuery `telemetry.tf`。 | **工程化必选**：编排图选 `adk-python`；新脚手架/部署统一用 `agents-cli`（切勿直接 clone `agent-starter-pack` `main`）；写安全插件/长程内存参考 `adk-recipes/core/`。 |
| **Layer 3**<br>Worker 技能与认知分离 | `addyosmani/agent-skills@e997ac5`<br>`google/skills@10c799e`<br>`stitch-skills@75f4696`<br>`elephant-goldfish-model@4693375`<br>`google-gemini/demolab@6a5e364` | • `agent-skills` (`v0.6.18`)：26 技能 + 5 角色 + 7 检查单 + 10 三宿主命令；4 Claude hooks（`sdd-cache` `ETag`/`304` 缓存、`simplify-ignore.sh` `BLOCK_<sha1_8>` 保护块）、`quality-gate.mjs`、TF-IDF 路由 (`>=95%` rank-1) + headless `claude` Tier 3 评测（`agy 1.1.x` TOML 包装器不可发现）。<br>• `google/skills`：220 技能（48 带脚本），`75 KB` `index.json` + `finding-google-skills` 懒加载防截断与禁 `curl -k`，`CLOUDSDK_METRICS_REQUEST_ATTRIBUTION` 归因，16 `agy` submodule 桥接；只读镜像不收 PR。<br>• `stitch-skills`：3 插件 / 16 技能，`upload_to_stitch.py` 绕过 16K MCP 输出限制，Puppeteer `snapshot.ts` + `oklch`/`p3` `extract-live-url.mjs`，`@swc/core` AST 校验，`.stitch/{DESIGN.md,metadata.json,SITE.md,next-prompt.md}` 接力棒（8 个 `stitch::` 在 OpenCode 需改名）。<br>• `elephant-goldfish-model`：8 技能（`disable-model-invocation: true`）+ 10 角色 + 5 标准；Stage 6 `egm-comprehension` **剥离 `GoldfishContext` 与标准先复述**；盲审隔离依赖 Claude `>=2.1.271` `omitClaudeMd: true`（**Codex/`agy` 仍注入 `AGENTS.md` `#237`**，独立 `agy` IDE 不支持）。<br>• `google-gemini/demolab` (`v1.1.0`)：13 文件纯 Markdown（**零脚本/零评测**），经 6 清单（`plugin.json`、`.claude-plugin/`、`.agents/plugins/`、`.codex-plugin/`、`.cursor-plugin/`）跨 `agy`/Claude/Cursor/Codex/`skills`/`ctx7` 分发；与 Layer 1 `gemini-skills` API/SDK 纠偏互补，`gemini-frontend-design`（245 行 / ~16 KB `<19 KB`）校准 Gemini 4 审美怪癖（禁暖米白/暗霓虹/`50/50`/Eyebrow/非交互胶囊、`<=2` 字体+`tabular-nums`、`<=3` 字号、`>=13px`、`<=65ch`、`140–240ms`），`deep-research`（21 行）定窄题 `<=2` / 宽题 `3–5`（慢/高思考模型 `2–3`）扇出、`8–12` 步预算、一次信源引文、掉队取消与 `Unresolved`（README `>90%/67%/75%` 仅自报，且 PR `#3` 未合入前负字距/紧行高有连写/RTL/CJK 破损）。 | **按痛点引入**：通用 SDLC 纪律选 `addyosmani/agent-skills`；云产品排障用 `google/skills` 懒路由；Stitch UI 流水线用 `stitch-skills`；独立创意前端/并行调研按 `--skill` 单选挂 `demolab`（与 Layer 1 `gemini-skills` 搭配而非替代，生产叠加机械门禁）；架构文档抗自审偏见上 `EGM`（首选 Claude Code 宿主机）。 |
| **Layer 4**<br>Swarm 运行时与开放协议 | `ax@6173dad`<br>`A2A@a506d01`<br>`agentmesh@e83bc4d`<br>`genkit@6125d54` | • `ax`：Go `1.27.1` + gRPC + PostgreSQL `protojson` + 30s `clock_timestamp` 租约锁、2-lock `Workspace` 预热快照、零密钥 MITM egress 代理、PID 1 `ax-runner` + `.ax/launcher-done` 幂等；**尚无 A2A/DAG 实现**，`session_id` 仅透传，`skills.registries` 下载为 TODO。<br>• `A2A` (`v1.0`)：`a2a.proto` 驱动 JSON-RPC 2.0 / gRPC / REST (`application/a2a+json`)；8 态不可变终态 `Task` FSM、JWS+RFC 8785 JCS `AgentCard`、SSE 首帧全量快照、Webhook SSRF 屏蔽；**`a2a.proto#L78` 订阅为 `GET` 而 `docs/specification.md` 仍写 `POST`**。<br>• `agentmesh`：libp2p `tcpFirstDialRanker`（避 QUIC 256 流上限）+ Router 代持 Kademlia DHT + `Probe` 门控 `ServiceRegistry`，本地暴露 MCP/OpenAI/A2A 门面；**节点间认证用 PeerID + 24h Ed25519 Biscuit/Datalog（非直连 X.509 mTLS 或 SPIFFE SVID）**。<br>• `genkit`：TS/Go 生产、Python beta（纯 async + 每事件循环 `WeakKeyDictionary`）；统一 `Action`/`Flow` + Parent-Child `Registry` + DAP、HITL Interrupts/`tool.v2`、Reflection v2 WS Bidi、`DirectTelemetryInstrumentation` 去 OTel 开发直连。 | **规模化演进**：跨组织/跨框架 Agent 协作上 `A2A`；NAT 后私有 Agent/MCP 网络选 `agentmesh`；全栈应用 SDK + DevUI 选 `genkit`（TS/Go）；大规模容器化无状态/长休眠沙箱参考 `ax`。 |
| **Layer 5**<br>Grounded 外部工具 | `chrome-devtools-mcp@597b029`<br>`mcp-toolbox@ff628a9`<br>`langextract@9ed9613`<br>`mantis@f21cd11` | • `chrome-devtools-mcp` (`v1.14.0`)：71 工具（63 公开 + 3 `--slim` + 5 隐藏），`exclusive`/`page`/`none` 队列、`BrowserAttempt` 超时哨兵、a11y UID `TextSnapshot`、13 个无浏览器 `HeapSnapshot` 工具、`ChunkedTraceParser`；**Clearcut 与 CrUX 遥测默认开启**。<br>• `mcp-toolbox`：Go `1.27.3` 声明式 `tools.yaml` 覆盖 48 数据源 / 326 工具、`fsnotify`+轮询热重载、`parameters` 绑定 vs `applyEscape` `templateParameters`、`authServices` JWT 覆写 + `secureArguments` + OAuth CORS 代理 + Cloud SQL IAM + SQLCommenter + OTel；默认允许 `*` Origin/Host。<br>• `langextract` (`v1.7.2`)：Pareto-DP + 密度门控 LCS 对齐绑定 `CharInterval`（不作 NFC 归一化保偏移）+ XSS 安全 HTML 回放；**是 Python 库（`lx.extract`）+ `SKILL.md`，不是 MCP Server**；`fetch_urls=True` 存原始 SSRF 风险。<br>• `mantis`：19+ `skills/mantis-*` + 20 节点 ADK（`audit_stem` `prefix_group`+`fork_from`）+ 零 LLM Stage-0 `surveyor.py` + Nonce 哨兵/崩溃栈 `INV-1`/`INV-2` + 5 沙箱 + `SecretScrubber` + stdio `mcp_server.py`；**明确 Demo 定位且 `action/` PR 扫描未端到端实测**。 | **按能力挂载**：前端/CWV/堆调试挂 `chrome-devtools-mcp`；企业数据库/BI 网关必用 `mcp-toolbox`；长文溯源抽取在 Python 代码调 `langextract`；安全红队/修复验证参考 `mantis` 的 `INV-1` 门禁。 |

### 3. 最小接线骨架（从 3 件套渐进接入第 4/5 层）

```text
[Layer 1 入口] gemini-cli (有状态工作区) / gemini-api-cli --dry-run (无状态媒体/Interactions) + gemini-skills (API/SDK 正确性)
      │
      ├──► [Layer 3 懒加载技能]
      │       ├─ 常驻精简: addyosmani/agent-skills (SDLC + quality-gate.mjs)
      │       ├─ 按需索引: google/skills index.json (<=3 个按字节拉取, 禁 curl -k)
      │       ├─ 创意前端/并行调研 (按 --skill 单选): google-gemini/demolab (与 Layer 1 gemini-skills 互补; 零脚本需叠机械门禁)
      │       └─ 高风险设计盲审: elephant-goldfish-model (Stage 6 剥离上下文先复述)
      │
      ├──► [Layer 5 Grounded MCP / 工具]
      │       ├─ chrome-devtools-mcp --no-usage-statistics --no-performance-crux
      │       ├─ mcp-toolbox --tools-file tools.yaml (parameters 绑定 + allowed-origins 收紧)
      │       └─ Python 批处理调 langextract (fetch_urls=False + CJK 传 UnicodeTokenizer)
      │
      └──► [Layer 2 & 4 生产固化与跨进程协同]
              ├─ agents-cli scaffold create / deploy (替代已归档 agent-starter-pack)
              ├─ adk-python Workflow + adk-recipes HorizonPreloadMemoryTool + BasePlugin
              └─ 跨团队边界走 A2A v1.0 (AgentCard JCS+JWS) / 跨 NAT 私有网格走 agentmesh
```

## 反模式与常见踩坑

- **Layer 1 坑点**：
  - **误以为 `gemini-cli` 已切 Interactions API**：`packages/core/src/config/models.ts#L59-L83` 仍走 `@google/genai@1.30.0` `generateContent`；写新版 Gemini 4/Interactions/Decisions 代码需配 `gemini-skills` 并显式注意 SDK `>=3.0.0` 默认走 `v1`、`v1beta` 接口必须显式传入 `api_version="v1beta"`。
  - **直接照抄 `cookbook` 高级 Notebook**：`Get_started_managed_agents.ipynb` 与 `Autonomous_video_production_with_omni_and_agents.ipynb` 仍硬编码已弃用 `antigravity-preview-05-2026`、漏传 `v1beta` 且与 Colab 内置 `google-adk 1.29.0`（`<2.0.0`）冲突；而全仓体积 ~1.13 GB，未用 `--sparse` 会拖垮磁盘。
- **Layer 2 坑点**：
  - **新项目拉取 `GoogleCloudPlatform/agent-starter-pack` `main`**：仓库已于 2026-11-15 归档且模板被 `#1004` 清空为 `google/agents-cli` 别名包；仅回溯基础设施基线（`wif.tf`、`telemetry.tf` `NO_CONTENT`）时需检出历史 tag `v0.41.3`。
  - **把 `adk-recipes/tools/run_plugin_eval.py` 当成端到端模型评测**：它仅静态校验 `EVAL.yaml` 是否含 RFC 2119 关键词与合法断言名；且 `plugins/` 目录目前仅交付了 `plugins/retail/`，插件高度绑定 Vertex Vector Search 2.0（`us-central1`）。
- **Layer 3 坑点**：
  - **把 20 个仓库/220 个技能全量预加载，或单拷 `EGM`/`stitch-skills` 子目录**：既击穿前缀缓存又导致 `EGM` 找不到上两级 `agents/` 与 `document_standards/` 而断链；`google/skills` 用 `index.json`（防工具预览截断）按需拉取 `<=3` 个技能。
  - **假定所有宿主的 Goldfish 子代理都零泄漏**：`elephant-goldfish-model` 仅在 Claude Code `>=2.1.271` 经 `omitClaudeMd: true` 实现真隔离；Codex 与 `agy` CLI 仍会注入 `AGENTS.md`/`GEMINI.md`（Issue `#237`），独立 `agy` IDE 无 `invoke_subagent` 不可用，`addyosmani/agent-skills` 在 `agy 1.1.x` 的 `commands/*.toml` 包装器亦不可发现（需用 `/agent-skills:<name>`）。
  - **误把 `google-gemini/demolab` 当带评测脚本或 API 纠偏的官方套件**：`demolab@6a5e364` 专攻 Layer 3 创意前端与并行调研，**全仓零脚本、零评测集、零静态/像素 Linter**（README `>90%/67%/75%` 仅自报，无运行期步数截断或引文真伪核查）；6 份多宿主清单靠手工同步（已现根/宿主清单 `1.1.0` vs `SKILL.md` `metadata.version: "1.0.0"` 漂移，不如 `Unity-Technologies/unity-agent-plugin` `sync-manifests.mts`），`npx skills`/`ctx7` 未锁 SHA，且原生负字距/`0.9–1.0` 行高未合入 PR `#3` 前在连写/RTL/CJK 易破损（应按 `--skill` 单选并叠加机械门禁）。
- **Layer 4 坑点**：
  - **误把 `google/ax` 当成“带 A2A 与 DAG 的 Swarm 编排器”**：`ax@6173dad` 当前零 A2A/DAG 实现，`session_id` 无历史存储只是透传 ID，`skills.registries` 下载尚未实现；此外 PG 租约锁缺 Fencing Token，修改 `Gateway` 不影响已建 `Task`。
  - **误读 `agentmesh` 认证栈与 `A2A` HTTP 方法**：`agentmesh` 节点间 P2P 是 **PeerID + 24h Ed25519 Biscuit/Datalog**（不是 X.509 mTLS 或 SPIFFE SVID 直线互信），且 Command 形态 MCP 后端按调用派生进程；`A2A` 的 `SubscribeToTask` 在 `specification/a2a.proto#L78` 为 `GET` 而 `docs/specification.md#L1146` 仍写 `POST`。
- **Layer 5 坑点**：
  - **把 `chrome-devtools-mcp` / `mcp-toolbox` 默认配置直接上内网或生产**：前者默认开启 Clearcut 与 `performanceCrux`（把页面 URL 发往 Google）且 `--no-javascript-evaluation` 不是真 JS 沙箱；后者 `--allowed-origins`/`--allowed-hosts` 默认 `["*"]`、普通 `postgres` 源 `IsReadOnly` 恒为 `false`、热重载不关闭旧连接池且 Stdio 模式无法执行 `authRequired` 鉴权。
  - **把 `google/langextract` 当 MCP Server 或裸开 `fetch_urls=True`**：它是 Python 库而非 MCP；`fetch_urls=True` 无内网拦截（SSRF 风险）；CJK 文档不传 `UnicodeTokenizer` 会导致句界切分退化。
  - **把 `google/mantis` 用于生产 CI 门禁**：仓库明确为演示定位，且 `action/` PR 扫描尚未完成端到端实测。

## 溯源（文章与源码锚点）

- 文章拆解：[2026-11-28-0xmovez-20-google-agent-repos](../articles/2026-11-28-0xmovez-20-google-agent-repos.md) · 前序编制底座：[2026-11-27-0xmovez-gemini-neon-agent-swarm-harness](../articles/2026-11-27-0xmovez-gemini-neon-agent-swarm-harness.md) · 2026-11-29 增补：[2026-11-29-google-gemini-demolab](../articles/2026-11-29-google-gemini-demolab.md)
- 源码实例（20 仓底座 + 2026-11-29 增补）：
  - Layer 1：[`google-gemini/gemini-cli@60f8082`](../repos/google-gemini__gemini-cli.md) · [`google-gemini/gemini-api-cli@3dcbb6e`](../repos/google-gemini__gemini-api-cli.md) · [`google-gemini/cookbook@4ab7a6f`](../repos/google-gemini__cookbook.md) · [`google-gemini/gemini-skills@c4d0c62`](../repos/google-gemini__gemini-skills.md)
  - Layer 2：[`google/adk-python@03725e8`](../repos/google__adk-python.md) · [`google/adk-recipes@252a57c`](../repos/google__adk-recipes.md) · [`google/agents-cli@ea7a3c9`](../repos/google__agents-cli.md) · [`GoogleCloudPlatform/agent-starter-pack@0db0669`](../repos/GoogleCloudPlatform__agent-starter-pack.md)
  - Layer 3：[`addyosmani/agent-skills@e997ac5`](../repos/addyosmani__agent-skills.md) · [`google/skills@10c799e`](../repos/google__skills.md) · [`google-labs-code/stitch-skills@75f4696`](../repos/google-labs-code__stitch-skills.md) · [`google/elephant-goldfish-model@4693375`](../repos/google__elephant-goldfish-model.md) · [`google-gemini/demolab@6a5e364`](../repos/google-gemini__demolab.md)
  - Layer 4：[`google/ax@6173dad`](../repos/google__ax.md) · [`a2aproject/A2A@a506d01`](../repos/a2aproject__A2A.md) · [`google/agentmesh@e83bc4d`](../repos/google__agentmesh.md) · [`genkit-ai/genkit@6125d54`](../repos/genkit-ai__genkit.md)
  - Layer 5：[`ChromeDevTools/chrome-devtools-mcp@597b029`](../repos/ChromeDevTools__chrome-devtools-mcp.md) · [`googleapis/mcp-toolbox@ff628a9`](../repos/googleapis__mcp-toolbox.md) · [`google/langextract@9ed9613`](../repos/google__langextract.md) · [`google/mantis@f21cd11`](../repos/google__mantis.md)
- 相关模式：[verified-agent-swarm-harness-and-model-casting](verified-agent-swarm-harness-and-model-casting.md) · [agentic-game-studio-and-multiplatform-monetization](agentic-game-studio-and-multiplatform-monetization.md) · [self-hosted-coding-agent-orchestration-and-telemetry-audit](self-hosted-coding-agent-orchestration-and-telemetry-audit.md) · [anti-ai-slop-design-and-numeric-prompts](anti-ai-slop-design-and-numeric-prompts.md)

## Cross-Referenced Specimens

- [A-020 · 用 5 层 20 个 Google 系 Agent 开源仓库武装 Gemini 4 Neon `/swarm`——从裸跑编排到技能、运行时与工具栈（先装 3 个而非 20 个）](https://oumuatown.com/articles/2026-11-28-0xmovez-20-google-agent-repos.md) — 二十款谷歌 Agent 仓实测：先装三件套与五处源码勘误
- [A-030 · Google Gemini DemoLab：面向 Gemini 4 的创意、前端设计与深度研究 Agent Skills 官方示例库拆解](https://oumuatown.com/articles/2026-11-29-google-gemini-demolab.md) — 极简双 Skill 库实测：零评测脚本且多语排版脆弱
- [R-114 · google-gemini/gemini-cli](https://oumuatown.com/repos/google-gemini__gemini-cli.md) — 双包解耦配原生沙箱与策略，筑牢终端智能体安全压缩线
- [R-045 · google-gemini/gemini-api-cli](https://oumuatown.com/repos/google-gemini__gemini-api-cli.md) — 封装无状态 Shell 契约，但安装缺哈希校验且开关空置
- [R-113 · google-gemini/cookbook](https://oumuatown.com/repos/google-gemini__cookbook.md) — 主线已迁新交互接口，但 1G 仓内仍混杂弃用旧版依赖冲突
- [R-115 · google-gemini/gemini-skills](https://oumuatown.com/repos/google-gemini__gemini-skills.md) — 强拉官网文档破记忆过期，把模型接口准确率推到 96%
- [R-044 · google/adk-python](https://oumuatown.com/repos/google__adk-python.md) — 异步图编排以元组扇出并屏障汇合，注意思考配置归属坑
- [R-105 · google/adk-recipes](https://oumuatown.com/repos/google__adk-recipes.md) — 三层组织可运行智能体配方与插件，80% 阈值评测门禁卡口
- [R-107 · google/agents-cli](https://oumuatown.com/repos/google__agents-cli.md) — 接棒旧脚手架的 ADK 全周期链，内置三路合并与自动调优
- [R-118 · GoogleCloudPlatform/agent-starter-pack](https://oumuatown.com/repos/GoogleCloudPlatform__agent-starter-pack.md) — 已归档并清空为别名包，生产CI与观测范式仅存旧版
- [R-098 · addyosmani/agent-skills](https://oumuatown.com/repos/addyosmani__agent-skills.md) — 把全研发周期编码为26个技能，配95%棘轮门禁与十宿主适配
- [R-112 · google/skills](https://oumuatown.com/repos/google__skills.md) — 极简索引按需路由 220 技能，双清单打通多宿主插件分发
- [R-116 · google-labs-code/stitch-skills](https://oumuatown.com/repos/google-labs-code__stitch-skills.md) — 以脚本直传破截断，借本地契约与语法树校验稳出前端代码
- [R-109 · google/elephant-goldfish-model](https://oumuatown.com/repos/google__elephant-goldfish-model.md) — 长记忆开发配失忆金鱼只读盲审，跨 7 宿主落定上下文隔离
- [R-125 · google-gemini/demolab](https://oumuatown.com/repos/google-gemini__demolab.md) — 13 文件紧凑纯文档技能，以硬数值约束反模板但缺脚本校验
- [R-108 · google/ax](https://oumuatown.com/repos/google__ax.md) — 绕开 etcd 瓶颈，用租约锁与预热快照编排沙箱智能体
- [R-097 · a2aproject/A2A](https://oumuatown.com/repos/a2aproject__A2A.md) — 以Proto为单一事实源，统一A2A三协议绑定与八态任务机
- [R-106 · google/agentmesh](https://oumuatown.com/repos/google__agentmesh.md) — 借 libp2p 打洞与离线凭证，构建零信任智能体私网
- [R-104 · genkit-ai/genkit](https://oumuatown.com/repos/genkit-ai__genkit.md) — 强类型流注册表配反射协议，打通多语言 AI 调测与评估
- [R-101 · ChromeDevTools/chrome-devtools-mcp](https://oumuatown.com/repos/ChromeDevTools__chrome-devtools-mcp.md) — 复用DevTools核心的官方MCP，71工具配沙箱防线
- [R-117 · googleapis/mcp-toolbox](https://oumuatown.com/repos/googleapis__mcp-toolbox.md) — 声明式热重载纳管四十八库，原生防注入与鉴权的企业网关
- [R-110 · google/langextract](https://oumuatown.com/repos/google__langextract.md) — 按句分块配动态规划偏移对齐，让长文本结构抽取句句可溯源
- [R-111 · google/mantis](https://oumuatown.com/repos/google__mantis.md) — 无模型测绘配侧信道门禁，但尚属演示态未测 PR 扫描
- [P-018 · 可核验多智能体 Swarm 编制、异模型 Verifier 与选角成本纪律模式（Verified Agent-Swarm Harness & Model Casting）](https://oumuatown.com/patterns/verified-agent-swarm-harness-and-model-casting.md) — 三席选角、三段式委托与异模型全新上下文路径行号签收
- [A-006 · Gemini 4 Neon 八步搭建 AI Agent 团队——Orchestrator 规划/执行配对、.agents/ 团队文件、异模型 Verifier 与 ADK 2.0 工作流](https://oumuatown.com/articles/2026-11-27-0xmovez-gemini-neon-agent-swarm-harness.md) — 提示词工程让位于编制：规划执行分席与异模型验收
- [P-006 · 全栈 AI 游戏工作台、跨宿主技能分发与多端商业化打包管线（Agentic Game Studio, Cross-Host Skill Installer & Multi-Platform Monetization）](https://oumuatown.com/patterns/agentic-game-studio-and-multiplatform-monetization.md) — 模板混改、79 宿主锁文件与双端小游戏商业化管线
- [P-017 · 多智能体编程编排器自托管控制面选型与五维遥测凭据隐私审计模式（Self-Hosted Coding-Agent Orchestration & Telemetry Audit）](https://oumuatown.com/patterns/self-hosted-coding-agent-orchestration-and-telemetry-audit.md) — 破除开源即零遥测迷思，确立编排器五维隐私审计与选型铁律
- [P-002 · 反 AI Slop 审美门禁、防收敛发牌与物理数值提示词体系（Anti-AI-Slop & Numeric Prompting）](https://oumuatown.com/patterns/anti-ai-slop-design-and-numeric-prompts.md) — 用物理数值契约、有状态发牌与像素验收根除 AI 模板味
- [P-026 · 跨厂商 LLM Council 盲审、沙盒化外部 CLI 评审与多模型升级梯模式（Cross-Vendor LLM Council & Sandboxed CLI Review）](https://oumuatown.com/patterns/cross-vendor-llm-council-and-sandboxed-cli-review.md) — 双池选角加沙盒 CLI，重构抗位置偏置的三厂商全盲评议
