AI FLOW
Canvas for writing and code app flow
A ai flow in 5 screens, from canvas card in the thread to version history and offline. Start your app from it, and your agent draws it on your own design system.
- 5 screens
- 5 patterns
- Mobile and desktop
- Brand: Arunika (made up)
The screens, in order
- Canvas card in the thread

- Split view editorPro
- Edit a selectionPro
- Code canvas conflictPro
- Version history and offlinePro
See all 5 screens, at mobile and desktop.Pro opens the whole flow in your Universe, with the prompt and code for each screen.
Upgrade to ProAlready Pro? Open in UniverseWhen to use it
USE WHEN
Answers longer than a screen, documents and code the user will keep editing, iterative writing.
AVOID WHEN
Short answers, one-off facts or a quick rewrite (keep it in chat; offer "Answer in chat instead").
Patterns and why they work
5 decisions this flow makes, and the clarity each one buys.
Card in the thread, editor beside it
Chat stays chat, the document stays a document
Save state and version always visible
Nothing is lost
Edit the selection in place
The change is scoped to the highlight
Diff rows in success and error tints
What the assistant changed
Conflict with two exits
Says the user's edit came first
Each pattern also has its psychology, the intuition behind it and what it rules out, plus layout notes for mobile and desktop.
Open in UniverseStates to cover
The screens people forget until a user hits them.
- Drawn: streaming card
- Opened editor
- Selection with inline bar
- Edit applied
- Version history with Restore on older versions
- Offline (edits kept on this device and merged later, the user picks a version if the canvas changed)
- Code with diff
- Conflict
- Listed
- Not drawn: saving
- Restore a version (result)
- Export
- Run output
- Answer in chat instead
Pairs with
The flows this one hands off to or comes back from.
More AI flows
Drawn for the same brand, so they fit together.
Questions
- When should I use a canvas for writing and code flow?
- Answers longer than a screen, documents and code the user will keep editing, iterative writing. Use another pattern for short answers, one-off facts or a quick rewrite (keep it in chat; offer "Answer in chat instead").
- Which screens does it need?
- This pattern uses 5: Canvas card in the thread, Split view editor, Edit a selection, Code canvas conflict and Version history and offline. Plan for these states too: drawn: streaming card, opened editor, selection with inline bar, edit applied.
- Is Arunika a real app?
- No. Arunika is a made-up AI assistant: chat with sources, attachments, image generation, agent tasks, projects, memory and plans, so the screens show the pattern without copying anyone's brand. Your agent redraws the flow on your own tokens and components.
- How does my agent use this flow?
- Connect Claude Code, Codex or Claude Desktop to Wonderblok over MCP. The agent calls use_pattern for this flow, reads its screens, rules and states, and draws them in your file.
- Is it free?
- Browsing Universe is free. Full pattern notes and use with your agent are part of Pro, and the Free plan opens a few flows in full each month.







