Cascade allows us to expose AI Flows, a new way of coding with AI.

To open Cascade, press Cmd/Ctrl+Lclick the Cascade icon in the top right corner of the Windsurf window.

Selected text in the editor or terminal will automatically be included.

Model selection

Select your desired model from the selection menu below the chat input.

Write/Chat Modes

Cascade comes in two modes: Write and Chat.

Write mode allows Cascade to create and make modifications to your codebase, while Chat mode is optimized for questions around your codebase or general coding principles.

Real-time collaboration

A unique capability of Windsurf and Cascade is that it is aware of your real-time actions.

No longer do you have to prompt the AI with context on your prior actions, as Cascade and Windsurf are already aware.

In the following video, you will see how a recent variable name change was automatically detected within Cascade, simply by prompting it with continue to rename the other instances.

Direct access to tools

Cascade can detect which packages and tools that you’re using, which ones need to be installed, and even install them for you. Just ask Cascade how to run your project and press Accept.

Try asking Cascade to install packages for you! It can read the stacktraces and error messages to make sure everything is installed correctly.

Revert to previous steps

You have the ability to revert changes that Cascade has made if you want to. Hover your mouse over the prompt and click on the arrow on the right. This will revert all code changes back to the state of your codebase at the desired step. Note: reverts are currently irreversible, so be careful!

Send Problems to Cascade

When you have problems in your code which show up in the Problems panel at the bottom of the editor, simply click the “Send to Cascade” button to bring them into the Cascade panel as an @ mention.

Explain and Fix

For any errors that you run into from within the editor, you can simply highlight the error and click “Explain and Fix” to have Cascade fix it for you.

Ignoring files

If you’d like Cascade to ignore files, you can add your files to .codeiumignore at the root of your workspace. This will prevent Cascade from viewing, editing or creating files inside of the paths designated. You can declare the file paths in a format similar to .gitignore.