google-gemini/gemini-cli

/clear docs dont mention that it clears context

已关闭

#19,239 创建于 2026年2月17日

 (9 条评论) (0 个反应) (1 位负责人)TypeScript (13,657 个派生)batch import
area/agenthelp wantedkind/customer-issuepriority/p3status/bot-triaged

仓库指标

星标
 (103,992 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

/clear

Description: Clear the terminal screen, including the visible session history and scrollback within the CLI. The underlying session data (for history recall) might be preserved depending on the exact implementation, but the visual display is cleared.

This forgets to mention the most important part, that the context of the agent is cleared fresh so you can begin new thread without context pollution.

贡献者指南