Slate: Real-Time AI Collaboration on Code and Docs

Slate is PebbleFlow's workspace for editing code and documents with the AI. Instead of copying text back and forth, work together in real-time with inline diffs, comments, and version history.

The Slate editor with its toolbar — Code toggle, Format, Track, Comments, History, and more

What Slate Can Do

  • Code editing — Write and edit code with syntax highlighting. See exactly what changed and accept/reject changes one at a time.
  • Rich text editing — Create documents with formatting, headings, tables, and lists. Get AI suggestions inline.
  • Version history — Go back to any previous version. See who changed what and when.
  • Comments — Leave notes on specific parts of your code or document.

How to Use Slate

The AI opens Slate automatically when you ask for code or document creation:

  • "Write a Python script that scrapes product reviews"
  • "Draft a blog post about machine learning"
  • "Create an HTML page with a contact form"
  • "Edit this document and improve the tone"

When the AI opens a Slate, you can:

  1. Read the code or document — It's displayed with full formatting
  2. Review changes — If the AI proposes edits, see the diffs highlighted inline
  3. Accept or reject changes — Click checkmark to accept, X to reject (one change at a time)
  4. Make your own edits — Directly edit the code or text
  5. Ask for more changes — "Add error handling to this function" or "Make this more concise"
  6. View history — Click "History" to see all edits and revert if needed

Code Features

  • Syntax highlighting for Python, JavaScript, TypeScript, Java, C++, CSS, HTML, SQL, and more
  • Line numbers and bracket matching
  • Inline diffs — See exactly what changed, line by line
  • Per-change accept/reject — Granular control over each edit

Rich Text Features

  • Formatting toolbar — Bold, italic, links, lists, tables
  • Headings and blocks — Organize with structure
  • Comments — Leave notes without modifying the text
  • Tracked changes — See additions, deletions, and modifications with colored highlights
  • Find and replace — Search across the document and replace matches

Tips

  • You can edit while the AI is working—changes sync
  • Version history keeps every edit. You can't lose anything
  • Export in the format that fits your workflow: Word (.docx), PDF, HTML, Markdown, rich text (.rtf), CSV for tabular data, or the document's native format

This guide is maintained by the PebbleFlow team using Slate, our built-in editor.