AI Editing, Red/Green Diff, Approval

AI-Powered Editing

Agent Panel

Runs on the right rail in your document/file view

  • Open the AI panel by clicking the AI icon or Cmd+Shift+A toggles panel

  • Select an AI provider from the dropdown and type your message

  • Click on New message to change context. This starts a new Session.

  • Paste attachments or images into the chat

Chat

  • You can Chat in the Agent panel without editing your document

  • Use this to research, explore, learn

Requesting Edits

  • You can ask AI to modify your document

  • "Add a section about X"

  • "Rewrite this paragraph"

Streaming Edits:

  • Changes appear as they are ready

  • Visual diff shows additions/deletions

  • Toolbar appears for review

Plan Mode and Agent Mode

  • Plan mode limits the Agent to editing markdown and create markdown files

  • Agent mode gives the full power of the agent

  • Click on the Plan or Agent icon to toggle modes

Red/Green Diff

  • Shows changes made by the AI to the document

  • Enables Keep/Undo of all changes or one by one

  • Clicking on change or arrow selects that change and takes you to it

Agent Context & Conversations

The Agent is passed and understands the following context:

  • Document context: Current file content

  • Workspace context: File tree, related files

  • Session context: Conversation history

When conversing with the Agent

  • AI automatically includes the open document

  • You can reference other files by name by typing @

  • You can include images and code snippets in messages

Best Practices:

  • Be specific about context needs

  • "Looking at the function in file.ts..."

  • Include relevant code/text in message

Context Window

The 18k/200K Tokens indicats how many words/tokens can fit in this chat session. When you get close to 100%, make sure to hit +New and create a new session.

AI Tool Calls

AI can invoke tools to perform actions beyond text generation.

Available Tools:

  • File operations (read, write, search)

  • Code analysis and execution

  • Web search and research

  • Data processing

Tool results shown in chat with special formatting.

Last updated