MoxyCode has two fix modes — Safe Mode and Auto Fix Mode. Safe Mode is the default for all users. It gives you full control over every fix before it touches your code.
The two modes
| Safe Mode | Auto Fix Mode | |
|---|---|---|
| Default | Yes | — |
| Apply Fix button | Manual — you click it | Automated — skipped |
| Save to confirm | Required | Required |
| Undo Fix available | Yes | Yes |
| Applies to | Deploy errors + Code Analysis | Deploy errors + Code Analysis |
Safe Mode
In Safe Mode, MoxyCode generates a fix and waits for you to review it before applying anything to your code. Deploy errors:- Click Analyze & Generate Fixes
- Review the Fixed Code, What Changed, and Overall Summary
- Click Apply Fix to apply the change
- Click Save File in the notification to confirm, or Undo Fix to revert
- Click MoxyCode: 💡 Explain & Fix on a flagged line
- Review the fix in the Code Analysis panel
- Click Apply Fix to apply the change
- Click Save File in the notification to confirm, or Undo Fix to revert

Auto Fix Mode
In Auto Fix Mode, MoxyCode generates and applies fixes automatically — the Apply Fix button is skipped. You still see the notification with changed lines highlighted in green, and you still need to save the file to confirm. Deploy errors:- Click Analyze & Generate Fixes
- Fix is generated and applied automatically
- Click Save File in the notification to confirm, or Undo Fix to revert
- Click MoxyCode: 💡 Explain & Fix on a flagged line
- Fix is generated and applied automatically
- Click Save File in the notification to confirm, or Undo Fix to revert

Switching modes
Click MoxyCode: Safe or MoxyCode: Auto in the VS Code status bar at the bottom of the screen to toggle between modes.- Switching to Safe Mode shows: “MoxyCode: Safe Mode enabled — fixes require manual approval”
- Switching to Auto Fix Mode shows: “MoxyCode: Auto Fix Mode enabled — fixes apply automatically”

When to use each mode
Use Safe Mode when:- Working against a production org or any org with live users
- Applying fixes with a Medium or Low confidence rating
- Applying fixes rated Minor Risk or Review Needed
- You want to understand every change before it goes into your code
- Working in a personal development sandbox
- Iterating quickly through multiple deploy-fix cycles
- All generated fixes are High Confidence and Safe fix rated
- You are familiar with the codebase and comfortable with automatic changes
Common issues
Mode toggle not appearing in the status bar
Mode toggle not appearing in the status bar
The MoxyCode mode toggle appears in the VS Code status bar at the bottom of the screen. If it is not visible, make sure MoxyCode is installed and active — open any supported file (
.cls, .trigger, .js, .html) to activate the extension. If it still doesn’t appear, run Developer: Reload Window from the Command Palette.Fix was applied before I could review it
Fix was applied before I could review it
You are in Auto Fix Mode. Click MoxyCode: Auto in the status bar to switch back to Safe Mode. If a fix was already applied that you want to revert, click Undo Fix in the notification or use
Cmd+Z / Ctrl+Z in the editor.I saved the file before reviewing the fix
I saved the file before reviewing the fix
Use
Cmd+Z / Ctrl+Z to undo the save and the applied fix. VS Code maintains undo history across saves so you can still revert.Fix Deployment Errors
Learn how fixes are generated and applied
Offline Mode
Run MoxyCode fully local with no internet connection