google-gemini / google-gemini/gemini-cli

[Context Mgmt] Gemini CLI should exclude unneeded tools from context

Open
#17,113 1 comment 0 reactions 1 assignee Claimed by @mattKorwel View on GitHub
🔒 maintainer only area/agent kind/enhancement priority/p2 status/bot-triaged workstream-rollup
Dominant language
TypeScript
Stars
107k
Forks
14.6k
Avg merge
2d 3h
Merged PRs (30d)
45

Description

Tool descriptions are a significant contributor to context size. We can trim this down by optimizing the set of tools available in each agent/subagent as well as doing a preselection of only the tools needed for the particular task.

Potentially relevant reading:
- https://dl.acm.org/doi/10.1145/3627673.3679847
- https://arxiv.org/abs/2511.01854

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.