google-gemini/gemini-cli

/clear docs dont mention that it clears context

Open

#19 239 ouverte le 17 févr. 2026

Voir sur GitHub
 (9 commentaires) (0 réactions) (1 assigné)TypeScript (13 657 forks)batch import
area/agenthelp wantedkind/customer-issuepriority/p3status/bot-triaged

Métriques du dépôt

Stars
 (103 992 stars)
Métriques de merge PR
 (Merge moyen 4j 2h) (55 PRs mergées en 30 j)

Description

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

Guide contributeur