.cls, .trigger), LWC JavaScript (.js), and LWC templates (.html), and both require a paid kipmox plan with Agent access.
analyze_code
Runs kipmox’s deterministic Salesforce static-analysis rules over a piece of code and returns structured findings. Use it before writing or reviewing Salesforce code; after applying a fix, callverify_fix.
Inputs
Returns — a list of findings, each with a
findingId, ruleId, line, message, and a deterministic remediation hint, plus a short summary.
LWC rules only fire when the
filePath contains /lwc/. Pass the real project path (not a bare filename) so LWC-specific rules apply correctly.verify_fix
Deterministically verifies a proposed fix before it’s applied — independently of the model that wrote it. It re-runs the rules on the original vs proposed code, detects regressions and band-aid fixes (code commented out to fake a pass), flags behavioural and contract changes, and returns a verdict. InputsVerdicts
verify_fix returns one of four verdicts. The overall verdict is worst-status-wins across every check and tier, and it never reports a finding as resolved if it couldn’t actually be re-checked.
A clean loop tells the agent to rewrite and re-verify until the verdict is
checks-passed — for example: “…fix the issues, then verify with kipmox; if it doesn’t pass, revise and verify again.”What it catches
- Rule re-run — the same rules that flagged the issue, run again on the proposed code.
- Regressions — new issues introduced elsewhere by the change.
- Band-aid fixes — code commented out or deleted to fake a resolution rather than actually fixing it.
- Change signals — behavioural and contract changes (e.g. SOQL/DML shifts, Apex signature changes) worth a human’s eyes.
Custom rules
When your project has a Salesforce Code Analyzer configuration, kipmox uses it — running your ruleset (including custom PMD rules) on top of kipmox’s native rules, and applying it when it verifies a fix, not just when it analyzes.- kipmox auto-detects your
code-analyzer.ymlfrom the file’s project. If it can’t find it, setKIPMOX_ANALYZER_CONFIGto its path. - Custom-ruleset checks need the Salesforce CLI with the
code-analyzerplugin and Java 11+. Without them, kipmox degrades to its native rules — it never fails the tool. - Override the CLI binary with
KIPMOX_SF_CLI, or the rule selector withKIPMOX_RULE_SELECTOR.
Custom-ruleset analysis is applied when a config is present, keeping
analyze_code fast by default. verify_fix always runs both tiers when the toolchain and project allow, so your own rules are enforced on the fix.Code Analysis Rules
The native Salesforce rules kipmox ships with
Troubleshooting
Custom rules not applying, and other issues