gemini-agent

Delegate repository tasks to independent Gemini sessions with JSON outputs.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/Ben2pc/g-claude-code-plugins --skill gemini-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gemini-agent
Source: https://github.com/Ben2pc/g-claude-code-plugins/tree/main/skills/gemini-agent
Command: npx skills add https://github.com/Ben2pc/g-claude-code-plugins --skill gemini-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates delegation of repository tasks to independent Gemini sessions, enabling headless execution, session resumption, and structured outputs for coding, review, and diagnostics.

Core Features & Use Cases

  • Headless delegation: run tasks in non-interactive mode to automate workflows.
  • Session management: start new sessions and resume with -r latest or a specific session ID.
  • Flexible outputs: obtain results in json or stream-json for easy integration into pipelines.
  • Isolated execution: leverage worktrees and sandboxing for safe task handling.
  • Handoff-style delegation: distribute work to independent Gemini sessions for modular tasks.

Quick Start

Run the gemini-agent with a task prompt and --output-format json to start an isolated Gemini session for your repository task.

Frequently Asked Questions about gemini-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I delegate coding and review tasks to a non-interactive Gemini session?

To delegate coding and review tasks to a non-interactive Gemini session, you run the agent with a task prompt and specify --output-format json. This enables headless execution for automating repository workflows.

Can I resume a previous Gemini session for ongoing diagnostics?

Yes, you can resume a previous Gemini session for ongoing diagnostics by using the -r latest flag or providing a specific session ID. This allows continuous task execution across interruptions.

Does headless task delegation support isolated execution using worktrees?

Headless task delegation supports isolated execution using worktrees and sandboxing. This ensures safe task handling by keeping independent Gemini sessions separate during automated coding and orchestration workflows.

What is the best way to integrate structured output from automated sessions into pipelines?

The best way to integrate structured output from automated sessions into pipelines is to use the json or stream-json output formats. These formats provide structured results for easy integration downstream.

Can I use this for headless operation in non-TTY contexts?

Yes, you can use this for headless operation in non-TTY contexts. It supports both interactive and non-TTY environments, enabling clear task handoff semantics using the Gemini CLI.

When should I not use handoff-style delegation for repository tasks?

You should not use handoff-style delegation for repository tasks requiring direct, real-time user interaction. It is designed for non-interactive workflows, encoding, diagnosis, planning, and structured output automation.