A co-editing agent built using Bee workflows, Granite 3.2 and ollama.
Inspired by open-canvas.
- Generate & update co-editable artifacts (Markdown & Code)
- Implemented using Bee Workflows 💪
flowchart TD
A[START] --> routeUserMessage
routeUserMessage --> generateArtifact
routeUserMessage --> rewriteArtifact
routeUserMessage --> updateSelectedText
routeUserMessage --> replyToGeneralInput
generateArtifact --> followUpArtifact
rewriteArtifact --> followUpArtifact
updateSelectedText --> followUpArtifact
followUpArtifact --> END
replyToGeneralInput --> END
bee_canvas.mp4
- JavaScript runtime NodeJS > 18 (ideally installed via nvm).
- Local ollama
The agent uses granite3.2:8b
. If you don't have granite3.2:8b
pulled, run the following ollama command.
ollama pull granite3.2:8b
- Clone this repository.
- Install dependencies
npm ci
. - Configure your project by filling in missing values in the
.env
file (default LLM provider is locally hostedOllama
). - Run the agent
npm run start src/cli.ts