Skip to content
Development
Command

/task

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

From plugin
gemini-plugin-cc
488 skills1 agent8 commands
Install
$ npx -y skills add abiswas97/gemini-plugin-cc --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/task

Context preview

What this command does when you run it.

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

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."
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.

Get the whole plugin, auto-invoked
Stats
48
Stars
0
Views
11
Forks
Maintained
Maintenance
JavaScript
Language
Apache-2.0
License
3mo ago
Last commit
4mo ago
Created

Repo: abiswas97/gemini-plugin-cc