Skip to content

I feel the subagents are duplicating work when running in parallel #25533

@ksprashu

Description

@ksprashu

What happened?

I am testing subagents and I have created a few of them.
However when I send the instructions, it seems to send the same prompt to all the parallel sub agents, and each of them is executing the sme prompt in parallel. Then each of them execute the next prompt together and so on. Finally the results are consolidated. This seems wrong and not as expected.

Either that or the display of running subagents is wrong.

Image

What did you expect to happen?

If there are 3 tasks (multiple instances of same subagent), each of the subagent should run one task in parallel. All 3 shouldn't run all 3 tasks.

Client information

Client Information

Run gemini to enter the interactive CLI, then run the /about command.

> /about
│ About Gemini CLI                                                                                                                          │ 
│                                                                                                                                           │ 
│ CLI Version                                     0.37.1                                                                                    │ 
│ Git Commit                                      3b2d4f100                                                                                 │ 
│ Model                                           gemini-3-flash-preview                                                                    │ 
│ Sandbox                                         no sandbox                                                                                │ 
│ OS                                              linux                                                                                     │ 
│ Auth Method                                     Signed in with Google (ksprashanth82@gmail.com)                                           │ 
│ Tier                                            Gemini Code Assist                                                                        │ 
│ GCP Project                                     cloudshell-gca                                                                            │ 
│ IDE Client                                      Cloud Shell ```

</details>

### Login information

gmail auth

### Anything else we need to know?

Subagent definition

```markdown
---
name: recipe-scout
description: Finds a single, specific recipe matching provided meal and macro constraints.
tools:
  - google_web_search
---
You are a precision culinary researcher. You will be given a specific meal request and ingredient constraints.
- Action: Search the web to find exactly ONE high-quality recipe that perfectly aligns with these constraints. 
- Output: Return the recipe title, URL, exact ingredient list with quantities, and cooking instructions. Do not output conversational filler.

prompt - attached screenshot.
CLI is not letting me select the prompt - I've filed a bug.

Image

Metadata

Metadata

Assignees

Labels

area/agentIssues related to Core Agent, Tools, Memory, Sub-Agents, Hooks, Agent Qualitystatus/need-triageIssues that need to be triaged by the triage automation.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions