Skip to content

Using Workflows

Workflows in CodeCompanion, are successive prompts which can be automatically sent to the LLM in a turn-based manner. This allows for actions such as reflection and planning to be easily implemented into your ways of working. They can be combined with tools to create agentic workflows, which could be used to automate common activities like editing files and then running a test suite.

I fully recommend reading Issue 242 of The Batch to understand the origin of workflows. They were originally implemented in the plugin as an early form of Chain-of-thought prompting, via the use of reflection and planning prompts.

Usage

Workflows can only be initiated from the Action Palette. This is because they are a complex Lua table structure which needs to be processed and added to a new chat buffer. Simply open up the Action Palette and select your desired workflow.

You can create your own workflows by following the workflows configuration guide and the agentic workflows guide.

Released under the Apache-2.0 License.