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:
| Tool | Description |
|---|---|
read_workspace_file | Read the contents of any project file |
search_workspace | Full-text search across all files |
apply_file_edit | Make targeted edits via search/replace |
batch_apply_edits | Apply multiple edits in sequence |
create_file | Create new files with content |
create_folder | Create new directories |
delete_file | Remove files |
get_compile_logs | Read compilation errors |
list_typst_skill_docs | Browse 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:
- 1The AI proposes changes
- 2You see a diff preview in the Staged Changes Bar
- 3You approve or reject each change
- 4A checkpoint is created so you can undo later
Was this helpful?
