When a Salesforce deployment fails, MoxyCode opens the Deploy Errors panel automatically. Every error is listed, explained in plain English, and ready to fix — without leaving VS Code or searching documentation.
The Deploy Errors panel
The panel opens automatically after a failed deploy. It shows every error with:| File | The Apex class, trigger, or LWC component with the error |
| Line | The exact line number where the error occurred |
| Error message | The raw Salesforce CLI error message |
| Confidence | How certain MoxyCode is about the fix |
| Risk | How safe it is to apply the fix |

Confidence ratings
Every error analysis includes a confidence rating so you know how much to trust the suggested fix.| Rating | Meaning |
|---|---|
| 🟢 High Confidence | Straightforward fix — well understood pattern |
| 🟡 Medium Confidence | Likely correct but review the change before applying |
| 🔴 Low Confidence | Complex error context — understand the fix carefully before applying |
Risk ratings
Every generated fix includes a risk rating so you know the impact of applying it.| Rating | Meaning |
|---|---|
| ✅ Safe fix | No logic changes — safe to apply |
| ⚠️ Minor Risk | Small logic change — review the diff |
| 🔍 Review Needed | Significant change — understand it fully before applying |
Free plan — Explain
On the Free plan, click Explain on any individual error to get a full AI analysis of that error. Each Explain click uses 1 of your 5 daily AI requests. The explanation includes:- What the error means in plain English
- Exactly why it is happening in your specific code
- How to fix it with a code example you can copy

On the Free plan you get 5 AI requests per day shared across the entire product — Explain clicks, chat messages, and code analysis requests all count toward this limit.
Pro — Analyze & Generate Fixes
On Pro, click Analyze & Generate Fixes to generate a complete fix for every error at once. MoxyCode sends all errors to AI and returns a targeted fix for each one. Each generated fix shows:- Fixed code — the corrected version ready to apply
- What Changed — a plain-English summary of exactly what was modified and why
- Overall summary — confidence and risk rating for the full set of changes

Applying a fix
Safe Mode (default)
In Safe Mode, MoxyCode generates the fix but waits for your approval:- Review the Fixed Code and What Changed summary
- Click Apply Fix to apply the change to your file
- Save the file to accept the changes (
Cmd+S/Ctrl+S) - Use
Cmd+Z/Ctrl+Zto undo if needed
Auto Mode
In Auto Mode, MoxyCode applies fixes automatically without requiring you to click Apply Fix. You still need to save the file to accept the changes.Chat
The chat input at the bottom of the Deploy Errors panel lets you ask questions about your errors directly. Ask MoxyCode to explain an error in more detail, suggest an alternative fix, or help you understand the Salesforce context behind the issue. Each chat message uses 1 of your 5 daily AI requests on the Free plan.
Chat messages are limited to 4,000 characters per message to ensure fair usage for all users.
Go to line
Click Go to line on any error to jump your cursor directly to the errored line in your file. This does not use any AI requests.After applying fixes
Once you have applied your fixes and saved the file, run the deploy again:
Some errors are layered — fixing one can reveal another underneath. Run the deploy again after each fix cycle until it succeeds cleanly.
Supported file types
MoxyCode fixes deployment errors in:| Extension | Type |
|---|---|
.cls | Apex class |
.trigger | Apex trigger |
.js | LWC JavaScript |
.html | LWC HTML template |
Common issues
Deploy Errors panel didn't open after a failed deploy
Deploy Errors panel didn't open after a failed deploy
The panel opens automatically when MoxyCode detects errors in the Salesforce CLI output. Make sure you are running MoxyCode: Deploy to Org and not the standard Salesforce CLI deploy command — MoxyCode only monitors its own deploys.
Hit the 5 request limit
Hit the 5 request limit
The 5 daily AI request limit on the Free plan is shared across the entire product — Explain clicks, chat messages, and code analysis requests all count. The limit resets 24 hours after your 5th request was made. Upgrade to Pro for unlimited requests.
Fix applied but the code looks wrong
Fix applied but the code looks wrong
Use
Cmd+Z / Ctrl+Z to undo the applied fix immediately. Review the What Changed summary and the confidence and risk ratings before re-applying. For Low Confidence fixes, consider making the change manually instead.Deploy still fails after applying all fixes
Deploy still fails after applying all fixes
Some errors are layered — fixing one reveals another underneath. Run MoxyCode: Deploy to Org again. MoxyCode will open the panel with the next set of errors and repeat the fix cycle.
Code Analysis
Catch issues before they become deployment errors
Safe Mode
Control when fixes are applied to your code