feat(skills): add gemini-cli delegation skill - #12246
Conversation
Mirrors the codex/claude-code delegation pattern for Google Gemini CLI. Documents one-shot, plan/yolo/auto_edit approval modes, JSON/stream-json output, multi-directory context, background mode, worktree-based parallel work, and PR-review patterns. Each pattern was verified against gemini CLI v0.38.1 on macOS before publishing. Closes NousResearch#10036
teknium1
left a comment
There was a problem hiding this comment.
Thanks for adding the missing Gemini CLI delegation path. Current main still has no skills/autonomous-ai-agents/gemini-cli/ skill, so the request in #10036 remains valid.
Problems
skills/autonomous-ai-agents/gemini-cli/SKILL.md:3has a 180-character, multi-sentence description;AGENTS.md:888-900requires one sentence of at most 60 characters.SKILL.md:1-10omitsplatforms:and credits only Hermes Agent. New skills require audited platform gating and external contributor-first credit (AGENTS.md:916-931). This matters because the examples include POSIX-oriented/tmpand shell-background usage.- The document omits the required modern section order and no
tests/skills/test_gemini_cli_skill.pyaccompanies it (AGENTS.md:933-950).
Suggested changes
- Modernize the frontmatter and section structure, add a focused skill test, and then salvage the otherwise isolated new-file change.
Automated hermes-sweeper review.
| @@ -0,0 +1,173 @@ | |||
| --- | |||
| name: gemini-cli | |||
| description: Delegate coding tasks to Google Gemini CLI agent. Use for whole-repo audits, code reviews, refactors, batch issue fixing, and structured-output extraction. Requires the gemini CLI. | |||
There was a problem hiding this comment.
Please reduce this to a single sentence of at most 60 characters. New and modernized skills must meet the hardline description limit in AGENTS.md:888-900.
| name: gemini-cli | ||
| description: Delegate coding tasks to Google Gemini CLI agent. Use for whole-repo audits, code reviews, refactors, batch issue fixing, and structured-output extraction. Requires the gemini CLI. | ||
| version: 1.0.0 | ||
| author: Hermes Agent |
There was a problem hiding this comment.
For an external contribution, credit the human contributor first (for example, spideystreet + Hermes Agent), per AGENTS.md:926-931.
| version: 1.0.0 | ||
| author: Hermes Agent | ||
| license: MIT | ||
| metadata: |
There was a problem hiding this comment.
Add audited platforms: metadata and metadata.hermes.category. The document includes POSIX-oriented /tmp and shell-background examples, so the supported-platform declaration needs to reflect that audit.
What does this PR do?
Adds a bundled delegation skill for Google Gemini CLI, mirroring the existing pattern of
skills/autonomous-ai-agents/claude-codeandskills/autonomous-ai-agents/codex.This lets Hermes delegate coding work to the
geminiCLI the same way it already delegates to Claude Code and Codex — one-shot tasks, background long-runs, parallel worktree fixes, and PR reviews.Distinct from PR #11270: that PR added Gemini as an inference provider (Gemini-as-a-model). This PR is orthogonal — it delegates to the gemini CLI as an autonomous agent, not using Gemini as Hermes' brain.
What Gemini brings that the existing delegation skills don't:
--approval-mode planfor stronger read-only guarantees than allowlists-pmode (cleaner than Codex's tmux/PTY plumbing)Related Issue
Fixes #10036
Type of Change
Changes Made
skills/autonomous-ai-agents/gemini-cli/SKILL.md(173 lines)name,description,version,author,license,metadata.hermes.tags,metadata.hermes.related_skills)How to Test
Tested end-to-end against
geminiCLI v0.38.1 on macOS (Darwin 25.1.0) before opening this PR. Each documented pattern was verified individually.Verified working patterns from the SKILL:
gemini -pone-shot (no PTY, no git repo required)--approval-mode plan(read-only enforced — no writes possible)--approval-mode yolo(auto-approves writes; created a real file)-o json/-o stream-json(parseable envelope with token + cost stats)--include-directories(multi-dir workspace)&(no PTY needed for-p)git worktree add+ per-worktree gemini (parallel issue fixing)git diff | gemini -p ...)gemini mcp list,extensions list,skills listsubcommandsCaveat documented in SKILL: built-in
-w/--worktreeflag is interactive-only (silently dumps help when combined with-p). The skill documentsgit worktree addas the scripted alternative.Checklist
Code
feat(skills): ...)gemini-clidelegation skill (PR feat(gemini): add Google Gemini CLI OAuth inference provider #11270 is the inference-provider integration, different scope)pytest tests/ -q: this PR is a bundled skill (Markdown only), no Python code paths changedDocumentation & Housekeeping
cli-config.yaml.examplechange needed (skill auto-discovered)CONTRIBUTING.md/AGENTS.mdchange needed&syntax is bash/zsh; the rule "no PTY needed for -p" applies cross-platformFor New Skills
claude-codeandcodex, both already bundled. Free-tier auth (60 req/min, 1k req/day) means most users can try it without paid keysgeminiCLI (npm or brew install) and the existing Hermesterminal+processtoolshermes chat -s autonomous-ai-agents/gemini-cli -q "..."— workingScreenshots / Logs
End-to-end run on macOS, Hermes v0.10.0, model
xiaomi/mimo-v2-pro: