google-gemini / google-gemini/gemini-cli

Allow subagents to finish with final response output

Open
#18,288 1 comment 1 reaction 0 assignees View on GitHub
🔒 maintainer only area/agent kind/customer-issue priority/p3 status/bot-triaged workstream-rollup
Dominant language
TypeScript
Stars
107k
Forks
14.6k
Avg merge
2d 3h
Merged PRs (30d)
45

Description

Currently all subagents today get a `complete_task` tool. For subagents that do not have or want a more complex return schema, an absence of schema could be used to omit this tool. In this case, the subagent is considered finished when no more tool calls are made.

Considerations:
- The model could return with less helpful or no response text at all. In this case, there is a less useful handoff.
- Ensure this does not reduce quality for any built-in subagents
- Behavior may vary by model

Ideally, we can support both completions via the tool and without depending on the schema used.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.