Clarity

AI Assistant Overview

Your intelligent research writing copilot.

Clarity's AI assistant is an integrated copilot that understands your document and can help you write, edit, and debug — all without leaving the editor.

Capabilities

The assistant can:

  • Read any file in your project
  • Search across all project files
  • Edit files with precise search-and-replace operations
  • Create new files and folders
  • Compile your document and read error logs
  • Look up Typst documentation

How It Works

The AI assistant has access to a set of tools that let it interact with your workspace:

ToolDescription
read_workspace_fileRead the contents of any project file
search_workspaceFull-text search across all files
apply_file_editMake targeted edits via search/replace
batch_apply_editsApply multiple edits in sequence
create_fileCreate new files with content
create_folderCreate new directories
delete_fileRemove files
get_compile_logsRead compilation errors
list_typst_skill_docsBrowse Typst documentation

Change Management

The AI will never modify your files without your explicit approval. Every change goes through a staged review.

Every edit the AI makes goes through a staged approval workflow:

  1. 1The AI proposes changes
  2. 2You see a diff preview in the Staged Changes Bar
  3. 3You approve or reject each change
  4. 4A checkpoint is created so you can undo later
Was this helpful?
AI Assistant Overview — Clarity Docs