promptgarten ๐ŸŒฑ
๐ŸŒ ES

Command reference ยท Aider

/clear

Clears the chat history of the current session.

/clear removes the previous conversation history from the chat context. The docs suggest this when Aider is stuck on a task and needs a fresh start.

โœ… WHEN TO USE IT?

Fresh start when Aider is stuck on a task

/clear โ€” then rephrase the task more precisely

โ›” WHEN NOT TO?

Wanting to remove only individual files from context

/clear wipes the whole conversation history but leaves files added to the chat untouched.

Better: Use /drop to remove specific files instead

SOURCES