/clear Command
The Bolt.new slash command that resets the conversation context. Used when accumulated context causes the AI to contradict earlier decisions, loop on a fix, or generate increasingly inconsistent code. Always re-establish project context after clearing.
Syntax
bolt-new
/clear
// Immediately follow with context re-establishment:
Continuing work on [project name].
Stack: [brief stack summary]
Current state: [brief working state summary]
Next task: [what you're working on]Example
bolt-new
/clear
Continuing work on the TaskFlow project.
Stack: React 18 + TypeScript, Tailwind, Supabase, React Router v6.
Status: Auth, projects, and tasks are fully working.
All .kiro/steering files are in place.
Next: Add the notification system as described in
.kiro/specs/notifications.md
Read the steering files before making any changes.