返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
g

gemini-sub-agent

>

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
397
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

gemini-sub-agent

# gemini-sub-agent Use Google Gemini (via subscription, $0 API cost) as a sub-agent inside OpenClaw workflows. ## Setup Run once on a fresh machine: ```bash bash skills/gemini-sub-agent/scripts/setup.sh ``` Then authenticate (headless VPS flow): 1. On VPS: `gcloud auth application-default login --no-browser` → copy the `--remote-bootstrap` URL 2. On laptop: `gcloud auth application-default login --remote-bootstrap="<URL>"` → copy the `localhost:8085` output 3. Paste `localhost:8085` output back into VPS prompt 4. Complete Gemini CLI OAuth: `GOOGLE_GENAI_USE_GCA=true gemini -p "hello"` → paste auth code Credentials are cached indefinitely and auto-refresh. ## Available Models | Model | Use for | |---|---| | `gemini-3.1-pro-preview` | **Default** — latest flagship, best reasoning | | `gemini-2.5-pro` | Stable coding tasks, multi-file edits | | `gemini-3-flash-preview` | Fast summaries, quick Q&A | | `gemini-3-pro-preview` | Previous gen Pro, reliable fallback | | `gemini-2.5-flash` | Lightweight fallback | ## Usage Patterns ### 1. Simple text task (exec) ```bash ask-gemini "your prompt here" ask-gemini -m gemini-2.5-pro "your prompt" ``` ### 2. Pipe large content (long-context) ```bash cat large_file.txt | ask-gemini "summarize this in 5 bullets" cat report.md | ask-gemini "extract all action items" ``` ### 3. Agentic coding (replaces Swift/Sonnet for 30-200 line tasks) ```bash cd /path/to/project GOOGLE_GENAI_USE_GCA=true gemini -m gemini-2.5-pro -y -p "write a script that..." ``` `-y` = yolo mode (auto-approves all file writes and shell commands). Gemini reads/writes files autonomously. ### 4. Pipe files directly into agentic session ```bash cat existing_script.py | GOOGLE_GENAI_USE_GCA=true gemini -m gemini-2.5-pro -y -p "refactor this to add error handling" ``` ## Routing Rules (when to use Gemini vs others) | Task | Use | |---|---| | Text, analysis, summarization | `ask-gemini` | | Medium coding (30–200 lines) | Gemini agentic (`-y`) instead of Swift/Sonnet | | Large file / long-context | `ask-gemini` (1M token window) | | Web search / research | Research agent (Grok) — Gemini has no web access | | Multi-agent orchestration | OpenClaw native (sessions_spawn) | | Complex architecture / debugging | Codex (Opus) — escalate if Gemini fails twice | ## Escalation If Gemini returns wrong output twice on the same task → escalate to Swift (Sonnet) or Codex (Opus). Log the failure in `failures/hot_antipatterns.md` with the task type. ## Scripts - `scripts/setup.sh` — Full install: gemini-cli + gcloud + ask-gemini wrapper - `scripts/ask-gemini` — The wrapper script itself (copy to `/usr/local/bin/`)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 gemini-sub-agent-1776286317 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 gemini-sub-agent-1776286317 技能

通过命令行安装

skillhub install gemini-sub-agent-1776286317

下载

⬇ 下载 gemini-sub-agent v1.0.0(免费)

文件大小: 3.64 KB | 发布时间: 2026-4-16 17:11

v1.0.0 最新 2026-4-16 17:11
First release — use Gemini 3.1 Pro via Google subscription as a free OpenClaw sub-agent. Zero API cost, 1M context, agentic coding support.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部