google-gemini/gemini-cli

/clear docs dont mention that it clears context

Open

#19.239 geöffnet am 17. Feb. 2026

Auf GitHub ansehen
 (9 Kommentare) (0 Reaktionen) (1 zugewiesene Person)TypeScript (13.657 Forks)batch import
area/agenthelp wantedkind/customer-issuepriority/p3status/bot-triaged

Repository-Metriken

Stars
 (103.992 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 4T 2h) (55 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide