PipeDream941/dsh-subagent-gemini ↗★ 0

dsh-subagent-gemini

Run the Google Gemini CLI as a one-shot coding subagent in DeepSeek Harness: a subagent_gemini delegation tool over the Agent Client Protocol, with Gemini CLI discovery, config validation and credential guidance. 适合需要在工作区中委派独立任务给 Gemini 模型的开发者。

Package
dsh-subagent-gemini
Compatibility
Unverified
Harness peer range
0.2.1-rc.2
Cordis peer range
~4.0.5
Version
0.1.0
License
MIT
Last updated
Oct 19, 2026

Install

$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