PipeDream941/dsh-subagent-gemini ↗★ 0

dsh-subagent-gemini

将谷歌 Gemini 命令行作为单次代码子代理运行 适合需要在工作区中委派独立任务给 Gemini 模型的开发者。

包名
dsh-subagent-gemini
兼容性
待验证
Harness 依赖范围
0.2.1-rc.2
Cordis 依赖范围
~4.0.5
版本
0.1.0
许可证
MIT
最近更新
2026年10月19日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:PipeDream941/dsh-subagent-gemini

Usage

The model calls it like any other delegation tool:

{
  "name": "subagent_gemini",
  "arguments": {
    "description": "Fix login timeout",
    "prompt": "In the workspace, find the login request timeout and raise it from 5s to 15s, run the related tests, and reply only with what you changed and the test result."
  }
}
  • description — 3–5 word task name shown in the subagent list;
  • prompt — a self-contained task; the child cannot see the parent conversation, so include paths, constraints and acceptance criteria.

When the run finishes the parent receives a completion notice with Gemini's final answer or a safe failure diagnostic. The child's tool traffic and reasoning stay out of the parent session.

Configuration

Override the subagent-gemini entry's config in a profile patch:

FieldDefaultMeaning
providerNamegeminiName registered on ctx.subagents; must be unique in one profile
commandempty (auto-detect)Path to the gemini executable; empty searches PATH, then ~/.local/bin, /opt/homebrew/bin, /usr/local/bin, …
args['--acp', '--skip-trust']CLI arguments; --acp is always kept, --skip-trust is present by default
modelempty (CLI default)Fixed model id such as gemini-2.5-flash; becomes one --model argument
permissionallowAuto-answer for child permission requests: allow approves (edits/shell), reject declines (read-only)
env{}Extra environment variables layered over the credential-scrubbed parent environment
disposeEofGraceMs6000Time the child gets to flush after stdin EOF before escalation
disposeGraceMs3000Failure-observation and SIGTERM→SIGKILL escalation grace

Example — fixed model, read-only child:

- id: subagent-gemini
  config:
    model: gemini-2.5-flash
    permission: reject