google-gemini/gemini-cli

/clear docs dont mention that it clears context

Open

#19.239 aperta il 17 feb 2026

Vedi su GitHub
 (9 commenti) (0 reazioni) (1 assegnatario)TypeScript (13.657 fork)batch import
area/agenthelp wantedkind/customer-issuepriority/p3status/bot-triaged

Metriche repository

Star
 (103.992 star)
Metriche merge PR
 (Merge medio 4g 2h) (55 PR mergiate in 30 g)

Descrizione

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

Guida contributor