VCode home

Clear the context with /clear

Agents: claude, codex, opencode · On: phone, desktop

/clear starts the agent fresh in this tab. The conversation it was carrying is dropped, along with the transcript on screen. The tab, its folder, its model and its log on disk stay.

Why you would use it

The agent has been going for an hour on something finished and every new question is answered through the old context. Clearing is cheaper than a new tab because the tab keeps its name, colour, folder and settings.

How to use it

  1. Type /clear in the box (#draft). The slash menu describes it as Start fresh — clears the conversation and the context.

    The slash menu showing one match, /clear, with its description, above the box holding /clear.

  2. Tap the row. /clear takes no argument, so the tap runs it — there is nothing left to send. Typed in full and sent with Enter, it does the same thing.

    The tab after clearing: the transcript is one SYS line reading "cleared — claude starts fresh from here".

What you see

Limits and known gaps