What is Safe Mode?
When Safe Mode is enabled, Craft Agent will pause and ask for your approval before performing any operation that changes your Craft documents. This gives you complete control over what gets modified.Protected Operations
Safe Mode requires confirmation for:- Updating existing content
- Moving documents or blocks
- Deleting any content
- Modifying collection items
- Changing document properties
Unprotected Operations
These operations work normally without confirmation:- Reading documents
- Searching content
- Listing documents or folders
- Viewing tasks
- Fetching document metadata
Enabling Safe Mode
There are three ways to toggle Safe Mode:Quick Toggle
PressCtrl+S to instantly toggle Safe Mode on or off.
Slash Command
Use the/safemode command:
Settings Menu
Enable or disable from the settings menu:Using Safe Mode
Visual Indicator
When Safe Mode is active, you’ll see a SAFE indicator in the terminal header. This confirms that document protection is enabled.Confirmation Prompts
When the agent needs to modify a document, you’ll see a prompt showing:- What operation will be performed
- Which document will be affected
- What content will be changed
- y (yes) - Allow this specific operation
- n (no) - Deny and skip this operation
When to Use Safe Mode
Safe Mode is useful when:Testing new prompts or agents
Testing new prompts or agents
When experimenting with sub-agents or complex prompts, Safe Mode prevents unintended modifications while you refine the behavior.
Working with critical documents
Working with critical documents
For important documents, Safe Mode ensures nothing gets changed without your explicit approval.
Learning the system
Learning the system
If you’re new to Craft Agent, Safe Mode helps you understand what operations the agent performs before they happen.
Batch operations
Batch operations
When asking the agent to process multiple documents, Safe Mode lets you review each change individually.
Safe Mode vs Permissions
Safe Mode complements the existing permission system:| Feature | Permissions | Safe Mode |
|---|---|---|
| Scope | Shell commands, dangerous operations | Craft document modifications |
| Default | Always active | Opt-in |
| Session | Can whitelist commands | All-or-nothing toggle |
| Purpose | System protection | Document protection |
- Permissions protect your system from dangerous commands
- Safe Mode protects your Craft documents from unwanted changes
Best Practices
Safe Mode doesn’t affect local file operations or shell commands - those are controlled by the permission system.
Disabling Safe Mode
To disable Safe Mode, use any of the toggle methods:- Press
Ctrl+S - Run
/safemode - Change the setting in
/settings