Skip to content
Development
Command

/task

Delegate a task to Gemini CLI as a background or foreground job

From plugin
gemini-plugin-cc
468 skills1 agent8 commands
> /plugin marketplace add bonboncinnabon/gemini-plugin-cc
> /plugin install gemini@abiswas97-gemini

Command definition

task.md
description: Delegate a task to Gemini CLI as a background or foreground job
argument-hint: '[--background] [--resume-last|--resume <session-id>|--fresh] [--model <pro|flash|pro-3|flash-3>] [prompt]'
disable-model-invocation: true
allowed-tools: Read, Glob, Grep, Bash(node:*), Bash(git:*), AskUserQuestion

Run a Gemini task through the companion runtime.

Raw slash-command arguments: `$ARGUMENTS`

Execution mode rules:

  • If `--background` is in the arguments, run in a Claude background task.
  • Otherwise, run in the foreground and stream output.

Foreground flow:

  • Run:
node "${CLAUDE_PLUGIN_ROOT}/scripts/gemini-companion.mjs" task $ARGUMENTS
  • Return the command stdout verbatim, exactly as-is.

Background flow:

  • Launch with `Bash` in the background:
Bash({
  command: `node "${CLAUDE_PLUGIN_ROOT}/scripts/gemini-companion.mjs" task $ARGUMENTS`,
  description: "Gemini task",
  run_in_background: true
})
  • Tell the user: "Gemini task started in the background. Check `/gemini:status` for progress."
@abiswas97
Ships withgemini-plugin-cc

Use Gemini from inside Claude Code for code reviews or to delegate tasks to Gemini. Based on openai/codex-plugin-cc, adapted for the Gemini CLI. Also adds /gemini:task for direct task delegation.

464 skills1 agent
Get the whole plugin

Stars on GitHub

Momentum

stars in total
46
Star history of abiswas97/gemini-plugin-cc on GitHub, a chart by star-history.com

Other commands on gemini-plugin-cc.

rescue

rescue

Command

Delegate investigation, an explicit fix request, or follow-up rescue work to the Gemini rescue subagent

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command